:root {
  --testimonial-lg: 26rem;
  --testimonial-md: 18rem;
}

.testimonials-wrapper {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.testimonials-title {
  gap: 1rem;
  display: flex;
  width: 75%;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}

.testimonials-title h1 {
  text-align: center;
  color: var(--brand-color);
  font-family: "Lexend";
  font-size: 1.5rem;
  font-weight: 700;
}

.testimonials-title button {
  border: none;
  background-color: inherit;
}

.reviews-rating {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.reviews-rating .rating {
  font-size: 1.1rem;
  font-weight: 700;
  margin-right: 0.5rem;
}

.rating-star {
  width: 1.8rem;
}

.testimonials-container {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
}

.testimonial {
  position: relative;
  min-height: calc(var(--testimonial-lg) * 1.1);
  min-width: calc(var(--testimonial-lg));
  display: flex;
  flex-direction: column;
  white-space: wrap;
}

.testimonial .frame {
  position: absolute;
  width: auto;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
}

.testimonial.center .frame {
  height: calc(var(--testimonial-lg) * 0.9);
  top: calc(var(--testimonial-lg) * 0.15);
}

.testimonial.side .frame {
  height: calc(var(--testimonial-md) * 0.9);
  top: calc(var(--testimonial-md) * 0.15);
}

.testimonial .picture {
  display: flex;
  background-color: lightgray;
  border-radius: 50%;
  position: relative;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border: 2px solid var(--brand-color);
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.4);
}

.testimonial .picture img {
  width: 100%;
}
.testimonial.center .picture {
  width: calc(var(--testimonial-lg) * 0.3);
  height: calc(var(--testimonial-lg) * 0.3);
  border: 3px solid var(--brand-color);
}

.testimonial.side .picture {
  width: calc(var(--testimonial-md) * 0.3);
  height: calc(var(--testimonial-md) * 0.3);
  border: 2px solid var(--brand-color);
}

.testimonial .reviews-rating {
  position: relative;
  display: flex;
  height: 1rem;
}

.testimonial .reviews-rating .rating-star {
  margin-top: 1rem;
  width: 1rem;
}

.testimonial-data {
  margin: 0 auto;
  margin-top: 0.5rem;
  width: 65%;
}

.author {
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  text-shadow: 5px 5px 10px black;
}

.quote {
  position: relative;
  padding-top: 1rem;
  font-style: italic;
  height: calc(var(--testimonial-lg) * 0.5);
  overflow-y: auto;
}

.testimonial-data.author {
  padding-top: 0.5rem;
}

.testimonial.center .end-line {
  width: 100%;
}

.end-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  opacity: 0.8;
  padding-right: 0.5rem;
}

.end-line img {
  width: 1.4rem;
}
