﻿.gallery-hero {
    position: relative;
    overflow: hidden;
    padding: 150px 0 110px;
    background: linear-gradient(120deg,#f7fbff 0%,#fff 58%,#fff2e7 100%);
    color: #16243b
}

.gallery-grid-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: linear-gradient(rgba(18,61,120,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(18,61,120,.05) 1px,transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom,#000,transparent)
}

.gallery-hero .container {
    position: relative;
    z-index: 2
}

.eyebrow, .gallery-heading span, .gallery-bottom span {
    color: #ef7420;
    font-weight: 800;
    letter-spacing: .16em;
    font-size: .78rem
}

.gallery-hero h1 {
    font-size: clamp(2.6rem,6vw,5.8rem);
    line-height: .96;
    font-weight: 300;
    max-width: 1000px;
    margin: 22px 0
}

    .gallery-hero h1 strong {
        font-weight: 900;
        background: linear-gradient(90deg,#123d78,#f47b20);
        -webkit-background-clip: text;
        color: transparent
    }

.gallery-hero p {
    max-width: 720px;
    color: #65748a;
    font-size: 1.1rem;
    line-height: 1.8
}

.gallery-cta, .gallery-bottom a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg,#123d78,#1c5ca8);
    padding: 15px 23px;
    border-radius: 999px;
    font-weight: 800;
    margin-top: 24px;
    box-shadow: 0 14px 30px rgba(18,61,120,.2)
}

.gallery-section {
    padding: 90px 0;
    background: #fff
}

.gallery-heading {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: end;
    margin-bottom: 34px
}

    .gallery-heading h2 {
        font-weight: 850;
        font-size: clamp(2rem,4vw,3.3rem);
        color: #18243a;
        margin-top: 8px
    }

    .gallery-heading p {
        max-width: 500px;
        color: #718096
    }

.gallery-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 32px
}

    .gallery-filters a {
        padding: 10px 17px;
        border-radius: 999px;
        border: 1px solid #dfe6f0;
        color: #536178;
        text-decoration: none;
        font-weight: 700
    }

        .gallery-filters a.active, .gallery-filters a:hover {
            background: #123d78;
            color: #fff;
            border-color: #123d78
        }

.gallery-masonry {
    columns: 3 310px;
    column-gap: 18px
}

.gallery-card {
    break-inside: avoid;
    margin-bottom: 18px;
    border-radius: 22px;
    overflow: hidden;
    background: #eaf0f7;
    box-shadow: 0 14px 38px rgba(19,47,84,.12)
}

    .gallery-card:nth-child(3n+1) img {
        height: 430px
    }

    .gallery-card:nth-child(3n+2) img {
        height: 310px
    }

    .gallery-card:nth-child(3n) img {
        height: 370px
    }

.gallery-open {
    position: relative;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    text-align: left;
    display: block;
    color: #fff;
    cursor: zoom-in
}

    .gallery-open img {
        width: 100%;
        object-fit: cover;
        display: block;
        transition: transform .7s ease
    }

    .gallery-open:hover img {
        transform: scale(1.06)
    }

.gallery-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,rgba(5,20,42,.92),transparent 66%)
}

.gallery-category {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 7px 11px;
    background: rgba(255,255,255,.9);
    color: #123d78;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800
}

.gallery-copy {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 18px
}

    .gallery-copy h3 {
        font-size: 1.25rem;
        font-weight: 850
    }

    .gallery-copy p {
        font-size: .88rem;
        color: #dce6f4;
        margin: .4rem 0
    }

    .gallery-copy > span {
        font-size: .8rem;
        color: #ffb274;
        font-weight: 800
    }

.gallery-empty {
    text-align: center;
    padding: 80px 20px;
    background: #f6f9fd;
    border-radius: 28px
}

    .gallery-empty i {
        font-size: 4rem;
        color: #aebccf
    }

.gallery-bottom {
    padding: 70px 0;
    background: #102b50;
    color: #fff
}

    .gallery-bottom .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 30px
    }

    .gallery-bottom h2 {
        font-size: 2.4rem;
        margin: .5rem 0
    }

    .gallery-bottom p {
        color: #cbd8e9
    }

    .gallery-bottom a {
        background: linear-gradient(135deg,#f47b20,#ff9e42);
        margin: 0
    }

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(3,10,22,.94);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: .25s
}

    .gallery-lightbox.open {
        opacity: 1;
        visibility: visible
    }

.lightbox-content {
    width: min(1100px,86vw);
    text-align: center;
    color: #fff
}

    .lightbox-content img {
        max-width: 100%;
        max-height: 76vh;
        border-radius: 16px;
        box-shadow: 0 30px 80px #000
    }

    .lightbox-content h3 {
        margin-top: 16px
    }

    .lightbox-content p {
        color: #bdc9d8
    }

.lightbox-close, .lightbox-nav {
    position: absolute;
    border: 0;
    color: #fff;
    background: rgba(255,255,255,.12);
    width: 48px;
    height: 48px;
    border-radius: 50%
}

.lightbox-close {
    top: 22px;
    right: 22px
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%)
}

    .lightbox-nav.prev {
        left: 22px
    }

    .lightbox-nav.next {
        right: 22px
    }

@media(max-width:768px) {
    .gallery-heading, .gallery-bottom .container {
        align-items: flex-start;
        flex-direction: column
    }

.gallery-hero {
        padding: 115px 0 75px
    }

    .gallery-masonry {
        columns: 1
    }

    .gallery-card img, .gallery-card:nth-child(n) img {
        height: 360px
    }

    .lightbox-nav {
        display: none
    }
}

.gallery-image-hero {
    background: #061d37;
    color: #fff
}

.gallery-hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #061a2e
}

.gallery-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg,rgba(4,25,49,.94) 0%,rgba(5,46,88,.82) 52%,rgba(4,24,45,.38) 100%)
}

.gallery-hero.gallery-image-hero h1 {
    color: #fff;
    text-shadow: 0 8px 32px rgba(0,0,0,.25)
}

.gallery-hero.gallery-image-hero h1 strong {
    background: none;
    color: #ff9b43;
    -webkit-text-fill-color: currentColor
}

.gallery-hero.gallery-image-hero p {
    color: rgba(255,255,255,.86)
}

.gallery-hero.gallery-image-hero .gallery-cta {
    background: linear-gradient(135deg,#ff8a2a,#e9670a);
    box-shadow: 0 14px 32px rgba(0,0,0,.26)
}
