dialog .mv-gallery-turn[hidden] { display:none; }
dialog .mv-gallery-turn { position:fixed; inset:0; z-index:12; pointer-events:none; }
dialog .mv-gallery-turn button.mv-gallery-arrow {
  position:absolute; top:50%; transform:translateY(-50%); box-sizing:border-box;
  display:grid; place-items:center; width:46px; height:46px; min-height:46px; margin:0; padding:0 0 4px;
  border:1px solid #ffffff85; border-radius:50%; background:#201e1cdf; color:#fff;
  font:32px/1 system-ui,sans-serif; cursor:pointer; pointer-events:auto; touch-action:manipulation;
}
dialog .mv-gallery-arrow[data-gallery-step="previous"] { left:max(9px,env(safe-area-inset-left)); }
dialog .mv-gallery-arrow[data-gallery-step="next"] { right:max(9px,env(safe-area-inset-right)); }
dialog .mv-gallery-turn button[aria-disabled="true"] { opacity:.34; cursor:default; }
dialog .mv-gallery-turn button:focus-visible,.mv-gallery-photo-close:focus-visible,.mv-gallery-original:focus-visible { outline:2px solid #fff; outline-offset:3px; }
dialog [data-dialog-image],dialog [data-collection-image],dialog #large,dialog #zoom-image,dialog .mv-gallery-photo { touch-action:pan-y pinch-zoom; }
dialog.original-size [data-dialog-image],dialog #large.zoom { touch-action:auto; }
dialog.mv-gallery-photo-dialog { box-sizing:border-box; width:max-content; max-width:100vw; max-height:100svh; margin:auto; padding:0; border:0; background:#171513; color:#fff; }
.mv-gallery-photo-dialog::backdrop { background:#111e; }
.mv-gallery-photo-dialog .mv-gallery-photo { display:block; width:auto; height:auto; max-width:100%; max-height:calc(100svh - 45px); object-fit:contain; margin:auto; }
.mv-gallery-photo-dialog .mv-gallery-photo-close { position:fixed; z-index:13; inset-block-start:12px; inset-inline-end:12px; width:46px; height:46px; padding:0; border:1px solid #ffffff85; border-radius:50%; background:#201e1cdf; color:#fff; font:24px/1 system-ui,sans-serif; cursor:pointer; }
.mv-gallery-photo-dialog .mv-gallery-original { display:block; padding:12px 16px; color:inherit; font:13px/21px system-ui,sans-serif; text-align:center; }
#zoom-dialog .mv-gallery-arrow { top:62%; }

.mv-gallery-photo-dialog .mv-gallery-original[hidden] { display:none; }
.mv-gallery-photo-dialog:has(.mv-gallery-original[hidden]) .mv-gallery-photo { max-height:100svh; }
