/* Meet the Team page (page-meet-the-team.php), layout of
   Absolute_Nomads_Staff_Template_Revised.html in the site's fonts and colours. */

.an-team {
  --an-team-red: #d71921;
  --an-team-blue: #394d80;
  --an-team-text: #4a4f5c;
  --an-team-ph: #f1e5d8;
  --an-team-ph-text: #8a8174;
  padding: 56px 0 80px;
  font-family: 'Baloo Paaji 2', sans-serif;
  color: var(--an-team-text);
}

.an-team__head {
  margin: 0 0 48px;
  text-align: center;
}
.an-team__title {
  margin: 0 0 8px;
  color: var(--an-team-blue);
  font-family: PantonRustExtraBoldBase, 'Baloo Paaji 2', sans-serif;
  font-size: clamp(30px, 3.2vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
}
.an-team__intro {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
}

.an-team__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 72px 48px;
  max-width: 1136px;
  margin: 0 auto;
}
.an-team__profile {
  min-width: 0;
  text-align: center;
  scroll-margin-top: 110px;
}
.an-team__photo {
  position: relative;
  width: 170px;
  height: 170px;
  margin: 0 auto 20px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--an-team-ph);
}
.an-team__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
/* Placeholder for a photo not uploaded yet (also on the About Us preview) */
.an-team__ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: #f1e5d8;
  color: #8a8174;
  font-size: 13px;
  line-height: 1.3;
  text-align: center;
}
.an-team__name {
  margin: 0 0 5px;
  color: var(--an-team-blue);
  font-family: 'Baloo Paaji 2', sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
}
.an-team__role {
  margin: 0 0 22px;
  color: var(--an-team-red);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}
.an-team__bio {
  max-width: 300px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
  text-align: left;
}
.an-team__bio p {
  margin: 0 0 16px;
  text-align: left;
}
.an-team__bio p:last-child {
  margin-bottom: 0;
}
.an-team__content {
  max-width: 820px;
  margin: 64px auto 0;
}

@media (max-width: 991.98px) {
  .an-team__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 36px;
  }
}
@media (max-width: 575.98px) {
  .an-team {
    padding: 36px 0 56px;
  }
  .an-team__head {
    margin-bottom: 36px;
  }
  .an-team__intro {
    font-size: 16px;
  }
  .an-team__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .an-team__profile {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
  }
}
