.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;
}

/* Grid team layout style */
.portrait[data-style=grid] {
  width: 200px;
  margin: 15px;
  padding: 20px;
  background: var(--background);
  border-radius: var(--rounded);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portrait[data-style=grid]:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.portrait[data-style=grid] .portrait-image {
  width: 120px;
  height: 120px;
  margin: 0 auto 15px auto;
  border: 3px solid var(--theme);
}

.portrait[data-style=grid] .icon {
  width: 30px;
  height: 30px;
  right: 10px;
  top: 10px;
  left: unset;
  transform: none;
  background: var(--theme);
  color: white;
  font-size: 14px;
}

.portrait[data-style=grid] .portrait-name {
  font-size: 16px;
  margin-bottom: 5px;
  text-align: center;
  color: var(--theme);
}

.portrait[data-style=grid] .portrait-description {
  font-size: 14px;
  text-align: center;
  color: var(--theme);
  margin-bottom: 10px;
  font-weight: 500;
}

.portrait[data-style=grid] .portrait-affiliation {
  font-size: 12px;
  text-align: center;
  color: var(--text-light);
  font-style: italic;
}

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