.gallery-set {
	margin: 0px 0px 40px 0px;
}

.gallery-set::after {
  content: "";
  display: block;
  clear: both;
}

.gallery-set h2 {
	padding: 0px 0px 10px 0px;
	border-bottom: 1px solid #CFCFCF;
}

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

ul.gallery-list li {
  display: block;
  float: left;
  width: 23%;
  margin-right: 2%;
  margin-bottom: 10px;
}

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

ul.gallery-list li a {
  display: block;
  position: relative;
  width: 100%;
  height: 250px;
  max-height: 250px;
  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 {
	position: relative;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0px;
  overflow: hidden;
}

ul.gallery-list li a span.gallery-list-thumb img {
	display: block;
	position: absolute;
	top: -9999px;
	right: -9999px;
	bottom: -9999px;
	left: -9999px;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: auto;
  object-fit: cover;
  transition: all ease-in-out .1s;
}

ul.gallery-list li a:hover span.gallery-list-thumb img {
	transform: scale(1.2);
}

/*
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 {
	display: block;
	position: absolute;
	bottom: 0px;
	left: 0px;
	width: 100%;
	padding: 10px;
	color: #FFFFFF;
	text-align: center;
	background: rgba(0, 94, 172, 0.65);
	box-sizing: border-box;
}

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: block;
  max-width: 800px;
  height: auto;
  margin: auto auto 40px 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: 600px;
  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.png');
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 1;
  overflow: hidden;
  z-index: 98;
}

a.gallery-overlay-link img {
	position: absolute;
	top: -9999px;
	right: -9999px;
	bottom: -9999px;
	left: -9999px;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: auto;
  object-fit: cover;
}

@media only screen and (max-width: 1024px) {
	ul.gallery-list li {
	  width: 48%;
	}
	
	ul.gallery-list li:nth-child(4n+1) {
	  clear: none;
	}
	
	ul.gallery-list li:nth-child(2n+1) {
	  clear: both;
	}
}

@media only screen and (max-width: 568px) {
	ul.gallery-list li {
	  width: 100%;
	  margin-right: 0;
	}
	
	ul.gallery-list li:nth-child(4n+1),
	ul.gallery-list li:nth-child(2n+1) {
	  clear: none;
	}
}