/* Shared fullscreen image lightbox with pan/zoom */
.lbz-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 14, 0.94);
  z-index: 10050;
  display: none;
  align-items: stretch;
  justify-content: stretch;
  touch-action: none;
}
.lbz-overlay.is-open { display: flex; }
.lbz-stage {
  position: relative;
  flex: 1;
  overflow: hidden;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.lbz-stage.is-zoomed { cursor: grab; }
.lbz-stage.is-panning { cursor: grabbing; }
.lbz-img {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 96vw;
  max-height: 92vh;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center center;
  transition: transform 0.12s ease-out;
  pointer-events: none;
  -webkit-user-drag: none;
  border-radius: 6px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}
.lbz-stage.is-gesturing .lbz-img { transition: none; }
.lbz-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  backdrop-filter: blur(6px);
  transition: background 0.15s;
}
.lbz-close:hover { background: rgba(255, 255, 255, 0.22); }
.lbz-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.55);
  color: #e5e7eb;
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: 999px;
  pointer-events: none;
  letter-spacing: 0.02em;
}

/* Plain clickable preview (replaces in-place pan-zoom containers) */
.lbz-preview {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-soft, #f3f4f6);
  cursor: zoom-in;
}
.lbz-preview img {
  display: block;
  width: 100%;
  height: auto;
}
