/* Reader and detail images retain their entire uploaded proportions. */
#abao-mgo .mgo-portal-prose img,#abao-mgo .mgo-detail-content img,#abao-mgo .mgo-portal-gallery img,#abao-mgo .mgo-portal-article .mgo-portal-cover{max-width:100%;height:auto!important;max-height:none!important;aspect-ratio:auto!important;object-fit:contain!important;object-position:center}
#abao-mgo .mgo-portal-gallery{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;align-items:start}
#abao-mgo .mgo-portal-gallery img,#abao-mgo .mgo-portal-image{display:block;width:auto;max-width:100%;height:auto;margin:0 auto}
#abao-mgo .mgo-media-clickable{cursor:zoom-in}
#abao-mgo .mgo-media-clickable:focus-visible{outline:3px solid #638ae8;outline-offset:4px}
.mgo-media-viewer{position:fixed;inset:0;z-index:2147483646;background:rgba(8,13,24,.96);color:#fff;display:grid;grid-template-rows:auto minmax(0,1fr);font-family:system-ui,sans-serif;overscroll-behavior:contain}
.mgo-media-toolbar{display:flex;justify-content:flex-end;align-items:center;gap:10px;padding:max(12px,env(safe-area-inset-top)) 16px 12px;background:rgba(8,13,24,.85)}
.mgo-media-toolbar span{margin-right:auto;font-size:14px}
.mgo-media-viewer button{appearance:none;background:#27344e;color:#fff;border:1px solid #6881a5;border-radius:8px;padding:10px 14px;font:inherit;cursor:pointer;min-height:44px}
.mgo-media-viewer button:focus-visible{outline:3px solid #a5c5ff;outline-offset:3px}
.mgo-media-stage{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;overflow:hidden;touch-action:none;user-select:none;padding:24px 58px 40px}
.mgo-media-stage img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;transform-origin:center;transition:transform .12s ease-out;user-select:none;cursor:zoom-in;box-shadow:0 10px 60px #0008}
.mgo-media-stage.is-zoomed img{cursor:grab;transition:none}.mgo-media-stage.is-zoomed img:active{cursor:grabbing}
.mgo-media-previous,.mgo-media-next{position:absolute;top:50%;font-size:28px!important}.mgo-media-previous{left:12px}.mgo-media-next{right:12px}
.mgo-media-viewer [hidden]{display:none!important}.mgo-media-error{padding:24px;text-align:center}
@media(max-width:600px){.mgo-media-toolbar{gap:6px;padding-left:10px;padding-right:10px;flex-wrap:wrap}.mgo-media-toolbar span{font-size:12px}.mgo-media-viewer button{padding:8px 10px}.mgo-media-stage{padding:16px 44px 24px}.mgo-media-previous{left:4px}.mgo-media-next{right:4px}}
@media(prefers-reduced-motion:reduce){.mgo-media-stage img{transition:none}}

