#content .forum-gallery button {
  display: grid; place-items: center; width: 8rem; max-width: 100%; height: 9rem;
  padding: .25rem; border: 1px solid currentColor; border-radius: .35rem; overflow: hidden;
}
#content .forum-gallery button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
html:has(#forum-viewer[open]) { overflow: hidden; }
#forum-viewer {
  position: fixed; inset: 0; margin: auto; padding: 0; border: 0; overflow: hidden;
  width: min(96vw, 90rem); height: min(92vh, 72rem); height: min(92dvh, 72rem);
  max-height: 96%; max-width: 98%; color: #fff; background: #101211; border-radius: .5rem;
}
#forum-viewer[open] { display: grid; grid-template-rows: minmax(0,1fr) auto; }
#forum-viewer::backdrop { background: rgb(0 0 0 / 83%); }
#forum-viewer img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; touch-action: pan-y pinch-zoom; }
#forum-viewer footer { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: .4rem; }
#forum-viewer button { min-width: 44px; min-height: 44px; color: white; background: #2b302c; border: 1px solid #73786e; border-radius: .25rem; font-size: 1.4rem; }
#forum-viewer button[hidden] { display:none; }
