/* Das Team — group photo and member grid.

   Every class here is defined locally: this block only ever appears on the
   Ueber Uns page, so it must not depend on another component's stylesheet. */

.team-section {
  z-index: 99;
  position: relative;
}

.team-intro {
  max-width: 760px;
  margin-bottom: 40px;
}

.team-group-image-wrap {
  border-radius: var(--border-radius--lg, 16px);
  overflow: hidden;
  margin-bottom: 60px;
}

.team-group-image {
  width: 100%;
  height: auto;
  display: block;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-column-gap: 30px;
  grid-row-gap: 40px;
}

.team-member {
  display: flex;
  flex-direction: column;
}

.team-member-photo-wrap {
  border-radius: var(--border-radius--md, 12px);
  overflow: hidden;
  margin-bottom: 18px;
  background-color: var(--color--secondary-3, #f2f5f7);
}

.team-member-photo {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.team-member-name {
  font-family: var(--_typography---font-family--heading);
  color: var(--_color---heading);
  font-size: 20px;
  line-height: 1.3;
  font-weight: var(--_typography---h6--font-weight);
  margin-top: 0;
  margin-bottom: 6px;
}

.team-member-role {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 0;
  opacity: .8;
}

@media screen and (max-width: 991px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .team-member-photo {
    height: 280px;
  }

  .team-group-image-wrap {
    margin-bottom: 40px;
  }
}

@media screen and (max-width: 767px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 20px;
    grid-row-gap: 30px;
  }

  .team-member-photo {
    height: 260px;
  }
}

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

  .team-member-photo {
    height: 300px;
  }
}
