/**
 * Lightbox — companion stylesheet for lightbox.js.
 * Self-contained (no dependency on host page's design tokens) so it can be
 * dropped into any project alongside lightbox.js.
 */
.lb-root {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}
.lb-root.is-open { display: block; }

.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.92);
}

.lb-figure {
  position: relative;
  z-index: 1;
  height: 100%;
  margin: 0;
  box-sizing: border-box;
  padding: 72px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lb-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lb-caption {
  margin-top: 16px;
  max-width: 60ch;
  color: #f0f0ec;
  text-align: center;
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.lb-close,
.lb-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #f0f0ec;
  cursor: pointer;
  transition: background 0.2s;
}
.lb-close:hover,
.lb-nav:hover { background: rgba(255, 255, 255, 0.18); }

.lb-close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 24px;
  line-height: 1;
}

.lb-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 28px;
  line-height: 1;
}
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

.lb-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #b9b9b3;
  font: 12px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0.08em;
}

@media (max-width: 640px) {
  .lb-figure { padding: 56px 12px; }
  .lb-nav { width: 44px; height: 44px; font-size: 22px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-close { top: 12px; right: 12px; }
}
