/* The five smart-editing features, scoped to Video. */
#video-smart-edit {
  --vd-cap-gap: 24px;
  --vd-cap-radius: 12px;
  --vd-cap-heading-size: 24px;
  --vd-cap-body-size: 15px;
}

#video-smart-edit .vd-heading { margin-inline: 0; text-align: left; }
#video-smart-edit .vd-heading h2,
#video-smart-edit .vd-heading > p { margin-inline: 0; }
#video-smart-edit .vd-edit-carousel { position: relative; margin-top: 64px; }
#video-smart-edit .vd-edit-track {
  display: flex;
  gap: var(--vd-cap-gap);
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
#video-smart-edit .vd-edit-track::-webkit-scrollbar { display: none; }
#video-smart-edit .vd-edit-track > .vd-card {
  flex: 0 0 calc((100% - var(--vd-cap-gap) * 3) / 3.25);
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  scroll-snap-align: start;
}
#video-smart-edit .vd-edit-media {
  aspect-ratio: 48 / 55;
  margin: 0 0 24px;
  overflow: hidden;
  border-radius: var(--vd-cap-radius);
  background: var(--soft);
}
#video-smart-edit .vd-edit-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#video-smart-edit .vd-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: var(--vd-cap-heading-size);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -.025em;
}
#video-smart-edit .vd-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: var(--vd-cap-body-size);
  line-height: 1.6;
}
#video-smart-edit .vd-edit-arrow {
  position: absolute;
  top: calc(var(--vd-cap-media-height, 440px) / 2 - 22px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  transition: background-color 180ms ease, opacity 180ms ease;
}
#video-smart-edit .vd-edit-arrow--previous { left: 16px; }
#video-smart-edit .vd-edit-arrow--next { right: 16px; }
#video-smart-edit .vd-edit-arrow:not(:disabled):hover { background: var(--soft); }
#video-smart-edit .vd-edit-arrow:disabled { opacity: .45; cursor: default; }
#video-smart-edit .vd-edit-arrow[hidden] { display: none; }
#video-smart-edit .vd-edit-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#video-smart-edit .vd-edit-arrow--next svg { transform: rotate(180deg); }
#video-smart-edit :is(.vd-edit-arrow,.vd-edit-track):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
#video-smart-edit .vd-edit-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 1100px) {
  #video-smart-edit .vd-edit-track > .vd-card { flex-basis: calc((100% - var(--vd-cap-gap)) / 2); }
}
@media (max-width: 620px) {
  #video-smart-edit { --vd-cap-gap: 16px; }
  #video-smart-edit .vd-edit-carousel { margin-top: 32px; }
  #video-smart-edit .vd-edit-track > .vd-card { flex-basis: 86%; }
  #video-smart-edit .vd-edit-media { margin-bottom: 20px; }
  #video-smart-edit .vd-edit-arrow--previous { left: 12px; }
  #video-smart-edit .vd-edit-arrow--next { right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  #video-smart-edit .vd-edit-arrow { transition: none; }
}
