/* ---------- Brand videos (views/Videos.tsx, DESIGN.md "In motion") ---------- */
/* The "In motion" band and a line's "See it in action": 16:9 cards with 20px corners. Nothing
   plays by itself; /js/videos.js puts a round Play button on each poster. */

/* A YouTube or Vimeo player, swapped in after its Play button is pressed. */
.video__player {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--ink);
}

/* YouTube and Vimeo links under "More videos" on a line's page */
.videos__links {
  margin-top: var(--space-6);
}
.videos__more-title {
  margin: 0 0 var(--space-4);
  font-size: 28px;
}
.motion__list > li[hidden],
.videos__show-all[hidden],
.videos__show-all [hidden] {
  display: none;
}
.videos__show-all {
  margin: var(--space-5) 0 0;
}

/* ---------- "In motion" (DESIGN.md "In motion"): an Oat band of up to 3 video cards ---------- */
/* Nothing autoplays here: a 56px round Play button (Cream on Ink at 85%) sits on the poster. */
.motion {
  padding: 72px 0;
}
.motion__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.motion-card {
  margin: 0;
}
.motion-card__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-photo);
  background: var(--ink);
}
.motion-card__media {
  display: block;
  background: var(--ink);
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.motion-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}
.motion-card__play[hidden] {
  display: none;
}
.motion-card__play-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(31, 45, 44, 0.85);
  color: var(--cream);
}
.motion-card__play-icon::before {
  content: "";
  margin-left: 4px;
  border-left: 18px solid currentColor;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}
.motion-card__play:hover .motion-card__play-icon {
  background: var(--ink);
}
.motion-card__caption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 12px;
}
.motion-card__line {
  font-weight: 600;
}
.motion-card__title {
  color: var(--muted);
  font-size: 15px;
}
@media (max-width: 640px) {
  .motion {
    padding: 56px 0;
  }
}
