.team {
  display: grid;
  gap: 2rem;
  margin-bottom: 4rem;
  grid-template-columns: 1fr 1fr 1fr 1fr;
}
@media (max-width: 767px) {
  .team {
    grid-template-columns: 1fr 1fr;
  }
}
.team figure {
  margin: 0;
  padding: 0;
  text-align: center;
  position: relative;
}
.team figure img {
  aspect-ratio: 1/1;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}
.team figure button {
  padding: 1rem 0 0 0;
  margin: 0;
  border: 0 none;
  appearance: none;
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
}
.team figure button::after {
  content: "";
  position: absolute;
  inset: 0;
}
.team-modal {
  border-radius: 1rem;
}
.team-modal[open] {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}
.team-modal::backdrop {
  opacity: 0.7;
  background: black;
}
.team-modal button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-weight: bold;
}
.team-modal-text {
  flex: 1 1 300px;
}
.team-modal-image {
  flex: 1 1 300px;
}
