/* ============================================================
   TEAM — grid of person cards with portrait photo
   ============================================================ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.team-card {
  text-align: left;
}

/* Portrait photo — fixed 3:4 ratio */
.team-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;   /* keep faces visible when cropped */
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  transition: opacity 0.2s;
}

.team-card img:hover {
  opacity: 0.9;
}

.team-card h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.team-card span {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.team-card a,
.team-card a:link,
.team-card a:visited {
    color: #ed6b21 !important;
    text-decoration: underline !important;
}