/**
 * BWL Lightbox - Styles (theme-unabhaengig)
 * Anpassbar ueber CSS-Variablen, z. B. im Theme:
 *   :root { --bwl-lb-backdrop: rgba(20,20,20,.93); --bwl-lb-accent: #cc0000; }
 */
.bwl-lightbox {
  position: fixed; inset: 0; z-index: 100000;
  display: none; align-items: center; justify-content: center;
  background: var(--bwl-lb-backdrop, rgba(27,35,65,.93));
  padding: 4vmin; cursor: zoom-out;
}
.bwl-lightbox.is-open { display: flex; }
.bwl-lightbox img {
  max-width: 96vw; max-height: 92vh; width: auto; height: auto;
  border-radius: 8px; box-shadow: 0 24px 70px rgba(0,0,0,.55);
  cursor: default; touch-action: none; transform-origin: center center;
  will-change: transform; user-select: none; -webkit-user-select: none; -webkit-user-drag: none;
}
.bwl-lightbox.is-zoomed, .bwl-lightbox.is-zoomed img { cursor: grab; }
.bwl-lightbox.is-grabbing, .bwl-lightbox.is-grabbing img { cursor: grabbing; }

.bwl-lightbox-close {
  position: absolute; top: 14px; right: 14px; width: 48px; height: 48px;
  background: rgba(255,255,255,.16); border: 0; border-radius: 50%; color: #fff;
  font-size: 1.9rem; line-height: 1; cursor: pointer; z-index: 2;
}
.bwl-lightbox-close:hover, .bwl-lightbox-close:focus { background: rgba(255,255,255,.3); }

.bwl-lightbox-hint {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  color: rgba(255,255,255,.85); font-size: .82rem;
  background: rgba(0,0,0,.35); padding: .35rem .8rem; border-radius: 999px;
  pointer-events: none; transition: opacity .4s ease;
}

/* Pfeile + Zaehler: erscheinen nur bei mehreren Bildern im Beitrag */
.bwl-lightbox-prev, .bwl-lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.16); color: #fff;
  font-size: 2.2rem; line-height: 1; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  padding-bottom: 6px; z-index: 2;
}
.bwl-lightbox.has-nav .bwl-lightbox-prev,
.bwl-lightbox.has-nav .bwl-lightbox-next { display: flex; }
.bwl-lightbox-prev { left: 14px; }
.bwl-lightbox-next { right: 14px; }
.bwl-lightbox-prev:hover, .bwl-lightbox-next:hover,
.bwl-lightbox-prev:focus-visible, .bwl-lightbox-next:focus-visible { background: rgba(255,255,255,.3); }

.bwl-lightbox-counter {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.85); font-size: .85rem; letter-spacing: .06em;
  background: rgba(0,0,0,.35); padding: .25rem .7rem; border-radius: 999px;
  pointer-events: none;
}
.bwl-lightbox-counter:empty { display: none; }

@media (max-width: 560px) {
  .bwl-lightbox-prev, .bwl-lightbox-next { width: 44px; height: 44px; font-size: 1.9rem; }
  .bwl-lightbox-prev { left: 6px; }
  .bwl-lightbox-next { right: 6px; }
}
