/* ===== Audio Opowieści — shared swipeable lightbox (lightbox.js) =====
   Self-contained: fixed dark palette so it reads the same on the light
   site theme, the dark Szatan sections and the store modal. */
.aolb {
  --aolb-bg: rgba(10, 14, 28, .95);
  --aolb-fg: #f4ecd8;
  --aolb-muted: rgba(244, 236, 216, .72);
  --aolb-accent: #d4a857;
  --aolb-btn: rgba(0, 0, 0, .55);
  --aolb-btn-hover: rgba(255, 255, 255, .16);
  position: fixed; inset: 0; z-index: 6000;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: var(--aolb-bg);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  color: var(--aolb-fg);
  font-family: var(--font-sans, "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  opacity: 0;
  transition: opacity .25s ease;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) 0 max(1rem, env(safe-area-inset-left));
  overscroll-behavior: contain;
  touch-action: pan-y pinch-zoom;
}
.aolb[hidden] { display: none; }
.aolb.is-open { opacity: 1; }

.aolb-stage {
  min-height: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 2.75rem clamp(0rem, 6vw, 4.5rem) .5rem;
}
.aolb-img {
  display: block;
  width: 100%; height: 100%;
  max-width: 1400px;
  object-fit: contain;
  user-select: none; -webkit-user-select: none; -webkit-user-drag: none;
  transform: scale(.98);
  transition: transform .25s ease, filter .25s ease;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, .5));
}
.aolb.is-open .aolb-img { transform: none; }

.aolb-bar {
  display: flex; align-items: baseline; justify-content: center; gap: 1rem;
  padding: .6rem 1rem max(1rem, env(safe-area-inset-bottom));
  text-align: center;
}
.aolb-caption {
  margin: 0; max-width: 60rem;
  font-size: .95rem; line-height: 1.5; color: var(--aolb-fg);
}
.aolb-caption strong { font-family: var(--font-display, Georgia, serif); color: var(--aolb-accent); font-weight: 700; }
.aolb-counter {
  flex: none;
  font-size: .85rem; font-variant-numeric: tabular-nums; color: var(--aolb-muted);
  letter-spacing: .04em;
}

.aolb-btn {
  position: absolute;
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .28);
  background: var(--aolb-btn); color: #fff;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.aolb-btn[hidden] { display: none; }
.aolb-btn:hover { background: var(--aolb-btn-hover); border-color: var(--aolb-accent); }
.aolb-btn:focus-visible { outline: 3px solid var(--aolb-accent); outline-offset: 2px; }
.aolb-close { top: max(.75rem, env(safe-area-inset-top)); right: max(.75rem, env(safe-area-inset-right)); width: 44px; height: 44px; }
.aolb-prev, .aolb-next { top: 50%; transform: translateY(-50%); }
.aolb-prev { left: max(.75rem, env(safe-area-inset-left)); }
.aolb-next { right: max(.75rem, env(safe-area-inset-right)); }
.aolb-prev:hover, .aolb-next:hover { transform: translateY(-50%) scale(1.06); }

.aolb-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Triggers on the page */
img.aolb-trigger { cursor: zoom-in; }
img.aolb-trigger:focus-visible { outline: 3px solid var(--accent-deep, #9e7510); outline-offset: 3px; }

@media (max-width: 600px) {
  .aolb { padding-left: 0; padding-right: 0; }
  .aolb-stage { padding: 3.5rem 0 .25rem; }
  .aolb-prev, .aolb-next { top: auto; bottom: max(.6rem, env(safe-area-inset-bottom)); transform: none; width: 44px; height: 44px; }
  .aolb-prev:hover, .aolb-next:hover { transform: none; }
  .aolb-bar { padding-left: 3.75rem; padding-right: 3.75rem; flex-direction: column; align-items: center; gap: .25rem; min-height: 3.5rem; }
  .aolb-caption { font-size: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  .aolb, .aolb-img, .aolb-btn { transition: none !important; }
  .aolb-img { transform: none; }
}
.aolb.no-motion, .aolb.no-motion .aolb-img, .aolb.no-motion .aolb-btn { transition: none !important; }
.aolb.no-motion .aolb-img { transform: none; }
