html body .post_body .chw-photo-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; width:100%; max-width:960px; margin:12px 0; clear:both; }
html body .post_body .chw-photo-grid.chw-photo-single { grid-template-columns:minmax(0,1fr); max-width:640px; }
html body .post_body a.chw-photo-item { display:flex!important; align-items:center; justify-content:center; min-width:0; width:100%; height:280px; margin:0!important; padding:6px; box-sizing:border-box; border:1px solid var(--chw-line,#a8b5c4); border-radius:5px; background:var(--chw-alt,#edf0f4)!important; color:var(--chw-text,#263b53)!important; overflow:hidden; cursor:zoom-in; text-decoration:none; }
html body .post_body .chw-photo-item img { display:block!important; float:none!important; position:static!important; width:auto!important; height:auto!important; max-width:100%!important; max-height:100%!important; margin:0!important; padding:0!important; border:0!important; object-fit:contain; }
html body .post_body .chw-photo-item:focus-visible { outline:3px solid var(--chw-accent,#315c87); outline-offset:2px; }
html body .post_body a.chw-photo-item::before, html body .post_body a.chw-photo-item::after { content:none!important; }
html body .post_body .chw-photo-grid > .chw-photo-failed { overflow-wrap:anywhere; align-self:center; }
@media(max-width:600px){
 html body .post_body .chw-photo-grid { gap:6px; }
 html body .post_body a.chw-photo-item { height:170px; padding:3px; }
}
@media(max-width:360px){ html body .post_body .chw-photo-grid { grid-template-columns:minmax(0,1fr); } }
html body #chw-photo-viewer { box-sizing:border-box; width:calc(100vw - 24px); max-width:1600px; height:calc(100vh - 24px); height:calc(100dvh - 24px); max-height:none; margin:auto; padding:0; border:1px solid #697585; border-radius:6px; background:#141923!important; color:#f3f5f9!important; overflow:hidden; }
html body #chw-photo-viewer:not([open]) { display:none!important; }
html body #chw-photo-viewer[open] { display:flex; flex-direction:column; }
html body #chw-photo-viewer::backdrop { background:rgba(0,0,0,.8); }
html body #chw-photo-viewer .chw-photo-tools { flex:0 0 auto; display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding:10px; border-bottom:1px solid #475466; font:14px/1.4 Arial,sans-serif; }
html body #chw-photo-viewer button, html body #chw-photo-viewer a { display:inline-flex; align-items:center; justify-content:center; min-height:38px; padding:5px 10px; border:1px solid #73839a; border-radius:4px; background:#293447!important; color:#f3f5f9!important; font:14px/1.4 Arial,sans-serif; cursor:pointer; text-shadow:none; box-shadow:none; text-decoration:none; }
html body #chw-photo-viewer button[disabled] { opacity:.45; cursor:default; }
html body #chw-photo-viewer :is(button,a):focus-visible { outline:2px solid #94d5ff; outline-offset:2px; }
html body #chw-photo-viewer .chw-photo-close { margin-left:auto; font-size:22px; }
html body #chw-photo-viewer .chw-photo-status { margin:0; padding:4px 12px; color:#d3dce8!important; font:13px/1.4 Arial,sans-serif; }
html body #chw-photo-viewer .chw-photo-stage { flex:1 1 auto; min-height:0; min-width:0; overflow:auto; overscroll-behavior:contain; padding:8px; }
html body #chw-photo-viewer .chw-photo-stage img { display:block; max-width:none!important; max-height:none!important; margin:0; padding:0; border:0; }
html body #chw-photo-viewer .chw-photo-stage.chw-photo-fit { display:flex; justify-content:center; align-items:center; }
html body #chw-photo-viewer .chw-photo-stage.chw-photo-fit img { max-width:100%!important; max-height:100%!important; width:auto!important; height:auto!important; object-fit:contain; }
