/* ============================================
   PREMIUM GALLERY PAGE STYLES
   ============================================ */

/* Hero Section (Matches Achievements) */
.gallery-hero {
    background: var(--gradient-hero);
    padding: var(--space-20) 0 var(--space-16);
    position: relative;
    overflow: hidden;
    color: var(--white);
    text-align: center;
}

.gallery-hero .hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    z-index: 0;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -150px;
    left: -100px;
}

.shape-2 {
    width: 350px;
    height: 350px;
    background: var(--accent);
    bottom: -100px;
    right: -50px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: var(--space-6);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    color: white;
}

.hero-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Gallery Grid Section */
.gallery-section {
    padding: var(--space-16) 0;
    background: var(--light);
}

.gallery-grid {
    display: grid;
    /* Responsive grid: 3 cols on desktop, 2 on tablet, 1 on mobile */
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.gallery-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-xl);
    background: var(--white);
    padding: var(--space-2);
    /* Frame effect */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.gallery-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    aspect-ratio: 4 / 3;
    /* Uniform aspect ratio for neat grid */
    cursor: pointer;
}

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-card:hover img {
    transform: scale(1.1);
}

/* Overlay Effect */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay i {
    color: var(--white);
    font-size: 2rem;
    transform: scale(0.5);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-card:hover .gallery-overlay i {
    transform: scale(1);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--space-20) 0;
}

.empty-icon {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: var(--space-4);
}

.empty-state h3 {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: var(--space-2);
}

.empty-state p {
    color: var(--gray-500);
}

/* Lightbox Modal - Premium Feel */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    object-fit: contain;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--white);
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
    line-height: 1;
    z-index: 2001;
}

.close-lightbox:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

/* Responsive Design */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .gallery-section {
        padding: var(--space-12) 0;
    }

    .close-lightbox {
        top: 20px;
        right: 20px;
        font-size: 2.5rem;
    }

    .achievements-hero {
        padding: var(--space-16) 0 var(--space-12);
    }
}