/* Scoped, reusable video previews. Posters remain visible without scripting. */
.was-motion {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #10141d;
  color: #fff;
}
.was-motion__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 9 / 16;
}
.was-motion .was-motion__toggle {
  position: absolute;
  z-index: 4;
  inset: 8px 8px auto auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 50%;
  background: rgba(8, 12, 21, .76);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
  line-height: 1;
}
.was-motion .was-motion__toggle[hidden] { display: none; }
.was-motion .was-motion__toggle:hover { background: #0041ff; }
.was-motion .was-motion__toggle:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #0041ff;
}
.was-motion__toggle svg { width: 18px; height: 18px; flex: none; pointer-events: none; }
.was-motion__pause { display: none; }
.was-motion[data-motion-state="playing"] .was-motion__pause { display: block; }
.was-motion[data-motion-state="playing"] .was-motion__play { display: none; }
.was-motion__fallback {
  position: absolute;
  inset: auto 8px 8px;
  z-index: 5;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
  color: #10141d;
  text-align: center;
}
#home-v2-page .was-motion--sample,
#examples-v2-page .was-motion--sample {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: inherit;
}
.was-motion--sample .was-motion__video { position: absolute; inset: 0; }
@media (max-width: 600px) {
  .was-motion .was-motion__toggle { width: 44px; height: 44px; min-width: 44px; }
}
