.megasonex-gallery{padding:16px;border:0;border-radius:8px;max-width:min(94vw,1100px);max-height:94vh;background:#fff;color:#172c3c;box-sizing:border-box}
.megasonex-gallery::backdrop{background:rgba(0,0,0,.8)}
.megasonex-gallery-bar{display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:12px}
.megasonex-gallery button{min-width:44px;min-height:44px;border:1px solid #71808c;border-radius:5px;background:white;color:#172c3c;font:16px Arial;cursor:pointer;padding:8px 12px}
.megasonex-gallery button:focus-visible{outline:3px solid #007480;outline-offset:2px}
.megasonex-gallery-image{display:block;max-width:100%;max-height:72vh;width:auto;height:auto;margin:auto;object-fit:contain}
.megasonex-gallery-caption{font:15px/1.5 Arial;margin:12px 0 0;max-width:900px}
.megasonex-gallery-open{overflow:hidden}
