/**
 * Bio Popup – near full-screen white overlay and panel
 * Bio Card – minimal layout for headshot card
 */

/* Popup overlay */
.gcv-bio-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.gcv-bio-popup-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* White panel – near full screen */
.gcv-bio-popup-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95vw;
  max-width: 1200px;
  height: 90vh;
  max-height: 90vh;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Back control – top left */
.gcv-bio-popup-back {
  flex-shrink: 0;
  padding: 1rem 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 0;
  font: inherit;
  color: #111;
  cursor: pointer;
  text-align: left;
}

.gcv-bio-popup-back:hover,
.gcv-bio-popup-back:focus {
  text-decoration: underline;
  outline: 0;
}

.gcv-bio-popup-back .gcv-bio-popup-back-arrow {
  display: inline-block;
  width: 1em;
  height: 1em;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  margin-right: 0.25em;
}

/* Scrollable content area */
.gcv-bio-popup-body {
  flex: 1;
  overflow: auto;
  padding: 0 1.5rem 1.5rem;
  -webkit-overflow-scrolling: touch;
}

.gcv-bio-popup-body.is-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  color: #666;
}

/* Bio Card – circular headshot with name and title below */
.gcv-bio-card {
  cursor: pointer;
  display: block;
  text-align: center;
}

.gcv-bio-card:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.gcv-bio-card__image {
  position: relative;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
}

.gcv-bio-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gcv-bio-card__name {
  margin-top: 0.75rem;
  font-weight: 600;
}

.gcv-bio-card__title {
  margin-top: 0.25rem;
  font-size: 0.9em;
  color: #555;
}
