/* One geometry for every header and stable viewport while overlays are open. */
html { scrollbar-gutter: stable; }
html.mi117-locked { overflow: hidden !important; }
body.mi-site .mi-clean-header { height:72px!important;min-height:72px!important;max-height:72px!important; }
body.mi-site .mi-clean-header .mi-clean-nav-wrap { box-sizing:border-box!important;width:100%!important;max-width:1244px!important;margin-inline:auto!important;padding-inline:24px!important;height:72px!important;min-height:72px!important;max-height:72px!important;padding-block:0!important;gap:20px!important; }
body.mi-site .mi-clean-header .mi-clean-brand { max-width:none!important;box-sizing:border-box!important;flex:0 0 180px!important;width:180px!important;min-width:180px!important;height:56px!important;display:flex!important;align-items:center!important; }
body.mi-site .mi-clean-header .mi-clean-brand img { width:180px!important;height:auto!important;max-width:100%!important;max-height:56px!important; }
body.mi-site .mi-clean-header .mi-clean-main-nav { min-width:0!important;gap:4px!important; }
body.mi-site { --mi-r3-header-h:72px; }
body.mi-site .mi60-search-dropdown { overscroll-behavior:contain; }
@media(min-width:992px) and (max-width:1199px){
 body.mi-site .mi-clean-header .mi-clean-nav-wrap{gap:10px!important;padding-inline:16px!important}
 body.mi-site .mi-clean-header .mi-clean-brand{flex-basis:145px!important;width:145px!important;min-width:145px!important}
 body.mi-site .mi-clean-header .mi-clean-brand img{width:145px!important}
 body.mi-site .mi-clean-main-nav>a,body.mi-site .mi-clean-main-nav>.mi-clean-dropdown>button{font-size:11px!important;padding-inline:7px!important;letter-spacing:0!important}
}
@media(max-width:991px){
 body.mi-site .mi-clean-header,body.mi-site .mi-clean-header .mi-clean-nav-wrap{height:64px!important;min-height:64px!important;max-height:64px!important}
 body.mi-site .mi-clean-header .mi-clean-nav-wrap{gap:8px!important;padding-inline:12px!important}
 body.mi-site .mi-clean-header .mi-clean-brand{flex:1 1 auto!important;width:auto!important;min-width:0!important;height:52px!important}
 body.mi-site .mi-clean-header .mi-clean-brand img{width:154px!important;max-width:100%!important;max-height:48px!important}
 body.mi-site .mi88-mobile-panel{top:64px!important;max-height:calc(100vh - 76px)!important;max-height:calc(100dvh - 76px)!important;overscroll-behavior:contain!important}
 body.mi-site { --mi-r3-header-h:64px; }
}
@media(max-width:360px){body.mi-site .mi-clean-header .mi-clean-brand img{width:126px!important}body.mi-site .mi-clean-header .mi-clean-nav-wrap{gap:5px!important}}
/* Native dialog makes background content inert and keeps focus inside the viewer. */
body.mi-site dialog.mi117-viewer{box-sizing:border-box;position:fixed;inset:0;margin:auto;padding:0;border:1px solid #36566a;border-radius:20px;width:min(1180px,calc(100% - 40px));height:min(880px,calc(100vh - 40px));height:min(880px,calc(100dvh - 40px));max-width:calc(100% - 40px);max-height:calc(100dvh - 40px);background:#092534;color:#eef7fb;box-shadow:0 28px 100px #0007;overflow:hidden;font-family:inherit;}
.mi117-viewer::backdrop{background:rgba(2,15,24,.84);backdrop-filter:blur(6px)}
.mi117-viewer:not([open]){display:none!important}
.mi117-viewer [hidden]{display:none!important}
.mi117-viewer-shell{display:grid;grid-template-rows:auto minmax(0,1fr) auto;height:100%;min-height:0}
.mi117-viewer-head{display:flex;align-items:center;gap:16px;min-width:0;padding:16px 20px;border-bottom:1px solid #31505f;background:#0d3041}
.mi117-viewer-head h2{flex:1;min-width:0;margin:0!important;font-family:inherit;font-weight:650;color:#fff!important;font-size:17px!important;line-height:1.45!important;overflow-wrap:anywhere;max-height:3em;overflow:auto}
.mi117-viewer-tools{display:flex;gap:8px;align-items:center;flex-shrink:0}
.mi117-viewer-counter{font-size:13px;color:#d1e5ed;font-variant-numeric:tabular-nums;white-space:nowrap;margin-right:4px}
.mi117-viewer-button{display:grid;place-items:center;min-width:44px;width:44px;height:44px;min-height:44px;padding:10px;border:1px solid #52717f;border-radius:12px;background:#173c4f;color:#fff;cursor:pointer;flex:0 0 auto;box-shadow:none}
.mi117-viewer-button svg{width:22px;height:22px;display:block;pointer-events:none}
.mi117-viewer-button:hover{background:#24566a;border-color:#b1d8e6}
.mi117-viewer-button[aria-pressed=true]{background:#087d97;border-color:#65d4e9}
.mi117-viewer-button:disabled{opacity:.45;cursor:wait}
.mi117-viewer :focus-visible{outline:3px solid #64d9ed!important;outline-offset:3px!important}
.mi117-viewer-stage{position:relative;min-height:0;min-width:0;overflow:hidden;background:#061c28}
.mi117-viewer-media{width:100%;height:100%;overflow:auto;overscroll-behavior:contain;touch-action:pan-y pinch-zoom;display:grid;place-items:center;padding:18px 68px;box-sizing:border-box}
.mi117-viewer-image{display:block;max-width:100%!important;max-height:100%!important;width:auto;height:auto;object-fit:contain;border-radius:6px;box-shadow:none!important}
.mi117-viewer.is-zoomed .mi117-viewer-media{display:block;padding:16px;touch-action:pan-x pan-y pinch-zoom}
.mi117-viewer.is-zoomed .mi117-viewer-image{width:200%;height:auto;max-width:none!important;max-height:none!important;margin:0}
.mi117-viewer-stage .mi117-prev,.mi117-viewer-stage .mi117-next{position:absolute;top:50%;transform:translateY(-50%);background:#12394be8;z-index:1}
.mi117-viewer-stage .mi117-prev{left:12px}.mi117-viewer-stage .mi117-next{right:12px}
.mi117-viewer-loading{position:absolute;top:45%;left:12px;right:12px;text-align:center;pointer-events:none;margin:0;color:#e3f0f5;font-size:15px}
.mi117-viewer-original{position:absolute;top:58%;left:50%;transform:translateX(-50%);padding:12px;color:#a4e7f4;text-decoration:underline}
.mi117-viewer-bottom{min-width:0;padding:12px 20px 16px;border-top:1px solid #31505f}
.mi117-viewer-caption{color:#c5dce7;margin:0 0 10px;font-size:13px;line-height:1.5;max-height:4.5em;overflow:auto;overflow-wrap:anywhere}
.mi117-viewer-thumbs{display:flex;position:relative;gap:8px;max-width:100%;overflow-x:auto;overflow-y:hidden;padding:4px;scrollbar-width:thin;scrollbar-color:#6ca1b5 #12374b;overscroll-behavior-x:contain}
.mi117-viewer-thumb{flex:0 0 70px;width:70px;height:54px;border:2px solid #587480;border-radius:8px;background:#163b4b;padding:2px;cursor:pointer;opacity:.75}
.mi117-viewer-thumb img{width:100%;height:100%;object-fit:cover;border-radius:4px}
.mi117-viewer-thumb[aria-pressed=true]{border-color:#8ce7ef;opacity:1;background:#146c82}
.mi117-viewer-notice{margin:8px 0 0;color:#c9f4ff;font-size:13px;line-height:1.5}
.mi117-viewer-notice:empty{display:none}
body.mi-site dialog.mi117-viewer:fullscreen{width:100%;height:100%;max-width:100%;max-height:100%;border-radius:0}
body.mi-site dialog.mi-consent-overlay{inset:0;margin:0;border:0;width:100%;height:100%;max-width:100%;max-height:100%;box-sizing:border-box;color:inherit;background:transparent!important;padding:20px!important;}
body.mi-site dialog.mi-consent-overlay:not([open]){display:none!important}
dialog.mi-consent-overlay::backdrop{background:rgba(3,24,38,.7);backdrop-filter:blur(5px)}
body.mi-site .mi-consent-modal{max-height:calc(100vh - 40px)!important;max-height:calc(100dvh - 40px)!important;overflow-y:auto!important;overscroll-behavior:contain;min-width:0}
body.mi-site .mi-consent-modal__head{gap:16px!important;align-items:flex-start!important}
body.mi-site .mi-consent-modal__head>div{min-width:0}
body.mi-site .mi-consent-close{flex:0 0 44px!important;min-width:44px!important;width:44px!important;height:44px!important;min-height:44px!important}
.mi117-gallery-empty{grid-column:1/-1;padding:40px 24px;border:1px dashed #b7cbd6;border-radius:16px;background:#f0f7fa;color:#21475b;text-align:center;line-height:1.7}
@media(max-width:600px){
 body.mi-site dialog.mi117-viewer{width:calc(100% - 16px);height:calc(100vh - 16px);height:calc(100dvh - 16px);max-width:calc(100% - 16px);max-height:calc(100dvh - 16px);border-radius:14px}
 .mi117-viewer-head{display:grid;grid-template-columns:minmax(0,1fr);padding:12px;gap:10px}
 .mi117-viewer-head h2{font-size:15px!important;max-height:3em}
 .mi117-viewer-tools{gap:7px;justify-content:flex-end}.mi117-viewer-counter{margin-right:auto}
 .mi117-viewer-media{padding:8px 4px 60px}.mi117-viewer-stage .mi117-prev,.mi117-viewer-stage .mi117-next{top:auto;bottom:8px;transform:none}
 .mi117-viewer-bottom{padding:10px 12px}.mi117-viewer-thumb{flex-basis:60px;width:60px;height:48px}
 .mi117-viewer-caption{font-size:12px;max-height:3em}
 body.mi-site dialog.mi-consent-overlay{padding:12px!important}
 body.mi-site .mi-consent-modal{max-height:calc(100dvh - 24px)!important}
}
@media(max-height:500px){
 .mi117-viewer-head{display:flex;padding:8px 12px;gap:10px}.mi117-viewer-head h2{font-size:14px!important;max-height:3em}
 .mi117-viewer-bottom{padding:6px 12px}.mi117-viewer-caption{display:none}.mi117-viewer-thumbs{padding:2px}.mi117-viewer-thumb{height:40px;flex-basis:54px}
 .mi117-viewer-media{padding:6px 64px}.mi117-viewer-stage .mi117-prev,.mi117-viewer-stage .mi117-next{top:50%;bottom:auto;transform:translateY(-50%)}
}

.mi117-viewer-shell:fullscreen{width:100%;height:100%;background:#092534;color:#eef7fb}

body.mi-site dialog.mi117-viewer.is-expanded{width:100%!important;height:100vh!important;height:100dvh!important;max-width:100%!important;max-height:100dvh!important;border-radius:0!important}
/* Size the image box to the actual stage; intrinsic grid rows must not crop tall images. */
.mi117-viewer:not(.is-zoomed) .mi117-viewer-media{display:block;overflow:hidden}
.mi117-viewer:not(.is-zoomed) .mi117-viewer-image{width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;object-fit:scale-down!important}
@media(max-width:600px) and (max-height:500px){.mi117-viewer-head{display:grid;gap:6px}.mi117-viewer-head h2{max-height:3em}.mi117-viewer-tools{justify-content:flex-end}.mi117-viewer-counter{margin-right:auto}}
