/* Galerie zum Anklicken, beide Entwürfe: Foto groß über der unscharf gezeichneten Seite,
   blättern mit Pfeilen, Pfeiltasten oder Wischen. Raster und Abstände stehen in a.css bzw. c.css. */
.galerie a { display: block; cursor: zoom-in; }
.galerie a img { transition: filter .25s ease; }
.galerie a:hover img { filter: brightness(1.06) saturate(1.05); }
.galerie a:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }

.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #F1EBE1; overflow: hidden; }
.lightbox::backdrop { background: rgba(28, 23, 20, .28); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(calc(100vw - 200px), 1200px); max-height: calc(100dvh - 112px); width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 24px 80px rgba(28, 23, 20, .45); user-select: none; }
.lightbox button { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: rgba(28, 23, 20, .62); color: inherit; cursor: pointer; transition: background .2s; }
.lightbox button:hover { background: rgba(28, 23, 20, .85); }
.lightbox button:focus-visible { outline: 3px solid #F1EBE1; outline-offset: 2px; }
.lb-zu { top: 20px; right: 20px; }
.lb-zurueck { left: 28px; top: 50%; margin-top: -26px; }
.lb-weiter { right: 28px; top: 50%; margin-top: -26px; }
.lb-zahl { position: absolute; top: 30px; left: 28px; margin: 0; padding: 5px 12px; border-radius: 999px; background: rgba(28, 23, 20, .62); font-size: .9375rem; line-height: 1.4; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] img { animation: lb-auf .25s ease both; }
  @keyframes lb-auf { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
}
@media (max-width: 760px) {
  .lightbox img { max-width: calc(100vw - 32px); max-height: calc(100dvh - 176px); }
  .lb-zurueck, .lb-weiter { top: auto; bottom: 28px; margin-top: 0; }
  .lb-zurueck { left: calc(50% - 68px); } .lb-weiter { right: calc(50% - 68px); }
  .lb-zahl { top: 26px; left: 16px; } .lb-zu { top: 16px; right: 16px; }
}
html:has(.lightbox[open]) { overflow: hidden; }
