/* Article reader stays above all page controls and scrolls within its own surface. */
html body .mh-mo{z-index:1200!important;overscroll-behavior:contain;padding:24px!important}
html body .mh-mo .mh-mc{max-width:800px!important;width:100%!important;max-height:calc(100dvh - 48px)!important;overflow:auto!important;border-radius:16px!important;padding:0 40px 40px!important}
html body .mh-mo .mh-mc-close{position:sticky!important;top:8px!important;float:right;display:block;margin:8px -24px 8px 16px;width:44px;height:44px;min-height:44px;z-index:2;background:var(--spx-paper)!important;color:var(--spx-ink)!important;border-radius:8px!important;box-shadow:0 2px 10px #332c2720}
html body .mh-mo .mh-mc-t{clear:both;font:600 clamp(26px,3vw,36px)/1.4 var(--spx-serif)!important;padding-top:8px!important}
html body .mh-mo .mh-mc-b{font-size:18px!important;line-height:1.85!important;color:var(--spx-ink)!important;overflow-wrap:break-word}
html body .mh-mo .mh-mc-b p{line-height:inherit!important;margin-bottom:1.2em!important}
.spx-gallery{width:min(1100px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:16px;border:0;border-radius:16px;background:var(--spx-paper);color:var(--spx-ink);font-family:var(--spx-sans);overflow:auto}
.spx-gallery::backdrop,dialog::backdrop{background:rgba(25,20,17,.78)}
.spx-gallery-top,.spx-gallery-controls{display:flex;align-items:center;justify-content:space-between;gap:16px}
.spx-gallery figure{margin:12px 0}
.spx-gallery figure img{display:block;width:100%;height:auto;max-height:calc(100dvh - 210px);object-fit:contain}
.spx-gallery figcaption{font-size:16px;line-height:1.6;margin:12px 0;text-align:center}
.spx-gallery-controls[hidden]{display:none}
html body dialog :is(.player-close,.close,button[aria-label*="關閉"]){min-width:44px;min-height:44px;border-radius:8px}
