.testimonial {
  min-height: 650px;
  height: auto;
  padding: 80px 0;
  overflow: hidden;
  background: #fff;
}

.testimonial .eyebrow {
  margin-bottom: 24px;
}

.testimonial .quote-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: end;
  gap: 60px;
  min-height: 340px;
  height: auto;
}

.testimonial .quote-layout > img {
  width: 300px;
  height: 320px;
  border-radius: 20px;
  object-fit: cover;
  object-position: center 34%;
  transition: opacity 220ms ease, transform 320ms ease;
}

.testimonial .quote-layout blockquote {
  width: auto;
  margin: 0;
  color: #353536;
  font-size: 30px;
  font-weight: 400;
  line-height: 38px;
  letter-spacing: 0;
  transition: opacity 220ms ease, transform 320ms ease;
}

.testimonial .quote-layout.is-changing > img {
  opacity: 0;
  transform: scale(0.985);
}

.testimonial .quote-layout.is-changing blockquote {
  opacity: 0;
  transform: translateY(10px);
}

.testimonial-quote {
  margin: 0;
}

.testimonial-quote strong {
  font-weight: 600;
}

.testimonial-quote span {
  color: #c9c9c9;
  font-weight: 400;
}

.testimonial .quote-layout footer {
  display: flex;
  flex-direction: column;
  margin-top: 32px;
  font-size: 17px;
  line-height: 44px;
  letter-spacing: 0;
}

.testimonial .quote-layout footer strong {
  font-weight: 600;
}

.testimonial .quote-layout footer span {
  margin-top: 0;
  color: #6b6b6b;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.45;
}

.testimonial .quote-layout footer .testimonial-role {
  margin-top: 4px;
}

.testimonial .quote-layout footer .testimonial-company {
  margin-top: 1px;
}

.testimonial .testimonial-arrows {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  margin-top: 48px;
}

.testimonial .testimonial-arrows button {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eab800;
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

.testimonial .testimonial-arrows svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 220ms ease;
}

.testimonial .testimonial-arrows button:not(:disabled):hover svg {
  transform: translateX(3px);
}

.testimonial .testimonial-arrows button:disabled {
  background: #f3f3f3;
  color: #fff;
  cursor: default;
}

@media (prefers-reduced-motion: reduce) {
  .testimonial .quote-layout > img,
  .testimonial .quote-layout blockquote,
  .testimonial .testimonial-arrows svg {
    transition: none;
  }
}

@media (max-width: 980px) {
  .testimonial {
    height: auto;
    padding: 64px 0;
  }
  .testimonial .quote-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 40px;
    height: auto;
  }
  .testimonial .quote-layout > img {
    width: 260px;
    height: 260px;
  }
  .testimonial .quote-layout blockquote {
    font-size: 30px;
    line-height: 37px;
  }
  .testimonial .testimonial-arrows {
    margin-top: 40px;
  }
}

@media (max-width: 700px) {
  .testimonial .quote-layout {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
  }
  .testimonial .quote-layout > img {
    width: 100%;
    height: 260px;
  }
  .testimonial .quote-layout blockquote {
    font-size: 21px;
    line-height: 30px;
  }
  .testimonial-quote span {
    color: #9a9c9d;
  }
  .testimonial .quote-layout footer {
    margin-top: 24px;
    font-size: 16px;
    line-height: 24px;
  }
  .testimonial .quote-layout footer span {
    font-size: 14px;
    line-height: 21px;
  }
  .testimonial .testimonial-arrows button {
    width: 52px;
    height: 52px;
    font-size: 28px;
  }
}
