/**
 * Gallery Page Styles
 */

/* ==========================================================================
   Hero Banner
   ========================================================================== */

.gallery-hero {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.gallery-hero-title {
    color: #5B21B6;
    font-size: var(--text-5xl);
    font-weight: 700;
    margin-bottom: var(--space-3);
    position: relative;
    z-index: 1;
}

.gallery-hero-subtitle {
    color: #6b7280;
    font-size: var(--text-lg);
    font-weight: 400;
    font-style: italic;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Gallery Grid
   ========================================================================== */

.gallery-section {
    padding: 50px 0 80px;
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-md);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.gallery-item:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
    display: block;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.08);
}

/* ==========================================================================
   Lightbox Modal
   ========================================================================== */

.gallery-modal-content {
    background: transparent;
    border: none;
    position: relative;
}

.gallery-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    z-index: 10;
    opacity: 0.8;
    filter: invert(0);
}

.gallery-modal-close:hover {
    opacity: 1;
}

.gallery-modal-img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    display: block;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 1rem;
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 0.35);
}

.gallery-nav-prev {
    left: -56px;
}

.gallery-nav-next {
    right: -56px;
}

#galleryModal .modal-backdrop {
    background: rgba(0, 0, 0, 0.9);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 991.98px) {
    .gallery-hero {
        padding: 60px 0 40px;
    }

    .gallery-hero-title {
        font-size: var(--text-4xl);
    }

    .gallery-section {
        padding: 30px 0 60px;
    }

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

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

@media (max-width: 575.98px) {
    .gallery-hero {
        padding: 50px 0 30px;
    }

    .gallery-hero-title {
        font-size: var(--text-3xl);
    }

    .gallery-hero-subtitle {
        font-size: var(--text-base);
    }

    .gallery-item {
        border-radius: var(--radius-md);
    }

    .gallery-nav {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
}
