/* LEVEL: three compositions, one spacing and motion system. */
:root{--gallery-gap:clamp(12px,1.8vw,28px);--gallery-space:clamp(40px,6vw,88px)}
.story-chapters{margin-bottom:var(--gallery-space)}
.chapter-flow{display:grid;gap:var(--gallery-space)}
.story-chapter{position:relative;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));align-items:center;isolation:isolate}
.level-stories .story-chapter .scene-picture{grid-column:1/10;grid-row:1;height:auto!important;min-height:0;aspect-ratio:3/2;overflow:hidden}
.level-stories .story-chapter .scene-picture img{width:100%;height:100%;object-fit:cover;object-position:var(--focus,50% 35%)}
.level-stories .story-chapter .scene-card{grid-column:8/13;grid-row:1;position:relative;inset:auto;width:calc(100% - 4vw);max-width:480px;margin:0;justify-self:start;padding:clamp(24px,3vw,40px)}
.story-chapter:nth-child(even) .scene-picture{grid-column:4/13}
.level-stories .story-chapter:nth-child(even) .scene-card{grid-column:1/6;justify-self:end}
.spa-chapters .story-chapter .scene-picture{aspect-ratio:1280/985}
.level-stories .kids-opening .scene-picture,.level-stories .kids-room .scene-picture,.level-stories .beauty-salon .scene-picture{height:auto;min-height:0;aspect-ratio:3/2}
.level-stories .kids-opening .scene-picture img,.level-stories .kids-room .scene-picture img,.level-stories .beauty-salon .scene-picture img{height:100%;object-fit:cover;object-position:50% 30%}
.level-stories .kids-water .scene-picture{height:auto;min-height:0;aspect-ratio:2/3}
.level-stories .kids-water .scene-picture img{height:100%;object-fit:cover;object-position:50% 25%}
.level-stories .kids-water{grid-template-columns:1fr 1fr}
.level-stories .kids-opening .scene-card,.level-stories .kids-room .scene-card,.level-stories .beauty-salon .scene-card{margin-top:-64px}
.editorial-gallery{margin:var(--gallery-space) 0;position:relative}
.editorial-window{position:relative;overflow:hidden}
.editorial-track{display:flex;gap:var(--gallery-gap);overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}
.editorial-track::-webkit-scrollbar{display:none}
.editorial-frame{flex:0 0 100%;min-width:0;aspect-ratio:3/2;display:grid;gap:var(--gallery-gap);scroll-snap-align:start;overflow:hidden}
.editorial-frame.portrait-duet{grid-template-columns:1fr 1fr}
.editorial-frame figure{min-width:0;min-height:0;overflow:hidden;margin:0!important;position:relative}
.editorial-frame img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 24%;border:0;border-radius:0;max-height:none}
.editorial-nav{position:absolute;right:20px;bottom:20px;display:flex;align-items:center;gap:16px;padding:4px;background:#f5f4ef;color:#111;z-index:3}
.editorial-nav button{width:44px;height:44px;background:transparent;color:#111;border:0;font-size:24px;cursor:pointer}
.editorial-nav button:disabled{opacity:.25;cursor:default}
.editorial-nav span{font-size:13px;min-width:40px;text-align:center;font-variant-numeric:tabular-nums}
.editorial-track:focus-visible{outline:2px solid #ffc400;outline-offset:-3px}
.editorial-gallery.scroll-gallery{height:240svh}
.scroll-gallery .editorial-window{position:sticky;top:100px}
.scroll-gallery .editorial-track{display:grid;overflow:hidden;aspect-ratio:3/2;max-height:calc(100svh - 130px);scroll-snap-type:none}
.scroll-gallery .editorial-frame{grid-area:1/1;aspect-ratio:auto;height:100%;opacity:var(--frame-opacity,0);transform:translateY(calc((1 - var(--frame-opacity,0))*24px));transition:opacity .35s ease,transform .55s ease;pointer-events:none}
.scroll-gallery .editorial-frame:first-child{--frame-opacity:1}
.scroll-gallery .editorial-frame.is-current{pointer-events:auto}
@media(min-width:851px){
.photo-story .photo-grid{gap:var(--gallery-gap)}
.photo-story .photo-grid figure{height:auto!important;aspect-ratio:3/2}
.photo-story .photo-grid figure:first-child{height:auto!important;aspect-ratio:2/1}
.rest-editorial .scene-picture{height:auto;min-height:0;aspect-ratio:889/1280}
.rest-evening{max-width:1100px;margin-inline:auto;display:grid;grid-template-columns:1fr 1fr;background:#111}
.rest-evening .scene-picture{height:auto;min-height:0;aspect-ratio:889/1280}
.rest-evening:after{display:none}
.level-stories .rest-evening .scene-card{position:relative;inset:auto;transform:none;align-self:center;margin:0 auto;width:calc(100% - 64px)}
}
@media(max-width:850px){
.chapter-flow{gap:48px}.story-chapter{display:block}
.level-stories .story-chapter .scene-picture{aspect-ratio:3/2;width:100%;height:auto!important;min-height:0}
.level-stories .court-chapters .story-chapter:nth-child(2) .scene-picture{aspect-ratio:2/3;max-height:76svh}
.level-stories .story-chapter .scene-picture img{object-position:var(--mobile-focus,50% 25%)}
.level-stories .spa-chapters .story-chapter .scene-picture{aspect-ratio:1280/985}
.level-stories .story-chapter .scene-card,.level-stories .story-chapter:nth-child(even) .scene-card{width:calc(100% - 40px);margin:-24px 20px 0;padding:28px 24px;max-width:none}
.level-stories .kids-room .scene-picture{aspect-ratio:2/3;max-height:72svh}
.level-stories .kids-water{display:block}
.level-stories .kids-water .scene-picture{max-height:76svh}
.level-stories .kids-opening .scene-card,.level-stories .kids-room .scene-card,.level-stories .beauty-salon .scene-card{margin-top:-24px}
.editorial-gallery{margin:40px -20px 56px}
.editorial-frame{aspect-ratio:3/2;gap:8px}
.editorial-nav{bottom:10px;right:10px;gap:8px;padding:0}
.editorial-nav button{width:44px;height:44px}
.editorial-nav span{font-size:12px}
}
@media(prefers-reduced-motion:reduce){.editorial-frame{transform:none!important;transition:none!important}.editorial-track{scroll-behavior:auto}}
.portrait-duet img{object-position:50% 12%}
.scroll-gallery .editorial-window{width:min(100%,calc((100svh - 130px)*1.5));margin-inline:auto}
.scroll-gallery .editorial-track{max-height:none}
.editorial-gallery:has(.editorial-frame:only-child) .editorial-nav{display:none}
@media(min-width:851px){.story-chapter{padding-bottom:48px}.level-stories .story-chapter .scene-card{align-self:end;transform:translateY(48px)}}
