/*
  Contact Sheet: a row of five photo frames that unfolds into one full-screen photograph
  as you scroll, for any number of items. Self-contained: scoped to .cs-track, themed with
  the custom properties below (they fall back to the host page's tokens when present).
  Adapted from Rob's "Contact Sheet" component (Interval site hero).
*/
.cs-track{
  --cs-bg:var(--canvas,#0E1612);
  --cs-frame:var(--panel-2,#1C2A22);
  --cs-text:var(--text-primary,#F2EBDD);
  --cs-muted:var(--text-secondary,#A9B5AD);
  --cs-accent:var(--gold,#D6A548);
  --cs-display:var(--display,system-ui,sans-serif);
  --cs-body:var(--body,system-ui,sans-serif);
  --cs-mono:var(--mono,ui-monospace,monospace);
  position:relative;height:260svh;background:var(--cs-bg);color:var(--cs-text)
}
.cs-hero{position:sticky;top:0;height:100svh;min-height:600px;overflow:hidden;isolation:isolate}
.cs-sheet{position:absolute;inset:0;perspective:1800px;pointer-events:none}
.cs-card,.cs-main{position:absolute;overflow:hidden;padding:0;border:0;border-radius:6px;background:var(--cs-frame);pointer-events:auto;will-change:transform,opacity;backface-visibility:hidden;box-shadow:0 30px 70px -30px rgba(0,0,0,.8)}
.cs-card img,.cs-main>img{display:block;width:100%;height:100%;object-fit:cover;user-select:none;-webkit-user-drag:none}
.cs-card{z-index:2;cursor:pointer;transform-origin:center}
.cs-card img{filter:saturate(.8) brightness(.82);transition:transform 1.6s cubic-bezier(.22,.75,.2,1),filter .6s ease}
.cs-card:hover img,.cs-card:focus-visible img{transform:scale(1.06);filter:saturate(1) brightness(1)}
.cs-card:focus-visible{outline:2px solid var(--cs-accent);outline-offset:3px}
.cs-card-0{left:1%;top:36.5%;width:13%;height:27%}
.cs-card-1{left:15.2%;top:31%;width:17%;height:38%}
.cs-card-3{left:67.8%;top:31%;width:17%;height:38%}
.cs-card-4{left:86%;top:36.5%;width:13%;height:27%}
.cs-main{z-index:4;left:33.4%;top:27%;width:33.2%;height:46%;cursor:pointer;touch-action:pan-y;transform-origin:center}
.cs-main>img{position:absolute;inset:0}
.cs-shade{position:absolute;inset:0;z-index:3;pointer-events:none;background:linear-gradient(transparent 60%,rgb(0 0 0/.19));opacity:.9}
.is-immersive .cs-main{cursor:default}
.cs-transition-image{position:absolute;inset:0;z-index:2;width:100%;height:100%;object-fit:cover}

/* Label under the closed sheet */
.cs-caption{position:absolute;left:50%;bottom:9%;z-index:5;transform:translateX(-50%);text-align:center;pointer-events:none;width:min(90%,640px)}
.cs-caption .cs-eyebrow{color:var(--cs-accent)}
.cs-caption h3{margin:10px 0 0;font-family:var(--cs-display);font-weight:900;text-transform:uppercase;font-size:clamp(26px,2.6vw,40px);line-height:1}
.cs-eyebrow{margin:0;font-family:var(--cs-mono);font-size:11px;font-weight:500;line-height:1.6;letter-spacing:.22em;text-transform:uppercase}

/* Copy that rises in over the full-screen frame */
.cs-immersive{position:absolute;bottom:16%;left:7%;right:7%;z-index:8;max-width:760px;opacity:0;transform:translateY(40px);pointer-events:none;text-shadow:0 1px 2px rgba(5,9,7,.9),0 6px 30px rgba(5,9,7,.7)}
.cs-immersive[aria-hidden="false"]{pointer-events:auto}
.cs-immersive .cs-eyebrow{color:rgb(255 255 255/.85)}
.cs-immersive h2{margin:22px 0;font-family:var(--cs-display);font-weight:900;text-transform:uppercase;font-size:clamp(48px,6.4vw,112px);line-height:.9;letter-spacing:.005em}
.cs-immersive em{font-style:normal;color:var(--cs-accent)}
.cs-immersive .cs-line{font-family:var(--cs-body);font-size:clamp(16px,1.4vw,20px);max-width:46ch}
.cs-immersive .cs-items{margin:14px 0 0;padding:0;list-style:none;font-family:var(--cs-mono);font-size:12.5px;letter-spacing:.06em;color:rgb(255 255 255/.75);display:flex;flex-wrap:wrap;gap:6px 18px}
.cs-immersive .cs-cta{margin-top:26px;text-shadow:none}

/* Prev / next and counter, always available */
.cs-nav{position:absolute;right:clamp(16px,3vw,44px);bottom:clamp(16px,4vh,36px);z-index:9;display:flex;align-items:center;gap:10px;font-family:var(--cs-mono);font-size:12.5px;letter-spacing:.1em;color:var(--cs-text)}
.cs-nav button{width:40px;height:40px;border-radius:50%;border:1px solid rgb(255 255 255/.4);background:rgb(14 22 18/.55);color:inherit;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;backdrop-filter:blur(6px);transition:border-color .3s ease}
.cs-nav button:hover{border-color:var(--cs-text)}
.cs-nav svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

@media (max-height:690px) and (min-width:761px){
  .cs-hero{min-height:540px}
  .cs-main{top:24%;height:43%}
  .cs-card-1,.cs-card-3{top:28.5%;height:35%}
}
@media (max-width:760px){
  .cs-hero{min-height:560px}
  .cs-eyebrow{font-size:9px;letter-spacing:.15em}
  .cs-main{left:16%;top:22%;width:68%;height:40%}
  .cs-card-1{left:-14%;top:28%;width:27%;height:28%}
  .cs-card-3{left:87%;top:28%;width:27%;height:28%}
  .cs-card-far{display:none}
  .cs-caption{bottom:20%}
  .cs-immersive{left:6%;right:6%;bottom:13%}
  .cs-immersive h2{font-size:42px}
  .cs-nav{top:84px;bottom:auto}
  .cs-nav button{width:44px;height:44px}
}
@media (prefers-reduced-motion:reduce){.cs-card img{transition:none}}
