.gallery-hero {
    height: 60vh;
    min-height: 480px;
    background: linear-gradient(135deg, rgba(11, 15, 25, 0.88) 0%, rgba(19, 34, 56, 0.82) 100%),
                url('https://images.unsplash.com/photo-1585314062604-1a357de8b000?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 2px solid var(--gold);
    position: relative;
}

.gallery-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(11, 15, 25, 0.92) 100%);
}

.gallery-hero .hero-content {
    max-width: 700px;
    position: relative;
    z-index: 2;
    padding: 0 1.5rem;
}

.gallery-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.8px;
    margin-bottom: 1rem;
}

.gallery-hero p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.2rem;
    line-height: 1.7;
}

.gallery-filters-section {
    padding: 2.2rem 0;
    background: #0d121f;
    border-bottom: 1px solid var(--border-dark);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.gallery-filters button {
    padding: 10px 24px;
    border: 1px solid var(--border-blue);
    background: var(--bg-card);
    color: var(--text-muted);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
}

.gallery-filters button.active,
.gallery-filters button:hover {
    background: var(--royal-blue);
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.4);
    transform: translateY(-2px);
}

.gallery-grid-section {
    padding: 4rem 0 6rem;
    background: var(--bg-dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.8rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--border-dark);
    cursor: pointer;
    transition: var(--transition);
    aspect-ratio: 1;
    box-shadow: var(--shadow-md);
}

.gallery-item:hover {
    border-color: var(--border-gold);
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(11, 15, 25, 0.95) 0%, rgba(19, 34, 56, 0.8) 70%, transparent 100%);
    color: var(--text-main);
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

.gallery-item .overlay h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--text-main);
}

.gallery-item .overlay p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.gallery-item .overlay i {
    color: var(--gold);
}

/* ===== RESPONSIVE MEDIA QUERIES ===== */
@media (max-width: 992px) {
    .gallery-hero h1 {
        font-size: 2.8rem;
    }

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

@media (max-width: 768px) {
    .gallery-hero h1 {
        font-size: 2.4rem;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    .gallery-filters button {
        padding: 8px 18px;
        font-size: 0.82rem;
    }
}

@media (max-width: 576px) {
    .gallery-hero h1 {
        font-size: 2rem;
    }
    .gallery-hero p {
        font-size: 0.95rem;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    /* MOBILE SCROLL IN VIEW ANIMATION FOR GALLERY OVERLAY TEXT */
    .gallery-item .overlay,
    .gallery-item .gallery-overlay {
        transform: translateY(0) !important;
        opacity: 0.9;
        background: linear-gradient(to top, rgba(11, 15, 25, 0.95) 0%, rgba(19, 34, 56, 0.7) 100%);
        transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    .gallery-item.scroll-in-view .overlay,
    .gallery-item.scroll-in-view .gallery-overlay {
        transform: translateY(0) !important;
        opacity: 1;
        animation: galleryMobileSlideUp 0.6s ease forwards;
    }
}

@keyframes galleryMobileSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}