#fade {
  display: none;
  position: fixed;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 100%;
  background-color: black;
  z-index: 10001;
  -moz-opacity: 0.8;
  opacity: .80;
  filter: alpha(opacity=80);
}

#light {
  display: none;
  position: fixed;
  top: 20%;
  left: 35%;
  max-width: 600px;
  max-height: 360px;
  margin: 0 auto;
  z-index: 10002;
  overflow: visible;
}

#boxclose {
  float: right;
  cursor: pointer;
  color: #da251c;
  border: 1px solid #AEAEAE;
  border-radius: 3px;
  background: #fff;
  height: 40px;
  text-align: center;
  line-height: 40px;
  width: 40px;
  border-radius: 100%;
  font-size: 31px;
  font-weight: bold;
  display: inline-block;
  position: absolute;
  right: 0px;
  top: -22px;
  z-index: 10002;
  opacity: 0.9;
}

.boxclose:before {
  content: "X";
}

#fade:hover ~ #boxclose {
  display:none;
}

.test:hover ~ .test2 {
  display: none;
}


#light  img{
    max-width: 100%;
}



/*Ipad ngang(1024 x 768)*/
@media screen and (max-width: 1370px){
    #light {
          top: 10%;
          left: 30%;
        }
}


@media screen and (max-width: 1024px){
    #light {
          top: 10%;
          left: 25%;
        }
}


/*Ipad d?c(768 x 1024)*/
@media screen and (max-width: 768px){
      #light {
         left: 0%;
          top: 30%;
      }
}
/*Tablet nh?(480 x 640)*/
@media screen and (max-width: 480px){
    
      #light {
          top: 30%;
          max-width:100%;
          
      }
    
}
/*Iphone(480 x 640)*/
@media screen and (max-width: 320px){
    
}
/*Smart phone nh?*/
@media screen and (max-width: 240px){
    
}