/* Gallery Page Styles */

/* Hero Section */
.gallery-hero {
    background: linear-gradient(rgba(7, 15, 30, 0.55), rgba(7, 15, 30, 0.55)), url('../images/gallery-banner.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 10rem 2rem 6rem;
    text-align: center;
    color: white;
}

.gallery-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.gallery-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    color: white;
}

/* Filter Section */
.gallery-filter-section {
    background: #f8fafc;
    padding: 2rem 0;
    position: sticky;
    top: 80px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e2e8f0;
    background: white;
    color: #475569;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.filter-btn:hover {
    border-color: #fc2e20;
    color: #fc2e20;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #fc2e20;
    border-color: #fc2e20;
    color: white;
}

/* Gallery Grid Section */
.gallery-grid-section {
    padding: 4rem 0;
    background: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    aspect-ratio: 4/3;
    background: #f1f5f9;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Load More Button */
.gallery-load-more {
    padding: 3rem 0;
    background: white;
}

.btn-load-more {
    padding: 1rem 3rem;
    background: #002a8b;
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.btn-load-more:hover {
    background: #fc2e20;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(252, 46, 32, 0.3);
}

/* GLightbox Customization */
.glightbox-clean .gslide-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

.glightbox-clean .gslide-desc {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.25rem;
    }

    .gallery-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .gallery-hero {
        min-height: 320px;
        display: grid;
        place-items: center;
        padding: 5rem 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
        padding: 0 1.5rem;
    }

    .gallery-filter-section {
        top: 70px;
        padding: 1.5rem 0;
    }

    .gallery-filters {
        padding: 0 1.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0 1rem;
    }

    .gallery-item {
        aspect-ratio: 1;
    }

    .gallery-hero-title {
        font-size: 1.75rem;
    }

    .gallery-hero-subtitle {
        font-size: 0.95rem;
    }
}

/* Loading State */
.gallery-item.loading {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
