/* Shared, approved therapist section for the three core service pages. */
#therapists { scroll-margin-top: 7rem; }

.service-team {
  position: relative;
  z-index: 1;
  max-width: 70rem;
  margin: 0 auto;
  text-align: center;
}

.service-team > h2,
.service-team > .font-body {
  text-align: center !important;
}

.service-team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem;
  align-items: start;
  max-width: 67.5rem;
  margin: 2.5rem auto 2.125rem;
}

.service-team-member {
  min-width: 0;
  font-family: 'DM Sans', sans-serif;
  text-align: center;
}

.service-team-link {
  display: block;
  color: #0f172a;
  text-decoration: none;
}

.service-team-link:focus-visible {
  outline: 2px solid #4b7891;
  outline-offset: 8px;
  border-radius: 1.5rem;
}

.service-team-portrait {
  display: block;
  width: 180px;
  height: 225px;
  margin: 0 auto 1.375rem;
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: 0 8px 24px rgb(40 75 101 / 11%);
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.service-team-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 100%;
}

.service-team-link:hover .service-team-portrait {
  transform: translateY(-3px);
  box-shadow: 0 11px 27px rgb(40 75 101 / 15%);
}

.service-team-member h3 {
  margin: 0 0 .75rem;
  color: #0f172a;
  font-family: 'Playfair Display', serif;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.25;
  text-align: center !important;
  hyphens: none !important;
}

.service-team-link:hover h3 {
  color: #4b7891;
}

.service-team-member .service-team-credentials {
  min-height: 2.7rem;
  margin: 0;
  color: #677383;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: .1em;
  text-align: center !important;
  text-transform: uppercase;
  hyphens: none !important;
  word-spacing: normal !important;
}

.service-team-copy {
  max-width: 50rem;
  margin: 1.125rem auto 0;
  color: #475569;
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.7;
  text-align: center !important;
  hyphens: none !important;
  word-spacing: normal !important;
}

.service-team-founder,
.service-team-description {
  display: block;
  text-wrap: balance;
}

.service-team-founder { margin-bottom: .6em; }

@media (max-width: 820px) {
  .service-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.125rem 1.25rem;
    max-width: 38.75rem;
  }

  .service-team-member h3 { font-size: 22px; }
  .service-team-copy { font-size: 18px; }
}

@media (max-width: 450px) {
  .service-team-grid { gap: 1.875rem .875rem; }
  .service-team-portrait {
    width: 141px;
    height: 177px;
    margin-bottom: 1.125rem;
    border-radius: 1.25rem;
  }
  .service-team-member h3 { font-size: 20px; }
  .service-team-member .service-team-credentials {
    font-size: 11px;
    letter-spacing: .06em;
  }
  .service-team-copy {
    font-size: 17px;
    line-height: 1.75;
    text-align: left !important;
  }
  .service-team-description { text-wrap: pretty; }
}

/* Keep the enlarged portraits within their columns on narrow phones. */
@media (max-width: 359px) {
  .service-team-portrait {
    max-width: 100%;
    height: auto;
    aspect-ratio: 47 / 59;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-team-portrait { transition: none; }
  .service-team-link:hover .service-team-portrait { transform: none; }
}
