/* Swiper https://swiperjs.com/get-started */

.swiper {
  --swiper-pagination-bullet-horizontal-gap: 4px;
  --swiper-pagination-bullet-size: 8px;
  --swiper-navigation-sides-offset: 22px;
  --swiper-navigation-size: 22px;
   overflow: hidden;
}

.swiper-wrapper {
  will-change: transform;
}

/* No width here: Swiper calculates slide widths itself */
.swiper-slide {
  display: flex;
  flex-shrink: 0;
  height: auto;
  backface-visibility: hidden;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.swiper-button-next,
.swiper-button-prev {
  min-width: var(--swiper-navigation-size);
  min-height: var(--swiper-navigation-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.swiper-pagination-bullet {
  background-color: currentColor;
  transition: var(--transition);
}

/* Swiper full width adjustments */

.swiper.alignfull .swiper-slide > * {
  width: 100%;
  min-width: 100%;
}

/* Swiper wide width adjustments */

.swiper.alignwide .swiper-slide > * {
  width: 100%;
  min-width: 100%;
}

/** If showing only n items, hide others before Swiper initializes */

.wp-theme-bds .carousel:not(.swiper-initialized) > *:not(:first-child),
.wp-theme-bds .carousel.show-1:not(.swiper-initialized) > *:not(:first-child) {
  display: none;
}

.wp-theme-bds .carousel.show-2:not(.swiper-initialized) > *:nth-child(n + 3) {
  display: none;
}

.wp-theme-bds .carousel.show-3:not(.swiper-initialized) > *:nth-child(n + 4) {
  display: none;
}

.wp-theme-bds .carousel.show-4:not(.swiper-initialized) > *:nth-child(n + 5) {
  display: none;
}

.wp-theme-bds .carousel.show-5:not(.swiper-initialized) > *:nth-child(n + 6) {
  display: none;
}

.wp-theme-bds .carousel.show-6:not(.swiper-initialized) > *:nth-child(n + 7) {
  display: none;
}

/** Alignment classes */

.swiper.x-align-left > .swiper-wrapper > .swiper-slide {
  justify-content: flex-start;
}

.swiper.x-align-center > .swiper-wrapper > .swiper-slide {
  justify-content: center;
}

.swiper.x-align-right > .swiper-wrapper > .swiper-slide {
  justify-content: flex-end;
}

.swiper.y-align-top > .swiper-wrapper {
  align-items: flex-start;
}

.swiper.y-align-center > .swiper-wrapper {
  align-items: center;
}

.swiper.y-align-bottom > .swiper-wrapper {
  align-items: flex-end;
}

.swiper.y-align-stretch > .swiper-wrapper {
  align-items: stretch;
}
