/**
 * Slide content transitions — leave animation for `.ip_animate` elements.
 *
 * Pairs with slide-content-transitions.js, which adds `.is-leaving` to a slide
 * for the length of the slide transition when it stops being active.
 *
 * The bundle already defines the resting + enter states:
 *   .ip_swiper:not(.ip_animations-off) .ip_animate        -> opacity 0, y +1rem
 *   … .ip_slide.is-active .ip_animate                     -> opacity 1, y 0
 *
 * This file only adds the LEAVE state: content lifts up and out (the opposite
 * direction to the enter), independent of the slide's own transition. Edit the
 * transform / duration below to taste.
 */

.ip_swiper.ip_animations-each_visit .ip_slide.is-leaving .ip_animate {
  opacity: 0;
  transform: translate3d(0, -1.25rem, 0);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}
.ip_swiper .ip_slide {
  margin-top: -1px;
}
/* A clean, un-staggered exit — ignore the per-element enter delay classes. */
.ip_swiper .ip_slide.is-leaving .ip_animate {
  transition-delay: 0s !important;
}

@media (prefers-reduced-motion: reduce) {
  .ip_swiper .ip_slide.is-leaving .ip_animate {
    transition-duration: 0.01ms !important;
  }
}
