.post-image-gallery{min-width:0;max-width:100%}
.post-gallery-tools{display:flex;justify-content:flex-start;margin:8px 0 26px}
.post-gallery-open{display:inline-flex;align-items:center;min-height:40px;padding:0;border:0;background:transparent;color:var(--accent,#d71920);font:inherit;font-size:14px;font-weight:700;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.post-gallery-open[hidden]{display:none}
.post-gallery-photo{cursor:zoom-in}
.post-gallery-open:focus-visible,.post-gallery-photo:focus-visible{outline:3px solid #d71920;outline-offset:4px}
.post-gallery-dialog{box-sizing:border-box;border:0;border-radius:16px;padding:20px;width:min(1180px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;background:#fff;color:#101115;box-shadow:0 24px 90px #0006}
.post-gallery-dialog::backdrop{background:rgba(10,15,19,.82)}
.post-gallery-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px}
.post-gallery-header h2{margin:0;font-size:20px;line-height:1.3;letter-spacing:-.02em}
.post-gallery-dialog .button{width:auto;min-height:44px;padding:10px 18px;flex:0 0 auto;cursor:pointer;color:#171d20;background:#f3f5f5;border:1px solid #cdd3d6;box-shadow:none}
.post-gallery-dialog .button:hover{color:#111;background:#e5e9ea;border-color:#929fa5}
.post-gallery-dialog .button:focus-visible{outline:3px solid #d71920;outline-offset:3px}
.post-gallery-dialog .post-gallery-stage{display:grid;place-items:center;min-height:120px;margin:0}
.post-gallery-stage img{display:block;width:auto;height:auto;max-width:100%;max-height:62dvh;object-fit:contain}
.post-gallery-dialog .post-gallery-caption{font-size:14px;line-height:1.5;color:#586268;margin:14px 0}
.post-gallery-navigation{display:flex;align-items:center;justify-content:space-between;gap:16px}
.post-gallery-count{font-size:14px;font-weight:600;white-space:nowrap}
html.post-gallery-is-open{overflow:hidden}
@media(max-width:620px){.post-gallery-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:14px}.post-gallery-header{gap:12px}.post-gallery-header h2{font-size:17px}.post-gallery-dialog .button{padding:10px 14px}.post-gallery-stage img{max-height:55dvh}.post-gallery-caption{font-size:13px}.post-gallery-navigation{gap:10px}}
