/* Photo viewer (reusable component; see the top of site/js/photo-viewer.js).
   Theme: --pv-bg (the dark background), --pv-text (caption), --pv-button (‹ › background). */
.photo-viewer {
  box-sizing: border-box;
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 2rem; border: 0; border-radius: 0;
  background: var(--pv-bg, rgba(5, 8, 9, .92)); color: var(--pv-text, #eee);
}
.photo-viewer[open] { display: flex; align-items: center; justify-content: center; }
.photo-viewer::backdrop { background: transparent; backdrop-filter: none; }
.pv-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.pv-fig img { max-height: 82vh; max-width: 88vw; border-radius: 8px; cursor: zoom-out; }
.pv-cap { display: flex; flex-direction: column; gap: .2rem; font: .95em var(--sans, system-ui, sans-serif); text-align: center; max-width: 40rem; }
.pv-date { font-weight: 700; }
.pv-prev, .pv-next { position: absolute; top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; border-radius: 50%; border: 0; background: var(--pv-button, rgba(255, 255, 255, .12)); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.pv-prev { left: 1rem; } .pv-next { right: 1rem; }
.pv-prev:hover, .pv-next:hover { background: rgba(255, 255, 255, .25); }
.pv-close { position: absolute; top: 1rem; right: 1.2rem; min-width: 2.75rem; min-height: 2.75rem; font-size: 2rem; background: none; border: 0; color: #fff; cursor: pointer; }
.pv-prev:focus-visible, .pv-next:focus-visible, .pv-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pv-prev[hidden], .pv-next[hidden], .pv-text[hidden], .pv-date[hidden] { display: none; }
html[dir="rtl"] .pv-prev { left: auto; right: 1rem; } html[dir="rtl"] .pv-next { right: auto; left: 1rem; }
html[dir="rtl"] .pv-close { right: auto; left: 1.2rem; }
/* pictures that open */
[data-photo-viewer], a.img-link { cursor: zoom-in; }
img[data-photo-viewer]:focus-visible { outline: 3px solid var(--accent, #6ec6ff); outline-offset: 3px; }
