.media-wall {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.media-tile {margin:0}.media-tile a {display:block;height:100%}
.media-frame {border-radius:16px;position:relative;aspect-ratio:1.55;background:#243e34;overflow:hidden}
.media-frame img {width:100%;height:100%;object-fit:cover;transition:transform .22s}
.media-tile a:hover img {transform:scale(1.035)}
.media-symbol {position:absolute;bottom:12px;right:12px;width:35px;height:35px;display:grid;place-items:center;color:#fff;background:#102b24c9;border:1px solid #ffffff66;border-radius:50%}
.media-tile figcaption {padding:12px 0;border-bottom:1px solid var(--line)}
.media-tile h2 {font-size:1.25rem;margin-top:4px}.media-tile small,.news-row time,.press-article time {color:#7d613a;font-weight:600}
.photo-viewer {margin:auto;max-width:min(94vw,1150px);max-height:93dvh;border:0;border-radius:5px;background:#10251f;color:#fff;padding:12px}
.photo-viewer::backdrop {background:#06110de6}
.photo-viewer form {text-align:right}.photo-viewer button {padding:7px 12px;min-height:44px}
.photo-viewer img {display:block;max-height:70dvh;width:auto;max-width:100%;object-fit:contain;margin:auto}
.photo-viewer p {padding:12px}
.media-wall .media-tile {background:white;border:1px solid #d3e1d6;border-radius:17px;overflow:hidden;box-shadow:0 5px 20px #19392b0b}
.media-tile:focus-within {outline:3px solid #287954;outline-offset:2px}
.media-tile .media-frame {border-radius:0;aspect-ratio:16/10}
.media-caption {padding:14px 18px 18px}
.gallery-viewer {width:min(94vw,960px);padding:clamp(12px,2vw,24px);border-radius:16px}
.gallery-viewer header {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.gallery-viewer h2 {font-size:1.15rem}.gallery-viewer button {white-space:nowrap;border:1px solid #96ac9f;border-radius:9px}
.gallery-stage {background:#091812;border-radius:10px;overflow:hidden}
.gallery-stage img,.gallery-stage video {display:block;width:100%;height:min(64dvh,580px);object-fit:contain}
.gallery-stage iframe {display:block;width:100%;aspect-ratio:16/9;max-height:64dvh;border:0}
.gallery-source:not([hidden]) {display:inline-flex;align-items:center;min-height:44px;text-decoration:underline}
@media(max-width:650px){.media-wall {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.media-wall .media-tile:first-child {grid-column:auto}.media-wall .media-tile .media-frame {aspect-ratio:4/3}.media-caption {padding:9px 10px 12px}.gallery-stage video {height:auto;max-height:62dvh}}

.home-gallery .media-wall {grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));gap:16px}
.home-gallery .media-caption h2 {font-size:1.1rem;line-height:1.45;overflow-wrap:anywhere}
@media(max-width:650px){
    .home-gallery .media-wall {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
    .home-gallery .media-tile .media-frame {aspect-ratio:1.9}
    .home-gallery .media-caption {padding:7px 10px}
    .home-gallery .media-caption h2 {font-size:1rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
}
@media(prefers-reduced-motion:reduce){.media-frame img {transition:none}}
.photo-navigation:not([hidden]){display:flex;justify-content:space-between;gap:8px;margin-top:10px}.gallery-stage img{touch-action:pan-y pinch-zoom}
.photo-picker:not([hidden]) {display:flex;align-items:center;gap:10px;margin-top:8px}
.photo-thumbnails {display:flex;flex:1;min-width:0;gap:6px;overflow-x:auto;padding:2px;scrollbar-width:thin}
.photo-thumbnails button {flex:none;width:60px;height:46px;padding:2px;border:2px solid transparent;border-radius:8px}
.photo-thumbnails button[aria-current] {border-color:#efce85}
.photo-thumbnails button:focus-visible {outline:2px solid white;outline-offset:-2px}
.photo-thumbnails img {width:100%;height:100%;object-fit:cover;border-radius:4px}
.photo-count {flex:none;color:#f5e0ae;font-variant-numeric:tabular-nums}
@media(max-width:650px){.photo-thumbnails button{width:46px;height:44px}.gallery-stage img{height:min(56dvh,500px)}}
.gallery-canvas{position:relative}.gallery-stage:has(img),.gallery-stage img{touch-action:none;user-select:none}.photo-zoom:not([hidden]){position:absolute;bottom:8px;right:8px;display:flex;align-items:center;background:#10251ff2;color:white;border-radius:10px;padding:2px}.photo-zoom button{width:44px;border:0;font-size:1.25rem}.photo-zoom button:disabled{opacity:.45}.photo-zoom output{font-variant-numeric:tabular-nums;min-width:4ch;text-align:center}
