.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0;
}
@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
.team-grid__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  border-radius: 8px;
  padding: 32px 24px 24px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.team-grid__card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
  color: inherit;
  text-decoration: none;
}
.team-grid__portrait-wrap {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background-color: #e8edf0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  overflow: hidden;
  flex-shrink: 0;
}
.team-grid__portrait {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: top center;
     object-position: top center;
  border-radius: 50%;
  display: block;
}
.team-grid__portrait--placeholder {
  width: 100%;
  height: 100%;
  background-color: #c8d4db;
  border-radius: 50%;
}
.team-grid__name {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  color: #1a2530;
  margin: 0 0 8px;
  text-decoration: none;
}
.team-grid__position {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wp--preset--color--primary, #004f71);
  margin: 0 0 20px;
  line-height: 1.4;
}
.team-grid__actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
}
.team-grid__action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  background: #ffffff;
  color: var(--wp--preset--color--primary, #004f71);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}
.team-grid__action-btn:hover {
  background: var(--wp--preset--color--primary, #004f71);
  border-color: var(--wp--preset--color--primary, #004f71);
  color: #ffffff;
}
.team-grid__action-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  display: block;
}
