/**************************\
  Basic Modal Styles
\**************************/

.msep-modal {
  display: none;
  font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif;

  a:focus {
    outline: none;
  }
}

.msep-modal.is-open {
  display: block;
}

.msep_modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.msep_modal__container {
  position: relative;
  background-color: #fff;
  padding: 25px;
  max-width: 800px;
  min-width: 400px;
  max-height: 90vh;
  border-radius: 4px;
  overflow-y: auto;
  box-sizing: border-box;
}

.msep_modal__header {
}

.msep_modal__title {
  font-size: 2rem;
}

.msep_modal__close {
  color: #666666;
  position: absolute;
  right: 15px;
  top: 15px;
  border: 1px solid black;
  background: transparent;
  font-size: 1.2em;
}

.msep_modal__close:hover {
  cursor: pointer;
}

.msep_modal__close:focus {
  outline: none;
}

.msep_modal__header .msep_modal__close:before { content: "\2715"; }

.msep_modal__content {
  margin-top: 2rem;
  margin-bottom: 2rem;
  line-height: 1.5;
  color: rgba(0,0,0,.8);
}

.msep_modal__content p {
  margin-bottom: 1rem;
}

.msep_modal__btn {
  font-size: .875rem;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: .5rem;
  padding-bottom: .5rem;
  background-color: #e6e6e6;
  color: rgba(0,0,0,.8);
  border-radius: .25rem;
  border-style: none;
  border-width: 0;
  cursor: pointer;
  -webkit-appearance: button;
  text-transform: none;
  overflow: visible;
  line-height: 1.15;
  margin: 0;
  will-change: transform;
  -moz-osx-font-smoothing: grayscale;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  transition: -webkit-transform .25s ease-out;
  transition: transform .25s ease-out;
  transition: transform .25s ease-out, -webkit-transform .25s ease-out;
}

.msep_modal__btn:focus, .msep_modal__btn:hover {
  -webkit-transform: scale(1.05);
  transform: scale(1.05);
}

.msep_modal__btn-primary {
  background-color: #00449e;
  color: #fff;
}

/**************************\
  Presenter Details Styles
\**************************/
.presenter-details {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.msep-presenter-image {
  width: 100px;
  height: 100px;
}

// MSEP-6: square photo field in the presenter modal. Scoped with the modal
// content class so the generic .msep-presenter-image rules (archive/single,
// later in the compiled CSS) cannot override it. object-position keeps heads
// visible when a non-square fallback size is served (old uploads without the
// msep-presenter-square crop).
.msep_modal__content .msep-presenter-image {
  flex: 0 0 160px;
  width: 160px;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }
}

.presenter-text-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.presenter-text-details h2 {
  margin: 0;
  font-size: 1.5rem;
}

.presenter-text-details p {
  margin: 0;
  font-size: 1rem;
}


.msep_modal__head {
  display: flex;
  align-items: flex-start;
}

.msep_modal__stage,
.msep_modal__date {
  font-size: 0.8rem;
  color: #666666;
  margin-right: 1rem;
  line-height: 1rem;
}

.msep_modal__head_left { }

.msep_modal__flag {
  margin-left: 1rem;
}

.msep_modal__title_container {
  display: flex;
  align-items: center;
  margin-left: auto; /* Adjust as needed for spacing */

  .msep_modal__title_box {
    p {
      line-height: 1.4rem;
    }
  }
}

.msep_modal__img {
  max-width: 150px;
  height: auto;
  overflow: hidden;
  img {
    padding-right: 1rem; /* Adjust as needed for spacing */
  }
}

.msep_modal__title_box { }