.team-listing {
  --team-columns: 1;
  display: grid;
  grid-template-columns: repeat(var(--team-columns), minmax(0, 1fr));
  gap: 30px 15px;
  overflow: hidden;
}
p + .team-listing, h2 + .team-listing, h3 + .team-listing, h4 + .team-listing, h5 + .team-listing, h6 + .team-listing {
  margin-top: 3rem;
}
.team-listing + .team {
  margin-top: 3rem;
}
div + .team-listing {
  margin-top: 4rem;
}
.team-listing.team-fade .team-head:not(.open) h3, .team-listing.team-fade .team-head:not(.open) p {
  opacity: 0.35;
}

.team-head {
  width: 100%;
  min-width: 0;
  margin: 0;
  align-self: start;
  position: relative;
  cursor: pointer;
}
.team-head.no-headshot .profile {
  display: none;
}
.team-head.no-headshot .team-details {
  width: 100%;
  margin: 0;
  position: relative;
  left: auto;
  bottom: auto;
}
.team-head img {
  display: block;
  width: 100%;
  margin: 0;
  aspect-ratio: 1/1;
  object-fit: cover;
  height: 100%;
}
.team-head .profile {
  position: relative;
  display: block;
  width: 100%;
  height: 470px;
  background: #FAF8F3;
}
.team-head .team-details {
  display: flex;
  margin: 0;
  transition: background 0.18s ease-in-out;
  background-color: #FAF8F3;
  padding: 2rem;
  width: 90%;
  margin: 0 auto;
  position: absolute;
  left: 5%;
  bottom: 20px;
}
.team-head .team-details .title {
  width: 100%;
}
.team-head .team-details h3 {
  font-size: var(--wp--preset--font-size--font-19);
  font-weight: 400;
  border-bottom: 2px solid #163850;
  color: #163850;
  transition: color 0.18s ease-in-out, opacity 0.18s ease-in-out;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
}
.team-head .team-details p {
  font-size: var(--wp--preset--font-size--font-16);
  margin: 0;
  color: #2C5667;
  transition: color 0.18s ease-in-out, font-weight 0.18s ease-in-out, opacity 0.18s ease-in-out;
}
.team-head.open .team-details, .team-head:hover .team-details {
  background: #D2C8B8;
}
.team-head.open .team-details h3, .team-head.open .team-details p, .team-head:hover .team-details h3, .team-head:hover .team-details p {
  color: #040811;
}

.team-bio {
  display: none;
  grid-column: 1/-1;
  width: 100%;
  height: 0;
  transition: height 0.3s ease-in-out, border 0.3s ease-in-out;
  overflow: hidden;
}
.team-bio .inner {
  margin: 0 0 20px 0;
  opacity: 0;
}
@media (max-width: 782px) {
  .team-bio .inner {
    padding-top: 0;
  }
}
.team-bio .wp-block-columns {
  margin: 0;
}
.team-bio .wp-block-column:nth-child(2) {
  padding: var(--spacer);
  background: rgba(111, 107, 142, 0.3);
  border-radius: 5px;
}
.team-bio h3 {
  font-size: var(--wp--preset--font-size--font-22);
  font-weight: 400;
  margin-bottom: 1ch;
}
.team-bio p:last-of-type {
  margin: 0;
}
.team-bio.active-tab {
  display: block;
  grid-row: var(--team-bio-row);
  height: auto;
}
.team-bio.active-tab .inner {
  animation: fadeIn 1s forwards 0.15s;
}

@media (max-width: 699px) {
  .acc-panel {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
}
@media (min-width: 700px) {
  .team-listing {
    --team-columns: 2;
  }
}
@media (min-width: 1400px) {
  .team-listing {
    --team-columns: 3;
  }
}
