/* Speaker grid */
.speakers-grid {
  display: grid;
  /*grid-template-columns: repeat(3, 1fr);*/
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2em;
  padding: 2em;
  justify-items: center;
}

.speaker {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.speaker:hover {
  transform: scale(1.05);
}
.speaker img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.speaker p {
  margin-top: 0.5em;
  font-weight: bold;
  color: #333;
}

/* ---------- MODAL ---------- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1em;
}

.modal-content {
  background: white;
  max-width: 900px;
  width: 90%;
  border-radius: 8px;
  padding: 2em;
  position: relative;
  text-align: left;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  animation: fadeIn 0.3s ease;
}

.modal-content h2 {
  color: #4b2e83;
  margin-top: 0;
}

.modal-content p {
  color: #333;
  line-height: 1.6;
  white-space: pre-line; /* optional if bios have line breaks */
}

.close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.5em;
  cursor: pointer;
}

/* Attribution footer */
.attribution {
  text-align: center;
  font-size: 0.75em;
  color: #666;
  margin: 2em 0 1em;
}

.attribution a {
  color: #666;
  text-decoration: none;
}

.attribution a:hover {
  text-decoration: underline;
}

.mandala img {
  opacity: 0.9;
}

.mandala {
  cursor: default;
}

.mandala:hover {
  transform: none;
}