/* Self-contained image lightbox for the static site (no dependencies). */
html.slb-lock { overflow: hidden; }

.slb-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 12, 0.93);
  opacity: 0;
  transition: opacity 0.18s ease;
  -webkit-user-select: none;
  user-select: none;
}
.slb-overlay.slb-open { display: flex; opacity: 1; }

.slb-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 92vw;
  max-height: 92vh;
}

.slb-img {
  max-width: 92vw;
  max-height: 84vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #1b1b1f;
  border-radius: 2px;
  box-shadow: 0 8px 44px rgba(0, 0, 0, 0.55);
}
.slb-img.slb-loading { min-width: 140px; min-height: 100px; opacity: 0.25; }

.slb-cap {
  color: #e9e9ec;
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-align: center;
  max-width: 80vw;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.slb-counter {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: #cfcfd2;
  font: 13px/1 system-ui, sans-serif;
  letter-spacing: 0.04em;
}

.slb-btn {
  position: absolute;
  padding: 0;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 26px;
  line-height: 48px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.slb-btn:hover { background: rgba(255, 255, 255, 0.22); }
.slb-btn:focus-visible { outline: 2px solid #8fb269; outline-offset: 2px; }
.slb-close { top: 12px; right: 14px; font-size: 30px; }
.slb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.slb-next { right: 16px; top: 50%; transform: translateY(-50%); }

@media (max-width: 600px) {
  .slb-btn { width: 40px; height: 40px; line-height: 40px; font-size: 22px; }
  .slb-prev { left: 6px; }
  .slb-next { right: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .slb-overlay { transition: none; }
}
