.team-photo {
  display: block;
  width: 100%;
  object-fit: cover;
  object-position: center 18%;
  background: #111;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.team-card {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.team-card img.team-photo {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  margin-bottom: 24px;
}

.team-card strong {
  margin-top: auto;
  padding-top: 20px;
}

.team-card:hover h3,
.team-card:focus-visible h3 {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.team-card:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}

.team-photo-profile {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  align-self: start;
}

.team-profile .socials {
  margin-top: 28px;
}

.team-back {
  display: inline-block;
  margin-top: 32px;
}

.team-back:hover,
.team-back:focus-visible {
  text-decoration: underline;
  text-underline-offset: 7px;
}

.team-work {
  background: #090909;
  color: #fff;
}

.team-work-copy {
  max-width: var(--max);
  margin: 0 auto;
  padding: 88px max(6vw, 24px) 36px;
}

.team-work h2 {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
}

@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 580px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-work-copy {
    padding-top: 64px;
  }
}
