.testimonials-card {
  position: relative;
  padding: 40px 100px;
  background: var(--white);
  border: 1px solid var(--orange);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
  text-align: center;
}

.testimonials-card .testimonials-title {
  margin: 0 0 24px;
}

.testimonials-carousel {
  position: relative;
}

/* Owl Carousel sets user-select: none on draggable slides; quotes should be selectable */
.testimonials-carousel .owl-item,
.testimonials-carousel.owl-drag .owl-item {
  -webkit-user-select: text;
  user-select: text;
}

.testimonials-carousel .testimonial {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.testimonials-carousel .testimonial-image {
  margin: 0;
}

.testimonials-carousel .testimonial-image img {
  display: block;
  width: 100%;
  aspect-ratio: 600 / 185;
  object-fit: cover;
}

.testimonials-carousel .testimonial-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 104px;
}

.testimonials-card .testimonials-carousel blockquote {
  margin: 0;
  padding: 0;
  border: 0 !important;
  width: 100%;
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
}

.testimonials-card .testimonials-carousel blockquote p {
  margin: 0;
  padding: 0;
  border: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.testimonials-carousel .testimonial-content {
  gap: 24px;
}

/* Owl clips overflow, so widen the carousel into the card padding for the arrows */
.testimonials-card .testimonials-carousel {
  width: auto; /* owl sets 100%, which would ignore the negative margins */
  margin: 0 -76px;
}

.testimonials-carousel .testimonial-image {
  margin: 0 76px;
}

/* Quote + name sit together between the arrows */
.testimonials-carousel .testimonial-quote {
  flex: 1 1 auto;
  margin: 0;
}

.testimonials-carousel .testimonial-quote figcaption {
  margin-top: var(--space-s);
}

.testimonials-carousel .testimonial-name {
  font-family: var(--secondary-font);
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  color: var(--dark);
}

.testimonials-carousel .testimonial-arrow {
  flex: 0 0 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  cursor: pointer;
  transition: background-color .2s;
}

.testimonials-carousel .testimonial-arrow:hover,
.testimonials-carousel .testimonial-arrow:focus-visible {
  background: var(--dark-gray); /* same hover as the orange buttons */
}

.testimonials-carousel .testimonial-arrow:focus-visible {
  outline: 3px solid var(--dark);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .testimonials-card {
    padding: 24px 20px;
  }

  .testimonials-carousel .testimonial-content {
    flex-wrap: wrap;
    justify-content: center;
    min-height: 0;
  }

  .testimonials-card .testimonials-carousel,
  .testimonials-carousel .testimonial-image {
    margin: 0;
  }

  .testimonials-carousel .testimonial-quote {
    flex: 0 0 100%;
  }

  .testimonials-carousel .testimonial-arrow {
    order: 1;
  }
}
