/* Gallery Section Styles */
.galleries-section {
    padding: 6rem 0;
    background-color: var(--light-gray);
}

.galleries-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--accent-color);
}

/* Homepage Horizontal Scrollable Gallery */
.gallery-preview-grid {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px;
}

.gallery-carousel-container {
    overflow: hidden;
    border-radius: 15px;
}

.gallery-carousel {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
    padding: 10px 0;
}

.gallery-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(232, 106, 51, 0.9);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-carousel-nav:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.gallery-carousel-nav.prev {
    left: 10px;
}

.gallery-carousel-nav.next {
    right: 10px;
}

/* Regular Gallery Grid for Gallery Pages */
.gallery-page .gallery-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

.gallery-thumb {
    width: 300px;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.gallery-thumb:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Gallery page thumbs - different styling */
.gallery-page .gallery-thumb {
    width: 100%;
    flex-shrink: 1;
}

/* Lightbox Modal */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-container {
    position: relative;
    max-width: 85vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    width: auto;
    height: auto;
    max-width: 85vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: opacity 0.2s ease;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

.lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gallery-preview-grid {
        padding: 0 60px;
    }
    
    .gallery-page .gallery-preview-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
        padding: 0 15px;
    }

    .gallery-thumb {
        width: 250px;
        height: 200px;
    }
    
    .gallery-page .gallery-thumb {
        width: 100%;
    }

    .gallery-carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .lightbox-container {
        max-width: 95%;
        max-height: 85%;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .lightbox-prev {
        left: -60px;
    }

    .lightbox-next {
        right: -60px;
    }

    .lightbox-close {
        top: -35px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .gallery-preview-grid {
        padding: 0 50px;
    }
    
    .gallery-page .gallery-preview-grid {
        grid-template-columns: 1fr 1fr;
        padding: 0 10px;
    }

    .gallery-thumb {
        width: 200px;
        height: 150px;
    }

    .gallery-carousel-nav {
        width: 35px;
        height: 35px;
    }

    .gallery-carousel-nav.prev {
        left: 5px;
    }

    .gallery-carousel-nav.next {
        right: 5px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
    }

    .tour-action {
        flex-direction: column;
        align-items: center;
    }

    .tour-action .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Tour Gallery Button */
.tour-action {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
}

.tour-action .btn.secondary-btn {
    background-color: #3D3228;
    color: #FFFFFF;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-align: center;
    vertical-align: middle;
    min-height: 44px;
}

.tour-action .btn.secondary-btn:hover {
    background-color: #C49A6C;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 154, 108, 0.3);
}

/* Tour Navigation Buttons */
.tour-navigation {
    padding: 40px 0;
    text-align: center;
    background-color: var(--bg-color);
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn.nav-btn {
    background-color: #e86a33;
    color: white;
    border: 2px solid #e86a33;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn.nav-btn:hover {
    background-color: white;
    color: #e86a33;
    border-color: #e86a33;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 106, 51, 0.3);
}