
/* =========================================
   GALLERY PAGE
========================================= */

.gallery-hero {
    position: relative;
    overflow: hidden;
    padding: 110px 7% 95px;
    background: #061b28;
    color: #ffffff;
}

.gallery-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-eyebrow {
    display: inline-block;
    margin-bottom: 25px;
    color: #ffd500;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 3px;
}

.gallery-hero h1 {
    max-width: 950px;
    margin: 0 0 25px;
    font-size: clamp(48px, 7.5vw, 100px);
    line-height: 0.98;
    letter-spacing: -3px;
    font-weight: 800;
}

.gallery-hero p {
    max-width: 680px;
    margin: 0;
    color: #c6d3dc;
    font-size: 18px;
    line-height: 1.8;
}

.gallery-hero-link {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    margin-top: 35px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    border-bottom: 1px solid #657985;
    padding-bottom: 10px;
}

.gallery-hero-link span {
    color: #ffd500;
    font-size: 21px;
    transition: transform 0.2s ease;
}

.gallery-hero-link:hover span {
    transform: translateY(4px);
}

.gallery-hero-accent {
    position: absolute;
    right: 7%;
    bottom: 35px;
    display: flex;
    gap: 20px;
    color: rgba(255, 255, 255, 0.15);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}


/* =========================================
   GALLERY SECTION
========================================= */

.gallery-section {
    padding: 95px 7% 110px;
    background: #f7f9fb;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 35px;
    margin-bottom: 42px;
}

.section-label {
    display: inline-block;
    margin-bottom: 14px;
    color: #167bc0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.gallery-heading h2 {
    max-width: 650px;
    margin: 0;
    color: #061b28;
    font-size: clamp(32px, 4.5vw, 54px);
    line-height: 1.08;
    letter-spacing: -1.5px;
}

.gallery-heading > p {
    max-width: 360px;
    margin: 0 0 4px;
    color: #64727b;
    font-size: 15px;
    line-height: 1.8;
}


/* =========================================
   FILTER BUTTONS
========================================= */

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.gallery-filter {
    padding: 12px 19px;
    border: 1px solid #d8e0e5;
    background: #ffffff;
    color: #344652;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.gallery-filter:hover {
    border-color: #167bc0;
    color: #167bc0;
}

.gallery-filter.active {
    border-color: #061b28;
    background: #061b28;
    color: #ffffff;
}


/* =========================================
   IMAGE GRID
========================================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 250px;
    gap: 18px;
}

.gallery-card {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: none;
    background: #dce4e9;
    cursor: pointer;
    text-align: left;
}

.gallery-card-large {
    grid-column: span 2;
}

.gallery-card[hidden] {
    display: none;
}

.gallery-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover img,
.gallery-card:focus-visible img {
    transform: scale(1.045);
}

.gallery-card:focus-visible,
.gallery-filter:focus-visible,
.gallery-hero-link:focus-visible {
    outline: 3px solid #167bc0;
    outline-offset: 4px;
}

.gallery-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    padding: 24px;
    background: linear-gradient(
        to top,
        rgba(6, 27, 40, 0.92) 0%,
        rgba(6, 27, 40, 0.25) 45%,
        transparent 75%
    );
    color: #ffffff;
    opacity: 0.96;
    transition: background 0.3s ease;
}

.gallery-card-overlay small {
    display: block;
    margin-bottom: 8px;
    color: #ffd500;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.gallery-card-overlay strong {
    display: block;
    font-size: 19px;
    line-height: 1.3;
}

.gallery-view-icon {
    display: flex;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.65);
    font-size: 20px;
    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.gallery-card:hover .gallery-view-icon {
    background: #ffd500;
    border-color: #ffd500;
    color: #061b28;
}

.gallery-note {
    margin: 28px 0 0;
    color: #71808a;
    font-size: 13px;
    line-height: 1.7;
}


/* =========================================
   LIGHTBOX
========================================= */

.gallery-lightbox[hidden] {
    display: none;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 70px 35px 35px;
    background: rgba(3, 13, 20, 0.96);
}

.lightbox-figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: min(100%, 1050px);
    height: 100%;
    margin: 0;
}

.lightbox-figure img {
    display: block;
    max-width: 100%;
    max-height: calc(100% - 55px);
    object-fit: contain;
}

.lightbox-figure figcaption {
    padding-top: 18px;
    color: #ffffff;
    font-size: 14px;
    text-align: center;
}

.lightbox-close,
.lightbox-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
    background: #ffd500;
    border-color: #ffd500;
    color: #061b28;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    width: 44px;
    height: 44px;
    font-size: 32px;
}

.lightbox-arrow {
    width: 44px;
    height: 50px;
    font-size: 35px;
}

.lightbox-close:focus-visible,
.lightbox-arrow:focus-visible {
    outline: 3px solid #167bc0;
    outline-offset: 4px;
}


/* =========================================
   CTA
========================================= */

.gallery-cta {
    padding: 85px 7%;
    background: #ffffff;
}

.gallery-cta-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 55px;
    background: #061b28;
    color: #ffffff;
}

.gallery-cta h2 {
    max-width: 700px;
    margin: 0 0 17px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -1.5px;
}

.gallery-cta p {
    max-width: 600px;
    margin: 0;
    color: #c6d3dc;
    font-size: 16px;
    line-height: 1.8;
}

.gallery-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    margin-top: 28px;
    padding: 15px 20px;
    background: #ffd500;
    color: #061b28;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.gallery-cta-button:hover {
    background: #ffffff;
    transform: translateY(-2px);
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {
    .gallery-hero {
        padding-top: 90px;
    }

    .gallery-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .gallery-heading > p {
        max-width: 600px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 230px;
    }

    .gallery-card-large {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .gallery-hero {
        padding: 75px 5% 80px;
    }

    .gallery-hero h1 {
        font-size: clamp(43px, 12vw, 66px);
        letter-spacing: -1.8px;
    }

    .gallery-hero p {
        font-size: 16px;
    }

    .gallery-hero-accent {
        right: 5%;
        bottom: 22px;
        gap: 10px;
        font-size: 9px;
    }

    .gallery-section {
        padding: 70px 5% 80px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 270px;
        gap: 14px;
    }

    .gallery-card-large {
        grid-column: span 1;
    }

    .gallery-card-overlay {
        padding: 19px;
    }

    .gallery-cta {
        padding: 55px 5%;
    }

    .gallery-cta-inner {
        padding: 35px 25px;
    }

    .gallery-lightbox {
        gap: 8px;
        padding: 65px 10px 25px;
    }

    .lightbox-arrow {
        width: 32px;
        height: 42px;
        font-size: 27px;
    }

    .lightbox-figure img {
        max-width: 100%;
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
    }
}
