/* ============================================================
   LIGHTBOX — fullscreen image viewer with zoom + nav
============================================================ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.93);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

/* ---- Toolbar -------------------------------------------- */
.lb-toolbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent);
  z-index: 10001;
  gap: 12px;
}
.lb-toolbar__controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.lb-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.lb-btn:hover  { background: rgba(255, 255, 255, 0.22); }
.lb-btn:active { transform: scale(0.93); }
.lb-zoom-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  min-width: 46px;
  text-align: center;
  font-family: var(--font-body, sans-serif);
  letter-spacing: 0.02em;
}

/* ---- Stage ---------------------------------------------- */
.lb-stage {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 80px 48px;
  box-sizing: border-box;
  overflow: hidden;
}
.lb-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: center center;
  transition: transform 0.2s ease, opacity 0.25s ease;
  will-change: transform;
  opacity: 0;
}

/* ---- Nav buttons ---------------------------------------- */
.lb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 10001;
}
.lb-nav:hover  { background: rgba(255, 255, 255, 0.22); transform: translateY(-50%) scale(1.08); }
.lb-nav:active { transform: translateY(-50%) scale(0.95); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

/* ---- Counter -------------------------------------------- */
.lb-counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-body, sans-serif);
  letter-spacing: 0.04em;
  z-index: 10001;
  pointer-events: none;
}

/* ---- Mobile -------------------------------------------- */
@media (max-width: 640px) {
  .lb-stage  { padding: 64px 16px 44px; }
  .lb-prev   { left: 8px; }
  .lb-next   { right: 8px; }
  .lb-nav    { width: 40px; height: 40px; }
  .lb-btn    { width: 36px; height: 36px; }
}
