html.vv-photo-viewer-open, html.vv-photo-viewer-open body { overflow: hidden; }
#gallery .vv-photo {
  display: block; padding: 0; border: 0; border-radius: 11px;
  color: inherit; font: inherit; cursor: zoom-in; transition: none;
}
#gallery .vv-photo:disabled { cursor: default; opacity: 1; }
#gallery .vv-photo:not(:disabled):is(:hover,:active) { transform: none; box-shadow: none; }
#gallery .vv-photo:focus-visible { outline: 3px solid #b48a4d; outline-offset: -4px; }
#gallery .vv-gallery-hint { font: 11px/1.8 var(--sans); color: #e4d6c5; text-align: center; margin: 12px 0 0; }
#gallery-lightbox {
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh;
  max-width: 100vw; max-height: 100dvh; margin: 0; border: 0;
  padding: max(72px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(22px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));
  background: #181216f5; color: #faf1e8; overflow: auto; overscroll-behavior: contain;
}
#gallery-lightbox::backdrop { background: #15120f; }
#gallery-lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
#gallery-lightbox figure { margin: 0; width: 100%; min-height: 0; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
#gallery-lightbox img { max-width: 100%; width: auto; height: auto; max-height: calc(100dvh - 230px); object-fit: contain; transition: opacity .35s ease; }
#gallery-lightbox figcaption { max-width: 750px; text-align: center; font: 14px/1.7 var(--serif); }
#gallery-lightbox button {
  flex: 0 0 auto; display: grid; place-items: center; width: 48px; height: 48px;
  border: 1px solid #b8a07890; border-radius: 50%; background: #401426;
  color: #faf1e8; font: 28px/1 var(--serif); cursor: pointer;
}
#gallery-lightbox button:disabled { opacity: .35; cursor: default; }
#gallery-lightbox [data-viewer-close] { position: absolute; top: max(16px,env(safe-area-inset-top)); right: max(16px,env(safe-area-inset-right)); }
#gallery-lightbox .photo-viewer-controls { display: flex; align-items: center; justify-content: center; gap: 22px; }
#gallery-lightbox [data-viewer-count] { min-width: 70px; text-align: center; font: 13px var(--sans); }
#gallery-lightbox [data-viewer-status] { font: 13px/1.7 var(--sans); text-align: center; }
#gallery-lightbox [data-viewer-status]:empty { display: none; }
@media (prefers-reduced-motion:reduce) { #gallery-lightbox img { transition: none; } }
