/* Team (content-team.php). Colors assume a dark background (Design tab: Dark). */

.team .team-head {
  margin-bottom: 44px;
}

/* Leaders: large portraits */
.team-leaders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.team-leader .team-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
  background-color: #222222;
}
.team-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.team-leader:hover .team-photo img {
  transform: scale(1.03);
}
.team-leader h3 {
  margin-top: 22px;
  font-size: 34px;
}
.team-role {
  display: block;
  margin-top: 8px;
  font-family: "Katahdin Round", "Inter", system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e3893a;
}
.team-leader p {
  margin: 12px 0 0;
  font-size: 15.5px;
}

/* Second group heading, with a line above it */
.team-crew-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin: 96px 0 34px;
  padding-top: 44px;
  border-top: 1px solid #2e2b27;
}
.team-crew-head.team-crew-head-first {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.team-crew-head p {
  max-width: 420px;
  margin: 0;
  font-size: 15.5px;
}

/* Second group: small black and white photos */
.team-crew {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.team-mate .team-photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 2px;
  background-color: #222222;
}
.team-mate .team-photo img {
  object-position: center center;
  filter: grayscale(1) contrast(1.06) brightness(0.96);
  transition: filter 0.4s;
}
.team-mate:hover .team-photo img {
  filter: grayscale(0.85) contrast(1.06);
}
.team-mate b {
  display: block;
  margin-top: 14px;
  font-family: "Charpentier", "Garamond Fill", Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
}
.team-mate span {
  display: block;
  margin-top: 6px;
  font-family: "Katahdin Round", "Inter", system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #cbc4bc;
}


/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
  .team-crew {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
  .team-leaders {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .team-crew-head {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 70px;
  }
  .team-crew {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
