/* Anchor the enlarged tap preview to the viewport, independent of page length. */
html body dialog.pmt-preview-dialog[open]{
 position:fixed!important;inset:auto!important;top:50%!important;left:50%!important;
 transform:translate(-50%,-50%)!important;margin:0!important;
 box-sizing:border-box;width:min(560px,calc(100vw - 24px));
 max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);
 max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;
}
html body dialog.pmt-preview-dialog img.pmt-preview-large{
 width:100%;height:auto;max-height:calc(100vh - 150px);
 max-height:calc(100dvh - 150px);object-fit:contain;
}
