#team .team-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

#team .team-grid .wide {
  grid-column: span 1 !important;
}

#team .team-grid img {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 5 !important;
  object-fit: cover !important;
}

@media (max-width: 800px) {
  #team .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

.team-grid article {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.team-grid .credentials {
  margin-top: 3px;
  color: #173f52;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.team-grid .credentials span {
  display: block;
  margin: 0;
  font: inherit;
  letter-spacing: 0;
}

.team-grid .career-details {
  margin-top: auto;
  padding-top: 18px;
}

.team-grid .career-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid #c4d0d3;
  border-bottom: 1px solid #c4d0d3;
  color: #173f52;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  list-style: none;
}

.team-grid .career-details summary::-webkit-details-marker {
  display: none;
}

.team-grid .career-details summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.team-grid .career-details[open] summary::after {
  content: '−';
}

.team-grid .career-details summary:focus-visible {
  outline: 2px solid #006994;
  outline-offset: 3px;
}

.team-grid .career-details ul {
  margin: 13px 0 0;
  padding-left: 18px;
  color: #526d78;
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.team-grid .career-details li + li {
  margin-top: 5px;
}

@media (max-width: 800px) {
  .team-grid .credentials,
  .team-grid .career-details summary {
    font-size: 13px;
  }

  .team-grid .career-details ul {
    font-size: 12px;
  }
}
