.overlay {
  background-color: rgba(0, 0, 0, 0.8);
  display: block;
  margin-top: 0;
  text-align: center;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100000;
}
.overlay img {
  top: 50%;
  left: 50%;
  max-height: 100%;
  position: absolute;
  -moz-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  -o-transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}
.overlay .close {
  height: 47px;
  left: 0;
  line-height: 1;
  padding: 0;
  position: absolute;
  top: -3px;
  width: 44px;
}
