dialog.vp-gallery{
  width:min(94vw,940px);max-width:94vw;height:min(86vh,800px);height:min(86dvh,800px);max-height:90dvh;
  padding:0;margin:auto;overflow:hidden;border:1px solid #5c5e55;border-radius:8px;
  color:#f5f5ec;background:#242521;box-shadow:0 18px 64px #10110f77;
}
dialog.vp-gallery[open]{display:flex;flex-direction:column}
dialog.vp-gallery::backdrop{background:#10110eab}
.vp-gallery .vp-head,.vp-gallery figcaption{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.75rem 1.1rem}
.vp-gallery .vp-head{border-bottom:1px solid #4f5147;flex:none}
.vp-gallery h2,.vp-gallery h3{font-family:Barlow,Impact,"Arial Narrow",sans-serif;font-weight:700;line-height:1.05;letter-spacing:-.015em;color:#fafbf2;margin:0}
.vp-gallery h2{font-size:clamp(1.45rem,2.6vw,2.25rem);text-transform:uppercase}
.vp-gallery h3{font-size:clamp(1.3rem,2.1vw,1.85rem)}
.vp-gallery button{border:1px solid #717568;border-radius:.3rem;background:transparent;color:#f9faf3;font:650 .87rem/1.1 Manrope,Arial,sans-serif;min-height:44px;margin:0;padding:.6rem .9rem}
.vp-gallery button:focus-visible{outline:2px solid #ffdb22;outline-offset:2px}
.vp-gallery button:hover{background:#43463b}
.vp-gallery .vp-close{flex:none;padding:0;width:44px;min-height:44px;font:normal 1.65rem/1 Arial;border-color:transparent}
.vp-gallery .vp-frame{min-height:0;flex:1;margin:0;display:flex;flex-direction:column}
.vp-gallery .vp-stage{min-height:0;flex:1;display:grid;place-items:center;background:#171814;overflow:hidden;touch-action:pan-y pinch-zoom}
.vp-gallery img{display:block;width:100%;height:100%;object-fit:contain;min-width:0;min-height:0;user-select:none}
.vp-gallery figcaption{flex:none;border-top:1px solid #4f5147}
.vp-gallery .vp-text{min-width:0}
.vp-gallery .vp-count{font:600 .75rem/1.35 ui-monospace,Consolas,monospace;color:#ffdb22;margin:0 0 .3rem}
.vp-gallery .vp-buttons{display:flex;gap:.45rem}
@media(max-width:540px){
  dialog.vp-gallery{width:calc(100vw - 1rem);max-width:calc(100vw - 1rem);height:78dvh;max-height:calc(100dvh - 1rem)}
  .vp-gallery .vp-head,.vp-gallery figcaption{padding:.55rem .8rem}
  .vp-gallery figcaption{display:grid;gap:.65rem}
  .vp-gallery .vp-buttons{justify-content:space-between}
}
@media(max-height:470px){
  dialog.vp-gallery{height:calc(100dvh - .6rem);max-height:calc(100dvh - .6rem)}
  .vp-gallery .vp-head,.vp-gallery figcaption{padding:.22rem .6rem}
}
