/* Legacy viewport units precede modern styles; supported dvh rules win later. */
.sheet{max-height:calc(100vh - 32px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}
.menu-dialog{height:100vh;max-height:100vh}
.detail-photo img,.detail-photo.wide-photo img{max-height:min(52vh,440px,calc(100vh - 210px))}
dialog:not([open]){display:none}
.popup-compat-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(24,16,11,.65);z-index:2000}
.popup-compat-backdrop.is-menu{background:rgba(0,0,0,.94)}
dialog[data-popup-fallback][open]{display:flex;flex-direction:column;position:fixed;top:50%;right:0;bottom:auto;left:0;margin:0 auto;transform:translateY(-50%);z-index:2001}
dialog.menu-dialog[data-popup-fallback][open]{top:0;bottom:0;margin:0;transform:none}
