.vd-lightbox {
  box-sizing: border-box; position: fixed; inset: 0; width: 100%; max-width: none;
  height: 100%; height: 100dvh; max-height: none; margin: 0; padding: 3.5rem 4rem 1rem;
  border: 0; background: rgb(12 14 18 / .96); color: #fff; overflow: auto;
}
.vd-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.vd-lightbox::backdrop { background: rgb(0 0 0 / .8); }
.vd-lightbox [hidden] { display: none !important; }
.vd-lightbox__figure { width: 100%; height: 100%; min-height: 0; margin: 0; display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.vd-lightbox__stage { flex: 1 1 0; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; touch-action: pan-y pinch-zoom; }
.vd-lightbox__image { display: block; width: 100%; height: 100%; object-fit: contain; }
.vd-lightbox__description { flex: 0 1 auto; max-height: 35%; overflow: auto; width: 100%; text-align: center; line-height: 1.4; font-size: 1rem; color: #fff; }
.vd-lightbox__caption, .vd-lightbox__credit, .vd-lightbox__counter { display: block; white-space: pre-line; overflow-wrap: anywhere; }
.vd-lightbox__credit, .vd-lightbox__counter { font-size: .85rem; margin-top: .35rem; }
.vd-lightbox button { position: absolute; z-index: 1; display: grid; place-items: center; width: 3rem; height: 3rem; padding: 0; border: 1px solid #aaa; border-radius: .25rem; background: #191b20; color: #fff; font: 2rem/1 sans-serif; cursor: pointer; }
.vd-lightbox button:hover { background: #353840; }
.vd-lightbox button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.vd-lightbox__close { top: .5rem; right: .5rem; }
.vd-lightbox__previous { top: calc(50% - 1.5rem); left: .5rem; }
.vd-lightbox__next { top: calc(50% - 1.5rem); right: .5rem; }
.vd-lightbox__error { position: absolute; padding: 1rem; background: #191b20; }
@media (max-width: 575px) {
  .vd-lightbox { padding: 3.75rem .5rem 4rem; }
  .vd-lightbox__previous, .vd-lightbox__next { top: auto; bottom: .5rem; }
  .vd-lightbox__description { font-size: .9rem; }
}
