.post-media{margin:22px 0 24px;max-width:100%}
.post-media__open{position:relative;display:block;width:100%;padding:0;border:1px solid #ded8c9;border-radius:8px;background:#fff;overflow:hidden;cursor:zoom-in}
.post-media__open img{display:block;width:100%;height:auto;max-width:100%;background:#fff}
.post-media__hint{position:absolute;right:10px;bottom:10px;padding:5px 9px;border-radius:5px;background:rgba(30,27,21,.88);color:#fff;font-size:12px;line-height:1.4}
.post-media figcaption{margin-top:9px;color:#706959;font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.post-media__source{display:inline-block;margin-left:8px;min-height:44px;color:#9b3829;text-decoration:underline;text-underline-offset:3px}
.post-media__open:focus-visible,.post-media-dialog button:focus-visible{outline:3px solid #a13c2c;outline-offset:3px}
.post-media-dialog{width:min(94vw,1280px);max-width:94vw;max-height:94vh;max-height:94dvh;box-sizing:border-box;padding:14px;border:1px solid #d4ccbb;border-radius:10px;background:#fffdf6;color:#302c24;box-shadow:0 12px 55px #0006}
.post-media-dialog::backdrop{background:#17130ed4}
.post-media-dialog__bar{display:flex;align-items:center;gap:8px;min-width:0}
.post-media-dialog__bar h2{flex:1;margin:0;font-size:16px;white-space:nowrap}
.post-media-dialog__bar button{flex:none;min-width:50px;min-height:44px;border:1px solid #d8d0bf;border-radius:5px;background:#fffdf6;color:#483d2e;font:inherit;font-size:13px;padding:7px 9px;cursor:pointer}
.post-media-dialog__caption{margin:9px 0 4px;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.post-media-dialog__help{margin:4px 0 10px;color:#776d5d;font-size:12px;line-height:1.6}
.post-media-dialog__canvas{max-height:calc(94vh - 180px);max-height:calc(94dvh - 180px);overflow:auto;overscroll-behavior:contain;background:#f1eee7;border:1px solid #e0dbce}
.post-media-dialog__canvas img{display:block;max-width:100%;height:auto;margin:auto}
.post-media-dialog__canvas.is-original img{max-width:none;width:auto;height:auto;margin:0}
@media(max-width:360px){.post-media-dialog{padding:10px}.post-media-dialog__bar{gap:5px}.post-media-dialog__bar button{padding:6px;min-width:45px;font-size:12px}}
