/* Preserve the full proportions of the professional portraits. */
.profile-portrait,
.adriana-portrait {
  width: min(100%, 370px);
  max-width: 370px;
  margin: 0 auto;
}

.profile-portrait img,
.adriana-portrait img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

/* Support the original image and the frame added by animations.js. */
.team-card > img.professional-portrait,
.team-card > .motion-image-frame > img.professional-portrait {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: contain;
  object-position: center;
  background: #d6ddd8;
}

.team-card > img.isis-portrait-photo,
.team-card > .motion-image-frame > img.isis-portrait-photo {
  background: #075ed4;
}

/* The source has little headroom; the general parallax zoom would crop it. */
.profile-portrait img,
.adriana-portrait img,
img.professional-portrait {
  transform: none !important;
}

.profile-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
}

.profile-section-nav a {
  color: var(--azul-profundo);
  font-size: .88rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.profile-section-nav a:focus-visible {
  outline: 3px solid var(--azul);
  outline-offset: 5px;
  border-radius: 2px;
}

.profile-cv-heading {
  grid-template-columns: 1fr;
}

.profile-credential-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.profile-credential h3 {
  margin: 0 0 12px;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.4;
}

.profile-credential h3:last-child {
  margin-bottom: 0;
}

.profile-institution {
  font-weight: 600;
}

.profile-credential .profile-study-status {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 0;
  padding: 7px 12px;
  border-radius: 12px;
  color: var(--azul-profundo);
  background: #e2f7f1;
  font-size: .88rem;
  font-weight: 600;
}

.profile-career {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-career-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(155px, .28fr) minmax(0, 1fr);
  gap: 32px;
  padding: 28px 0 28px 28px;
  border-left: 2px solid var(--linea);
}

.profile-career-item::before {
  content: "";
  position: absolute;
  top: 34px;
  left: -7px;
  width: 12px;
  height: 12px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--azul);
  box-shadow: 0 0 0 2px var(--linea);
}

.profile-career-item + .profile-career-item {
  border-top: 1px solid var(--linea);
}

.profile-career-item h3 {
  margin: 0 0 8px;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
}

.profile-career-item p {
  margin: 0;
  color: var(--texto-suave);
  line-height: 1.65;
}

.profile-career-item .profile-institution {
  margin-bottom: 10px;
  color: var(--azul-profundo);
}

.profile-career-item .profile-period {
  color: var(--azul-profundo);
  font-size: .88rem;
  font-weight: 600;
}

@media (max-width: 640px) {
  .profile-credential-grid,
  .profile-career-item {
    grid-template-columns: 1fr;
  }

  .profile-career-item {
    gap: 12px;
    padding-left: 22px;
  }
}
