.testimonials-carousel {
  text-align: left;
  margin-top: var(--spacing-lg);
}
.testimonials-carousel__outer__wrapper {
  max-width: 1280px;
  position: relative;
  margin: 0 auto;
}
.testimonials-carousel__slider {
  overflow: hidden;
}
.testimonials-carousel__slider .swiper-slide {
  height: auto;
}
.testimonials-carousel__slider .swiper-slide > a {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #fff;
  cursor: zoom-in;
}
.testimonials-carousel__slider .swiper-slide > a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.testimonials-carousel__slider .swiper-slide picture {
  display: block;
  width: 100%;
  height: 100%;
}
.testimonials-carousel__slider .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
}
/* empty slides that Swiper may add to fill the loop */
.testimonials-carousel__slider .swiper-slide-blank {
  visibility: hidden;
}

/* Arrows on the sides, vertically centred on the slides, like the start page products carousel
   (/css/startPage/products-slider.css): on phones they overlap the slide edges, from 768px they sit outside. */
.testimonials-carousel .swiper-button-prev.testimonials-carousel__button-prev,
.testimonials-carousel .swiper-button-next.testimonials-carousel__button-next {
  position: absolute;
  top: 50%;
  bottom: auto;
}

@media screen and (max-width: 767px) {
  .testimonials-carousel .swiper-button-prev.testimonials-carousel__button-prev,
  .testimonials-carousel .swiper-button-next.testimonials-carousel__button-next {
    overflow: hidden;
  }
  .testimonials-carousel .swiper-button-prev.testimonials-carousel__button-prev {
    left: -14px;
    right: auto;
  }
  .testimonials-carousel .swiper-button-next.testimonials-carousel__button-next {
    right: -14px;
    left: auto;
  }
  .testimonials-carousel .swiper-button-prev.testimonials-carousel__button-prev::after {
    margin-left: 2px;
  }
  .testimonials-carousel .swiper-button-next.testimonials-carousel__button-next::after {
    margin-right: -2px;
  }
}

@media screen and (min-width: 768px) {
  .testimonials-carousel {
    margin-top: var(--spacing-xl);
  }
  .testimonials-carousel .swiper-button-prev.testimonials-carousel__button-prev {
    left: -62px;
    right: auto;
  }
  .testimonials-carousel .swiper-button-next.testimonials-carousel__button-next {
    right: -62px;
    left: auto;
  }
}

@media screen and (min-width: 992px) {
  .testimonials-carousel .swiper-button-prev.testimonials-carousel__button-prev {
    left: -64px;
  }
  .testimonials-carousel .swiper-button-next.testimonials-carousel__button-next {
    right: -64px;
  }
}
