.modal {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 1000;
    overflow: hidden;

    
}
.modal-content-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #000000a1;
  /*max-width: 90vw;
  max-height: 80vh; */
  padding: 1.4rem;
  box-sizing: border-box;
  
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #f395ae;
}

.modal-inner-slider {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; 
  gap: 10px;
  max-width: 90vw;
}



.modal-inner-slider .slide {
  min-width: 120px;
  height: 80px;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
}

.modal-inner-slider .slide:hover {
  border-color: #D80000;
}

.close {
  position: fixed;
  top: 0rem;
  right: 0.1rem;
  cursor: pointer;
  font-size: 2rem !important;
  color: #f395ae !important;
  text-shadow: none;
  opacity: 1!important;
}
.close:hover, .close:focus {
  color: #000;
  text-decoration: none;
  opacity: .75;
  color: #d80000 !important;
}

#modal-inner-slider {
  width: auto;
  max-width: 400px;
  max-height: 80vh;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  position: relative;
}


#modal-inner-slider img {
  max-height: 80vh;  
  width: auto;     
  max-width: 400px;   
  height: 100%;     
  display: none;
  object-fit: contain;
}


#modal-inner-slider img.active {
  display: block;
}



  


  .modal-slider-controls {
    display: flex;
    gap: 10px; 
    justify-content: center;
    width: 100%; 
    padding-top: 20px;
  }

  #prev-slide, #next-slide {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background: none;
    border: solid 1px #f395ae;
    box-shadow: none;
    color: #f395ae;
    font-family: "Literata", serif;
    font-weight: 200;
    font-size: 1rem;
    text-transform: uppercase;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    position: static;
  }
  
  #prev-slide:hover, #next-slide:hover {
    border:2px solid #d80000 !important;
    cursor: pointer;
  }
  

button:focus {
  outline: none; 
}




@media screen and (min-width: 641px) and (max-width: 960px) {
  .modal-slider-controls button {
    padding: 8px 15px;
    font-size: 1rem;
    width: 2rem;
    height: 2rem;
  }
}
@media screen and (min-width: 321px) and (max-width: 641px) {
  .modal-slider-controls button {
    padding: 8px 15px;
    font-size: 1rem;
    width: 2rem;
    height: 2rem;
  }
  #modal-inner-slider img {
    max-width: 236px!important;
  }
  .modal-inner-slider {
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    max-width: 75vw !important;
  }

}
@media screen and (max-width: 320px) {
  .modal-slider-controls button {
  padding: 8px 15px;
  font-size: 1rem;
  width: 2rem;
  height: 2rem;
}
#modal-inner-slider img {
  max-width: 225px!important;
}
.modal-inner-slider {
  -webkit-overflow-scrolling: touch;
  gap: 10px;
  max-width: 75vw !important;
}
}
  