.team-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,.08);
  transition: box-shadow .2s;
}
.team-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.12); }

.team-card__image {
  background: #f0f0f0;
}

.team-card__image img {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
}

.team-card__body {
  padding: 1.25rem;
  text-align: center;
}

.team-card__name {
  margin: 0 0 .25rem;
  font-size: 1.2rem;
  text-align: center;
}

.team-card__job-title {
  color: #666;
  margin: 0 0 .75rem;
  font-size: .9rem;
  text-align: center;
}

.team-card__email,
.team-card__phone {
  margin: .25rem 0;
  font-size: .9rem;
  text-align: center;
}

.team-card__social {
  margin-top: .75rem;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   Agent Gallery Grid — Two-tier layout
   Featured cards (with job title) = 2 per row
   Standard cards = 3 per row
   Each group gets its own grid container so cards
   are a uniform width within each tier.
   ============================================================ */
.view-content--agent-gallery {
  margin: 0 auto;
}

.view-content--agent-gallery-featured {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  margin-bottom: 60px;
}

.view-content--agent-gallery-standard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}