.panWrapper {
  position: fixed;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  left: 0;
  top: 0;
  display: none;
  cursor: pointer;
}

.panWrapper * {
  -moz-user-select: 0;
  -khtml-user-select: none;
  -webkit-user-select: none;
  -o-user-select: none;
  user-select: none;
}

.panWrapper a.controls {
  background-size: 100%;
  width: 32px;
  height: 32px;
  display: block;
  position: absolute;
  left: 50%;
  -webkit-transform: translateX(-50%) !important;
  transform: translateX(-50%) !important;
  z-index: 2;
  bottom: 30px;
  cursor: pointer;
}

.panWrapper a.controls.in {
  background-image: url(../../assets/images/common/sp/zoomIn.png);
  margin-left: -30px;
  display: none;
}

.panWrapper a.controls.out {
  background-image: url(../../assets/images/common/sp/zoomOut.png);
  margin-left: 30px;
  display: none;
}

.panWrapper a.controls.close {
  background-image: url(../../assets/images/common/sp/close.png);
  left: auto;
  right: 30px;
  top: 30px;
  display: none;
}

.panWrapper .evD {
  position: relative;
  display: inline-block;
}

.panWrapper .evD:before {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  background-image: url(../../assets/images/common/sp/close.png);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
  left: auto;
  right: -15px;
  top: -15px;
  background-color: rgba(64, 64, 64, 0.5);
  border-radius: 50%;
  z-index: 2;
}

.panWrapper .loading {
  z-index: 3;
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -50px 0 0 -50px;
  width: 100px;
  height: 100px;
  background-image: url(../../assets/images/common/sp/loading.gif);
  background-repeat: no-repeat;
  background-size: 100%;
  display: block;
}

.panWrapper .evD img {
  top: initial !important;
  left: initial !important;
  position: relative !important;
}

/*.panWrapper img {
	max-width:unset!important;
	width: auto;
    left: 50% !important;
    -webkit-transform: translateX(-50%) !important;
    transform: translateX(-50%) !important;
}*/
@media only screen and (max-width: 500px) {
  .panWrapper .evD {
    max-width: 90%;
  }
  .panWrapper .evD img {
    max-width: 100% !important;
  }
}