.img-list {
  text-align: center;
}
.img-list li {
  width: 48%;
  display: inline-block;
  list-style-type: none;
  padding: 8px;
  border: 2px solid #eee;
}
.img-list li img {
  width: 100%;
}

.mask {
  display: none;
  position: fixed;
  top: 0;
  width: 100%;
  height: 100%;
   z-index:999;
}
.mask .img-box {
  width: 100%;
  max-width: 64%;
  padding: 10px;
  background: #c6c6c6;
  position: relative;
  top: 50%;
  left: 40%;
  transform: translate(-50%, -50%);
}
.mask .img-box img {
  width: 100%;
}
.mask .img-box .close {
  color: #000;
  background: #c6c6c6;
  width: 30px;
  height: 30px;
  text-align: center;
  line-height: 30px;
  position: absolute;
  top: -3px;
  right: -35px;
  font-size: 24px;
  font-weight: bold;
  border-radius: 50%;
  cursor: pointer;
}
.mask .img-box .close:hover {
  background: white;
}

.is-visible {
  display: block !important;
}

.fadein {
  animation: fadein 400ms ease-in-out;
}

@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.fadeout {
  animation: fadeout 400ms ease-in-out;
}

@keyframes fadeout {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@media screen and (max-width:320px){
	
	.img-list li {
    width: 98%;
    display: block;
    list-style-type: none;
    padding: 10px;
}

.mask .img-box {
  width: 100%;
  max-width: 80%;
  
}
