.video-testimonial-section {
  overflow: clip;
}

.video-testimonial--light {
  background: var(--color-background-muted);
}

.video-testimonial--white {
  background: var(--color-white);
}

.video-testimonial__layout {
  display: grid;
  grid-template-areas:
    "content"
    "media"
    "footer";
  gap: 1.75rem;
  align-items: center;
}

.video-testimonial__content {
  grid-area: content;
  max-width: 44rem;
}

.video-testimonial__content h2 {
  max-width: 17ch;
}

.video-testimonial__media {
  grid-area: media;
  width: clamp(15.5rem, 78vw, 20rem);
  justify-self: center;
}

.video-testimonial__video,
.video-testimonial__teaser {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid rgb(35 30 32 / 14%);
  border-radius: var(--radius-large);
  background: var(--color-charcoal);
  box-shadow: 0 1.2rem 2.5rem rgb(35 30 32 / 16%);
}

.video-testimonial__video {
  height: auto;
  object-fit: contain;
}

.video-testimonial__teaser {
  position: relative;
  color: var(--color-white);
  text-decoration: none;
}

.video-testimonial__teaser img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-testimonial__teaser::after {
  position: absolute;
  inset: 45% 0 0;
  content: "";
  background: linear-gradient(to bottom, transparent, rgb(20 17 18 / 84%));
  pointer-events: none;
}

.video-testimonial__play {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: grid;
  width: 4.25rem;
  height: 4.25rem;
  place-items: center;
  border: 3px solid rgb(255 255 255 / 88%);
  border-radius: 50%;
  color: var(--color-charcoal);
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 0.5rem 1.5rem rgb(0 0 0 / 28%);
  transform: translate(-50%, -50%);
  transition: transform 160ms ease, background-color 160ms ease;
}

.video-testimonial__play svg {
  width: 2.25rem;
  height: 2.25rem;
}

.video-testimonial__teaser:hover .video-testimonial__play {
  background: var(--color-green-bright);
  transform: translate(-50%, -50%) scale(1.06);
}

.video-testimonial__watch {
  position: absolute;
  z-index: 1;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  color: var(--color-white);
  font-weight: 800;
  text-align: center;
}

.video-testimonial__watch,
.video-testimonial__secondary-link {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}

.video-testimonial__inline-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
}

.video-testimonial__quote {
  padding-left: 1rem;
  border-left: 4px solid var(--color-green-bright);
}

.video-testimonial__quote p {
  font-size: 1.15rem;
  font-weight: 700;
}

.video-testimonial__quote footer,
.video-testimonial__speaker,
.video-testimonial__features-label,
.video-testimonial__disclaimer {
  color: var(--color-text-muted);
}

.video-testimonial__quote footer {
  margin-top: 0.35rem;
}

.video-testimonial__features-label {
  margin-bottom: 0.55rem;
  font-weight: 700;
}

.video-testimonial__features {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.video-testimonial__features li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.video-testimonial__feature-icon {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  flex: 0 0 auto;
  color: var(--color-green);
}

.video-testimonial__footer {
  display: grid;
  grid-area: footer;
  gap: 1rem;
  max-width: 44rem;
}

.video-testimonial__actions {
  display: flex;
  gap: 1rem 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.video-testimonial__disclaimer {
  max-width: 56ch;
  font-size: 1rem;
  line-height: 1.5;
}

@media (min-width: 56rem) {
  .video-testimonial__layout {
    max-width: 64rem;
    column-gap: clamp(3rem, 7vw, 6.5rem);
    row-gap: 1.5rem;
  }

  .video-testimonial--video-left .video-testimonial__layout {
    grid-template-areas:
      "media content"
      "media footer";
    grid-template-columns: minmax(17rem, 20rem) minmax(0, 1fr);
  }

  .video-testimonial--video-right .video-testimonial__layout {
    grid-template-areas:
      "content media"
      "footer media";
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 20rem);
  }

  .video-testimonial--compact.video-testimonial--video-left .video-testimonial__layout {
    grid-template-columns: 17.5rem minmax(0, 1fr);
  }

  .video-testimonial--compact.video-testimonial--video-right .video-testimonial__layout {
    grid-template-columns: minmax(0, 1fr) 17.5rem;
  }

  .video-testimonial__media {
    width: 100%;
  }

  .video-testimonial__content {
    align-self: end;
  }

  .video-testimonial__footer {
    align-self: start;
  }
}

@media (max-width: 35rem) {
  .video-testimonial__actions,
  .video-testimonial__actions .button {
    width: 100%;
  }

  .video-testimonial__actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-testimonial__play {
    transition: none;
  }
}
