/* ===================================
   SPHERE 3D IMAGE GALLERY
   =================================== */

.sphere-gallery-section {
    background: linear-gradient(135deg, #007c8c 0%, #005f6b 100%);
    padding: 4rem 0;
    overflow: hidden;
}

.sphere-gallery-section .section-header {
    text-align: center;
    margin-bottom: 2rem;
    color: white;
}

.sphere-gallery-section .section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.sphere-gallery-section .section-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.sphere-container {
    position: relative;
    margin: 0 auto;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.sphere-container:active {
    cursor: grabbing;
}

.sphere-container .sphere-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.sphere-image {
    position: absolute;
    cursor: pointer;
    transition: transform 0.2s ease-out;
    will-change: transform, opacity;
}

.sphere-image-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: #fff;
}

.sphere-image-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.sphere-image:hover {
    transform: translate(-50%, -50%) scale(1.15) !important;
}

/* Modal */
.sphere-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sphere-modal.active {
    opacity: 1;
    visibility: visible;
}

.sphere-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 400px;
    width: 100%;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.sphere-modal.active .sphere-modal-content {
    transform: scale(1);
}

.sphere-modal-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.sphere-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.sphere-modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.sphere-modal-info {
    padding: 1.5rem;
}

.sphere-modal-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
}

.sphere-modal-info p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .sphere-gallery-section {
        padding: 3rem 0;
    }

    .sphere-gallery-section .section-header h2 {
        font-size: 1.5rem;
    }

    .sphere-gallery-section .section-header p {
        font-size: 1rem;
    }
}
