/* Shared modal — fiche participante */
.pmodal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  animation: pm-fadein 280ms var(--ease-entrance);
}
@keyframes pm-fadein { from { opacity: 0 } to { opacity: 1 } }

.pmodal {
  position: relative;
  background: var(--lls-cream);
  color: var(--lls-black);
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 380px 1fr;
  font-family: var(--font-serif);
  animation: pm-rise 360ms var(--ease-entrance);
}
@keyframes pm-rise { from { transform: translateY(20px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }

.pmodal-close {
  position: absolute; top: 16px; right: 16px;
  background: rgba(0,0,0,0.85); color: var(--fg);
  width: 36px; height: 36px; border-radius: 999px;
  border: 0; cursor: pointer; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  transition: background 200ms;
}
.pmodal-close:hover { background: var(--accent-deep); }

.pmodal-photo {
  background: #000;
  position: relative;
  min-height: 0;
}
.pmodal-photo img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center top;
  display: block;
}
.pmodal-body {
  padding: 40px;
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.pmodal-tag {
  font-family: var(--font-ui); font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--accent-deep);
  margin-bottom: 16px;
}
.pmodal-name {
  font-family: var(--font-serif);
  font-size: 56px; line-height: 0.95;
  font-weight: 500;
  margin: 0;
}
.pmodal-name em { font-style: italic; }
.pmodal-company {
  font-family: var(--font-ui); font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.18em;
  margin-top: 16px;
}
.pmodal-bio {
  font-family: var(--font-serif); font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  margin: 24px 0;
  color: rgba(0,0,0,0.78);
  text-wrap: pretty;
}
.pmodal-links {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: auto; padding-top: 20px;
}
.pmodal-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  border: 1.5px solid var(--lls-black);
  font-family: var(--font-ui); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--lls-black); text-decoration: none;
  transition: all 200ms;
}
.pmodal-link:hover { background: var(--lls-black); color: var(--lls-cream); }
.pmodal-link-primary {
  background: var(--accent); color: var(--lls-cream); border-color: var(--accent);
}
.pmodal-link-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

@media (max-width: 720px) {
  .pmodal-overlay { padding: 16px; }
  .pmodal {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    max-height: 95vh;
    overflow-y: auto;
  }
  .pmodal-photo {
    aspect-ratio: 4/3;
    max-height: 320px;
    width: 100%;
    flex-shrink: 0;
  }
  .pmodal-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 20%;
  }
  .pmodal-body { padding: 24px; overflow-y: visible; }
  .pmodal-name { font-size: 36px; }
  .pmodal-bio { font-size: 16px; margin: 18px 0; }
  .pmodal-link { padding: 9px 14px; font-size: 11px; }
}

@media (max-width: 480px) {
  .pmodal-overlay { padding: 0; align-items: flex-end; }
  .pmodal {
    max-height: 92vh;
    border-radius: 14px 14px 0 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .pmodal-photo {
    aspect-ratio: 3/2;
    max-height: 240px;
  }
  .pmodal-name { font-size: 30px; }
}
