/* Brief pass (media-viewer). Loaded last. Gallery media actions (Photos / Floor plan / Video /
   3D tour, shown only for assets the listing has), the floor-plan viewer and the click-to-load
   video / 3D-tour viewer. Dialog geometry mirrors the photo viewer (gallery-refinement.css). */

/* ---- Media actions over the lead photograph (inside its grid cell), a row under it on phones. */
html[data-aw-theme] body.pm-public main .aw-property-gallery-collage.has-media{position:relative!important}
/* The bar shares the lead photo's grid cell, so both are placed explicitly (auto-placement would skip an occupied cell). */
html[data-aw-theme] body.pm-public main .aw-property-gallery-collage.has-media>.aw-property-cover{grid-column:1!important;grid-row:1!important}
html[data-aw-theme] body.pm-public main .aw-property-gallery-collage.has-media>.aw-property-gallery-side{grid-column:2!important;grid-row:1!important}
html[data-aw-theme] body.pm-public main .aw-property-gallery-collage .aw-media-bar,html[data-aw-theme] body.pm-public main .aw-media-bar-row .aw-media-bar{--mb-bg:var(--ws-surface,#fff);--mb-ink:var(--ws-ink,#151b26);--mb-line:var(--ws-line,#e2e6eb);--mb-tint:var(--ws-tint,#edf3fe);--mb-blue:var(--ws-blue,#0b5cf2);display:flex;align-items:center;gap:6px;min-width:0;margin:0;padding:3px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-x:contain}
html[data-aw-theme] body.pm-public main .aw-media-bar::-webkit-scrollbar{display:none}
html[data-aw-theme] body.pm-public main .aw-property-gallery-collage .aw-media-bar{position:relative;z-index:2;grid-column:1!important;grid-row:1!important;align-self:end;justify-self:start;max-width:calc(100% - 2 * max(7px,calc(7 * var(--r,1px))));margin:0 0 max(7px,calc(7 * var(--r,1px))) max(7px,calc(7 * var(--r,1px)))}
html[data-aw-theme] body.pm-public main .aw-media-bar>.aw-media-action{display:inline-flex!important;flex:none;align-items:center;gap:7px;width:auto!important;height:34px!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0 12px 0 10px!important;border:1px solid var(--mb-line)!important;border-radius:7px!important;background:var(--mb-bg)!important;color:var(--mb-ink)!important;box-shadow:0 1px 3px rgba(9,13,20,.16),0 4px 14px rgba(9,13,20,.12)!important;font:600 14px/1 var(--ws-font,'Source Sans 3',system-ui,sans-serif)!important;letter-spacing:0!important;white-space:nowrap;cursor:pointer!important;overflow:visible!important;text-align:center!important;transition:background-color .15s,border-color .15s,color .15s}
html[data-aw-theme] body.pm-public main .aw-media-bar>.aw-media-action:hover{border-color:var(--mb-blue)!important;color:var(--mb-blue)!important}
html[data-aw-theme] body.pm-public main .aw-media-bar>.aw-media-action:focus-visible{outline:3px solid var(--mb-blue)!important;outline-offset:2px!important}
html[data-aw-theme] body.pm-public main .aw-media-bar>.aw-media-action svg{flex:none;width:18px;height:18px;color:var(--mb-blue)}
html[data-aw-theme] body.pm-public main .aw-media-bar .aw-media-count{display:inline-block;min-width:20px;padding:0 6px;border-radius:999px;background:var(--mb-tint);color:var(--mb-blue);font-size:12px;font-weight:700;line-height:19px;text-align:center;font-variant-numeric:tabular-nums}
html[data-aw-theme=dark] body.pm-public main .aw-media-bar>.aw-media-action{box-shadow:0 2px 10px rgba(0,0,0,.45)!important}
html[data-aw-theme=dark] body.pm-public main .aw-media-bar>.aw-media-action svg,html[data-aw-theme=dark] body.pm-public main .aw-media-bar .aw-media-count{color:var(--ws-link,#98baff)}
html[data-aw-theme] body.pm-public main .aw-media-bar-row{margin:calc(-6 * var(--r,1px)) 0 calc(16 * var(--r,1px))}
/* Tablets and narrow windows: the lead photo is too narrow for four labelled actions, so they sit in a row under the
   gallery (absolutely placed, with matching space reserved) and the photographs keep their proportions. */
@media(min-width:601px) and (max-width:1100px){
 html[data-aw-theme] body.pm-public main .aw-reference-property .aw-property-gallery-collage.has-media,html[data-aw-theme] body.pm-public main .aw-reference-property.is-land-layout .aw-property-gallery-collage.has-media{margin-bottom:calc(18 * var(--r,1px) + 50px)!important}
 html[data-aw-theme] body.pm-public main .aw-property-gallery-collage .aw-media-bar{position:absolute!important;top:calc(100% + 8px);left:-3px;max-width:calc(100% + 6px);margin:0}
 html[data-aw-theme] body.pm-public main .aw-media-bar>.aw-media-action{height:38px!important;box-shadow:none!important}
}
/* Phones: one row of equal tiles under the photo (icon over label), so every action stays visible without scrolling. */
@media(max-width:600px){
 html[data-aw-theme] body.pm-public main :is(.aw-property-gallery-collage,.aw-media-bar-row) .aw-media-bar{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);justify-self:stretch;width:auto;max-width:none;margin:8px 0 0;padding:0;overflow:visible}
 html[data-aw-theme] body.pm-public main .aw-media-bar>.aw-media-action{position:relative;flex-direction:column;justify-content:center;gap:4px;height:56px!important;padding:0 4px!important;box-shadow:none!important;font-size:13px!important}
 html[data-aw-theme] body.pm-public main .aw-media-bar>.aw-media-action>span:not(.aw-media-count){max-width:100%;overflow:hidden;text-overflow:ellipsis}
 html[data-aw-theme] body.pm-public main .aw-media-bar .aw-media-count{position:absolute;top:5px;right:5px;min-width:18px;padding:0 5px;font-size:11px;line-height:17px}
}
@media(prefers-reduced-motion:reduce){html[data-aw-theme] body.pm-public main .aw-media-bar>.aw-media-action{transition:none}}

/* ---- Dialog shell shared by the floor-plan and video / 3D-tour viewers. */
html:has(dialog.aw-media-viewer[open]){overflow:hidden!important;scrollbar-gutter:stable}
html[data-aw-theme] body dialog.aw-media-viewer{--mv-bg:var(--ws-surface,#fff);--mv-ink:var(--ws-ink,#151b26);--mv-text:var(--ws-text,#3d4553);--mv-muted:var(--ws-muted,#636c7a);--mv-line:var(--ws-line,#e2e6eb);--mv-soft:var(--ws-soft,#f3f5f8);--mv-tint:var(--ws-tint,#edf3fe);--mv-blue:var(--ws-blue,#0b5cf2);--mv-link:var(--ws-link,#1458e0);--mv-stage:#f6f4ef;--mv-pad:24px;
 position:fixed!important;inset:0!important;box-sizing:border-box!important;width:min(calc(100vw - 32px),1480px)!important;height:calc(100dvh - 32px)!important;max-width:none!important;max-height:none!important;min-width:0!important;min-height:0!important;margin:auto!important;padding:0!important;border:1px solid var(--mv-line)!important;border-radius:8px!important;background:var(--mv-bg)!important;color:var(--mv-ink)!important;font-family:var(--ws-font,'Source Sans 3',system-ui,sans-serif)!important;overflow:hidden!important;box-shadow:0 24px 80px rgba(8,12,20,.38)!important}
html[data-aw-theme] body dialog.aw-media-viewer.is-embed{width:min(calc(100vw - 32px),1320px)!important;height:min(calc(100dvh - 32px),900px)!important}
html[data-aw-theme=dark] body dialog.aw-media-viewer{--mv-stage:#0b1017;box-shadow:0 24px 80px rgba(0,0,0,.6)!important}
html[data-aw-theme] body dialog.aw-media-viewer:not([open]){display:none!important}
html[data-aw-theme] body dialog.aw-media-viewer[open]{display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;grid-template-columns:minmax(0,1fr)!important}
html[data-aw-theme] body dialog.aw-media-viewer::backdrop{background:rgba(9,13,20,.8)}
html[data-aw-theme] body dialog.aw-media-viewer *{box-sizing:border-box}
html[data-aw-theme] body dialog.aw-media-viewer :is(p,strong,span,a){letter-spacing:0}
html[data-aw-theme] body dialog.aw-media-viewer :is(button,a.aw-mv-button){font-family:inherit!important;cursor:pointer;box-shadow:none;transition:color .15s,background-color .15s,border-color .15s,opacity .15s}
html[data-aw-theme] body dialog.aw-media-viewer[open] :is(button,a):focus-visible{outline:3px solid var(--mv-blue)!important;outline-offset:2px!important}
html[data-aw-theme] body dialog.aw-media-viewer[open] iframe:focus-visible{outline:3px solid var(--mv-blue)!important;outline-offset:-3px!important}
html[data-aw-theme] body dialog.aw-media-viewer [aria-disabled=true]{opacity:.42!important;cursor:default!important}
html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-sr{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
html[data-aw-theme] body dialog.aw-media-viewer svg{flex:none}

/* Top bar: identifier · plan tabs (or Video / 3D tour) · count · close. */
html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-bar{display:flex!important;align-items:center;gap:20px;height:64px;min-width:0;margin:0!important;padding:0 14px 0 var(--mv-pad)!important;border:0!important;border-bottom:1px solid var(--mv-line)!important;background:var(--mv-bg)!important}
html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-id{display:flex;flex-direction:column;justify-content:center;gap:1px;flex:0 1 auto;min-width:0;max-width:min(360px,32%)}
html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-bar:not(.has-tabs):not(:has(.aw-mv-tabs)) .aw-mv-id{flex:1 1 auto;max-width:none}
html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-id strong{display:block;overflow:hidden;margin:0!important;font-size:16px!important;font-weight:650!important;line-height:1.25!important;color:var(--mv-ink)!important;white-space:nowrap;text-overflow:ellipsis}
html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-id>span{display:block;overflow:hidden;font-size:14px;font-weight:600;line-height:1.3;color:var(--mv-text);white-space:nowrap;text-overflow:ellipsis}
html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-tabs{display:flex;align-items:stretch;align-self:stretch;gap:2px;flex:1 1 auto;min-width:0;margin:0;padding:0;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none}
html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-tabs::-webkit-scrollbar{display:none}
html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-tabs>[role=tab]{display:inline-flex!important;flex:none;align-items:center;gap:8px;height:auto!important;min-height:44px!important;margin:0!important;padding:0 12px!important;border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;background:transparent!important;color:var(--mv-muted)!important;font-size:15px!important;font-weight:600!important;line-height:1!important;white-space:nowrap}
html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-tabs>[role=tab]:hover{color:var(--mv-ink)!important;background:var(--mv-soft)!important}
html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-tabs>[role=tab][aria-selected=true]{color:var(--mv-ink)!important;border-bottom-color:var(--mv-blue)!important}
html[data-aw-theme] body dialog.aw-media-viewer[open] .aw-mv-tabs>[role=tab]:focus-visible{outline-offset:-3px!important}
html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-kind,html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-chip{flex:none;display:inline-block;padding:0 7px;border:1px solid var(--mv-line);border-radius:999px;background:var(--mv-soft);color:var(--mv-text);font-size:11px;font-weight:700;line-height:18px;letter-spacing:.02em}
html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-count{flex:none;margin-left:auto;color:var(--mv-text);font-size:14px;font-weight:600;line-height:1;white-space:nowrap;font-variant-numeric:tabular-nums}
html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-close{display:inline-grid!important;flex:none;place-items:center;width:40px!important;height:40px!important;min-width:0!important;min-height:0!important;margin:0 0 0 auto!important;padding:0!important;border:1px solid var(--mv-line)!important;border-radius:6px!important;background:var(--mv-bg)!important;color:var(--mv-ink)!important}
html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-count+.aw-mv-close{margin-left:0!important}
html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-close:hover{background:var(--mv-soft)!important}
html[data-aw-theme] body dialog.aw-media-viewer :is(.aw-mv-button,.aw-fp-tools button){display:inline-flex!important;align-items:center;justify-content:center;gap:6px;height:40px!important;min-width:40px!important;min-height:0!important;margin:0!important;padding:0 12px!important;border:1px solid var(--mv-line)!important;border-radius:6px!important;background:var(--mv-bg)!important;color:var(--mv-ink)!important;font-size:14px!important;font-weight:600!important;line-height:1!important;text-decoration:none!important;white-space:nowrap}
html[data-aw-theme] body dialog.aw-media-viewer :is(.aw-mv-button,.aw-fp-tools button):not([aria-disabled=true]):hover{background:var(--mv-soft)!important}
html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-button.is-primary{border-color:var(--mv-blue)!important;background:var(--mv-blue)!important;color:#fff!important}
html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-button.is-primary:hover{background:var(--ws-blue-hover,#0a4fd1)!important}

/* ---- Floor-plan viewer: stage, then a fixed control row and a one-line hint. */
html[data-aw-theme] body dialog.aw-media-viewer .aw-fp-panel{display:grid!important;grid-template-rows:minmax(0,1fr) 60px auto;grid-template-columns:minmax(0,1fr);min-width:0;min-height:0;margin:0;padding:0}
html[data-aw-theme] body dialog.aw-media-viewer .aw-fp-stage{position:relative;min-width:0;min-height:0;margin:0;padding:0;overflow:hidden;background:var(--mv-stage);user-select:none;-webkit-user-select:none}
html[data-aw-theme] body dialog.aw-media-viewer .aw-fp-stage.is-image{touch-action:none;cursor:zoom-in}
html[data-aw-theme] body dialog.aw-media-viewer .aw-fp-stage.is-image.is-zoomed{cursor:grab}
html[data-aw-theme] body dialog.aw-media-viewer .aw-fp-stage.is-image.is-zoomed.is-dragging{cursor:grabbing}
html[data-aw-theme] body dialog.aw-media-viewer .aw-fp-stage>img{position:absolute;inset:12px;display:block!important;width:calc(100% - 24px)!important;height:calc(100% - 24px)!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;object-fit:contain!important;transform-origin:50% 50%;transition:transform .14s ease-out;filter:none!important;pointer-events:none}
html[data-aw-theme] body dialog.aw-media-viewer .aw-fp-stage.is-dragging>img{transition:none}
html[data-aw-theme] body dialog.aw-media-viewer .aw-fp-pdf{position:absolute;inset:0;display:block;width:100%;height:100%;margin:0;padding:0;border:0;background:#fff}
html[data-aw-theme] body dialog.aw-media-viewer .aw-fp-fallback{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:24px;text-align:center;color:var(--mv-text)}
html[data-aw-theme] body dialog.aw-media-viewer .aw-fp-fallback svg{color:var(--mv-muted)}
html[data-aw-theme] body dialog.aw-media-viewer .aw-fp-fallback strong{margin:0!important;color:var(--mv-ink)!important;font-size:18px!important;font-weight:650!important;line-height:1.3!important}
html[data-aw-theme] body dialog.aw-media-viewer .aw-fp-fallback p{max-width:44ch;margin:0!important;font-size:15px;line-height:1.45}
html[data-aw-theme] body dialog.aw-media-viewer .aw-fp-fallback .aw-mv-button{margin-top:6px!important}
html[data-aw-theme] body dialog.aw-media-viewer .aw-fp-controls{display:flex;align-items:center;gap:16px;min-width:0;margin:0;padding:0 14px 0 var(--mv-pad);border-top:1px solid var(--mv-line);background:var(--mv-bg)}
html[data-aw-theme] body dialog.aw-media-viewer .aw-fp-caption{display:flex;flex:1 1 auto;align-items:center;gap:10px;min-width:0;margin:0!important;color:var(--mv-text);font-size:15px;line-height:1.3}
html[data-aw-theme] body dialog.aw-media-viewer .aw-fp-title{min-width:0;overflow:hidden;color:var(--mv-ink);font-weight:600;text-overflow:ellipsis;white-space:nowrap}
html[data-aw-theme] body dialog.aw-media-viewer .aw-fp-tools{display:flex;flex:none;align-items:center;gap:14px}
html[data-aw-theme] body dialog.aw-media-viewer :is(.aw-fp-zoom,.aw-fp-pager,.aw-fp-files){display:flex;align-items:center;gap:6px}
html[data-aw-theme] body dialog.aw-media-viewer .aw-fp-tools button{padding:0!important;width:40px}
html[data-aw-theme] body dialog.aw-media-viewer .aw-fp-tools .aw-fp-fit{width:auto;padding:0 12px!important}
html[data-aw-theme] body dialog.aw-media-viewer .aw-fp-level{min-width:48px;color:var(--mv-text);font-size:14px;font-weight:600;text-align:center;font-variant-numeric:tabular-nums}
html[data-aw-theme] body dialog.aw-media-viewer .aw-fp-pager{padding-left:14px;border-left:1px solid var(--mv-line)}
html[data-aw-theme] body dialog.aw-media-viewer .aw-fp-files{padding-left:14px;border-left:1px solid var(--mv-line)}
html[data-aw-theme] body dialog.aw-media-viewer .aw-fp-hint{margin:0!important;padding:7px var(--mv-pad) 9px;border-top:1px solid var(--mv-line);background:var(--mv-bg);color:var(--mv-muted);font-size:13px;line-height:1.3}

/* ---- Video / 3D tour: a dark stage (16:9 for video, full stage for 3D) and a credit row. */
html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-embed{display:grid!important;grid-template-rows:minmax(0,1fr) auto;min-width:0;min-height:0}
html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-embed-stage{position:relative;display:grid;place-items:center;min-width:0;min-height:0;padding:16px;background:#0b1017;container-type:size}
html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-frame{display:block;width:min(100cqw,calc(100cqh * 16 / 9));height:auto;aspect-ratio:16/9;margin:0;padding:0;border:0;border-radius:4px;background:#000}
html[data-aw-theme] body dialog.aw-media-viewer.is-tour .aw-mv-frame{width:100cqw;height:100cqh;aspect-ratio:auto}
html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-poster{display:flex;flex-direction:column;align-items:center;gap:12px;width:min(100%,520px);padding:32px 28px;border:1px solid #263142;border-radius:10px;background:#131b27;color:#c9d1dc;text-align:center}
html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-poster-icon{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:#162640;color:#98baff}
html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-poster-title{margin:0!important;color:#edf1f5!important;font-size:20px!important;font-weight:650!important;line-height:1.25!important}
html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-poster p{max-width:42ch;margin:0!important;color:#c9d1dc;font-size:15px;line-height:1.5}
html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-load{display:inline-flex!important;align-items:center;gap:8px;height:46px!important;min-height:0!important;margin:6px 0 0!important;padding:0 20px 0 16px!important;border:0!important;border-radius:6px!important;background:#3478f6!important;color:#fff!important;font-size:16px!important;font-weight:650!important;line-height:1!important}
html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-load:hover{background:#5590f8!important}
html[data-aw-theme] body dialog.aw-media-viewer[open] .aw-mv-load:focus-visible{outline-color:#98baff!important}
html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-embed-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:52px;padding:8px 14px 8px var(--mv-pad);border-top:1px solid var(--mv-line);background:var(--mv-bg);color:var(--mv-muted);font-size:14px;line-height:1.35}
html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-embed-foot a{display:inline-flex;flex:none;align-items:center;gap:6px;color:var(--mv-link)!important;font-weight:600;text-decoration:none}
html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-embed-foot a:hover{text-decoration:underline}

/* Tablets: tabs get their own row under the identifier. */
@media(max-width:1100px){
 html[data-aw-theme] body dialog.aw-media-viewer{--mv-pad:16px}
 html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-bar.has-tabs,html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-bar:has(.aw-mv-tabs){display:grid!important;grid-template-columns:minmax(0,1fr) auto auto;grid-template-rows:60px 46px;gap:0 12px;height:auto;padding:0!important}
 html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-bar:has(.aw-mv-tabs) .aw-mv-id{grid-column:1;grid-row:1;max-width:none;padding-left:var(--mv-pad)}
 html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-bar:has(.aw-mv-tabs) .aw-mv-count{grid-column:2;grid-row:1}
 html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-bar:has(.aw-mv-tabs) .aw-mv-close{grid-column:3;grid-row:1;margin-right:10px!important}
 html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-bar:has(.aw-mv-tabs) .aw-mv-tabs{grid-column:1/-1;grid-row:2;padding:0 calc(var(--mv-pad) - 12px);border-top:1px solid var(--mv-line)}
 html[data-aw-theme] body dialog.aw-media-viewer .aw-fp-tools{gap:10px}
 html[data-aw-theme] body dialog.aw-media-viewer :is(.aw-fp-pager,.aw-fp-files){padding-left:10px}
}
/* Phones: full screen with safe areas, icon-only tools with 44px targets, the caption on its own line. */
@media(max-width:640px){
 html[data-aw-theme] body dialog.aw-media-viewer,html[data-aw-theme] body dialog.aw-media-viewer.is-embed{--mv-pad:max(16px,env(safe-area-inset-left));width:100vw!important;height:100dvh!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:env(safe-area-inset-top) 0 0!important}
 html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-bar{height:56px;gap:10px;padding-right:max(6px,env(safe-area-inset-right))!important}
 html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-bar:has(.aw-mv-tabs){grid-template-rows:56px 46px}
 html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-id strong{font-size:15px!important}
 html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-id>span{font-size:13px}
 html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-close{width:44px!important;height:44px!important;border-color:transparent!important}
 html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-tabs>[role=tab]{font-size:14px!important;padding:0 11px!important}
 html[data-aw-theme] body dialog.aw-media-viewer .aw-fp-panel{grid-template-rows:minmax(0,1fr) auto}
 html[data-aw-theme] body dialog.aw-media-viewer .aw-fp-controls{flex-wrap:wrap;gap:6px 8px;padding:8px max(8px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) var(--mv-pad)}
 html[data-aw-theme] body dialog.aw-media-viewer .aw-fp-caption{flex:1 0 100%;font-size:14px}
 html[data-aw-theme] body dialog.aw-media-viewer .aw-fp-tools{flex:1 0 100%;justify-content:space-between;gap:6px}
 html[data-aw-theme] body dialog.aw-media-viewer :is(.aw-fp-pager,.aw-fp-files){padding-left:0;border-left:0}
 html[data-aw-theme] body dialog.aw-media-viewer :is(.aw-mv-button,.aw-fp-tools button){height:44px!important;min-width:44px!important}
 html[data-aw-theme] body dialog.aw-media-viewer .aw-fp-tools button{width:44px}
 html[data-aw-theme] body dialog.aw-media-viewer .aw-fp-tools :is(.aw-fp-fit,.aw-mv-button){width:44px;padding:0!important}
 html[data-aw-theme] body dialog.aw-media-viewer .aw-fp-tools :is(.aw-fp-fit,.aw-mv-button)>span:not(.aw-mv-sr){position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important}
 html[data-aw-theme] body dialog.aw-media-viewer .aw-fp-level{min-width:42px;font-size:13px}
 html[data-aw-theme] body dialog.aw-media-viewer .aw-fp-hint{display:none}
 html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-embed-stage{padding:0}
 html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-frame{border-radius:0}
 html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-poster{width:calc(100% - 32px);padding:26px 20px}
 html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-embed-foot{flex-direction:column;align-items:flex-start;gap:4px;padding:10px var(--mv-pad) calc(10px + env(safe-area-inset-bottom))}
}
@media(max-height:560px){
 html[data-aw-theme] body dialog.aw-media-viewer,html[data-aw-theme] body dialog.aw-media-viewer.is-embed{width:100vw!important;height:100dvh!important;border:0!important;border-radius:0!important;box-shadow:none!important}
 html[data-aw-theme] body dialog.aw-media-viewer .aw-mv-bar{height:48px}
 html[data-aw-theme] body dialog.aw-media-viewer .aw-fp-hint{display:none}
}
@media(prefers-reduced-motion:reduce){
 html[data-aw-theme] body dialog.aw-media-viewer :is(button,a,.aw-fp-stage>img){transition:none!important}
}
