/* Morfohouse optional full-screen image viewer — staging */
.mh-zoomable{cursor:zoom-in}.mh-zoomable:focus-visible{outline:3px solid #1b3d56;outline-offset:3px}
body.mh-viewer-open{overflow:hidden!important}
.mh-image-viewer[hidden]{display:none!important}.mh-image-viewer{position:fixed;inset:0;z-index:2147483000;background:rgba(12,24,34,.96);color:white;display:grid;grid-template-columns:56px minmax(0,1fr) 56px;grid-template-rows:60px minmax(0,1fr) 62px;align-items:center}
.mh-viewer-tools{grid-row:1;grid-column:1/4;display:flex;align-items:center;justify-content:space-between;padding:0 18px;z-index:3}
.mh-image-viewer button{appearance:none;border:1px solid rgba(255,255,255,.32);border-radius:7px;background:rgba(255,255,255,.12);color:#fff;font:inherit;cursor:pointer;min-width:42px;min-height:42px}
.mh-image-viewer button:focus-visible{outline:3px solid #f8c871;outline-offset:2px}.mh-viewer-close{font-size:30px!important;line-height:1}
.mh-viewer-prev,.mh-viewer-next{grid-row:2;z-index:2;font-size:34px!important}.mh-viewer-prev{grid-column:1}.mh-viewer-next{grid-column:3}
.mh-viewer-stage{grid-row:2;grid-column:2;min-width:0;min-height:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:none}
.mh-viewer-stage img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;user-select:none;transform-origin:center center}
.mh-viewer-bottom{grid-row:3;grid-column:1/4;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:6px 18px;font-size:14px}.mh-viewer-caption{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
@media(max-width:680px){.mh-image-viewer{grid-template-columns:40px minmax(0,1fr) 40px;grid-template-rows:56px minmax(0,1fr) 58px}.mh-viewer-tools{padding:0 12px}.mh-viewer-prev,.mh-viewer-next{min-width:34px!important;font-size:26px!important}.mh-viewer-bottom{padding:4px 10px;font-size:12px}}

/* v4.7: isolate viewer from layout, enforce opaque full visual viewport */
html.mh-viewer-open,body.mh-viewer-open{overflow:hidden!important;}
html > .mh-image-viewer{position:fixed!important;top:0!important;left:0!important;right:0!important;bottom:0!important;width:100vw!important;height:100vh!important;height:100dvh!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;transform:none!important;contain:none!important;opacity:1!important;background:#0c1822!important;z-index:2147483646!important;}
html > .mh-image-viewer .mh-viewer-stage img{max-height:100%!important;max-width:100%!important;object-fit:contain!important;}
html > .mh-image-viewer .mh-viewer-caption{white-space:normal!important;line-height:1.3!important;}
