.mm-scene-panel{border-top:1px solid #e9e9e9;margin:24px 0 8px;padding:44px 0 0;color:#42474b}
.mm-scene-panel h2{margin:0 0 16px;font-size:16px;font-weight:400;letter-spacing:.01em;text-align:center}
.mm-scene-options{position:relative;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-x:contain;height:185px;box-sizing:border-box;padding:27px 0 38px;width:calc(100% + 32px);margin-left:-16px}
.mm-scene-options::-webkit-scrollbar,.mm-scene-quick::-webkit-scrollbar{display:none}
.mm-scene-track,.mm-scene-group{display:flex;gap:0;width:max-content;height:120px;align-items:center}
.mm-scene-options .mm-scene-choice{width:var(--scene-card-width,105px);margin:0 calc((88px - var(--scene-card-width,105px))/2);position:relative;transform-origin:center;backface-visibility:hidden;-webkit-box-reflect:none}
.mm-scene-choice{display:block;flex:0 0 auto;width:154px;border:0;border-radius:4px;padding:0;background:none!important;cursor:pointer;box-shadow:none!important}
.mm-scene-choice img{display:block;width:100%;height:auto;aspect-ratio:1.5;object-fit:cover;border-radius:3px;filter:none;opacity:1;transition:opacity .16s,filter .16s}
.mm-scene-choice[aria-pressed=true]{outline:1px solid #69746e;outline-offset:3px}
.mm-scene-choice[aria-pressed=true] img,.mm-scene-choice:hover img{opacity:1;filter:none}
.mm-scene-choice:focus-visible,.mm-scene-stage button:focus-visible{outline:2px solid #259567;outline-offset:3px}
.mm-scene-status{min-height:0;margin:8px 0 0;font-size:10px;line-height:1.5;color:#81878b;text-align:center}
.mm-scene-stage{position:absolute;inset:0;z-index:9;overflow:hidden;background:#e4e8e9;touch-action:pan-y}
.mm-scene-stage[hidden]{display:none!important}
.mm-scene-stage canvas{display:block;width:100%;height:100%;touch-action:pan-y}
.mm-scene-stage canvas:focus-visible{outline:2px solid #259567;outline-offset:-3px}
.mm-lx__media.mm-scene-open>:not(.mm-scene-stage):not(.mm-lx__brand){visibility:hidden!important;pointer-events:none!important}
.mm-lx__media.mm-scene-open::after{display:none!important}
.mm-lx__media.mm-scene-open .mm-lx__brand{z-index:11}
.mm-scene-actions{position:absolute;right:14px;bottom:14px;display:flex;gap:6px}
.mm-scene-actions button{display:grid;place-items:center;width:36px;height:36px;padding:8px;border:0;background:none;color:#f1f2f2;filter:drop-shadow(0 1px 2px #0009);cursor:pointer;box-shadow:none}
.mm-scene-actions svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.mm-scene-quick{display:none;position:absolute;top:18px;right:18px;gap:7px;padding:5px;max-width:min(310px,calc(100% - 90px));overflow-x:auto;scrollbar-width:none;overscroll-behavior-x:contain}
.mm-scene-quick .mm-scene-choice{width:64px;border-radius:3px;filter:drop-shadow(0 1px 2px #0006)}
.mm-scene-quick .mm-scene-choice img{opacity:.85}
.mm-scene-quick .mm-scene-choice[aria-pressed=true]{outline-color:#fff}
.mm-scene-stage:fullscreen .mm-scene-quick,.mm-scene-stage.is-expanded .mm-scene-quick{display:flex}
.mm-scene-stage:fullscreen{width:100vw;height:100vh}
.mm-scene-stage.is-expanded{position:fixed;inset:0;width:100vw;height:100dvh;z-index:2147483645}
body.mm-scene-expanded{overflow:hidden}
@media(max-width:900px){.mm-scene-panel{margin:20px 0 10px;padding-top:34px}.mm-scene-actions{right:7px;bottom:7px}}
@media(prefers-reduced-motion:reduce){.mm-scene-choice img{transition:none}}
@media(max-width:900px){.mm-scene-stage .mm-scene-quick{display:flex;top:8px;right:8px;max-width:min(220px,calc(100% - 90px))}.mm-scene-quick .mm-scene-choice{width:52px}.mm-scene-stage:fullscreen .mm-scene-quick,.mm-scene-stage.is-expanded .mm-scene-quick{top:14px;right:14px}}

/* Imagine's small, stateful controls replace the former caption. */
.mm-scene-controls{display:flex;justify-content:center;align-items:center;gap:9px;margin:8px 0 0}
.mm-scene-controls button{display:grid;place-items:center;width:38px;height:38px;padding:8px;border:0;border-radius:4px;color:#6d7478;background:transparent;box-shadow:none;cursor:pointer;transition:color .18s,background .18s}
.mm-scene-controls button:hover{color:#242a2e;background:transparent}
.mm-scene-controls svg,.mm-scene-gallery button svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.mm-scene-controls .mm-scene-play-triangle{fill:currentColor;stroke-width:.6}
.mm-scene-controls button:focus-visible,.mm-scene-gallery button:focus-visible{outline:2px solid #259567;outline-offset:3px}
.mm-scene-status:empty{display:none}
body.mm-scene-gallery-open{overflow:hidden}
.mm-scene-gallery{position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;background:#fff;color:#454b4f;overflow:hidden;overscroll-behavior:contain}
.mm-scene-gallery[open]{display:block}
.mm-scene-gallery::backdrop{background:#fff}
.mm-scene-gallery [hidden]{display:none!important}
.mm-scene-gallery button{display:grid;place-items:center;margin:0;padding:9px;border:0;color:inherit;background:transparent;box-shadow:none;cursor:pointer}
.mm-scene-gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;grid-auto-rows:max-content;align-items:start;align-content:start;overflow-y:auto;height:100%;box-sizing:border-box;padding:0;min-height:0;overscroll-behavior:contain}
.mm-scene-gallery-grid button{display:block;position:relative;padding:0;overflow:hidden;border-radius:0;background:#f1f3f3;aspect-ratio:1.5}
.mm-scene-gallery-grid img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;transition:transform .2s}
.mm-scene-gallery-grid button:hover img{transform:scale(1.025)}
.mm-scene-gallery-preview{position:absolute;inset:0;display:grid;place-items:center;flex:1;min-height:0;background:#101314;touch-action:pan-y}
.mm-scene-gallery-preview img{display:block;width:100%;height:100%;min-height:0;object-fit:cover;user-select:none;-webkit-user-drag:none}
/* Keep the previous photo visible until its successor has decoded. */
.mm-scene-gallery-preview button{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:54px;color:#fff;filter:drop-shadow(0 1px 3px #0009)}
.mm-scene-gallery-preview [data-imagine-prev]{left:12px}
.mm-scene-gallery-preview [data-imagine-next]{right:12px}
.mm-scene-gallery-status{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);margin:0;padding:8px 14px;border-radius:5px;background:#fff;color:#454b4f;font-size:12px;text-align:center}
.mm-scene-gallery-status:empty{display:none}
@media(max-width:900px){.mm-scene-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:0;gap:4px}}
@media(prefers-reduced-motion:reduce){.mm-scene-controls button,.mm-scene-gallery-grid img{transition:none}}

.mm-scene-options .mm-scene-choice{border-radius:3px;box-shadow:0 2px 8px #18212826!important}
.mm-scene-controls .mm-scene-pause-bars{stroke-width:2.3}
.mm-scene-stage .mm-scene-fade{position:absolute;inset:0;z-index:1;pointer-events:none}
.mm-scene-stage .mm-scene-fade[hidden]{display:none}
.mm-scene-actions,.mm-scene-quick{z-index:2}
.mm-scene-sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.mm-scene-gallery-tools{display:contents}
.mm-scene-gallery-tools button{position:absolute;z-index:5;width:42px;height:42px;padding:10px;color:#fff;filter:drop-shadow(0 1px 3px #000b)}
.mm-scene-gallery-tools [data-imagine-close]{top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right))}
.mm-scene-gallery-tools [data-imagine-back]{bottom:max(14px,env(safe-area-inset-bottom));right:14px}
.mm-scene-gallery-preview img:focus-visible{outline:2px solid #259567;outline-offset:-3px}

/* Fullscreen already fills the viewport: keep a close action, not another expand icon. */
.mm-scene-stage:fullscreen [data-scene-full],.mm-scene-stage.is-expanded [data-scene-full]{display:none}
.mm-scene-full-close{display:none;position:absolute;z-index:3;top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));width:42px;height:42px;padding:10px;border:0;background:transparent;color:#fff;filter:drop-shadow(0 1px 3px #000b);box-shadow:none;cursor:pointer}
.mm-scene-full-close svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round}
.mm-scene-stage:fullscreen .mm-scene-full-close,.mm-scene-stage.is-expanded .mm-scene-full-close{display:grid;place-items:center}
.mm-scene-stage:fullscreen .mm-scene-quick,.mm-scene-stage.is-expanded .mm-scene-quick{right:66px;max-width:min(310px,calc(100% - 120px))}

.mm-scene-stage:fullscreen .mm-scene-quick,.mm-scene-stage.is-expanded .mm-scene-quick{display:none}
.mm-scene-arrow{position:absolute;z-index:2;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:44px;height:54px;margin:0;padding:10px;border:0;background:transparent;color:#fff;filter:drop-shadow(0 1px 3px #0009);box-shadow:none;cursor:pointer}
.mm-scene-arrow[data-scene-direction="-1"]{left:12px}
.mm-scene-arrow[data-scene-direction="1"]{right:12px}
.mm-scene-arrow svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.mm-scene-gallery-preview{overflow:hidden}
.mm-scene-gallery-preview img{transform-origin:center}

/* The centred ring card gently comes forward without slowing the ring rotation. */
.mm-scene-options .mm-scene-choice{scale:1;translate:0 0;transition:scale .48s cubic-bezier(.2,.7,.2,1),translate .48s cubic-bezier(.2,.7,.2,1),box-shadow .48s ease}
.mm-scene-options .mm-scene-choice.is-focused{scale:1.1;translate:0 -5px;box-shadow:0 7px 15px #18212838!important}
@media(prefers-reduced-motion:reduce){.mm-scene-options .mm-scene-choice{transition:none}}
@media(hover:hover) and (pointer:fine){
 .mm-scene-stage :is(.mm-scene-actions,.mm-scene-arrow,.mm-scene-full-close,.mm-scene-quick){opacity:0;pointer-events:none;transition:opacity .2s ease}
 .mm-scene-stage:hover :is(.mm-scene-actions,.mm-scene-arrow,.mm-scene-full-close,.mm-scene-quick),.mm-scene-stage:has(:focus-visible) :is(.mm-scene-actions,.mm-scene-arrow,.mm-scene-full-close,.mm-scene-quick){opacity:1;pointer-events:auto}
 .mm-scene-gallery.is-photo :is(.mm-scene-gallery-tools button,.mm-scene-gallery-preview button){opacity:0;pointer-events:none;transition:opacity .2s ease}
 .mm-scene-gallery.is-photo:hover :is(.mm-scene-gallery-tools button,.mm-scene-gallery-preview button),.mm-scene-gallery.is-photo:has(:focus-visible) :is(.mm-scene-gallery-tools button,.mm-scene-gallery-preview button){opacity:1;pointer-events:auto}
}

/* Fullscreen controls share the carousel's playback state, without button discs. */
.mm-scene-actions :is([data-scene-viewer-play],[data-scene-viewer-grid]){display:none}
.mm-scene-stage:is(:fullscreen,.is-expanded) .mm-scene-actions :is([data-scene-viewer-play],[data-scene-viewer-grid]){display:grid}
.mm-scene-stage:is(:fullscreen,.is-expanded) .mm-scene-actions{right:max(14px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom))}
.mm-scene-actions .mm-scene-play-triangle,.mm-scene-gallery .mm-scene-play-triangle{fill:currentColor;stroke-width:.6}
.mm-scene-actions .mm-scene-pause-bars,.mm-scene-gallery .mm-scene-pause-bars{stroke-width:2.3}
.mm-scene-gallery-tools [data-imagine-back]{right:max(14px,env(safe-area-inset-right))}
.mm-scene-gallery-tools [data-imagine-play]{bottom:max(14px,env(safe-area-inset-bottom));right:calc(max(14px,env(safe-area-inset-right)) + 46px)}

/* Twelve reviewed scenes: desktop fills the viewport; phone shows four per screen. */
.mm-scene-gallery--twelve .mm-scene-gallery-grid{grid-template-rows:repeat(3,minmax(0,1fr));align-items:stretch;align-content:stretch}
.mm-scene-gallery--twelve .mm-scene-gallery-grid button{aspect-ratio:auto;min-height:0;width:100%;height:100%}
@media(max-width:900px) and (orientation:portrait){.mm-scene-gallery--twelve .mm-scene-gallery-grid{grid-template-rows:none;grid-auto-rows:calc((100% - 4px)/2);align-content:start}}
@media(max-width:900px) and (orientation:landscape){.mm-scene-gallery--twelve .mm-scene-gallery-grid{grid-template-rows:none;grid-auto-rows:calc(100% - 4px);align-content:start}}

/* The decoded next photo sits behind a fading snapshot, with controls above. */
.mm-scene-gallery-preview .mm-scene-gallery-fade{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none}
.mm-scene-gallery-preview button{z-index:2}
@media(hover:hover) and (pointer:fine){
 .mm-scene-stage>canvas:first-child,.mm-scene-gallery-preview>img{cursor:zoom-in}
 .mm-scene-stage[data-photo-zoom]:not([data-photo-zoom="1"])>canvas:first-child,.mm-scene-gallery-preview[data-photo-zoom]:not([data-photo-zoom="1"])>img{cursor:zoom-out}
}
