#mw-main-popup{box-sizing:border-box;width:min(480px,calc(100vw - 24px));max-width:none;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);padding:0;border:0;border-radius:12px;background:#fff;color:#222;box-shadow:0 20px 80px #0006;overflow:hidden}
#mw-main-popup:not([open]){display:none}
#mw-main-popup[open]{display:flex;flex-direction:column}
#mw-main-popup::backdrop{background:rgba(0,0,0,.58)}
#mw-main-popup .mw-popup-image{min-height:0;display:flex;justify-content:center;overflow:auto}
#mw-main-popup img{display:block;width:auto;max-width:100%;height:auto;max-height:calc(100vh - 76px);max-height:calc(100dvh - 76px);object-fit:contain}
#mw-main-popup .mw-popup-actions{display:flex;justify-content:space-between;flex-shrink:0;min-height:52px;background:#fff;border-top:1px solid #e5e5e5}
#mw-main-popup button{appearance:none;background:transparent;border:0;min-height:48px;padding:12px 18px;color:#222;cursor:pointer;font-weight:500;font-size:14px;line-height:1.4;font-family:inherit}
#mw-main-popup button:focus-visible{outline:2px solid #d40000;outline-offset:-4px;border-radius:6px}
#mw-main-popup [data-popup-close]{font-weight:700}
#mw-main-popup [data-popup-close] span{margin-left:8px;font-size:20px;line-height:1}
#mw-main-popup .mw-popup-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:480px){#mw-main-popup button{padding:12px 14px;font-size:13px}}
