.overlay, .modal {
    display: flex;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    transition: opacity 300ms, visibility 300ms;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
}

.overlay:target, .modal.visible {
  visibility: visible;
  opacity: 1;
}

.popup, .popin {
    position: relative;
    width: 99%;
    margin: auto;    
    max-height: 90%;
    overflow-y: auto;
    background-color: #ffffff;
    padding: 1.6rem .8rem;
    border-radius: .2rem; 
    /* transition: all 1s ease-in-out; */
}

.popin.img {
  background-color: transparent;
    margin: 0;
    padding: 0;
    width: 100vw;
    max-height: unset;
    height: 100vh;
}
.popin .icon {font-size: 4.8rem;color:#ffffff;}
.popin img {border-radius: .8rem;}
.popin header {text-align: right;}
.popin .content {
    text-align: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.popup header { margin-bottom: 1.6rem;}
.popup .icon {font-size: 1.6rem !important;}
.popup .title {
  margin: 0;
  color: rgb(0,0,0,.87)!important;
  font-weight: 600;
}

.full-h {
  height: 100%;
}
.oflow-X-0{
  
  overflow-x: hidden;
}
.oflow-0 {overflow: hidden;}
.popup h2 {
  margin-top: 0;
  margin-bottom: 2.4rem;
  color: rgb(25 151 198)!important;
  font-size: 3.6rem;
  font-family: Oswald;
  letter-spacing: .5px;
  
}
.popup .close {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-transform: uppercase;
    font-family: 'Montserrat';
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: .5px;
    background-color: transparent !important;
}
.popup .close > a:last-child { 
  margin: 0 0 0 auto;   
  font-weight: bold;
  text-decoration: none;
  color: #333;
  transition: color 200ms; 
}

.popup .close > a:hover {
  color: #06D85F;
}

.popup_header 
{
    font-size: 28px;
    font-weight: 400;
    font-family: Oswald, Roboto, sans-serif;
    margin-bottom: 2rem;
    text-transform: uppercase;
}
.popup_content
{
    font-size: 1.8rem;
    line-height: 1.5;    
}

.modal-content.slider {height: calc(100% - 24px);}
.modal-content.slider > div {
  width: 300%;
  height: 100%;
  display: flex;
  flex-wrap: wrap;  
}
.modal-content.slider .slide {
  width: calc(100% /3);
  height: 100%;
  overflow: hidden;
  overflow-y: auto;  
  padding: 1.5rem 2.4rem;
}
.slide-home {transform: translateX(calc(-100% /3));}
.slide-standard {
  transform: translateX(0);
}
.slide-custom {transform:translateX(calc(-100% + 100% / 3))}

@media screen and (min-width: 640px)
{
  .popup{    
    width: 85%;
    max-height: 90%;  
  }
  .popin img {max-width: 640px;}
  .popup_container {        
        /*width: 40%;
        max-height: 50%;
        padding: 2.5rem;*/
    }
  .preferences { max-width: 56rem; }
}

@media screen and (min-width: 1024px)
{
  .popin .content {
    text-align: center;
    position: absolute;
    right: 50%;
    top: 50%;
    transform: translate(50%, -50%);
}
  .popup{    
    padding: 1.6rem 1.6rem;
    border-radius: .2rem; 
      /* transition: all 1s ease-in-out; */
  }
  .preferences { max-width: 56rem; }
  .popup.mx-w45 { max-width: 50%;}
}

