.portrait-wrapper {
  display: contents;
}

/* Center the portrait grid within its section */
section:has(.portrait) {
  text-align: center;
}

.portrait {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: 16px;
  width: 200px;
  max-width: calc(100% - 16px - 16px);
  text-decoration: none;
  transition: transform 0.3s ease;
}

.portrait:hover {
  transform: translateY(-3px);
}

.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%;
  max-width: 200px;
  margin-bottom: 16px;
  height: auto;
  aspect-ratio: 1/1;
  border-radius: var(--rounded);
  object-fit: cover;
  box-shadow: var(--shadow);
  border: 3px solid var(--border);
  transition: border-color 0.3s ease;
}

.portrait:hover .portrait-image {
  border-color: var(--secondary);
}

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

.portrait-name {
  font-family: var(--heading);
  font-weight: var(--semi-bold);
  white-space: nowrap;
  color: var(--primary);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.portrait-description {
  display: block;
  text-align: center;
  line-height: 1.4;
  min-height: 2.4em;
  width: 100%;
  color: var(--gray);
  font-size: 0.9rem;
}

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