/* Specialist profile header avatars */
.specialist-avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold-dark);
  float: right;
  margin: 0 0 1rem 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.specialist-avatar:hover {
  transform: scale(1.08);
  box-shadow: 0 0 24px color-mix(in srgb, var(--gold-metallic) 45%, transparent);
}

/* ==========================================================================
   Specialist Avatar Lightbox
   ========================================================================== */

.avatar-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(1, 2, 1, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.avatar-lightbox--visible {
  opacity: 1;
}

.avatar-lightbox__img {
  max-width: min(520px, 90vw);
  max-height: 90vh;
  border-radius: 12px;
  border: 2px solid var(--gold-dark);
  box-shadow:
    0 0 40px rgba(0, 0, 0, 0.8),
    0 0 80px color-mix(in srgb, var(--gold-metallic) 20%, transparent);
  cursor: default;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.avatar-lightbox--visible .avatar-lightbox__img {
  transform: scale(1);
}

/* ==========================================================================
   Research poster — click-to-zoom inline figure
   ========================================================================== */

.research-poster {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 1.25rem auto;
  border-radius: 6px;
  border: 1px solid var(--gold-dark);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.research-poster:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.45),
    0 0 24px color-mix(in srgb, var(--gold-metallic) 25%, transparent);
}

.avatar-lightbox--poster .avatar-lightbox__img {
  max-width: 96vw;
  max-height: 94vh;
  border-radius: 6px;
}
