/* Additive EPB motion layer.
   Existing page animation systems are detected and preserved by the companion JS. */
.epb-motion-target {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition:
    opacity .72s cubic-bezier(.2,.8,.2,1) var(--epb-motion-delay, 0ms),
    transform .72s cubic-bezier(.2,.8,.2,1) var(--epb-motion-delay, 0ms);
  will-change: opacity, transform;
}

.epb-motion-target[data-epb-motion-direction="left"] {
  transform: translate3d(-34px, 0, 0);
}

.epb-motion-target[data-epb-motion-direction="right"] {
  transform: translate3d(34px, 0, 0);
}

.epb-motion-target.epb-motion-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

@media (max-width: 767px) {
  .epb-motion-target,
  .epb-motion-target[data-epb-motion-direction="left"],
  .epb-motion-target[data-epb-motion-direction="right"] {
    transform: translate3d(0, 12px, 0);
    transition-duration: .46s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .epb-motion-target,
  .epb-motion-target[data-epb-motion-direction="left"],
  .epb-motion-target[data-epb-motion-direction="right"] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
