.hmg-photo-preview-trigger{cursor:zoom-in}
.hmg-photo-preview-trigger:focus-visible{outline:3px solid #75c8ff;outline-offset:4px}
html.hmg-photo-preview-open{overflow:hidden}
dialog.hmg-photo-preview[open]{position:fixed;inset:0;display:grid;place-items:center;margin:0;padding:clamp(14px,4vw,48px);width:100%;height:100%;max-width:none;max-height:none;box-sizing:border-box;border:0;background:transparent;overflow:hidden}
dialog.hmg-photo-preview::backdrop{background:rgba(12,34,66,.78);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
.hmg-photo-preview__frame{position:relative;min-width:0;max-width:100%}
.hmg-photo-preview__frame img{display:block;width:auto;height:auto;max-width:min(100%,1280px);max-height:85dvh;object-fit:contain;border-radius:clamp(12px,2vw,22px);box-shadow:0 18px 70px #071a3b85}
.hmg-photo-preview__frame button{position:absolute;top:10px;right:10px;display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #ffffff80;border-radius:50%;background:#183e76;color:#fff;font:400 30px/1 system-ui;cursor:pointer}
.hmg-photo-preview__frame button:hover,.hmg-photo-preview__frame button:focus-visible{background:#23578e;color:#fff;outline:2px solid #fff;outline-offset:2px}
/* Draw the cross geometrically so it is independent of the font baseline. */
.hmg-photo-preview__frame button{font-size:0}
.hmg-photo-preview__frame button::before,.hmg-photo-preview__frame button::after{content:"";position:absolute;top:50%;left:50%;width:18px;height:3px;background:currentColor;border-radius:1px;transform:translate(-50%,-50%) rotate(45deg)}
.hmg-photo-preview__frame button::after{transform:translate(-50%,-50%) rotate(-45deg)}
