/*
#mask {
  position:absolute;
  left:0;
  top:0;
  z-index:9000;
  background-color:#26262c;
  display:none;
}  
#boxes .window {
  position:absolute;
  left:0;
  top:0;
  width:440px;
  height:850px;
  display:none;
  z-index:9999;
  padding:20px;
  border-radius: 5px;
  text-align: center;
}
#boxes #dialog {
  width:600px; 
  height:500px;
  padding: 10px 10px 10px 10px;
  background-color:#ffffff;
  font-size: 15pt;
}

.agree:hover{
  background-color: #D1D1D1;
}
.popupoption:hover{
	background-color:#D1D1D1;
	color: green;
}
.popupoption2:hover{
	color: red;
}
*/

/**=== Just Old ===**/
/*
#mask{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:#26262c;
  opacity:0.8;
  z-index:9000;
  display:none;
}

#boxes .window{
  position:fixed;
  top:57%;
  left:50%;
  transform:translate(-50%, -50%);
  width:90%;
  max-width:620px;
  background:#fff;
  z-index:9999;
  display:none;
  padding:10px;
  border-radius:8px;
  text-align:center;
}

.popup-img{
  width:100%;
  border-radius:5px;
}

.close img{
  width:25px;
  position:absolute;
  top:-12px;
  right:-12px;
  cursor:pointer;
}

.agree:hover{
  opacity:0.7;
}

@media(max-width:576px){
  #boxes .window{
    max-width:95%;
    padding:8px;
  }

  .close img{
    top:-10px;
    right:-10px;
  }
}
*/

.popup-wrapper{
  position: relative;
}

#mask{
  position: fixed;      
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  z-index: 1001;
  display: none;
}


/* Popup box */

.popup-box{
  position:fixed;
  top:120px;            
  left:50%;
  transform:translateX(-50%);
  max-width:90%;
  max-height:90vh;
  background:#fff;
  padding:10px;
  border-radius:8px;
  z-index:1001;
  /*display:none;*/
  
   width: fit-content;     
}

.close img{
  width:30px;
  position:absolute;
  top:-13px;
  right:-13px;
  background:#fff;
  border-radius:50%;
}

.popup-slider{
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.slide-track{
  display: flex;
  width: 100%;         
  transition: transform 0.8s ease-in-out;
}

.slide{
  min-width: 100%;
  flex-shrink: 0;
}

/* Image responsive */
.popup-img
{
  display: block;
  width: 100%;
  height: auto;
  max-height: 80vh;
  margin: auto;
  object-fit: contain;
}

@media(max-width:768px)
{
    .popup-box
    {
        left:0 !important;
        transform: translateX(8%) !important;
        max-width: 86vw !important;
    }
}

