.personhead {
  width: 50%;
}

@media (max-width: 820px) {
  .personhead {
    width: 80%;
  }

  p,
  li {
    font-size: 0.8rem;
  }
}

.hero-stats {
  justify-content: space-around;
}

.muted {
  color: var(--muted);
}

/* Team */
.grid.team {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 22px;
}
@media (max-width: 960px) {
  .grid.team {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 640px) {
  .grid.team {
    grid-template-columns: repeat(2, 1fr);
  }
}
.person {
  border: 1px solid #f4e1eb;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 12px;
  height: 100%;
  width: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.person img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 14px;
}
.person h3 {
  font-size: 0.9rem;
  margin: 10px 0 4px;
  text-align: center;
}
.person p {
  font-size: 0.8rem;
}
.role {
  text-align: center;
  font-weight: 500;
  color: #333;
  margin: 0 0 6px;
}



/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 60;
  padding: 40px;
}
.modal.open {
  opacity: 1;
  pointer-events: auto;
}
body.modal-open {
  overflow: hidden;
}
.modal-dialog {
  width: min(900px, 92vw);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border: 1px solid #f4e1eb;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}
.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}
.modal-content {
  padding: 22px;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: #fff;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
}
@media (max-width: 820px) {
  .modal-dialog {
    grid-template-columns: 1fr;
    width: auto;
  }
  .modal-media img {
    border-bottom-left-radius: 0;
    border-top-right-radius: 20px;
  }
}
