.gallery-hero {
    padding-block: clamp(2.5rem, 6vw, 5rem);
    background: var(--enaproc-control-hover, #24323e);
    color: #fff;
}

.gallery-hero h1 {
    margin-block: .35rem .75rem;
    color: inherit;
    font-size: clamp(2.25rem, 5vw, 4.25rem);
    line-height: 1.08;
}

.gallery-hero p { max-width: 58ch; margin-bottom: 0; }
.gallery-label { color: #d1dde7; font-size: .8rem; font-weight: 700; }
.gallery-back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 1rem; color: inherit; }
.gallery-back:hover { color: #fff; }
.gallery-content { padding-block: clamp(1.75rem, 4vw, 3.5rem); }
.gallery-collection + .gallery-collection { margin-top: clamp(2rem, 4vw, 3rem); }
.gallery-collection h2 { margin-bottom: 1rem; color: #24323e; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
    gap: 1rem;
}

.gallery-grid--photos { grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
.gallery-grid--video { grid-template-columns: repeat(auto-fill, minmax(min(100%, 28rem), 1fr)); }
.gallery-card, .gallery-photo { min-width: 0; overflow: hidden; border: 1px solid #dce4eb; border-radius: .75rem; background: #fff; }
.gallery-card a { display: block; height: 100%; color: #263440; text-decoration: none; }
.gallery-card a:hover h3 { text-decoration: underline; }
.gallery-photo { display: block; }

.gallery-card img, .gallery-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #eef2f5;
}

.gallery-card__body { padding: 1rem 1.15rem; }
.gallery-card__body h3 { margin: 0 0 .35rem; font-size: 1.5rem; }
.gallery-card__body p { margin: 0; color: #526170; }
.gallery-count { display: inline-block; margin-top: .75rem; color: #344554; font-size: .85rem; font-weight: 700; }
.gallery-video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #24323e; }

.gallery-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.gallery-filters a, .gallery-viewer button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: .45rem .9rem;
    border: 1px solid #344554;
    border-radius: .4rem;
    background: #fff;
    color: #344554;
    font-weight: 700;
    text-decoration: none;
}

.gallery-filters [aria-current="page"] { background: #344554; color: #fff; }
.gallery-filters a:hover { text-decoration: underline; }
.gallery-card a:focus-visible, .gallery-photo:focus-visible { outline: 3px solid #344554; outline-offset: -3px; }
.gallery-viewer { width: min(96vw, 76rem); max-width: none; max-height: 94dvh; padding: .75rem; border: 0; border-radius: .75rem; }
.gallery-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: .5rem; }
.gallery-viewer::backdrop { background: rgb(24 35 45 / 80%); }
.gallery-viewer__header, .gallery-viewer__navigation { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.gallery-viewer__count { color: #344554; font-weight: 700; }
.gallery-viewer button { gap: .35rem; }
.gallery-viewer button[aria-disabled="true"] { border-color: #dce4eb; background: #f1f4f6; color: #526170; }
.gallery-viewer img { display: block; width: 100%; height: min(70dvh, max(0px, calc(94dvh - 8rem))); object-fit: contain; }
