/* Bildansicht (js/lightbox.js). Fondo, opacidad y qué se enseña: variables --lb-* de css/ajustes.css. */
.lb { position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--lb-text); overflow: hidden; }
@supports (height: 1dvh) { .lb { height: 100dvh; } }
.lb::backdrop { background: var(--lb-fondo); background: color-mix(in srgb, var(--lb-fondo) var(--lb-opacidad), transparent); }
.lb[open] { animation: lb-in .25s ease; }
@keyframes lb-in { from { opacity: 0; } }
.lb__fig { position: absolute; inset: 3.5rem 4.5rem 2.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.8rem; margin: 0; }
.lb__img { display: block; min-height: 0; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; flex: 0 1 auto; }
.lb__pie { display: var(--lb-pies); max-width: 46rem; font-size: 0.8rem; letter-spacing: 0.03em; text-align: center; }
.lb__pie[hidden] { display: none; }
.lb button { position: absolute; display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; color: inherit; opacity: 0.75; transition: opacity .2s; }
.lb button:hover, .lb button:focus-visible { opacity: 1; }
.lb button:focus-visible { outline: 1px solid currentColor; outline-offset: 2px; }
.lb button .icono { width: 26px; height: 26px; stroke-width: 1.25; }
.lb__zurueck, .lb__weiter { top: 50%; translate: 0 -50%; display: var(--lb-flechas) !important; }
.lb__zurueck { left: 0.75rem; }
.lb__weiter { right: 0.75rem; }
.lb__schliessen { top: 0.6rem; right: 0.75rem; }
/* Debajo de la foto, a la misma distancia que las flechas de la vista pequeña (.mando de serie.php: padding-top), menos el gap de .lb__fig; alto de línea = alto del botón (2.75rem), así el número queda a la altura del centro de la flecha; «etwas grauer» (Thomas, 9 nov). */
.lb__zaehler { flex: 0 0 auto; margin: calc(var(--nav-top, clamp(1.25rem, 4vw, 2rem)) - 0.8rem) 0 0; font-size: 0.8rem; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; line-height: 2.75rem; opacity: 0.7; text-align: center; display: var(--lb-zaehler); }
.lb--una .lb__zurueck, .lb--una .lb__weiter, .lb--una .lb__zaehler { display: none !important; }
@media (max-width: 699px), (orientation: landscape) and (max-height: 500px) {
  .lb__fig { inset: 3.25rem 0.5rem 1.5rem; }
  .lb__zurueck { left: 0; } .lb__weiter { right: 0; }
}
@media (prefers-reduced-motion: reduce) { .lb[open] { animation: none; } }
