/* The viewer uses the browser's modal layer, above sticky navigation. */
.photo-lightbox-trigger { cursor: zoom-in; }
.photo-lightbox-trigger:focus-visible { outline: 3px solid #b98937; outline-offset: 4px; }
html.photo-lightbox-open { overflow: hidden; scrollbar-gutter: stable; }
.photo-lightbox {
  box-sizing: border-box;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 18px 28px 24px;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: hidden;
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
}
.photo-lightbox[open] { display: grid; grid-template-rows: 48px minmax(0, 1fr) auto; gap: 16px; }
.photo-lightbox::backdrop { background: rgba(3, 10, 21, .96); }
.photo-lightbox-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.photo-lightbox-count { color: #d4dce6; font-size: 13px; font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.photo-lightbox-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid #ffffff50;
  border-radius: 50%;
  background: #ffffff0a;
  color: #fff;
  font: 400 28px/1 Arial, sans-serif;
  cursor: pointer;
  touch-action: manipulation;
}
.photo-lightbox-button:hover { background: #ffffff24; border-color: #fff; }
.photo-lightbox-button:focus-visible { outline: 3px solid #e4b96b; outline-offset: 4px; }
.photo-lightbox [hidden] { display: none !important; }
.photo-lightbox-stage { min-width: 0; min-height: 0; display: flex; justify-content: center; align-items: center; position: relative; touch-action: pan-y pinch-zoom; }
.photo-lightbox .photo-lightbox-image { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; margin: 0; object-fit: contain; border: 0; border-radius: 3px; box-shadow: 0 16px 64px #0006; }
.photo-lightbox-loading, .photo-lightbox-error { max-width: 460px; margin: 0; padding: 24px; text-align: center; color: #d4dce6; font-size: 14px; line-height: 1.7; }
.photo-lightbox-footer { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; gap: 24px; width: min(100%, 1120px); margin-inline: auto; }
.photo-lightbox-caption { grid-column: 2; max-width: 780px; justify-self: center; margin: 0; color: #e1e6ed; font-size: 14px; line-height: 1.6; text-align: center; }
.photo-lightbox-previous { grid-column: 1; grid-row: 1; }
.photo-lightbox-next { grid-column: 3; grid-row: 1; }
.photo-lightbox-announcement { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 680px) {
  .photo-lightbox { padding: max(12px, env(safe-area-inset-top)) 14px max(16px, env(safe-area-inset-bottom)); }
  .photo-lightbox[open] { gap: 12px; }
  .photo-lightbox-footer { gap: 12px; }
  .photo-lightbox-caption { font-size: 12px; line-height: 1.55; }
}
