.gallery-underlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #000;
  opacity: 0.6;
  z-index: 1000;
  display: none;
}
.gallery {
  width: 950px;
  color: #fff;
  margin-bottom: 20px;
  overflow: auto;
  position: relative;
}
.gallery .slide-count {
  position: absolute;
  top: 17px;
  right: 75px;
}
.gallery nav {
  position: absolute;
  top: 15px;
  right: 15px;
}
.gallery .left {
  padding: 15px;
  overflow: auto;
  background: #232323;
  width: 625px;
  float: left;
  display: inline-block;
  position: relative;
}
.gallery .right {
  overflow: auto;
  width: 325px;
  padding: 15px 10px 15px 15px;
  background: #000;
  float: left;
  display: none;
  position: relative;
}
.gallery .right h3 {
  font-weight: bold;
}
.gallery .right p {
  color: #c0c0c0;
}
.gallery .right .social-list {
  padding-bottom: 15px;
}
.gallery .right .social-list li {
  margin-right: 15px;
}
.gallery .right .social-list li a {
  height: 32px;
  line-height: 32px;
  font-size: 16px;
}
.gallery .right .social-list li .fa {
  font-size: 25px;
  line-height: 32px;
  padding-left: 10px;
}
.gallery .right .gallery-ad,
.gallery .right .gallery-mobile-ad {
  margin-bottom: 15px;
}
.gallery .right .gallery-ad {
  height: 250px;
}
.gallery a {
  color: #fff;
}
.gallery h3 {
  font-size: 1.4em;
  width: 80%;
}
.gallery figure {
  margin: 15px 0;
  position: relative;
  text-align: center;
  height: 397px;
}
.gallery figure img {
  max-width: 100%;
  width: auto;
  max-height: 397px;
  height: auto;
  display: block;
  margin: 0 auto;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}
.gallery figure figcaption {
  position: absolute;
}
.gallery figure figcaption {
  background: #fff;
  color: #000;
  font-size: 0.8em;
  right: 0px;
  bottom: 0px;
  line-height: 25px;
  opacity: 0.6;
  padding: 0 5px;
}
.gallery figure nav {
  position: static;
}
.gallery figure nav .prev {
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
}
.gallery figure nav .next {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
}
.gallery .thumbnails {
  overflow: hidden;
}
.gallery .thumbnails ul {
  list-style-type: none;
  padding: 0;
  height: 70px;
  white-space: nowrap;
  font-size: 0;
  /* hack to avoid extra margin */

}
.gallery .thumbnails ul li {
  margin-right: 11px;
  display: inline-block;
}
.gallery .thumbnails ul li img {
  width: 100px;
  height: 60px;
  box-sizing: content-box;
  border: 5px solid #424242;
  opacity: 0.5;
}
.gallery .thumbnails ul li .highlighted img {
  opacity: 1;
  border-color: #e2e2e2;
}
.gallery span.active,
span.image-text {
  position: absolute;
  padding: 0 10px;
  font-size: 2em;
  line-height: 2em;
  background-color: rgba(0, 0, 0, 0.7);
  border: 2px solid #232323;
  border-left: 0px;
  color: #fff;
  font-weight: bold;
  top: 10px;
  left: 0px;
}
span.image-text {
  border: 0px;
}
.main-content {
  overflow: visible;
}
@media screen and (max-width: 599px) {
  .gallery {
    width: 100%;
  }
  .gallery .left,
  .gallery .right {
    width: 100%;
    position: static;
  }
  .gallery figure {
    height: auto;
    margin-bottom: 0px;
  }
  .gallery figure figcaption {
    font-size: 0.7em;
    line-height: 17px;
  }
  .gallery figure img {
    position: static;
    transform: none;
  }
  .gallery span.active,
  span.image-text {
    font-size: 1.3em;
    line-height: 1.3em;
  }
}
@media screen and (max-width: 350px) {
  .gallery-mobile-ad {
    margin-left: -15px;
  }
}
