/* ═══════════════════════════════════════════════════════
   LIGHTBOX — lightbox.css
   Full-screen photo viewer. Layers on top of style.css.
   ═══════════════════════════════════════════════════════ */

/* ── Container ──────────────────────────────────────── */
.lb {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
}

.lb--open {
  opacity: 1;
  visibility: visible;
}

/* ── Overlay ────────────────────────────────────────── */
.lb-overlay {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(20, 24, 28, 0.96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

/* ── Close ──────────────────────────────────────────── */
.lb-close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 10;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.lb-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ── Arrows ─────────────────────────────────────────── */
.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  z-index: 10;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.lb-arrow:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.lb-arrow svg {
  width: 22px;
  height: 22px;
}

.lb-prev { left: 20px; }
.lb-next { right: 20px; }

/* ── Stage (image area) ─────────────────────────────── */
.lb-stage {
  flex: 1;
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.lb-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.lb-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 88px;
}

.lb-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

/* ── Bottom bar ─────────────────────────────────────── */
.lb-bottom {
  position: relative;
  z-index: 2;
  padding: 16px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lb-counter {
  font-family: var(--sans, 'Figtree', system-ui, sans-serif);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

/* ── Thumbnails ─────────────────────────────────────── */
.lb-thumbs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  max-width: 100%;
  padding: 4px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.lb-thumbs::-webkit-scrollbar { display: none; }

.lb-thumb {
  flex: 0 0 auto;
  width: 56px;
  height: 40px;
  padding: 0;
  border: 2px solid transparent;
  background: none;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.4;
  transition: opacity 0.2s, border-color 0.2s;
}

.lb-thumb:hover {
  opacity: 0.7;
}

.lb-thumb--active {
  opacity: 1;
  border-color: rgba(194, 160, 110, 0.8);
}

.lb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
  .lb-slide { padding: 48px 16px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-arrow { width: 40px; height: 40px; }
  .lb-close { top: 12px; right: 12px; }
}

@media (max-width: 480px) {
  .lb-slide { padding: 56px 8px 8px; }
  .lb-arrow { width: 36px; height: 36px; }
  .lb-arrow svg { width: 18px; height: 18px; }
  .lb-thumb { width: 44px; height: 32px; }
  .lb-bottom { padding: 10px 12px 14px; }
}
