/* Photo lightbox (site-js/lightbox.js), shared by all themes. Neutral dark
   viewer so artwork colors read true in every design. */
.lightbox {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  padding: 56px 64px 72px;
  background: rgba(12, 10, 12, 0.92);
}
.lightbox[hidden] { display: none; }
.lightbox-open, .lightbox-open body { overflow: hidden; }

.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: 100%; max-height: 100%; }
.lightbox__img {
  max-width: 100%; max-height: calc(100vh - 160px);
  width: auto; height: auto; object-fit: contain;
  background: #fff; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.lightbox__caption { margin-top: 14px; max-width: 46rem; color: #f2eef0; font: 16px/1.45 Georgia, "Times New Roman", serif; text-align: center; }
.lightbox__caption[hidden] { display: none; }
.lightbox__count { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; color: #bdb5ba; font: 14px/1 Arial, sans-serif; text-align: center; }

.lightbox__close, .lightbox__nav {
  position: absolute; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.12); color: #fff;
  font: 300 2.4rem/1 Arial, sans-serif;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox__close:focus-visible, .lightbox__nav:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.lightbox__close { top: 12px; right: 12px; width: 48px; height: 48px; border-radius: 50%; }
.lightbox__nav { top: 50%; width: 52px; height: 72px; margin-top: -36px; border-radius: 6px; }
.lightbox__nav[hidden] { display: none; }
.lightbox__nav--prev { left: 8px; }
.lightbox__nav--next { right: 8px; }

@media (max-width: 640px) {
  .lightbox { padding: 56px 8px 64px; }
  .lightbox__nav { top: auto; bottom: 8px; margin: 0; width: 56px; height: 48px; }
}
