/* Gallery page — flat, compact */

.page-header {
    background: var(--brand-navy);
    padding: 140px 0 70px;
    text-align: center;
    color: var(--white);
}

.page-title {
    font-size: 2.1rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.page-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 720px;
    margin: 0 auto;
}

/* Filters + grid */
.gallery-main {
    padding: 50px 0 80px;
    background: var(--light-gray);
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2.4rem;
}

.filter-tab {
    border: 1px solid var(--border-color);
    background: var(--white);
    color: var(--brand-navy);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.55rem 1.3rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tab:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.filter-tab.active {
    background: var(--brand-navy);
    border-color: var(--brand-navy);
    color: var(--white);
}

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

.gallery-card {
    margin: 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.gallery-photo-btn {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: zoom-in;
    position: relative;
    overflow: hidden;
}

.gallery-photo-btn img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.gallery-card:hover .gallery-photo-btn img {
    transform: scale(1.04);
}

.gallery-zoom {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(14, 23, 38, 0.65);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.gallery-card:hover .gallery-zoom {
    opacity: 1;
}

.gallery-card figcaption {
    padding: 1.1rem 1.3rem 1.3rem;
}

.gallery-cat {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-orange);
    margin-bottom: 0.3rem;
}

.gallery-title {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 0.35rem;
}

.gallery-desc {
    color: var(--text-light);
    font-size: 0.94rem;
    line-height: 1.55;
    margin: 0;
}

.gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-light);
    padding: 2rem 0;
}

/* Achievements — flat navy stats band */
.achievements {
    background: var(--brand-navy);
    color: var(--white);
    padding: 60px 0 70px;
    text-align: center;
}

.achievements-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.achievement-number {
    font-size: 2.0rem;
    font-weight: 800;
    color: var(--primary-orange);
    line-height: 1.1;
}

.achievement-label {
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.3rem;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 16, 28, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 2000;
    padding: 2rem;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 92vw;
    max-height: 80vh;
    border-radius: 10px;
}

.lightbox-caption {
    color: rgba(255, 255, 255, 0.9);
    margin-top: 1rem;
    font-size: 1.05rem;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.85rem;
    cursor: pointer;
    line-height: 1;
}

@media (max-width: 600px) {
    .page-header {
        padding: 120px 0 50px;
    }

    .page-title {
        font-size: 1.7rem;
    }

    .gallery-photo-btn img {
        height: 200px;
    }
}
