/* The motion clip occupies the same frame as the original hero photograph. */
.home .hero-picture .hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1280 / 1018;
  overflow: hidden;
  border-radius: 8px;
  background: #d7effb;
}
.home .hero-picture .hero-media > img,
.home .hero-picture .hero-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 0;
}
.home .hero-picture .hero-video {
  opacity: 0;
  transition: opacity .35s ease;
}
.home .hero-picture .hero-media.has-video .hero-video { opacity: 1; }
.home .hero-picture .hero-video-toggle {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  box-shadow: none;
  cursor: pointer;
  opacity: .8;
}
.home .hero-picture .hero-video-toggle[hidden] { display: none; }
.home .hero-picture .hero-video-toggle:hover { background: transparent; opacity: 1; }
.home .hero-picture .hero-video-toggle:focus-visible { outline: 3px solid #ffcd3e; outline-offset: 2px; }
.home .hero-picture .hero-video-toggle svg { width: 14px; height: 14px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.9)); }
.home .hero-video-toggle[data-action="play"] .hero-control-pause,
.home .hero-video-toggle[data-action="pause"] .hero-control-play { display: none; }
@media (hover: hover) and (pointer: fine) {
  .home .hero-picture .hero-video-toggle[data-action="pause"] { opacity: 0; }
  .home .hero-picture .hero-media:hover .hero-video-toggle,
  .home .hero-picture .hero-video-toggle:focus-visible { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .home .hero-picture .hero-video { transition: none; }
}
