.team-members {
  display: grid;
  grid-gap: 40px;
  padding: 0;
  margin: 0 auto;
  max-width: 1200px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* responsive but caps min size */
}

.team-member-image {
  width: 200px;
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 480px) {
  .team-members { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .team-members { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .team-members { grid-template-columns: repeat(4, 1fr); }
}

.team-wrapper .col {
  all: unset;
  display: block;
}

.nectar_team_member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 10px;
}


.team-meta h3 {
  margin-top: 8px;
  font-weight: bold;
  font-size: 18px;
}
.team-meta h5 {
  font-style: italic;
  color: #444;
  margin-bottom: 0;
}

.team-members-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.team-filter {
  position: relative;
}
.team-filter-label {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 4px;
  display: block;
}
.team-filter-select {
  display: block;
  padding: 8px 12px;
  background: #fff;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  min-width: 120px;
}
.team-filter-checkboxes {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  z-index: 9999;
  padding: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-height: 240px;
  overflow-y: auto;
  width: max-content;
  min-width: 120px;
}
.team-filter-checkboxes label {
  display: flex;
  align-items: center;
  font-size: 13px;
  margin-bottom: 6px;
}
.team-filter-checkboxes input {
  margin-right: 8px;
}

.team-search {
  margin-bottom: 24px;
}
.team-search input {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  box-sizing: border-box;
}

.nectar_team_bio {
  display: none;
}
.team-member-hide {
  display: none !important;
}

.load-all-team-members {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 16px;
}
.load-all-team-members-button {
  font-size: 14px;
}

.team-filter.team-clear a {
  margin-top: 28px;
  display: inline-block;
  font-size: 13px;
  color: #555;
  text-decoration: underline;
  cursor: pointer;
}