ul.gallery-list {
  margin: 0px;
  padding: 0px;
  list-style-type: none;
}

ul.gallery-list li {
  display: block;
  float: left;
  margin: 0px 10px 10px 0px;
}

ul.gallery-list li:nth-child(3n+1) {
  clear: both;
}

ul.gallery-list li a {
  display: block;
  width: 136px;
  padding: 5px;
  color: #505050;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  background-color: #DBDBDB;
}

ul.gallery-list li a:hover {
  color: #505050;
  background-color: #EFEFEF;
}

ul.gallery-list li a span.gallery-list-thumb {
  display: block;
  width: 100%;
  height: 90px;
  margin: 0px 0px 5px 0px;
  overflow: hidden;
}

ul.gallery-list li a span.gallery-list-thumb img {
  width: 100%;
}

/*
ul.gallery-list li a span.gallery-list-thumb img.img-tall {
  width: 100%;
  height: auto;
}
*/

ul.gallery-list li a span.gallery-list-title {
}

img.featured-image {
  max-width: 470px;
  height: auto;
  padding: 2px;
  border: 1px solid #0B8288;
}

div.gallery-images {
}

div.gallery-images a {
  display: block;
  float: left;
  margin: 0px 10px 10px 0px;
  padding: 2px;
  border: 1px solid #0B8288;
}

div.gallery-images a:hover {
  border: 1px solid #5D5D5D;
}

div.gallery-images a span {
  display: block;
  width: 100px;
  height: 100px;
  overflow: hidden;
}

/* Overlay Box Styles */

div.gallery-box {
  display: inline-block;
  max-width: 100%;
  height: auto;
}

div.gallery-box-inner {
  padding: 2px;
  border: 1px solid #E1E1E1;
}

div.gallery-box-plain div.gallery-box-inner {
  padding: 0px;
  border: 0px;
}

a.gallery-overlay-link {
  display: block;
  position: relative;
  max-width: 100%;
  height: auto;
  cursor: pointer;
  overflow: hidden;
}

a.gallery-overlay-link span.gallery-overlay {
  display: inline-block;
  position: absolute;
  width: 100%;
  height: 100%;
  margin: auto;
  text-align: center;
  background-color: rgba(89, 89, 89, 0.65);
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  overflow: hidden;
  z-index: 99;
}

a.gallery-overlay-link span.gallery-overlay span.gallery-overlay-button {
  display: inline-block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  width: 200px;
  height: 36px;
  color: #FFFFFF;
  font-size: 18px;
  line-height: 36px;
  text-align: center;
  background: #009DDC;
}

a.gallery-overlay-link span.gallery-underlay {
  display: inline-block;
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 60px;
  height: 60px;
  background-image: url('../images/gallery-underlay.html');
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 1;
  overflow: hidden;
  z-index: 98;
}

a.gallery-overlay-link img {
  display: block;
  max-width: 100%;
  height: auto;
}