/**
 * Wambay — Swiper CSS
 * Custom pagination bullets met gradient animatie
 */

.swiper-pagination-bullet {
  background: var(--slider--bullet);
  /* active bullet takes this long to grow */
  transition: width 0.6s ease;
  border-radius: 20px;
  /* this keeps the animation inside the bullet */
  position: relative;
  overflow: hidden;
  /* relative bullet size for scaling, use vh on the height if you want to keep it a circle */
  height: 20px;
  width: 20px;
}

/* Gradient overlay */
.swiper-pagination-bullet::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--slider--bullet-gradient-from), var(--slider--bullet-gradient-to));
  transition: transform 7s linear;
  /* Start with gradient hidden */
  transform: scaleX(0);
  transform-origin: left;
  z-index: 0;
}

@keyframes fillGradient {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.swiper-pagination-bullet-active::before {
  transform: scaleX(1);
  /* Show gradient */
  animation: fillGradient 7s forwards;
}

.swiper-pagination-bullet-active {
  /* You can use vw to make it responsive, but i like this length */
  width: 48px;
}

/* Override some swiperjs preset making it width 100% */
.swiper-pagination-bullets.swiper-pagination-horizontal {
  width: auto;
}
