@keyframes fade-up {
  0% {
    opacity: 0;
    transform: translateY(2rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-right {
  0% {
    opacity: 0;
    transform: translateX(2rem);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fade-left {
  0% {
    opacity: 0;
    transform: translateX(-2rem);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes grow-in {
  0% {
    opacity: 0;
    transform: scale(0.55);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* /right bounce */

/*
*   Add a base delay.
*/
.aos.animate {
  animation-delay: 0.5s;
}

.origin-bottom {
  transform-origin: bottom;
}
.origin-top {
  transform-origin: bottom;
}

/*
*   Add the default state of each element before it is animated.
*   This should be the same as the 0% keyframes CSS
*/
.aos.fade-up {
  opacity: 0;
  transform: translateY(2rem);
}
.aos.fade-right {
  opacity: 0;
  transform: translateX(-2rem);
}
.aos.fade-left {
  opacity: 0;
  transform: translateX(2rem);
}

.aos.grow-in,
.products .swiper-slide {
  opacity: 0;
  transform: scale(0.55);
}

/*
*   Trigger the animation
*/
.animate.aos.fade-up {
  animation: fade-up 1s both;
}
.animate.aos.fade-left {
  animation: fade-left 1s both;
}
.animate.aos.fade-right {
  animation: fade-right 1s both;
}
.animate.aos.grow-in,
.swiper-slide > .wp-block-group,
.products .swiper-slide.swiper-slide-active {
  animation: grow-in 1s both;
}

@media (min-width: 1024px) {
  .products .swiper-slide.swiper-slide-active + .swiper-slide,
  .products .swiper-slide.swiper-slide-active + .swiper-slide + .swiper-slide {
    animation: grow-in 1s both;
  }
}

.products .swiper-slide img {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.25s;
}

.products .swiper-slide:hover img {
  opacity: 0.95;
  transform: translateY(-5px);
  box-shadow: var(--wp--preset--shadow--natural);
}

.swiper-slide > .wp-block-group {
  transform-origin: bottom;
}

.swiper-slide:nth-child(1) > .wp-block-group {
  animation-delay: calc(var(--baseDelay, 0.5s) + 0.25s) !important;
}

/*
*   Set some delays.  
*/
.animation-delay-1,
.animation-delay-stagger .aos:nth-child(1) {
  animation-delay: calc(var(--baseDelay, 0.5s) + 0.25s) !important;
}
.animation-delay-2,
.animation-delay-stagger .aos:nth-child(2) {
  animation-delay: calc(var(--baseDelay, 0.5s) + 0.5s) !important;
}
.animation-delay-3,
.animation-delay-stagger .aos:nth-child(3) {
  animation-delay: calc(var(--baseDelay, 0.5s) + 0.75s) !important;
}
.animation-delay-4,
.animation-delay-stagger .aos:nth-child(4) {
  animation-delay: calc(var(--baseDelay, 0.5s) + 1s) !important;
}

.animation-delay-5,
.animation-delay-stagger .aos:nth-child(5) {
  animation-delay: calc(var(--baseDelay, 0.5s) + 1.25s) !important;
}

.animation-delay-6,
.animation-delay-stagger .aos:nth-child(6) {
  animation-delay: calc(var(--baseDelay, 0.5s) + 1.5s) !important;
}

.animation-delay-7,
.animation-delay-stagger .aos:nth-child(7) {
  animation-delay: calc(var(--baseDelay, 0.5s) + 1.75s) !important;
}
