/* The Verifier 2026: full-screen photo viewer (inc/lightbox.php), a native modal <dialog>.
   The dialog is only as big as the photo; the dark screen around it is its ::backdrop, so a click there closes it. */
html.tvlb-on { overflow: hidden; }
dialog.tvlb {
  box-sizing: border-box; max-width: 100vw; max-height: 100dvh; margin: auto; padding: 0; border: 0; border-radius: 0;
  background: transparent; color: #fff; overflow: visible; direction: rtl;
}
dialog.tvlb::backdrop { background: rgba(7, 12, 38, .94); }
.tvlb__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.tvlb__img { display: block; max-width: 100vw; max-height: calc(100dvh - 120px); width: auto; height: auto; object-fit: contain; }
.tvlb__cap { max-width: 760px; padding: 0 16px; font: 400 14px/1.5 var(--tv-font); color: #D5DAF2; text-align: center; }
.tvlb__cap[hidden] { display: none; }
/* Controls sit at the edges of the screen, not of the photo */
.tvlb__x { position: fixed; top: 12px; left: 12px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; }
.tvlb__n { position: fixed; top: 24px; right: 20px; font: 700 15px/1 var(--tv-font); color: #fff; }
.tvlb__nav { position: fixed; top: 50%; width: 48px; height: 64px; margin-top: -32px; border: 0; border-radius: 0; background: rgba(255,255,255,.12); color: #fff; display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; }
/* SVG arrows: the ‹ › characters flip in right-to-left text, so they pointed inward */
.tvlb__nav[hidden] { display: none; }
.tvlb__nav--prev { right: 12px; }
.tvlb__nav--next { left: 12px; }
.tvlb__x:hover, .tvlb__nav:hover { background: rgba(255,255,255,.24); }
.tvlb button:focus-visible { outline: 3px solid var(--tv-cyan); outline-offset: 2px; }
@media (max-width: 767px) { .tvlb__nav { display: none; } }
@media (min-width: 1025px) {
  .tvlb__img { max-width: calc(100vw - 176px); max-height: calc(100dvh - 140px); }
  .tvlb__x { top: 20px; left: 20px; } .tvlb__nav--prev { right: 24px; } .tvlb__nav--next { left: 24px; }
}
.tvlb__cap::before, .tvlb__cap::after { display: none !important; }
