/* Highlights gallery: full-bleed cards, overlaid copy, autoplay progress pill.
   Loaded after highlights.css and scoped to .is-enhanced so the no-JS layout still works. */
.highlights.is-enhanced{--card-width:min(82vw,1260px);--card-gap:clamp(14px,1.4vw,24px);--card-radius:28px;padding-bottom:clamp(40px,5vw,80px)}
.highlights.is-enhanced .highlight-track{padding-top:8px;padding-bottom:8px}
.highlights.is-enhanced .highlight-card,
.highlights.is-enhanced .highlight-card.highlight-filled,
.highlights.is-enhanced .highlight-card.highlight-streaming{
  position:relative;display:block;height:auto;aspect-ratio:16/9;padding:0;border-radius:var(--card-radius);background:#000;align-self:auto;isolation:isolate;cursor:pointer}
.highlights.is-enhanced .highlight-card.is-active{cursor:default}
.highlights.is-enhanced .highlight-track.is-dragging .highlight-card{cursor:grabbing}

/* Art fills the whole card. */
.highlights.is-enhanced .highlight-art,
.highlights.is-enhanced .highlight-filled .highlight-art{position:absolute;inset:0;width:100%;height:100%;-webkit-mask-image:none;mask-image:none;transform:scale(1.02);transition:transform 1.2s cubic-bezier(.2,.7,.2,1)}
.highlights.is-enhanced .highlight-card.is-active .highlight-art{transform:none}
.highlights.is-enhanced .streaming-video{position:absolute;top:5%;left:5%;width:90%;height:68%;max-height:none;object-fit:contain;object-position:50% 50%}
.highlights.is-enhanced .highlight-streaming{background:radial-gradient(120% 90% at 50% 70%,#1c1c1f 0%,#000 70%)}

/* Readability scrim behind the copy. */
.highlights.is-enhanced .highlight-card::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;border-radius:inherit;background:linear-gradient(to top,rgba(0,0,0,.66) 0%,rgba(0,0,0,.3) 20%,rgba(0,0,0,0) 40%)}
.highlights-heading{text-align:center}

/* Copy sits bottom-centre on the photo. */
.highlights.is-enhanced .highlight-card figcaption,
.highlights.is-enhanced .highlight-filled figcaption,
.highlights.is-enhanced .highlight-streaming figcaption,
.highlights.is-enhanced .highlight-finishes > figcaption{
  position:absolute;z-index:2;top:auto;bottom:clamp(24px,3.4vw,52px);left:clamp(24px,3.6vw,56px);right:clamp(24px,3.6vw,56px);display:flex;flex-direction:column;align-items:center;padding:0;text-align:center;
  opacity:.0;transform:translateY(10px);transition:opacity .6s ease,transform .6s cubic-bezier(.2,.7,.2,1)}
.highlights.is-enhanced .highlight-card.is-active figcaption{opacity:1;transform:none}
.highlights.is-enhanced .highlight-card h2{max-width:20ch;font-size:clamp(22px,2.15vw,34px);font-weight:600;line-height:1.14;letter-spacing:-.015em;text-wrap:balance;text-shadow:0 1px 18px rgba(0,0,0,.35)}
.highlights.is-enhanced .highlight-chip h2{max-width:none;white-space:nowrap}
@media(max-width:700px){.highlights.is-enhanced .highlight-card.highlight-chip h2{font-size:clamp(13px,3.1vw,22px)}}
.highlights.is-enhanced .highlight-card p{max-width:28ch;margin:6px 0 0;color:rgba(245,245,247,.74);font-size:clamp(17px,1.55vw,24px);font-weight:500;line-height:1.25}

/* Color picker floats at the bottom of the first card. */
.highlights.is-enhanced .highlight-finishes > .finish-picker{position:absolute;z-index:2;left:50%;top:clamp(20px,2.6vw,36px);margin:0;transform:translateX(-50%)}
.highlights.is-enhanced .finish-options{background:rgba(48,48,51,.72);-webkit-backdrop-filter:blur(18px) saturate(160%);backdrop-filter:blur(18px) saturate(160%)}

/* Controls: frosted dot pill + round play button, pinned near the bottom while the gallery is on screen. */
.highlights.is-enhanced .highlight-controls{position:sticky;bottom:24px;z-index:5;display:flex;justify-content:center;align-items:center;gap:14px;width:auto;margin:28px auto 0;pointer-events:none}
.highlights.is-enhanced .highlight-controls>*{pointer-events:auto}
.highlights.is-enhanced .highlight-arrows{display:none}
.highlights.is-enhanced .highlight-dots{display:flex;align-items:center;height:56px;padding:0 12px;border-radius:999px;background:rgba(66,66,69,.72);-webkit-backdrop-filter:blur(20px) saturate(180%);backdrop-filter:blur(20px) saturate(180%)}
.highlights.is-enhanced .highlight-dots button{width:24px;height:56px;border-radius:0;background:none}
.highlights.is-enhanced .highlight-dots span{position:relative;display:block;width:8px;height:8px;overflow:hidden;border-radius:999px;background:rgba(245,245,247,.42);transition:width .45s cubic-bezier(.4,0,.2,1),background-color .2s}
.highlights.is-enhanced .highlight-dots [aria-current="true"]{width:64px}
.highlights.is-enhanced .highlight-dots [aria-current="true"] span{width:48px}
.highlights.is-enhanced .highlight-dots span::after{content:"";position:absolute;inset:0;border-radius:inherit;background:#f5f5f7;transform:scaleX(0);transform-origin:left center}
.highlights.is-enhanced .highlight-dots [aria-current="true"] span::after{transform:scaleX(var(--progress,0))}
.highlights.is-enhanced:not(.is-autoplaying) .highlight-dots [aria-current="true"] span::after{transform:none}
.highlights.is-enhanced .highlight-dots button:not([aria-current]):hover span{background:rgba(245,245,247,.7)}

.highlight-play{position:relative;display:grid;place-items:center;width:56px;height:56px;padding:0;border:0;border-radius:50%;background:rgba(66,66,69,.72);-webkit-backdrop-filter:blur(20px) saturate(180%);backdrop-filter:blur(20px) saturate(180%);color:#f5f5f7;cursor:pointer;transition:background-color .2s}
.highlight-play:hover{background:rgba(88,88,92,.8)}
.highlight-play svg{grid-area:1/1;width:22px;height:22px;fill:currentColor;opacity:0;transform:scale(.7);transition:opacity .2s,transform .25s}
.highlight-play .icon-replay{fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.highlight-play[data-state="playing"] .icon-pause,
.highlight-play[data-state="paused"] .icon-play,
.highlight-play[data-state="ended"] .icon-replay{opacity:1;transform:none}
.highlight-play:focus-visible{outline:2px solid #f5f5f7;outline-offset:4px}

@media(max-width:700px){
  .highlights.is-enhanced{--card-width:87vw;--card-gap:12px;--card-radius:22px}
  .highlights.is-enhanced .highlight-card,
  .highlights.is-enhanced .highlight-card.highlight-filled,
  .highlights.is-enhanced .highlight-card.highlight-streaming{aspect-ratio:4/5}
  .highlights.is-enhanced .streaming-video{top:6%;left:4%;width:92%;height:66%}
  .highlights.is-enhanced .highlight-finishes .highlight-art{top:16%;bottom:auto;left:-28%;width:156%;height:auto;aspect-ratio:5000/2400;-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 18%,#000 82%,transparent 100%);mask-image:linear-gradient(to bottom,transparent 0,#000 18%,#000 82%,transparent 100%)}
  .highlights.is-enhanced .highlight-finishes{background:radial-gradient(110% 70% at 50% 45%,#3a342e 0%,#0b0b0b 75%)}
  .highlights.is-enhanced .highlight-card h2{font-size:24px}
  .highlights.is-enhanced .highlight-card p{font-size:17px}
  .highlights.is-enhanced .highlight-controls{gap:10px;bottom:16px}
  .highlights.is-enhanced .highlight-dots{height:48px;padding:0 8px}
  .highlights.is-enhanced .highlight-dots button{width:20px;height:48px}
  .highlights.is-enhanced .highlight-dots [aria-current="true"]{width:46px}
  .highlights.is-enhanced .highlight-dots [aria-current="true"] span{width:34px}
  .highlight-play{width:48px;height:48px}
}
@media(prefers-reduced-motion:reduce){
  .highlights.is-enhanced .highlight-art,.highlights.is-enhanced .highlight-card figcaption,.highlights.is-enhanced .highlight-dots span{transition:none}
}

/* New DMP-A7 PRO feature photography uses the same caption sizing as the original cards. */
.highlight-card .highlight-photo{display:block;flex:1 1 0;width:100%;min-height:0;object-fit:cover}

/* Keep the finish choice headline on a single line. */
.highlights.is-enhanced .highlight-finishes > figcaption h2{max-width:none;white-space:nowrap;text-wrap:nowrap}
@media(max-width:700px){.highlights.is-enhanced .highlight-finishes > figcaption h2{font-size:clamp(12px,3.8vw,19px)}}
.highlights.is-enhanced .highlight-card .highlight-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center center;transform:scale(1.02);transition:transform 1.2s cubic-bezier(.2,.7,.2,1)}
.highlights.is-enhanced .highlight-card.is-active .highlight-photo{transform:none}
.highlights.is-enhanced .highlight-display p{max-width:none;white-space:nowrap}
@media(max-width:700px){.highlights.is-enhanced .highlight-card .highlight-photo{object-fit:contain;object-position:50% 22%;background:#000}}
@media(max-width:700px){.highlights.is-enhanced .highlight-display p{max-width:28ch;white-space:normal}}
@media(prefers-reduced-motion:reduce){.highlights.is-enhanced .highlight-card .highlight-photo{transition:none}}

/* The updated finish photographs are square; crop below the empty upper area so the product is centered. */
.highlights.is-enhanced .highlight-finishes .highlight-art--finish{object-fit:cover;object-position:50% 86%}
.highlights.is-enhanced .highlight-card .highlight-art--power{object-fit:cover;object-position:50% 51%}
@media(max-width:700px){
  .highlights.is-enhanced .highlight-finishes .highlight-art--finish{inset:0;width:100%;height:100%;aspect-ratio:auto;object-fit:cover;object-position:50% 64%;-webkit-mask-image:none;mask-image:none}
  .highlights.is-enhanced .highlight-card .highlight-art--power{object-fit:cover;object-position:50% 50%}
}

/* Keep the updated board photography centered on the named components. */
.highlights.is-enhanced .highlight-card .highlight-photo--core{object-position:50% 42%}
.highlights.is-enhanced .highlight-card .highlight-photo--clocks{object-position:50% 48%}
@media(max-width:700px){.highlights.is-enhanced .highlight-card .highlight-photo--core,.highlights.is-enhanced .highlight-card .highlight-photo--clocks{object-fit:cover;object-position:center}}
