/* CSS Document - Our Team Modal */

/***********************************************************/
/************************** team modal ***************************/
/***********************************************************/

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1001;
}

.popup { 
  display: flex; 
  flex-flow: row wrap; 
  background-color: var(--white, #fff);  
}

.popup-img { 
  position: relative; 
  width: 35%; padding-top: 25px;
  line-height: 0; 
  text-align: center; 
  display: flex; 
  align-items: flex-end; 
  justify-content: center; 
}

.popup-img img { 
  max-width: 100%; 
  margin: 0 auto;
}

.popup-detail { 
  width: 65%; 
  padding: 50px; 
  position: relative; text-align: left;
  background-color: #f7f7f7;
}

.close-btn { 
  position: absolute; 
  top: 20px; 
  right: 20px; 
  z-index: 9; 
  cursor: pointer;
}

.close-btn img{
  filter: var(--filter-secondary);
}
.close-btn:hover img{ filter: none; }

.scrolDisabled {
  overflow: hidden;
  position: fixed;
}

.article--team { 
  max-height: 500px; 
  overflow-y: auto; padding-top: 25px;
}

.team--name { 
  padding-bottom: 20px; 
  margin-bottom: 20px; 
  border-bottom: 1px solid #E8EBED; 
}

.team--name .namesurname { 
  margin-bottom: 5px; 
  color: var(--secondary2, #B39269); 
}

.team--detail h4 { 
  font-size: 20px; 
  margin-bottom: 10px; 
  color: var(--secondary2, #B39269); 
}

.team--detail ul { 
  list-style: disc; 
  margin-left: 20px; 
  margin-bottom: 30px; 
}

.team--detail ol { 
  list-style: decimal; 
  margin-left: 20px; 
  margin-bottom: 30px; 
}

.team--detail ul:last-child, 
.team--detail ol:last-child { 
  margin-bottom: 0; 
}

.team--detail > div { 
  margin-bottom: 30px; 
}

.team--detail > div:last-child { 
  margin-bottom: 0; 
}




/* MODAL STYLES */
.jw-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: rgba(0, 0, 0, .75);
  padding: 40px;
  overflow: auto;
}

.jw-modal.open {
  display: block;
}

.jw-modal-body {
  background: transparent; 
  position: absolute; 
  top: 50%; 
  left: 50%; 
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 1470px; padding: 0;
}

body.jw-modal-open {
  overflow: hidden;
}

@media (max-width: 991px) {
  .popup-img img { 
    margin: 0 auto;
  }
  
  .popup-detail { 
    padding: 30px; 
  }
  .close-btn img{ width: 20px; height: 20px; }
}

@media (max-width: 767px) {
  .popup-img, 
  .popup-detail { 
    width: 100%; 
  }
  
  .popup-img{ background-size: 70%; }
  .popup-img img { 
    position: relative; 
    left: auto; 
    transform: translateX(0); 
  }

  .jw-modal { 
    padding: 25px; 
  }
  
  .jw-modal-body { 
    position: relative; 
    top: auto; 
    left: auto; 
    transform: translate(0, 0); 
    width: 100%; 
  }
}

@media (max-width: 576px) {
  .article--team { 
    max-height: 450px; 
  }
  
  .popup-img img { 
    max-width: 275px; 
  }
  
  .popup-detail { 
    padding: 20px; 
  }
  .close-btn{ top: 15px; }
}



.team--name .namesurname{ font-size: 36px; line-height: 1.3; font-weight: 600; color: var(--secondary); margin-bottom: 10px; }
.team--name .position{ font-size: 28px; line-height: 1.3; font-weight: 400; color: var(--primary); margin-bottom: 0; }
.popup-detail .team--detail p{ font-size: 20px; line-height: 1.5; font-weight: 300; color: var(--default); margin-bottom: 20px; }

@media (max-width: 1599px) {
  
  .popup-detail{ padding: 35px; }

  .team--name .namesurname{ font-size: 30px; }
  .team--name .position{ font-size: 22px; }
  .popup-detail .team--detail p{ font-size: 18px; }

}
@media (max-width: 1199px) {
  
  .article--team{ max-height: 415px; }

}
@media (max-width: 991px) {
  
  .article--team{ max-height: 310px; padding-top: 15px; }
  .team--name .namesurname{ font-size: 24px; }
  .team--name .position{ font-size: 20px; }
  .popup-detail .team--detail p{ font-size: 16px; }

}
@media (max-width: 767px) {
  
  .article--team{ max-height: 320px; }
  .popup-detail{ padding: 20px 15px; }
  .team--name .namesurname{ font-size: 24px;   margin-bottom: 0px;      padding-top: 10px;}
  .team--name .position{ font-size: 18px; }

}


