html.simple-gallery-active {
  overflow: hidden !important;
}

.simple-gallery {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 500;
  width: 100%;
  height: 100%;
  transition: background-color 200ms ease-out;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
.simple-gallery.modal {
  background-color: rgba(0, 0, 0, 0.6);
}
.simple-gallery .gallery-img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  background-color: red;
  -webkit-transition: width 200ms ease-out, height 200ms ease-out, top 200ms ease-out, left 200ms ease-out, -webkit-transform 200ms ease-out;
  -moz-transition: width 200ms ease-out, height 200ms ease-out, top 200ms ease-out, left 200ms ease-out, -moz-transform 200ms ease-out;
  transition: width 200ms ease-out, height 200ms ease-out, top 200ms ease-out, left 200ms ease-out, transform 200ms ease-out;
}
.simple-gallery .gallery-img img {
  width: 100%;
  height: 100%;
  background: #fff;
  box-shadow: 0 0 28px rgba(0, 0, 0, 0.2);
}
.simple-gallery .gallery-img .loading-indicator {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  display: none;
  width: 30px;
  height: 28px;
  background-color: #fff;
  background-image: url("../images/loading.gif");
  background-repeat: no-repeat;
  background-size: 30px 28px;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
}
@media all and (-webkit-min-device-pixel-ratio: 1.5), all and (-o-min-device-pixel-ratio: 3 / 2), all and (min--moz-device-pixel-ratio: 1.5), all and (min-device-pixel-ratio: 1.5) {
  .simple-gallery .gallery-img .loading-indicator {
    background-image: url("../images/loading@2x.gif");
    background-size: 30px 28px;
  }
}
.simple-gallery.loading .loading-indicator {
  display: block;
}
.simple-gallery .zoom-in {
  position: absolute;
  padding: 0 8px;
  color: #fff;
  font-size: 15px;
  line-height: 26px;
  text-decoration: none;
  border-radius: 4px;
  background-color: #999;
  opacity: 0;
  z-index: 501;
  -moz-transition: 0.3s;
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
}
.simple-gallery .zoom-in.active {
  opacity: 0.6;
}
.simple-gallery .zoom-in:hover {
  opacity: 1;
}
.simple-gallery.multi .gallery-detail {
  margin-right: 110px;
}
.simple-gallery .gallery-detail {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  width: auto;
  height: 50px;
  margin-left: 0;
  font-size: 16px;
  color: #fff;
  text-align: center;
  line-height: 50px;
  background-color: rgba(0, 0, 0, 0.4);
}
.simple-gallery .gallery-detail .name {
  display: inline-block;
  max-width: 50%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}
.simple-gallery .gallery-detail .gallery-control {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 50px;
}
.simple-gallery .gallery-detail .gallery-control a {
  display: inline-block;
  text-decoration: none;
  min-width: 60px;
  text-align: center;
  font-size: 16px;
  color: #999;
}
.simple-gallery .gallery-detail .gallery-control a:hover {
  color: #fff;
  background-color: #222;
}
.simple-gallery .gallery-detail .gallery-control a > i span {
  font-style: normal;
  padding: 0 10px;
}
.simple-gallery .gallery-list {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  display: none;
  width: 110px;
  height: auto;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: #0a0a0a;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.6);
}
.simple-gallery .gallery-list .thumb {
  float: left;
  width: 82px;
  margin: 10px 9px 0;
}
.simple-gallery .gallery-list .thumb a {
  display: block;
  overflow: hidden;
  opacity: 0.6;
}
.simple-gallery .gallery-list .thumb a img {
  display: block;
  margin: auto;
  max-width: 80px;
  max-height: 60px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.simple-gallery .gallery-list .thumb a:hover {
  opacity: 1;
}
.simple-gallery .gallery-list .thumb.selected a {
  opacity: 1;
}
.simple-gallery .gallery-list .thumb.selected a img {
  border-color: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}
.simple-gallery .natural-image {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 502;
  overflow: auto;
  background-color: #000;
}
.simple-gallery .natural-image img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
}
