.team-component {
  color: #222528;
}

.team-component__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  margin-bottom: 80px;
}

.team-component__title {
  margin: 0;
  color: #222528;
  font-family: "contralto-small", serif;
  font-size: 40px;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
}

.team-component__lead {
  margin: 0;
  color: #9e9a95;
  font-family: "Outfit", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 1.6;
}

.team-alt .team-component__header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.team-alt .team-component__title {
  margin-bottom: 0;
}

.team-alt .team-component__lead {
  font-family: "contralto-small", serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}

.team-component--align-center .team-component__header,
.team-component--align-right .team-component__header {
  grid-template-columns: minmax(0, 1fr);
}

.team-component--align-center .team-component__header {
  justify-items: center;
  text-align: center;
}

.team-component--align-right .team-component__header {
  justify-items: end;
  text-align: right;
}

.team-component__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.team-card__photo-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: 1px solid #b3bbd9;
  border-radius: 400px;
}

.team-card__photo-wrap {
  width: 200px;
  height: 200px;
  overflow: hidden;
  border-radius: 400px;
  background: #f6f4f3;
}

.team-card__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__content {
  width: 100%;
}

.team-card__name {
  margin: 0 0 8px;
  color: #2f2f2f;
  font-family: "contralto-small", serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
}

.team-card__meta {
  color: #9e9a95;
  font-family: "Outfit", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 1.6;
}

.team-card__role,
.team-card__contact {
  margin: 0;
}

@media (max-width: 1199px) {
  .team-component__header {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-bottom: 56px;
  }

  .team-component__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .team-component__title {
    font-size: 32px;
  }

  .team-component__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .team-card__photo-wrap {
    width: 180px;
    height: 180px;
  }
}
