.popup-wrap {
  display: none;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0px;
  left: 0px;
  content: '';
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999999;

 
  -moz-animation-name: popumove;
  -moz-animation-duration: 1s;
  -moz-animation-iteration-count: 1;
  -moz-animation-fill-mode: forwards;
  -webkit-animation-name: popumove;
  -webkit-animation-duration: 1s;
  -webkit-animation-iteration-count: 1;
  -webkit-animation-fill-mode: forwards;
  -ms-animation-name: popumove;
  -ms-animation-duration: 1s;
  -ms-animation-fill-mode: 1;
  -ms-animation-fill-mode: forwards;
  -o-animation-name: popumove;
  -o-animation-duration: 1s;
  -o-animation-fill-mode: 1;
  -o-animation-fill-mode: forwards;
  animation-name: popumove;
  animation-duration: 1s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}


  @keyframes popumove {
      0%    {left: -100%;}
      100%  {left: 0;    }
  }

.popup-box {
  position: relative;
  max-width: 100%;
  height: 100%;
  padding: 20px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  overflow-y: auto;
}

    .popup-box img {
        display: block;
        position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
        width: 80%;
		height: auto;
}

.close-btn {
  position: absolute;
  width: 50px;
  height: 50px;
  display: inline-block;
  top: 0;
  right: 0;
  border-radius: 0;
  background: #BF3634;
  font-weight: bold;
  text-decoration: none;
  color: #E3E3E3;
  line-height: 45px;
  font-size: 32px;
  z-index: 999;
}

.transform-in, .transform-out {
  display: block;
  -webkit-transition: all ease 0.5s;
  transition: all ease 0.5s;
}

.transform-in {
  -webkit-transform: translate(-50%, -50%) scale(1);
  transform: translate(-50%, -50%) scale(1);
}

.transform-out {
  -webkit-transform: translate(-50%, -50%) scale(1);
  transform: translate(-50%, -50%) scale(1);
}




@media screen and (max-width: 1024px) {

.close-btn {
  width: 40px;
  height: 40px;

  border-radius: 0;
  line-height: 35px;
  font-size: 25px;
}

}	


@media screen and (max-width: 840px) {

.popup-box {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 20px;
  margin: 0 auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  overflow: auto;
}

    .popup-box img {
		position: relative;
		margin: auto;
		top: 0;
		left: 0;
		transform: translate(0,0);
        width: 90%;
}
	
	
.close-btn {
  width: 35px;
  height: 35px;
  top: 10px;
  right: 10px;
  border-radius: 0;
  line-height: 31px;
  font-size: 25px;
}

}	


@media screen and (max-width: 600px) {

.close-btn {
  width: 30px;
  height: 30px;
  border-radius: 0;
  line-height: 27px;
  font-size: 20px;
}

}


@media screen and (max-width: 400px) {

.close-btn {
  width: 25px;
  height: 25px;
  border-radius: 0;
  line-height: 22px;
  font-size: 20px;
}

}



