/* Video testimonials from Figma desktop 307:50 and mobile 306:24. */
#testimonials.has-video-testimonials {
  height: auto;
  min-height: 0;
  padding: 178px 0 100px;
}
#testimonials.has-video-testimonials > [data-node-id="1:201"] {
  width: 1205px;
  max-width: calc(100% - 120px);
  min-height: 225px;
  margin: 0 auto 105px;
}
.video-testimonial-track {
  display: flex;
  gap: 79px;
  height: auto;
  padding: 0 137px 20px;
  padding-right: calc(100% - 536px);
  scroll-padding: 137px;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  align-items: flex-start;
}
.video-testimonial-card {
  flex: 0 0 399px;
  min-width: 0;
  text-align: center;
  scroll-snap-align: start;
}
.testimonial-preview {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 399 / 885;
  overflow: hidden;
  border-radius: 20px;
  padding: 0;
  background: #151515;
  color: #fff;
}
.testimonial-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.testimonial-play {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  padding-left: 4px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #9f1a1ade;
  font-size: 30px;
  box-shadow: 0 2px 12px #0004;
}
.testimonial-preview:hover .testimonial-play {
  background: var(--brand);
}
.video-testimonial-card h3 {
  margin: 27px 0 0;
  font-family: Poppins, Montserrat, Arial, sans-serif;
  font-size: 30px;
  line-height: 45px;
  font-weight: 700;
}
.video-testimonial-card > p {
  margin: 0;
  font-family: Poppins, Montserrat, Arial, sans-serif;
  font-size: 30px;
  line-height: 45px;
  font-style: italic;
  font-weight: 400;
}
#testimonials.has-video-testimonials .carousel-controls {
  margin-top: 32px;
}
.testimonial-player {
  width: min(94vw, 480px);
  max-width: 94vw;
  max-height: 94dvh;
  padding: 14px;
  border: 0;
  border-radius: 16px;
  background: #171717;
  color: #fff;
  overflow: auto;
  box-shadow: 0 16px 70px #0009;
}
.testimonial-player::backdrop {
  background: #000c;
}
.testimonial-player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.testimonial-player h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}
.testimonial-player-close {
  width: 44px;
  height: 44px;
  flex: none;
  background: transparent;
  color: #fff;
  border-radius: 50%;
  font-size: 32px;
}
.testimonial-player video {
  display: block;
  width: 100%;
  max-height: 75dvh;
  object-fit: contain;
  background: #000;
}
.testimonial-video-error {
  padding: 14px 0;
  font-size: 14px;
}
.testimonial-video-error a {
  text-decoration: underline;
}
@media (max-width: 760px) {
  #testimonials.has-video-testimonials {
    height: auto;
    min-height: 0;
    padding: calc(82 * var(--mobile-unit)) 0 calc(12 * var(--mobile-unit));
  }
  #testimonials.has-video-testimonials > [data-node-id="1:201"] {
    width: calc(326 * var(--mobile-unit));
    max-width: none;
    min-height: calc(69 * var(--mobile-unit));
    margin: 0 auto calc(33 * var(--mobile-unit));
  }
  .video-testimonial-track {
    gap: calc(28 * var(--mobile-unit));
    height: auto;
    min-height: 0;
    padding: 0 calc(42 * var(--mobile-unit)) 0;
    padding-right: calc(100vw - 152 * var(--mobile-unit));
    scroll-padding: calc(42 * var(--mobile-unit));
  }
  .video-testimonial-card {
    flex-basis: calc(110 * var(--mobile-unit));
  }
  .testimonial-preview {
    aspect-ratio: 110 / 244;
    border-radius: calc(20 * var(--mobile-unit));
  }
  .testimonial-play {
    width: calc(38 * var(--mobile-unit));
    height: calc(38 * var(--mobile-unit));
    font-size: calc(16 * var(--mobile-unit));
    border-width: 1px;
  }
  .video-testimonial-card h3 {
    margin-top: calc(11 * var(--mobile-unit));
    font-size: calc(10 * var(--mobile-unit));
    line-height: calc(15 * var(--mobile-unit));
    white-space: nowrap;
  }
  .video-testimonial-card > p {
    font-size: calc(10 * var(--mobile-unit));
    line-height: calc(15 * var(--mobile-unit));
    white-space: nowrap;
  }
  #testimonials.has-video-testimonials .carousel-controls {
    margin-top: calc(12 * var(--mobile-unit));
    height: calc(28 * var(--mobile-unit));
  }
}
