.motion-gallery{--lab-cream:#f8f5ee;--lab-ink:#0c2b26;--lab-purple:#7548ae;--lab-duration:7000ms;color:var(--lab-ink);padding:48px 0 36px;margin:8px 0 30px;border-top:1px solid #b8c7bb;scroll-margin-top:20px;isolation:isolate}
.motion-gallery *{box-sizing:border-box}.motion-gallery [hidden]{display:none!important}.motion-gallery .lab-heading{display:flex;align-items:end;justify-content:space-between;gap:28px;margin-bottom:24px}.motion-gallery h2{font:clamp(32px,3vw,46px)/1.12 Georgia,serif;letter-spacing:-.03em;margin:9px 0 12px}.motion-gallery .lab-intro{max-width:58ch;font-size:15px;line-height:1.6;margin:0}.motion-gallery .lab-kicker{font:700 11px/1.5 Arial;letter-spacing:.16em;text-transform:uppercase;color:#007e72}.motion-gallery .option-count{font:italic 36px Georgia;color:#7548ae;white-space:nowrap}.motion-gallery button,.motion-gallery select,.motion-gallery .lab-original{font:600 14px/1.35 Arial,sans-serif;border:1px solid #9db4a8;border-radius:24px;background:#fffcf5;color:#0c2b26;min-height:44px;padding:10px 18px;cursor:pointer}.motion-gallery button:disabled{opacity:.45;cursor:default}.motion-gallery :focus-visible,.motion-gallery .lab-toolbar,.motion-gallery .lab-filters{display:flex;flex-wrap:wrap;gap:9px;align-items:center}.motion-gallery .lab-filters{margin:24px 0 18px}.motion-gallery .lab-filters [aria-pressed=true]{background:#0c2b26;color:#f8f5ee;border-color:#0c2b26}.motion-gallery .lab-toolbar{border-top:1px solid #c4cfc4;padding-top:20px}.motion-gallery .lab-toolbar label{display:flex;gap:8px;align-items:center;font-size:13px}.motion-gallery .lab-toolbar .lab-view{background:#c8d6bb}.motion-gallery .lab-mode{margin:12px 0 0;font:13px/1.5 Arial;color:#53695e;min-height:20px}.motion-gallery .lab-stage{position:relative;height:470px;overflow:hidden;perspective:1300px;border-radius:20px;background:#eeeae1;margin:0 0 22px;touch-action:pan-y}
.motion-gallery .lab-card{display:block;position:absolute;margin:0;padding:10px;border:1px solid #b9c9ba80;border-radius:12px;background:#fbf8f1;box-shadow:0 12px 28px #001e1824;will-change:transform;overflow:hidden;min-height:0;transform-style:preserve-3d}
.motion-gallery .lab-card img{display:block;width:100%;height:100%;object-fit:contain;border-radius:4px}.motion-gallery .lab-card[aria-current=true]{border-color:#00867a;box-shadow:0 14px 30px #001e1835}.motion-gallery .lab-detail{min-height:160px;max-width:800px;margin:0 auto 24px;text-align:center}.motion-gallery .lab-detail h3{font:clamp(25px,2.6vw,35px)/1.2 Georgia;margin:8px 0}.motion-gallery .lab-detail p{font:15px/1.6 Arial;margin:8px 0}.motion-gallery .lab-owner{color:#53695e;font-size:13px!important}.motion-gallery .lab-thumbs{display:flex;gap:10px;overflow:auto;padding:5px 4px 14px;margin-bottom:20px;scrollbar-width:thin;overscroll-behavior-x:contain}.motion-gallery .lab-thumb{flex:0 0 84px;height:74px;min-height:0;padding:4px;border-radius:8px;position:relative;background:#e8e9df}.motion-gallery .lab-thumb img{width:100%;height:100%;object-fit:contain}.motion-gallery .lab-thumb[aria-pressed=true]{border:2px solid #007c70;background:#dbe8de}.motion-gallery .lab-thumb span{position:absolute;bottom:2px;right:3px;background:#0c2b26;color:#fff;font-size:10px;border-radius:10px;padding:1px 5px}.motion-gallery .lab-empty{padding:65px 24px;background:#eeeae1;border:1px solid #bec9bc;border-radius:16px;text-align:center}.motion-gallery .lab-empty h3{font:30px Georgia;margin-top:0}.motion-gallery .lab-empty p{max-width:55ch;margin:15px auto;line-height:1.6}
.motion-gallery[data-option="5"] .lab-stage{height:500px;background:linear-gradient(145deg,#e8eee1,#f8f5ee 55%,#eee6f4);border-radius:48% 12% 24% 10% / 8% 12% 12% 8%}.motion-gallery[data-option="5"] .lab-stage::before{content:'';position:absolute;inset:18% -10%;border:1px solid #89a99c;border-radius:50%;transform:rotate(-9deg);pointer-events:none}.motion-gallery[data-option="5"] .lab-card{border-radius:24px 5px 24px 5px;padding:10px;background:#fffdf5}.motion-gallery[data-option="5"] .lab-detail h3{color:#684492}
.motion-gallery.no-motion .lab-card{transition:none!important}.motion-gallery .lab-lightbox{position:fixed;inset:0;margin:auto;width:min(1100px,96vw);max-width:96vw;height:92dvh;max-height:92dvh;padding:18px;background:#092c26;color:#f8f5ee;border:1px solid #adc2b3;border-radius:16px;overflow:hidden}.motion-gallery .lab-lightbox::backdrop{background:#001b17c9}.motion-gallery .lab-lightbox .light-top{display:flex;gap:15px;align-items:center;justify-content:space-between;margin-bottom:12px}.motion-gallery .lab-lightbox h3{font:24px Georgia;margin:0}.motion-gallery .lab-lightbox img{width:100%;height:calc(100% - 112px);object-fit:contain;display:block}.motion-gallery .lab-lightbox footer{display:flex;gap:16px;justify-content:center;align-items:center;padding-top:12px}.motion-gallery .lab-original{color:#f8f5ee;background:transparent;text-underline-offset:4px}.motion-gallery .lab-footer-links{display:flex;justify-content:space-between;gap:20px;margin-top:30px}.motion-gallery .lab-footer-links a{color:#0c2b26;font-weight:600;text-underline-offset:5px}
@media(max-width:700px){.motion-gallery{padding-top:32px}.motion-gallery .lab-heading{display:block}.motion-gallery .option-count{display:none}.motion-gallery .lab-stage,.motion-gallery[data-option] .lab-stage{height:400px}.motion-gallery .lab-card{padding:8px;border-radius:10px}.motion-gallery .lab-toolbar button,.motion-gallery .lab-filters button{padding:10px 13px}.motion-gallery .lab-toolbar{gap:8px}.motion-gallery .lab-detail{min-height:205px;text-align:left}.motion-gallery .lab-detail h3{font-size:26px}.motion-gallery .lab-thumbs{gap:8px}.motion-gallery .lab-thumb{flex-basis:66px;height:68px}.motion-gallery .lab-filters{gap:8px}.motion-gallery .lab-filters button{font-size:12px}.motion-gallery .lab-lightbox{padding:12px}.motion-gallery .lab-lightbox h3{font-size:19px}.motion-gallery .lab-lightbox img{height:calc(100% - 140px)}.motion-gallery .lab-lightbox footer{flex-wrap:wrap;gap:8px}.motion-gallery .lab-footer-links{flex-wrap:wrap;font-size:14px}}
@media(prefers-reduced-motion:reduce){.motion-gallery *{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* Keep outgoing cards painted until their slide and fade finish. */
.motion-gallery .lab-card{
  transition:
    transform var(--lab-duration) linear,
    width var(--lab-duration) linear,
    height var(--lab-duration) linear,
    opacity var(--lab-duration) linear,
    visibility var(--lab-duration) linear;
}
.motion-gallery .lab-stage.is-placing .lab-card{transition:none!important}
