.fun-gallery li>a{display:grid;width:100%;height:100%;min-height:0;min-width:0;cursor:zoom-in}
.fun-gallery li>a:focus-visible{outline-offset:-4px}
.photo-viewer{position:fixed;inset:0;box-sizing:border-box;margin:0;padding:0;max-width:none;max-height:none;width:100%;height:100vh;height:100dvh;border:0;background:#10283d;color:white;overscroll-behavior:contain}
.photo-viewer[open]{display:grid;grid-template-rows:auto minmax(0,1fr)}
.photo-viewer::backdrop{background:#10283d}
.photo-viewer-bar{display:flex;justify-content:flex-end;padding:calc(8px + env(safe-area-inset-top, 0px)) max(12px,env(safe-area-inset-right, 0px)) 4px}
.photo-viewer button{min-height:44px;padding:6px 14px;border:1px solid #aab8c1;border-radius:5px;background:#193a51;color:white;font:inherit;cursor:pointer}
.photo-viewer button span{margin-inline-start:5px}
.photo-viewer-stage{display:grid;place-items:center;min-width:0;min-height:0;padding:4px 12px max(12px,env(safe-area-inset-bottom,0px))}
.photo-viewer-stage img{display:block;width:100%;height:100%;min-height:0;min-width:0;object-fit:contain}
html:has(.photo-viewer[open]){overflow:hidden;overscroll-behavior:none}
/* Center the photo and its caption together, with no viewport-sized gap. */
.photo-viewer-stage:has(.photo-viewer-caption:not([hidden])){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px}
.photo-viewer-stage:has(.photo-viewer-caption:not([hidden])) img{width:auto;height:auto;max-width:100%;max-height:100%;flex:0 1 auto;object-position:center bottom}
.photo-viewer-caption{flex:none;margin:0;padding:0 12px;text-align:center;font:italic 400 clamp(1rem,4.5vw,1.5rem)/1.2 var(--sans)}
.photo-viewer-name:not([hidden]){display:block;margin-top:4px;font:400 clamp(1.35rem,5.4vw,2rem)/1.2 var(--sans)}
/* Give captioned photos room at the bottom on bigger screens. */
@media (min-width: 800px){
  .photo-viewer-stage:has(.photo-viewer-caption:not([hidden])){
    padding-top:clamp(14px,3vh,30px);
    padding-bottom:clamp(28px,6vh,56px);
  }
}
@media(max-width:440px){
  .photo-viewer-quote-compact{font-size:clamp(.875rem,4vw,1.1rem)}
}
