﻿.gallery-hero {
    background: linear-gradient(135deg,#071d49,#0b3b82 62%,#0f766e);
    color: #fff;
    padding: 5.5rem 0 6.5rem;
    text-align: center
}

.gallery-eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .16em;
    color: #8ff0c7;
    margin-bottom: 1rem
}

.gallery-hero h1 {
    font-size: clamp(2.5rem,6vw,4.5rem);
    font-weight: 800;
    margin: 0 0 1rem
}

.gallery-hero p {
    max-width: 680px;
    margin: auto;
    color: #dbeafe;
    font-size: 1.08rem
}

.gallery-main {
    margin-top: -3rem;
    padding-bottom: 5rem
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 1.15rem
}

.gallery-card {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    background: #e7eef8;
    aspect-ratio: 4/3;
    box-shadow: 0 14px 35px rgba(8,30,68,.13);
    cursor: zoom-in;
    text-align: left
}

    .gallery-card.featured {
        grid-column: span 2;
        grid-row: span 2
    }

    .gallery-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .45s ease
    }

    .gallery-card:hover img, .gallery-card:focus-visible img {
        transform: scale(1.055)
    }

    .gallery-card:focus-visible {
        outline: 4px solid #34d399;
        outline-offset: 3px
    }

.gallery-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 3.5rem 1.25rem 1.2rem;
    color: #fff;
    background: linear-gradient(transparent,rgba(3,15,38,.9));
    display: flex;
    flex-direction: column
}

    .gallery-overlay strong {
        font-size: 1.06rem
    }

    .gallery-overlay small {
        opacity: .85;
        margin-top: .25rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis
    }

.gallery-empty {
    background: #fff;
    border: 1px solid #dbe5f1;
    border-radius: 22px;
    text-align: center;
    padding: 5rem 1rem;
    box-shadow: 0 14px 35px rgba(8,30,68,.08)
}

    .gallery-empty i {
        font-size: 3rem;
        color: #0b57b7
    }

.gallery-pagination {
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin-top: 2.5rem
}

    .gallery-pagination a {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        display: grid;
        place-items: center;
        text-decoration: none;
        background: #fff;
        color: #123466;
        border: 1px solid #d9e5f2;
        font-weight: 700
    }

        .gallery-pagination a.active {
            background: #0b3b82;
            color: #fff
        }

.gallery-lightbox {
    position: fixed;
    z-index: 10000;
    inset: 0;
    background: rgba(2,10,25,.94);
    padding: 3rem;
    display: grid;
    place-items: center
}

    .gallery-lightbox[hidden] {
        display: none
    }

    .gallery-lightbox figure {
        margin: 0;
        max-width: min(1100px,92vw);
        max-height: 88vh
    }

    .gallery-lightbox img {
        display: block;
        max-width: 100%;
        max-height: 78vh;
        object-fit: contain;
        margin: auto;
        border-radius: 12px
    }

    .gallery-lightbox figcaption {
        color: #fff;
        text-align: center;
        padding: 1rem;
        display: flex;
        flex-direction: column
    }

        .gallery-lightbox figcaption span {
            color: #cbd5e1
        }

.lightbox-close {
    position: absolute;
    right: 2rem;
    top: 1.5rem;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 1.8rem
}

.no-scroll {
    overflow: hidden
}

@media(max-width:900px) {
    .gallery-grid {
        grid-template-columns: repeat(2,1fr)
    }

    .gallery-card.featured {
        grid-column: span 2
    }
}

@media(max-width:575px) {
    .gallery-hero {
        padding: 4rem 0 5rem
    }

    .gallery-grid {
        grid-template-columns: 1fr
    }

    .gallery-card.featured {
        grid-column: auto;
        grid-row: auto
    }

    .gallery-lightbox {
        padding: 1rem
    }

    .lightbox-close {
        right: 1rem;
        top: .75rem
    }
}
