@layer modules {
  #testimonial-slider {
    padding: 6rem max((100% - 1150px) / 2 + 2rem, 2rem);
    background: linear-gradient(180deg, #E6F3FC, #fff);
    position: relative;
    testimonial-slider {
      overflow: clip;
      &::part(dots){
        margin: .5rem calc(250px / 2 + 2rem);
        translate: -50% 0;
      }
    }
    .testimonial-slide {
      display: grid;
      grid: 1fr 2.5rem auto auto 1fr / 250px 1fr;
      place-items: center start;
      gap: 0 4rem;
      padding: 1rem 2rem;
    }
    .headshot {
      grid-row: 1 / -1;
      max-width: 100%;
      max-height: 100%;
      width: auto;
      height: auto;
      border-radius: 3rem;
    }
    .wordmark {
      grid-area: 2 / 2;
      height: 2.5rem;
    }
    blockquote {
      grid-area: 3 / 2;
      display: grid;
      grid: auto / 1fr;
      gap: 1rem;
      margin: 0;
    }
    p {
      font-size: clamp(1.3rem, 2vw + .5rem, 1.5rem);
      font-weight: 600;
      line-height: 1.3;
      margin: 0.5rem 0 1rem;
    }
    cite {
      font-weight: 600;
      font-style: normal;
      font-size: 1.1rem;
      i {
        font-weight: normal;
        font-style: normal;
      }
    }
    a {
      @media (width > 1000px){
        position: absolute;
        bottom: 3rem;
        left: 23.5rem;
      }
      text-align: center;
      display: block;
      color: #091121;
      grid-area: 4 / 2;
      margin-top: 1rem;
      font-size: 1.1rem;
      font-weight: 600;
      text-decoration: underline transparent;
      text-decoration-thickness: 2px;
      text-underline-offset: .5rem;
      transition: text-decoration-color .2s, color .2s, opacity .2s;
      &:hover { text-decoration-color: currentcolor; }
    }

    @media (width < 1000px){
      testimonial-slider::part(dots) { margin: 0 auto 0 50%; }
      .testimonial-slide {
        grid: 320px 4rem auto auto 1fr / 1fr;
        place-items: start center;
        text-align: center;
      }
      :is(.headshot, .wordmark, blockquote, a) { grid-area: auto; }
      .wordmark { place-self: center; }
    }
    @media (width < 700px){
      .testimonial-slide { padding-inline: 0; }
    }
  }
}
