.motion-media {
  --motion-name: humain-media-pan-a;
  --motion-duration: 10.5s;
  --motion-delay: -1.25s;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transform: translateZ(0);
  background: #172c3d;
}

.motion-media::before {
  content: "";
  position: absolute;
  top: -25%;
  bottom: -25%;
  left: -42%;
  z-index: 1;
  width: 24%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16), transparent);
  transform: skewX(-14deg) translate3d(-180%, 0, 0);
}

.motion-media__image {
  transform: scale(1.09) translate3d(0, 0, 0);
  transform-origin: 50% 50%;
  transition: filter .65s ease, scale .65s cubic-bezier(.2, .8, .2, 1);
}

.motion-media.is-motion-visible .motion-media__image {
  animation: var(--motion-name) var(--motion-duration) cubic-bezier(.37, 0, .63, 1) var(--motion-delay) infinite alternate both;
  will-change: transform;
}

.motion-media.is-motion-visible::before {
  animation: humain-media-light-pass 8.5s ease-in-out -2s infinite;
}

.motion-media[data-motion-speed="slow"] {
  --motion-duration: 17s;
  --motion-delay: -4s;
}

.individual-action:nth-child(3n + 2) .motion-media {
  --motion-name: humain-media-pan-b;
  --motion-duration: 12s;
  --motion-delay: -4.2s;
}

.individual-action:nth-child(3n) .motion-media {
  --motion-name: humain-media-pan-c;
  --motion-duration: 13.5s;
  --motion-delay: -7s;
}

.motion-media:hover .motion-media__image,
.motion-media:focus-within .motion-media__image {
  scale: 1.035;
  filter: saturate(1.1) contrast(1.035);
}

.editorial-image-wrap {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(54, 43, 31, .12);
}

.editorial-image-wrap .editorial-image {
  height: 100%;
  border-radius: 0;
  box-shadow: none;
}

@keyframes humain-media-pan-a {
  0% {
    transform: scale(1.09) translate3d(-1.9%, -.55%, 0);
  }
  48% {
    transform: scale(1.135) translate3d(.35%, .7%, 0);
  }
  100% {
    transform: scale(1.1) translate3d(1.85%, -.35%, 0);
  }
}

@keyframes humain-media-pan-b {
  0% {
    transform: scale(1.1) translate3d(-.65%, -1.65%, 0);
  }
  52% {
    transform: scale(1.14) translate3d(.7%, .35%, 0);
  }
  100% {
    transform: scale(1.095) translate3d(.25%, 1.55%, 0);
  }
}

@keyframes humain-media-pan-c {
  0% {
    transform: scale(1.12) translate3d(1.75%, .45%, 0);
  }
  46% {
    transform: scale(1.085) translate3d(.15%, -.65%, 0);
  }
  100% {
    transform: scale(1.13) translate3d(-1.75%, .3%, 0);
  }
}

@keyframes humain-media-light-pass {
  0%, 56% {
    opacity: 0;
    transform: skewX(-14deg) translate3d(-180%, 0, 0);
  }
  64% {
    opacity: .16;
  }
  82% {
    opacity: .06;
  }
  100% {
    opacity: 0;
    transform: skewX(-14deg) translate3d(720%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-media::before,
  .motion-media.is-motion-visible::before,
  .motion-media__image,
  .motion-media.is-motion-visible .motion-media__image {
    animation: none !important;
    scale: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
