/* Keep profile styles local to the team page; all photos retain their proportions. */
.team-page .about-heading {
  max-width: 70rem;
}

.team-page .about-title {
  font-size: clamp(2.2rem, 7.5vw, 5.5rem);
  line-height: 1.2;
}

.team-page #app > .about-content-section > .container-fluid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 72rem;
  margin-inline: auto;
}

.team-page .section-heading {
  grid-column: 1 / -1;
  grid-row: 1;
}

.team-page .section-title {
  font-size: clamp(1.35rem, 4.5vw, 2.5rem);
}

.team-page .section-description {
  margin-left: 0;
  max-width: none;
}

.team-page .detail-image-figure {
  width: 100%;
  max-width: 16rem;
  grid-row: 2;
  margin-top: 0 !important;
  margin-bottom: 1.25rem;
}

.team-page .detail-image {
  border-radius: 0;
}

@media (min-width: 768px) {
  .team-page #app > .about-content-section > .container-fluid {
    grid-template-columns: minmax(12rem, 17rem) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    column-gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
  }

  .team-page .section-heading {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .team-page .section-description {
    grid-column: 2;
  }

  .team-page .detail-image-figure {
    grid-column: 1;
    grid-row: 2 / 4;
    max-width: 17rem;
    margin-bottom: 0;
  }
}

/* Keep the entire poster visible at its original aspect ratio. */
.team-page .team-poster { display: block; width: 100%; }
.team-page .team-poster .detail-image {
  aspect-ratio: 950 / 1188;
  object-fit: contain;
  height: auto;
}

