* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    background: white;
    min-height: 100vh;
    overflow-x: hidden;
}

.gallery-section {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 0 auto;
    margin-bottom: 0 !important;
    padding: 2.5rem 0 2rem 0;
    padding-bottom: 0 !important;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 1!important;
    visibility: visible!important;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 1rem;
    margin-bottom: 0.5rem !important;
    text-align: center;
    letter-spacing: 0.1px;
}

.gallery-container {
    width: 100%;
    height: auto; 
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    perspective: 1200px;
    padding: 20px;
}

.gallery-row {
    width: 100%;
    max-width: 1200px;
    min-height: 200px;
    height: 200px;
    position: relative;
    margin: 20px 0;
    display: flex !important; /* Force display for all galleries initially */
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Remove the problematic display rule that was hiding galleries */
/* .gallery-row:not([style*="display: flex"]) {
    display: none !important;
} */

.gallery-slide {
    position: absolute;
    width: 300px;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 3px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    opacity: 1 !important;
    visibility: visible !important;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 10px;
    transition: transform 0.3s ease;
    opacity: 1!important;
    visibility: visible!important;
    display: block;
    background: #f5f5f5;
}

.gallery-slide:hover img {
    transform: scale(1.05);
}

.gallery-slide:hover {
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Center slide styling */
.gallery-slide.center {
    transform: translateZ(50px) scale(1.2);
    z-index: 10;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Left slides */
.gallery-slide.left-1 {
    transform: translateX(-320px) translateZ(-20px) rotateY(15deg) scale(0.9);
    z-index: 8;
    opacity: 0.8;
}

.gallery-slide.left-2 {
    transform: translateX(-580px) translateZ(-40px) rotateY(25deg) scale(0.75);
    z-index: 6;
    opacity: 0.6;
}

.gallery-slide.left-3 {
    transform: translateX(-780px) translateZ(-60px) rotateY(35deg) scale(0.6);
    z-index: 4;
    opacity: 0.4;
}

/* Right slides */
.gallery-slide.right-1 {
    transform: translateX(320px) translateZ(-20px) rotateY(-15deg) scale(0.9);
    z-index: 8;
    opacity: 0.8;
}

.gallery-slide.right-2 {
    transform: translateX(580px) translateZ(-40px) rotateY(-25deg) scale(0.75);
    z-index: 6;
    opacity: 0.6;
}

.gallery-slide.right-3 {
    transform: translateX(780px) translateZ(-60px) rotateY(-35deg) scale(0.6);
    z-index: 4;
    opacity: 0.4;
}

/* Navigation indicators */
.nav-indicators {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.nav-dot.active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

/* Title overlay */
.gallery-title {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 100;
    text-align: center;
}

/* Responsive design */
@media (max-width: 1024px) {
    .gallery-section {
        max-width: 98vw;
        padding: 2rem 0.5rem 1.5rem 0.5rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .gallery-slide {
        width: 250px;
        height: 150px;
    }
    
    .gallery-slide.left-1, .gallery-slide.right-1 {
        transform: translateX(-270px) translateZ(-20px) rotateY(15deg) scale(0.9);
    }
    
    .gallery-slide.right-1 {
        transform: translateX(270px) translateZ(-20px) rotateY(-15deg) scale(0.9);
    }
}

@media (max-width: 768px) {
    .gallery-section {
        padding: 1.2rem 0.2rem 1rem 0.2rem;
    }
    .section-title {
        font-size: 1.15rem;
        margin-top: 3rem;
        margin-bottom: 1rem;
    }
    .gallery-slide {
        width: 200px;
        height: 120px;
    }
    
    .gallery-title {
        font-size: 2rem;
    }
    
    .gallery-slide.left-2, .gallery-slide.left-3,
    .gallery-slide.right-2, .gallery-slide.right-3 {
        display: block;
    }
}