/* Modal overlay */
.event-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
}

.event-modal-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  top: 0;
  left: 0;
}

/* Modal inner */
.event-modal-inner {
  position: relative;
  max-width: 800px;
  margin: 5% auto;
  background: #f7941e;
  padding: 2rem;
  border-radius: 12px;
  overflow-y: auto;
  max-height: 90%;
  color: #002a3a;
  box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}

/* Close button */
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

/* Team members grid */
.attending-team-members {
  margin-top: 2rem;
}

/* Team member block */
.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Team member images */
.team-member img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 0.5rem;
    border: 2px solid #ccc;
}

/* Name and job title */
.team-member-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.team-member-job {
    font-size: 0.9rem;
}

/* Attending team grid */
.attending-team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

/* How to find us section */
.modal-how-to-find-us {
    margin-top: 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

/* Section headings */
.modal-content h3,
.modal-intro h3,
.modal-how-to-find-us h3,
.modal-speaker h3,
.attending-team-members-wrapper h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

/* Optional: style WYSIWYG content */
.modal-intro, .modal-how-to-find-us {
  margin-bottom: 1.5rem;
  line-height: 1.5;
}



.modal-intro-speaker {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1rem;
    margin-bottom: 2rem;
}

.modal-intro-speaker .modal-speaker {
    flex: 0 0 180px;              /* speaker image block width */
}


.modal-intro-speaker .modal-speaker .speaker-info {
    margin-top: 0.5rem;
}

.modal-intro-speaker .modal-intro {
    flex: 1;                       /* take remaining space */
    font-size: 1rem;
    line-height: 1.5;
}

@media (max-width: 1024px) {
  .modal-intro-speaker {
    flex-direction: column;
  }
}