.public-gallery-page {
    min-height: 70vh;
    background: #f7f9fc;
    color: #24364b;
    font-family: Cabin, sans-serif;
}

.public-gallery-hero {
    padding: clamp(3.5rem, 8vw, 6.5rem) 0;
    background: linear-gradient(120deg, #173e60, #32709b);
    color: #fff;
}

.public-gallery-hero .container {
    max-width: 1200px;
}

.public-gallery-eyebrow {
    color: #c5d9e9;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .16em;
}

.public-gallery-hero h1 {
    margin: .6rem 0;
    color: #fff;
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
}

.public-gallery-hero p {
    max-width: 650px;
    margin: 0;
    color: #e0ebf3;
    font-size: 1.05rem;
}

.public-gallery-content {
    max-width: 1200px;
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.public-gallery-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.public-gallery-categories {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.public-gallery-categories a {
    padding: .48rem .85rem;
    border: 1px solid #dce5ed;
    border-radius: 999px;
    background: #fff;
    color: #4c6074;
    font-size: .83rem;
    font-weight: 600;
    text-decoration: none;
    transition: color .15s ease, background .15s ease, border-color .15s ease;
}

.public-gallery-categories a:hover,
.public-gallery-categories a.is-selected {
    border-color: #234f73;
    background: #234f73;
    color: #fff;
}

.public-gallery-media-filter {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex: 0 0 auto;
    color: #64748b;
    font-size: .82rem;
    font-weight: 600;
}

.public-gallery-media-filter .form-select {
    min-width: 135px;
    border-color: #dce5ed;
    border-radius: 9px;
}

.public-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.public-gallery-card {
    overflow: hidden;
    border: 1px solid #e3eaf1;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(30, 54, 78, .055);
    transition: transform .18s ease, box-shadow .18s ease;
}

.public-gallery-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(30, 54, 78, .11);
}

.public-gallery-photo-button {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: #e9eef3;
    color: inherit;
    cursor: zoom-in;
    text-decoration: none;
}

.public-gallery-photo-button > img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .25s ease;
}

.public-gallery-photo-button:hover > img {
    transform: scale(1.035);
}

.public-gallery-photo-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    background: rgba(15, 35, 55, .48);
    color: #fff;
    font-size: .82rem;
    font-weight: 650;
    opacity: 0;
    transition: opacity .18s ease;
}

.public-gallery-photo-button:hover .public-gallery-photo-overlay,
.public-gallery-photo-button:focus-visible .public-gallery-photo-overlay {
    opacity: 1;
}

.public-gallery-video,
.gallery-video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #101820;
}

.public-gallery-video iframe,
.gallery-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.public-gallery-card-copy {
    padding: 1rem 1.05rem 1.1rem;
}

.public-gallery-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    color: #52718d;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .045em;
}

.public-gallery-featured {
    color: #ad7815;
    font-size: .68rem;
}

.public-gallery-card-copy h2 {
    margin: .45rem 0 0;
    color: #283e54;
    font-size: 1.05rem;
    font-weight: 700;
}

.public-gallery-card-copy p {
    display: -webkit-box;
    overflow: hidden;
    margin: .4rem 0 0;
    color: #718096;
    font-size: .84rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.public-gallery-empty {
    padding: 4rem 1rem;
    border: 1px dashed #d5e0e9;
    border-radius: 16px;
    background: #fff;
    text-align: center;
}

.public-gallery-empty i {
    color: #6f8da7;
    font-size: 2rem;
}

.public-gallery-empty h2 {
    margin: .75rem 0 .35rem;
    color: #34465a;
    font-size: 1.2rem;
}

.public-gallery-empty p {
    margin: 0;
    color: #8491a0;
}

.public-gallery-pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.public-gallery-pagination .pagination {
    margin-bottom: 0;
}

.public-gallery-lightbox {
    position: fixed;
    width: min(94vw, 1200px);
    max-width: none;
    max-height: 94vh;
    padding: 3.2rem 1rem 1rem;
    border: 0;
    border-radius: 14px;
    background: #101820;
    box-shadow: 0 25px 100px rgba(0, 0, 0, .45);
}

.public-gallery-lightbox::backdrop {
    background: rgba(7, 16, 25, .86);
}

.public-gallery-lightbox > img {
    display: block;
    max-width: 100%;
    max-height: calc(94vh - 4.2rem);
    margin: 0 auto;
    object-fit: contain;
}

.public-gallery-lightbox-close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    cursor: pointer;
}

@media (max-width: 991px) {
    .public-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .public-gallery-filters {
        align-items: stretch;
        flex-direction: column;
    }

    .public-gallery-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .public-gallery-card-copy {
        padding: .85rem;
    }
}
