.testimonials .testimonial-grid {
  grid-auto-rows: 1fr;
}

.testimonials .testimonial-card {
  min-height: 430px;
  overflow: hidden;
  position: relative;
}

.testimonials .testimonial-card::after {
  content: "“";
  position: absolute;
  top: 12px;
  right: 22px;
  color: rgba(105, 70, 200, .12);
  font: 600 78px/1 'Playfair Display', Georgia, serif;
  pointer-events: none;
}

.testimonials .testimonial-comment {
  position: relative;
  z-index: 1;
  margin-bottom: 30px;
  font-family: Manrope, Arial, sans-serif;
  font-size: clamp(16px, 1.35vw, 17px);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -.012em;
}

.testimonials .testimonial-person {
  position: relative;
  z-index: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 26px;
  text-align: center;
}

.testimonials .testimonial-avatar {
  width: 75px;
  height: 75px;
  flex-basis: 75px;
  border: 2px solid rgba(255, 255, 255, .66);
  background: #d9d3e6;
  box-shadow: 0 8px 19px rgba(23, 13, 49, .2);
}

.testimonials .testimonial-avatar::before,
.testimonials .testimonial-avatar::after {
  content: none;
}

.testimonials .testimonial-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonials .testimonial-person > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.testimonials .testimonial-person strong {
  font-size: 18px;
  line-height: 1.2;
}

.testimonials .testimonial-person span {
  max-width: 286px;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.4;
}

.dark-mode .testimonials .testimonial-card::after {
  color: rgba(216, 255, 97, .12);
}

@media (max-width: 900px) and (min-width: 761px) {
  .testimonials .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .testimonials .testimonial-grid {
    grid-auto-rows: auto;
  }

  .testimonials .testimonial-card {
    min-height: 0;
  }

  .testimonials .testimonial-comment {
    margin-bottom: 34px;
    font-size: 16px;
    line-height: 1.65;
  }

  .testimonials .testimonial-avatar {
    width: 70px;
    height: 70px;
    flex-basis: 70px;
  }
}
