.about-video-gallery {
  --about-gallery-peek: clamp(30px, 6vw, 72px);
  width: min(1120px, calc(100% - (2 * clamp(20px, 4.5vw, 64px))));
  margin: 0 auto;
  padding: 18px 0 clamp(50px, 7vw, 86px);
}

.app-about-page .about-video-gallery {
  width: 100%;
  padding-top: 10px;
}

[data-about-video-gallery] + .product-section { padding-top: 16px; }

.about-video-track {
  display: flex;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 0 var(--about-gallery-peek) 0 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.about-video-track::-webkit-scrollbar { display: none; }

.about-video-track:focus-visible {
  outline: 3px solid rgba(232, 142, 101, .72);
  outline-offset: 5px;
  border-radius: 28px;
}

.about-video-slide {
  flex: 0 0 calc(100% - var(--about-gallery-peek));
  min-width: 0;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  opacity: .72;
  transform: scale(.985);
  transform-origin: center;
  transition: opacity .2s ease, transform .2s ease;
}

.about-video-slide:first-child { scroll-snap-align: start; }
.about-video-slide.is-current { opacity: 1; transform: scale(1); }

.about-video-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(24, 61, 50, .15);
  border-radius: clamp(18px, 2.1vw, 30px);
  background: #e4c98e;
  box-shadow: 0 1px 1px rgba(24, 61, 50, .05), 0 24px 72px rgba(51, 55, 36, .13);
}

.about-video {
  display: block;
  width: 100%;
  height: 100%;
  background: #e4c98e;
  cursor: pointer;
  object-fit: cover;
  object-position: 50% 50%;
}

.about-video-controls {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 92px;
  padding: 28px clamp(18px, 2.2vw, 34px) 18px;
  background: linear-gradient(to top, rgba(13, 28, 23, .72), rgba(13, 28, 23, 0));
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease;
}

.about-video-slide.is-current .about-video-shell.is-seeking .about-video-controls,
.about-video-slide.is-current .about-video-shell.is-active .about-video-controls,
.about-video-slide.is-current .about-video-shell:focus-within .about-video-controls {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.about-video-play {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  background: rgba(16, 38, 30, .58);
  color: #fff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.about-video-play:hover { background: rgba(16, 38, 30, .84); }

.about-video-play:focus-visible,
.about-video-scrubber:focus-visible,
.about-video-pagination button:focus-visible {
  outline: 3px solid rgba(239, 156, 112, .85);
  outline-offset: 3px;
}

.about-video-play svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.about-video-play .about-video-icon-play { display: none; fill: currentColor; stroke: none; }
.about-video-shell.is-paused .about-video-icon-pause { display: none; }
.about-video-shell.is-paused .about-video-icon-play { display: block; }

.about-video-scrubber-label,
.about-video-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.about-video-scrubber {
  --played: 0%;
  width: 100%;
  height: 28px;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.about-video-scrubber::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(to right, #e88e65 var(--played), rgba(255, 255, 255, .48) var(--played));
}

.about-video-scrubber::-moz-range-track { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .48); }
.about-video-scrubber::-moz-range-progress { height: 4px; border-radius: 999px; background: #e88e65; }

.about-video-scrubber::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  margin-top: -6px;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #e88e65;
  box-shadow: 0 2px 8px rgba(7, 17, 13, .25);
}

.about-video-scrubber::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #e88e65;
  box-shadow: 0 2px 8px rgba(7, 17, 13, .25);
}

.about-video-timecode {
  color: rgba(255, 255, 255, .92);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.about-video-error {
  position: absolute;
  z-index: 3;
  inset: auto 18px 18px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 253, 248, .94);
  color: #7b3528;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
}

.about-video-error[hidden] { display: none; }

.about-video-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 17px;
}

.about-video-pagination button {
  width: 8px;
  height: 8px;
  min-width: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(24, 61, 50, .24);
  cursor: pointer;
  transition: width .2s ease, background-color .2s ease;
}

.about-video-pagination button[aria-current="true"] { width: 26px; background: #183d32; }

@media (max-width: 800px) {
  .about-video-gallery {
    --about-gallery-peek: 34px;
    width: calc(100% - 32px);
    padding-top: 8px;
    padding-bottom: 48px;
  }

  .app-about-page .about-video-gallery { width: 100%; padding-top: 4px; }
  .about-video-track { gap: 9px; }
  .about-video-shell { border-radius: 17px; }
  .about-video-controls { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; min-height: 74px; padding: 20px 14px 10px; }
  .about-video-play { width: 40px; height: 40px; }
  .about-video-timecode { display: none; }
}

@media (max-width: 800px) and (orientation: portrait) {
  .about-video-shell { aspect-ratio: 4 / 5; }

  /* The older edits have tighter framing baked in. Show 1280px of their
     1920px width, keeping the complete source height inside the same card. */
  .about-video-slide:not(:first-child) .about-video {
    position: absolute;
    left: -25%;
    width: 150%;
    height: 100%;
    object-fit: contain;
    background: transparent;
  }
  .about-video-slide[data-slide-index="1"] .about-video-shell {
    background: linear-gradient(#eedab3 16.25%, #caaa79 83.75%);
  }
  .about-video-slide[data-slide-index="2"] .about-video-shell {
    background: linear-gradient(#b7c7bf 16.25%, #8b9e95 83.75%);
  }
  .about-video-slide[data-slide-index="3"] .about-video-shell {
    background: linear-gradient(#d0c6b6 16.25%, #968c7c 83.75%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-video-track { scroll-behavior: auto; }
  .about-video-slide,
  .about-video-pagination button { transition: none; }
}
