html.image-preview-open{overflow:hidden}
dialog.image-preview{position:fixed;inset:0;width:fit-content;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:60px 16px 16px;border:1px solid #42596a;border-radius:12px;background:#0b141d;color:#eef6fb;box-shadow:0 24px 100px #0009;overflow:auto}
.image-preview::backdrop{background:#03080de8}
.image-preview>img{display:block;width:auto;height:auto;max-width:100%;max-height:calc(100dvh - 110px);object-fit:contain;margin:auto}
.image-preview>img[hidden],.image-preview__error[hidden]{display:none}
.image-preview__close{position:absolute;right:12px;top:10px;min-height:38px;padding:8px 16px;border:1px solid #526c80;border-radius:6px;background:#1d3040;color:#eef6fb;font:600 14px 'Segoe UI',sans-serif;cursor:pointer}
.image-preview__close:hover{background:#2a465b}.image-preview__close:focus-visible{outline:2px solid #a6d9f7;outline-offset:3px}
.image-preview__error{max-width:420px;padding:20px;font:16px/1.6 'Segoe UI',sans-serif}
button[data-image-preview]{cursor:zoom-in}
.story-shot>button,.social-focus>button{display:block;width:100%;border:0;padding:0;background:transparent;color:inherit;text-align:inherit}
button[data-image-preview]:focus-visible{outline:2px solid #a6d9f7;outline-offset:5px}
@media(max-width:600px){dialog.image-preview{max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:56px 8px 8px;border-radius:8px}.image-preview>img{max-height:calc(100dvh - 90px)}}

.feature-page .story-shot>button{border-radius:10px;overflow:hidden;box-shadow:0 18px 50px #0005}
