.portrait-wrapper {
  display: contents;
}

.portrait {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: 20px;
  width: 175px;
  max-width: calc(100% - 20px - 20px);
  text-decoration: none;
}

.portrait[data-style=small] {
  width: 100px;
}

.portrait[data-style=tiny] {
  flex-direction: row;
  gap: 15px;
  width: unset;
  text-align: left;
}

.portrait .icon {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: calc(20px + 10%);
  aspect-ratio: 1/1;
  border-radius: 999px;
  background: var(--background);
  box-shadow: var(--shadow);
  transform: translate(14%, 14%);
}

.portrait[data-style=small] .icon {
  left: -2px;
  top: -2px;
}

.portrait[data-style=tiny] .icon {
  display: none;
}

.portrait-image {
  width: 100%;
  margin-bottom: 20px;
  aspect-ratio: 1/1;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.portrait[data-style=tiny] .portrait-image {
  width: 50px;
  margin: 0;
}

.portrait-name {
  font-family: var(--heading);
  font-weight: var(--semi-bold);
}

.portrait[data-style=tiny] .portrait-description,
.portrait[data-style=tiny] .portrait-affiliation {
  display: none;
}

/* Team page card layout */
.team-page {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 36px;
  align-items: stretch;
}

/* Section titles take the full row */
.team-page h2 {
  grid-column: 1/-1;
  margin-top: 40px;
  margin-bottom: 0;
}

/* Each portrait becomes one card */
.team-page .portrait {
  display: grid;
  grid-template-columns: 140px 1fr;
  column-gap: 26px;
  align-items: center;
  width: 100%;
  max-width: none;
  min-height: 210px;
  margin: 0;
  padding: 28px 32px;
  background: var(--background);
  border: 1px solid var(--light-gray);
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.031372549);
  text-align: left;
  text-decoration: none;
}

/* Hide the icon on the avatar */
.team-page .portrait .icon {
  display: none;
}

/* Avatar */
.team-page .portrait-image {
  grid-column: 1;
  grid-row: 1/4;
  width: 140px;
  height: 140px;
  margin: 0;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: none;
}

/* Text column */
.team-page .portrait-name,
.team-page .portrait-description,
.team-page .portrait-affiliation {
  grid-column: 2;
}

/* Name */
.team-page .portrait-name {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

/* Role / description */
.team-page .portrait-description {
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text);
}

/* Affiliation */
.team-page .portrait-affiliation {
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text);
  opacity: 0.75;
}

/* Responsive: one column on smaller screens */
@media (max-width: 900px) {
  .team-page {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .team-page .portrait {
    grid-template-columns: 100px 1fr;
    column-gap: 18px;
    padding: 22px;
    min-height: 160px;
  }
  .team-page .portrait-image {
    width: 100px;
    height: 100px;
  }
}

/*# sourceMappingURL=portrait.css.map */