.imgrid {
  margin: 0 auto;
}
.imgrid figure {
  overflow: hidden;
  background: #3085a3;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  margin: 0;
}
.imgrid figure img {
  position: relative;
  display: block;
  opacity: 0.8;
}
.imgrid figure.imgrid-thumbnail > img {
  max-width: none;
  height: 100%;
}
.imgrid figure figcaption {
  padding: 20px 0 0 0;
  color: #fff;
  text-transform: uppercase;
  font-size: 1.5em;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.imgrid figure figcaption:before,
.imgrid figure figcaption:after {
  pointer-events: none;
}
.imgrid figure figcaption > a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 90000001000;
  text-indent: 200%;
  white-space: nowrap;
  font-size: 0;
  opacity: 0;
}
.imgrid figure h2 {
  word-spacing: 3;
  font-weight: 300;
  margin: 0;
  font-size: 18px;
  line-height: 20px;
}
.imgrid figure h2 span {
  font-weight: 800;
}
.imgrid figure p {
  margin: 20px 0px 0px 0px;
  letter-spacing: 1px;
  font-size: 14px;
}
.imgrid figure p.icon-links {
  display: none;
}
.imgrid figure p.icon-links a {
  text-decoration: none;
}
#imgrid-lightbox-overlay {
  position: fixed;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  background-color: #292929;
  z-index: 999;
}
.imgrid-loader {
  position: relative;
  display: block;
  left: 50%;
  width: 4.33333em;
  height: 4.33333em;
  margin-left: -2.166665em;
  z-index: 9000000100000;
  margin-bottom: 20px;
  margin-top: 20px;
}
.imgrid-loader .imgrid-loader-block {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-block;
  opacity: 0;
  width: 1em;
  height: 1em;
  background: #e1e1e1;
  -webkit-animation: show 1s step-end infinite alternate, pulse 1s linear infinite alternate;
  animation: show 1s step-end infinite alternate, pulse 1s linear infinite alternate;
}
.imgrid-loader .imgrid-loader-block:nth-child(1) {
  -moz-transform: translate(0, 0);
  -ms-transform: translate(0, 0);
  -webkit-transform: translate(0, 0);
  transform: translate(0, 0);
  -webkit-animation-delay: 0.06s;
  animation-delay: 0.06s;
}
.imgrid-loader .imgrid-loader-block:nth-child(2) {
  margin-left: 1.66667em;
  -webkit-animation-delay: 0.48s;
  animation-delay: 0.48s;
}
.imgrid-loader .imgrid-loader-block:nth-child(3) {
  margin-left: 3.33333em;
  -webkit-animation-delay: 0.18s;
  animation-delay: 0.18s;
}
.imgrid-loader .imgrid-loader-block:nth-child(4) {
  margin-top: 1.66667em;
  -webkit-animation-delay: 0.3s;
  animation-delay: 0.3s;
}
.imgrid-loader .imgrid-loader-block:nth-child(5) {
  margin-left: 1.66667em;
  margin-top: 1.66667em;
  -webkit-animation-delay: 0.12s;
  animation-delay: 0.12s;
}
.imgrid-loader .imgrid-loader-block:nth-child(6) {
  margin-left: 3.33333em;
  margin-top: 1.66667em;
  -webkit-animation-delay: 0.42s;
  animation-delay: 0.42s;
}
.imgrid-loader .imgrid-loader-block:nth-child(7) {
  margin-top: 3.33333em;
  -webkit-animation-delay: 0.36s;
  animation-delay: 0.36s;
}
.imgrid-loader .imgrid-loader-block:nth-child(8) {
  margin-left: 1.66667em;
  margin-top: 3.33333em;
  -webkit-animation-delay: 0.24s;
  animation-delay: 0.24s;
}
.imgrid-loader .imgrid-loader-block:nth-child(9) {
  margin-left: 3.33333em;
  margin-top: 3.33333em;
}
@-webkit-keyframes pulse {
  from,
  40% {
    background: #e1e1e1;
  }
  to {
    background: #c5c5c5;
  }
}
@-webkit-keyframes show {
  from,
  40% {
    opacity: 0;
  }
  41%,
  to {
    opacity: 1;
  }
}
@keyframes pulse {
  from,
  40% {
    background: #e1e1e1;
  }
  to {
    background: #c5c5c5;
  }
}
@keyframes show {
  from,
  40% {
    opacity: 0;
  }
  41%,
  to {
    opacity: 1;
  }
}
