.testimonial-slide {
  outline: none;
}

/* Until the slider starts, only the first person shows, so that the page does not jump. */
.testimonial-slider:not(.slick-initialized) .testimonial-slide + .testimonial-slide {
  display: none;
}

/* On large screens every slide takes the height of the tallest one, so that the arrows do not move from one
   testimonial to the next; the text is centred in that height. Slick wraps each slide in two divs (its "rows" option). */
@media (min-width: 992px) {
  .testimonial-slider .slick-track {
    display: flex;
  }

  .testimonial-slider .slick-slide {
    float: none;
    height: auto;
  }

  .testimonial-slider .slick-slide > div,
  .testimonial-slide,
  .testimonial-slide > .row {
    height: 100%;
  }
}

/* One 4:3 frame for the video images and the site photos alike; portraits keep their upper part, where the faces are. */
.testimonial-media {
  position: relative;
  max-width: 520px;
}

.testimonial-media img,
.testimonial-media video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
}

.testimonial-media img {
  object-fit: cover;
  object-position: 50% 25%;
}

/* The 16:9 video shows whole inside the frame of the image it replaces. */
.testimonial-media video {
  background: #000;
  object-fit: contain;
}

/* Same look as the hero play button (.play-btn in style.css / animation.css), smaller, centred on the video.
   Centred with inset/margin, not transform: the hover effect owns transform. */
.testimonial-media-play {
  position: absolute;
  inset: 0;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 3px solid rgb(178 190 201);
  border-radius: 50%;
  background: rgba(19, 49, 93, .55);
  color: rgba(240, 248, 255, .68);
  transition: background-color .3s ease, transform .3s ease;
}

.testimonial-media-play svg {
  width: 30px;
  height: 31px;
  margin-left: 6px;
}

.testimonial-media-play:hover,
.testimonial-media-play:focus-visible {
  background: rgba(19, 49, 93, .75);
  transform: scale(1.05);
}

@media (prefers-reduced-motion: no-preference) {
  .testimonial-media-play::before {
    content: "";
    position: absolute;
    inset: -8px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    animation: playPulse 2.2s ease-out infinite;
  }

  .testimonial-media-play svg {
    animation: playFloat 2.5s ease-in-out infinite;
  }
}

.testimonial-quote {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}



.testimonial-quote p {
  margin: 0;
  color: var(--white-color);
  font-size: var(--fs-xl);
  line-height: 1.42;
  font-style: italic;
  font-weight: 300;
}

.testimonial-author {
  margin-top: 28px;
}

.testimonial-author h4 {
  margin: 0 0 5px;
  color: var(--white-color);
  font-size: var(--fs-lg);
  font-weight: 400;
}

.testimonial-author p {
  margin: 0;
  color: rgba(255, 255, 255, .8);
  font-size: var(--fs-sm);
  font-weight: 300;
}

.testimonial-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.testimonial-more {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.testimonial-more .testimonial-btn {
  margin-top: 0;
}

.testimonial-arrow {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--white-color);
  border-radius: 50%;
  background: transparent;
  color: var(--white-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.testimonial-arrow span {
  font-size: 1.875rem;
  line-height: 1;
  margin-top: -4px;
}

.testimonial-arrow:hover {
  background: var(--white-color);
  color: var(--primary-color);
}

.testimonial-arrow:hover svg path {
  stroke: var(--primary-color) !important;
}

@media (max-width: 575px) {
  .testimonial-quote {
    gap: 3px;
  }

  .testimonial-quote p {
    line-height: 1.5;
  }

  .testimonial-author p {
    font-size: var(--fs-xs);
  }
}
