
/*----------------------- MODAL BASE ------------------------*/
.modal {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex; justify-content: center; align-items: center;
    overflow-y: auto;
    z-index: 9999;
}
.fea-modal-content{
  padding-left: 0px !important;
  padding-right: 0px !important;
}
.modal-content {
    display: flex; flex-direction: column;
    width: 95%; max-width: 1100px; 
    max-height: none; height: auto;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
    position: relative; overflow-y: auto;
}
#modal-inner-content img { 
  max-width: 100%; height: auto;
}
.close-modal {
    position:absolute; top: 10px; right: 10px;
    background: url('https://vandanvil.com/wp-content/uploads/2025/06/bt_close_inv.png') no-repeat center center !important;
    background-size: contain !important;
    text-indent: -9999px !important;
    width: 32px !important; height: 32px !important;
    color: transparent !important;
    border: none !important; padding: 0 !important;
    cursor: pointer !important;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
	border-radius:50%;
}

/*----------------------- WRAPPER + PANELS ------------------------*/
.modal-wrapper {
  display: flex; flex-wrap: wrap;
  max-width: 1100px; margin: 0 auto;
  background: #D9D8D6;
  overflow: hidden;
  border: #106860 6px solid;
}
.modal-left {
  flex: 1 1 50%;
  /*min-height: 400px;*/
  position: relative;
  background-size: cover;
  background-position: center;
  background: #f7f7f7;
}
.modal-right {
  flex: 1 1 50%;
  padding: 30px;
  display: flex; flex-direction: column;
  justify-content: space-between;
  gap:auto;
}

/* ---------------------- TEXT STYLES --------------------- */
.event-modal-header,
.event-modal-infoblock {
  display: flex; flex-direction: column;
  gap: 20px; color: #18988B; text-align: left;
}
.event-modal-title, .parcours-modal-title{
  font-size: 2.2rem; font-weight: 900; line-height: 1.1;
  text-transform: uppercase; margin-bottom: 0.7rem;
}
.event-modal-subtitle , .parcours-modal-subtitle {
  font-size: 1.2rem; font-style: italic; line-height: 1.1;
  font-weight: 700; text-transform: uppercase; margin-bottom: 0.7rem;
}
.event-modal-description, .parcours-modal-description { 
  margin-top: 1.5rem; margin-bottom: 1.5rem; 
  line-height: 1.6; text-align: left; font-size: 0.9rem; 
}
.event-modal-venue{
  font-size: 0.9rem; font-weight:bold; text-transform: uppercase;
}
.event-modal-price{
  font-size: 0.8rem; margin-bottom:0; text-transform: uppercase;
}
.event-modal-datepattern {
  font-size: 0.8rem; font-style:italic; text-transform: uppercase;
}
.parcours-meta-line { 
  font-weight: bold; white-space: nowrap; overflow-x: auto; 
}
.parcours-meta-line span { 
  margin-right: 0.5rem; display: inline-block; 
  white-space: nowrap;
}
.parcours-modal-tags {
  margin-top: 1rem; margin-bottom:0;
}
.parcours-modal-tags .tag {
  display: inline-block; font-size: 0.85rem; margin: 5px;
  background: #D9D8D6; color: white; margin-bottom:0;
}
.event-modal-block, .parcours-modal-block {
  display: flex; flex-direction: column;
  height: 100%;
}
.modal-top-block { flex-grow: 1; }
.modal-bottom-block { margin-top: auto; }

/* ----------------------- ORGANISER INFO -------------------------- */
.modal-organiser-info.left {
  position: absolute;
  top: 15px; left: 15px;
  display: flex; align-items: center;
  gap: 8px;
  z-index: 10;
}
.modal-organiser-logo {
  width: 20px; height: 20px;
  border-radius: 50%; object-fit: cover;
  background-color: #D9D8D6;
  box-shadow: 0 0 30px rgba(0,0,0,0.3);
}
.modal-organiser-name, .slide-organiser-name {         /* UPDATE THIS IN CODE!!!! FROM slide-organiser-name*/
  font-weight: 900;
  font-size: 0.8rem;
  color: white;
  text-shadow: 1px 1px 2px black;
  text-transform: uppercase;
}

/* ----------------------- IMAGE SLIDESHOW -------------------------- */
.event-left-carousel {
  position: relative;
  width: 100%; height: 100%;
}
.fade-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}
.fade-slide.active {
  opacity: 1;
  z-index: 2;
}
.modal-dots {
  position: absolute;
  bottom: 10px; width: 100%;
  text-align: center;
  z-index: 10;
}
.modal-dot {
  display: inline-block;
  width: 10px; height: 10px;
  margin: 0 4px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
}
.modal-dot.active {
  background-color: white;
}

/* ----------------------- RESPONSIVE -------------------------- */
.modal-fullpage-wrapper {
  padding: 2rem 1rem;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .modal-content {
    flex-direction: column;
    width: 100%; height: auto;
    max-width: none;
    border-radius: 0;
  }
  .modal-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .modal-left{ 
    display: flex;
    width: 100%; height: auto;
    aspect-ratio: 1 / 1;
    max-height: 600px;
  }
  .modal-right {
    flex: 1 1 100%;
    width: 100%; height: auto;
    aspect-ratio:unset;
  }
  .event-left-carousel, .fade-slideshow {
    position: relative;
    height: auto;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1 / 1;
  }
}
@media (min-width: 768px) {
  .modal-left {
    aspect-ratio: unset;
    min-height: 600px;
    height: auto;
    max-height: 1000px;
  }
  .event-left-carousel, .fade-slideshow {
    width: 100%;
    height: 100%;
    position: relative;
  }
}







/* NOT INCLUDED

.event-left-modal {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.event-modal {
    min-width: 100%;
    background-size: cover;
    background-position: center;
}


    */
