/* Photo viewer (lightbox.js). Same in both versions. */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(12, 12, 12, 0.94); color: #eee;
}
.lightbox::backdrop { background: rgba(12, 12, 12, 0.94); }
.lightbox figure {
  margin: 0; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; padding: 48px 56px 20px;
}
.lightbox img { max-width: 100%; max-height: calc(100% - 30px); object-fit: contain; }
.lightbox figcaption { font: 14px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; opacity: 0.7; }
.lightbox button {
  position: absolute; background: none; border: 0; color: #eee; cursor: pointer;
  font: 300 44px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  width: 52px; height: 52px; border-radius: 26px;
}
.lightbox button:hover, .lightbox button:focus-visible { background: rgba(255, 255, 255, 0.12); }
.lightbox .lb-close { top: 8px; right: 8px; font-size: 36px; }
.lightbox .lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 4px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lightbox figure { padding: 52px 8px 16px; }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 6px; transform: none; }
}
