/* Lightbox für Bildergalerien (deobald-sr 1.1.1). Farben über --sr-lb-accent anpassbar. */
html.sr-lb-open { overflow: hidden; }
.sr-lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 12, 12, .94); color: #fff; overflow: hidden; }
.sr-lightbox::backdrop { background: rgba(12, 12, 12, .94); }
.sr-lightbox[open] { display: block; animation: sr-lb-in .18s ease-out; }
.sr-lb-stage { position: absolute; inset: 56px 72px 64px; display: flex; align-items: center; justify-content: center; }
.sr-lb-stage img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); user-select: none; -webkit-user-drag: none; }
.sr-lb-bar { position: absolute; left: 72px; right: 72px; bottom: 18px; margin: 0; display: flex; justify-content: space-between; gap: 16px; font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, .86); }
.sr-lb-count { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sr-lb-btn { position: absolute; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font: 300 34px/1 system-ui, sans-serif; cursor: pointer; transition: background .15s; }
.sr-lb-btn:hover { background: rgba(255, 255, 255, .26); }
.sr-lightbox .sr-lb-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.sr-lb-close { top: 10px; right: 12px; font-size: 30px; }
.sr-lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.sr-lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.sr-lb-btn span { margin-top: -4px; }
.sr-lb-zoom { position: absolute; right: 12px; top: 12px; z-index: 2; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: #222; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.sr-lb-zoom:focus-visible { outline: 3px solid var(--sr-lb-accent, #222); outline-offset: 2px; }
figure:has(> .sr-lb-zoom) { position: relative; }
@media (max-width: 640px) {
  .sr-lb-stage { inset: 56px 0 64px; }
  .sr-lb-bar { left: 16px; right: 16px; }
  .sr-lb-prev, .sr-lb-next { top: auto; bottom: 8px; transform: none; width: 44px; height: 44px; }
  .sr-lb-prev { left: auto; right: 64px; }
  .sr-lb-bar { right: 124px; }
}
@keyframes sr-lb-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sr-lightbox[open] { animation: none; } }
