/* ==========================================
   TEAM DIRECTORY – Portrait Grid (300x450)
   ========================================== */

.team-directory{
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px 16px 44px;
}

/* Title: add more space from cards */
.team-directory__title{
  font-size: 64px;
  line-height: 1.02;
  margin: 10px 0 48px; /* increased spacing */
}

/* Grid */
.team-list{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 24px;
}

/* Card: no border/box */
.team-card{
  border: none;
  background: transparent;
  padding: 0;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Portrait image frame (2:3 ratio = 300x450) */
.team-card__avatar{
  width: 100%;
  aspect-ratio: 2 / 3;      /* matches 300x450 */
  border-radius: 14px;
  overflow: hidden;
  background: #f2f2f2;
}

/* Fill frame, reduce “zoom” feeling by cropping a bit lower */
.team-card__avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;

  /* kill any theme hover zoom */
  transform: none !important;
  transition: none !important;
}

/* Text under image */
.team-card__meta{
  padding-top: 14px;
}

.team-card__name{
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.team-card__title{
  margin-top: 6px;
  font-size: 14px;
  opacity: 0.7;
}

.team-card__contacts{
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Prevent theme from styling links weirdly */
.team-card a{
  text-decoration: none !important;
}

.team-card__link{
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.25;
}

.team-card__link--phone{
  font-size: 14px !important;
  font-weight: 500 !important;
  opacity: 0.85;
}

/* Responsive */
@media (max-width: 1024px){
  .team-directory__title{
    font-size: 54px;
    margin-bottom: 40px;
  }
  .team-list{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px){
  .team-directory__title{
    font-size: 42px;
    margin-bottom: 32px;
  }
  .team-list{
    grid-template-columns: 1fr;
  }
}
