/* Gallery Carousel */
.gallery-section {
    padding: 60px 0;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
    /*min-height: 600px;*/
}

.gallery-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0 40px;
}

.gallery-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: fit-content;
    gap: 20px;
}

.gallery-slide {
    width: calc((1200px - 80px - 60px) / 4);
    height: 400px;
    opacity: 1;
    transition: transform 0.5s ease;
    flex-shrink: 0;
}

.gallery-slide:hover {
    transform: scale(1.05);
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    cursor: pointer;
}

/* Navigation */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--bg-white);
    color: var(--primary-dark);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 2;
    transition: all 0.3s ease;
}

.gallery-nav:hover {
    background: var(--accent-gold);
    color: var(--bg-white);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev { left: 20px; }
.gallery-nav.next { right: 20px; }

.gallery-nav ion-icon {
    font-size: 24px;
}

/* Dots navigation */
.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 50%;
    background: var(--border-light);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.gallery-dot.active {
    background: var(--accent-gold);
    transform: scale(1.2);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    place-items: center;
    z-index: 1000;
}

.lightbox.active {
    display: grid;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    z-index: 2;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    padding: 15px;
    color: white;
    cursor: pointer;
    border-radius: 50%;
    z-index: 2;
}

.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }

.lightbox-nav ion-icon {
    font-size: 24px;
}

@media (max-width: 1024px) {
    .gallery-slide {
        flex: 0 0 calc(33.333% - 20px);
    }
}

@media (max-width: 768px) {
    .gallery-section {
        padding: 30px 0;
    }

    .gallery-carousel {
        padding: 0 20px;
    }

    .gallery-slide {
        flex: 0 0 calc(50% - 20px);
        height: 200px;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .gallery-slide {
        flex: 0 0 calc(100% - 20px);
        height: 250px;
    }
}