/* FEXELION Lightbox (1.4.0) – unabhängig vom Theme */
.fx-lightbox-open { overflow: hidden; }
.fx-lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; background: rgba(10, 12, 14, .97); color: #fff; overflow: hidden; }
.fx-lightbox::backdrop { background: rgba(10, 12, 14, .94); }
.fx-lightbox__stage { position: absolute; inset: 0; display: grid; place-items: center; padding: 3.5rem 4.5rem; }
.fx-lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .75rem; max-width: 100%; max-height: 100%; }
.fx-lightbox__img { display: block; max-width: 100%; max-height: calc(100vh - 9rem); max-height: calc(100dvh - 9rem); width: auto; height: auto; object-fit: contain; border-radius: 4px; background: #222; }
.fx-lightbox__caption { font: 1rem/1.45 system-ui, sans-serif; text-align: center; max-width: 60rem; color: #f2f2f2; }
.fx-lightbox__count { position: absolute; top: 1rem; left: 1rem; margin: 0; font: 600 .95rem/1 system-ui, sans-serif; color: #e6e6e6; padding: .6rem .8rem; }
.fx-lightbox__btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }
.fx-lightbox__btn:hover { background: rgba(255, 255, 255, .26); }
.fx-lightbox__btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.fx-lightbox__btn[hidden] { display: none; }
.fx-lightbox__close { top: .75rem; right: .75rem; }
.fx-lightbox__prev { left: .75rem; top: 50%; transform: translateY(-50%); }
.fx-lightbox__next { right: .75rem; top: 50%; transform: translateY(-50%); }
.fx-lightbox__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 640px) {
  .fx-lightbox__stage { padding: 3.5rem .5rem 5rem; }
  .fx-lightbox__prev, .fx-lightbox__next { top: auto; bottom: .75rem; transform: none; }
  .fx-lightbox__prev { left: calc(50% - 60px); } .fx-lightbox__next { right: calc(50% - 60px); }
}
@media (prefers-reduced-motion: no-preference) { .fx-lightbox[open] { animation: fx-lb-in .18s ease-out; } }
@keyframes fx-lb-in { from { opacity: 0; } to { opacity: 1; } }
