@import url('https://fonts.googleapis.com/css?family=Inconsolata|Source+Sans+Pro:200,300,400,600');


.gallery {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.gallery .spinner.display-none {
  display: none;
}

.gallery .wrapper.display-none {
  opacity: 0;
}

.gallery .wrapper {
  display: flex;
  justify-content: start;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  transition: opacity 1s ease-in;
  width: 100%;
}
.gallery .wrapper.full-opacity{
    opacity: 1;
}

.gallery .wrapper > * {
    margin: 15px;
}
.gallery .wrapper > div {
  flex: 30%;
  box-shadow: 5px 4px 13px -8px rgba(66, 68, 90, 1);
  max-width: 30%;
}

.gallery .media {
  width: 300px;
  height: 200px;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery .media img {
  width: 100%;
  max-width: 100%;
  height: auto;
}

.gallery .layer {
  opacity: 0;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 10px;
  height: 90%;
  background: #FFF;
  color: #151E3F;
  /*transition: all 0.9s ease;*/
  cursor: pointer;
}

.gallery .layer  p {
  /*transition: all 0.9s ease;*/
  transform: scale(0.1)
}

.gallery p {
  font-family: 'Inconsolata', monospace;
  text-align: center;
  font-size: 15px;
  letter-spacing: 1px;
}

.gallery .media:hover .layer {
    opacity: 0;
  /*opacity: 0.8;*/
  width: 100%;
  height: 100%;
  /*transition: all 0.5s ease;*/
}
.gallery .media:hover .layer  p {
  /*transform: scale(1);
  transition: all 0.9s ease;*/
}

@media (max-width: 800px){
    .gallery .wrapper > div {
      flex: 45%;
      max-width: 45%;
    }
}

@media (max-width: 600px) {
    .gallery .wrapper > div {
      flex: 90%;
      max-width: 90%;
    }
}

/*@media (max-width: 800px){
  .gallery {
    transform: scale(0.6);
  }
}

@media (max-width: 600px) {
    .gallery .wrapper {
    display: block;
  }
  .gallery .wrapper > * {
      margin: 10px;
    }
}*/




.gallery .spinner {
  margin: 100px auto;
  font-size: 25px;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  position: relative;
  text-indent: -9999em;
  -webkit-animation: load5 1.1s infinite ease;
  animation: load5 1.1s infinite ease;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
}
@-webkit-keyframes load5 {
  0%,
  100% {
    box-shadow: 0em -2.6em 0em 0em #ffffff, 1.8em -1.8em 0 0em rgba(100, 100, 100, 0.2), 2.5em 0em 0 0em rgba(100, 100, 100, 0.2), 1.75em 1.75em 0 0em rgba(100, 100, 100, 0.2), 0em 2.5em 0 0em rgba(100, 100, 100, 0.2), -1.8em 1.8em 0 0em rgba(100, 100, 100, 0.2), -2.6em 0em 0 0em rgba(100, 100, 100, 0.5), -1.8em -1.8em 0 0em rgba(100, 100, 100, 0.7);
  }
  12.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(100, 100, 100, 0.7), 1.8em -1.8em 0 0em #ffffff, 2.5em 0em 0 0em rgba(100, 100, 100, 0.2), 1.75em 1.75em 0 0em rgba(100, 100, 100, 0.2), 0em 2.5em 0 0em rgba(100, 100, 100, 0.2), -1.8em 1.8em 0 0em rgba(100, 100, 100, 0.2), -2.6em 0em 0 0em rgba(100, 100, 100, 0.2), -1.8em -1.8em 0 0em rgba(100, 100, 100, 0.5);
  }
  25% {
    box-shadow: 0em -2.6em 0em 0em rgba(100, 100, 100, 0.5), 1.8em -1.8em 0 0em rgba(100, 100, 100, 0.7), 2.5em 0em 0 0em #ffffff, 1.75em 1.75em 0 0em rgba(100, 100, 100, 0.2), 0em 2.5em 0 0em rgba(100, 100, 100, 0.2), -1.8em 1.8em 0 0em rgba(100, 100, 100, 0.2), -2.6em 0em 0 0em rgba(100, 100, 100, 0.2), -1.8em -1.8em 0 0em rgba(100, 100, 100, 0.2);
  }
  37.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(100, 100, 100, 0.2), 1.8em -1.8em 0 0em rgba(100, 100, 100, 0.5), 2.5em 0em 0 0em rgba(100, 100, 100, 0.7), 1.75em 1.75em 0 0em #ffffff, 0em 2.5em 0 0em rgba(100, 100, 100, 0.2), -1.8em 1.8em 0 0em rgba(100, 100, 100, 0.2), -2.6em 0em 0 0em rgba(100, 100, 100, 0.2), -1.8em -1.8em 0 0em rgba(100, 100, 100, 0.2);
  }
  50% {
    box-shadow: 0em -2.6em 0em 0em rgba(100, 100, 100, 0.2), 1.8em -1.8em 0 0em rgba(100, 100, 100, 0.2), 2.5em 0em 0 0em rgba(100, 100, 100, 0.5), 1.75em 1.75em 0 0em rgba(100, 100, 100, 0.7), 0em 2.5em 0 0em #ffffff, -1.8em 1.8em 0 0em rgba(100, 100, 100, 0.2), -2.6em 0em 0 0em rgba(100, 100, 100, 0.2), -1.8em -1.8em 0 0em rgba(100, 100, 100, 0.2);
  }
  62.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(100, 100, 100, 0.2), 1.8em -1.8em 0 0em rgba(100, 100, 100, 0.2), 2.5em 0em 0 0em rgba(100, 100, 100, 0.2), 1.75em 1.75em 0 0em rgba(100, 100, 100, 0.5), 0em 2.5em 0 0em rgba(100, 100, 100, 0.7), -1.8em 1.8em 0 0em #ffffff, -2.6em 0em 0 0em rgba(100, 100, 100, 0.2), -1.8em -1.8em 0 0em rgba(100, 100, 100, 0.2);
  }
  75% {
    box-shadow: 0em -2.6em 0em 0em rgba(100, 100, 100, 0.2), 1.8em -1.8em 0 0em rgba(100, 100, 100, 0.2), 2.5em 0em 0 0em rgba(100, 100, 100, 0.2), 1.75em 1.75em 0 0em rgba(100, 100, 100, 0.2), 0em 2.5em 0 0em rgba(100, 100, 100, 0.5), -1.8em 1.8em 0 0em rgba(100, 100, 100, 0.7), -2.6em 0em 0 0em #ffffff, -1.8em -1.8em 0 0em rgba(100, 100, 100, 0.2);
  }
  87.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(100, 100, 100, 0.2), 1.8em -1.8em 0 0em rgba(100, 100, 100, 0.2), 2.5em 0em 0 0em rgba(100, 100, 100, 0.2), 1.75em 1.75em 0 0em rgba(100, 100, 100, 0.2), 0em 2.5em 0 0em rgba(100, 100, 100, 0.2), -1.8em 1.8em 0 0em rgba(100, 100, 100, 0.5), -2.6em 0em 0 0em rgba(100, 100, 100, 0.7), -1.8em -1.8em 0 0em #ffffff;
  }
}
@keyframes load5 {
  0%,
  100% {
    box-shadow: 0em -2.6em 0em 0em #ffffff, 1.8em -1.8em 0 0em rgba(100, 100, 100, 0.2), 2.5em 0em 0 0em rgba(100, 100, 100, 0.2), 1.75em 1.75em 0 0em rgba(100, 100, 100, 0.2), 0em 2.5em 0 0em rgba(100, 100, 100, 0.2), -1.8em 1.8em 0 0em rgba(100, 100, 100, 0.2), -2.6em 0em 0 0em rgba(100, 100, 100, 0.5), -1.8em -1.8em 0 0em rgba(100, 100, 100, 0.7);
  }
  12.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(100, 100, 100, 0.7), 1.8em -1.8em 0 0em #ffffff, 2.5em 0em 0 0em rgba(100, 100, 100, 0.2), 1.75em 1.75em 0 0em rgba(100, 100, 100, 0.2), 0em 2.5em 0 0em rgba(100, 100, 100, 0.2), -1.8em 1.8em 0 0em rgba(100, 100, 100, 0.2), -2.6em 0em 0 0em rgba(100, 100, 100, 0.2), -1.8em -1.8em 0 0em rgba(100, 100, 100, 0.5);
  }
  25% {
    box-shadow: 0em -2.6em 0em 0em rgba(100, 100, 100, 0.5), 1.8em -1.8em 0 0em rgba(100, 100, 100, 0.7), 2.5em 0em 0 0em #ffffff, 1.75em 1.75em 0 0em rgba(100, 100, 100, 0.2), 0em 2.5em 0 0em rgba(100, 100, 100, 0.2), -1.8em 1.8em 0 0em rgba(100, 100, 100, 0.2), -2.6em 0em 0 0em rgba(100, 100, 100, 0.2), -1.8em -1.8em 0 0em rgba(100, 100, 100, 0.2);
  }
  37.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(100, 100, 100, 0.2), 1.8em -1.8em 0 0em rgba(100, 100, 100, 0.5), 2.5em 0em 0 0em rgba(100, 100, 100, 0.7), 1.75em 1.75em 0 0em #ffffff, 0em 2.5em 0 0em rgba(100, 100, 100, 0.2), -1.8em 1.8em 0 0em rgba(100, 100, 100, 0.2), -2.6em 0em 0 0em rgba(100, 100, 100, 0.2), -1.8em -1.8em 0 0em rgba(100, 100, 100, 0.2);
  }
  50% {
    box-shadow: 0em -2.6em 0em 0em rgba(100, 100, 100, 0.2), 1.8em -1.8em 0 0em rgba(100, 100, 100, 0.2), 2.5em 0em 0 0em rgba(100, 100, 100, 0.5), 1.75em 1.75em 0 0em rgba(100, 100, 100, 0.7), 0em 2.5em 0 0em #ffffff, -1.8em 1.8em 0 0em rgba(100, 100, 100, 0.2), -2.6em 0em 0 0em rgba(100, 100, 100, 0.2), -1.8em -1.8em 0 0em rgba(100, 100, 100, 0.2);
  }
  62.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(100, 100, 100, 0.2), 1.8em -1.8em 0 0em rgba(100, 100, 100, 0.2), 2.5em 0em 0 0em rgba(100, 100, 100, 0.2), 1.75em 1.75em 0 0em rgba(100, 100, 100, 0.5), 0em 2.5em 0 0em rgba(100, 100, 100, 0.7), -1.8em 1.8em 0 0em #ffffff, -2.6em 0em 0 0em rgba(100, 100, 100, 0.2), -1.8em -1.8em 0 0em rgba(100, 100, 100, 0.2);
  }
  75% {
    box-shadow: 0em -2.6em 0em 0em rgba(100, 100, 100, 0.2), 1.8em -1.8em 0 0em rgba(100, 100, 100, 0.2), 2.5em 0em 0 0em rgba(100, 100, 100, 0.2), 1.75em 1.75em 0 0em rgba(100, 100, 100, 0.2), 0em 2.5em 0 0em rgba(100, 100, 100, 0.5), -1.8em 1.8em 0 0em rgba(100, 100, 100, 0.7), -2.6em 0em 0 0em #ffffff, -1.8em -1.8em 0 0em rgba(100, 100, 100, 0.2);
  }
  87.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(100, 100, 100, 0.2), 1.8em -1.8em 0 0em rgba(100, 100, 100, 0.2), 2.5em 0em 0 0em rgba(100, 100, 100, 0.2), 1.75em 1.75em 0 0em rgba(100, 100, 100, 0.2), 0em 2.5em 0 0em rgba(100, 100, 100, 0.2), -1.8em 1.8em 0 0em rgba(100, 100, 100, 0.5), -2.6em 0em 0 0em rgba(100, 100, 100, 0.7), -1.8em -1.8em 0 0em #ffffff;
  }
}











.gallery2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.gallery2 .spinner.display-none {
  display: none;
}

.gallery2 .wrapper.display-none {
  opacity: 0;
}

.gallery2 .wrapper {
  display: flex;
  justify-content: start;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  transition: opacity 1s ease-in;
  width: 100%;
}
.gallery2 .wrapper.full-opacity{
    opacity: 1;
}

.gallery2 .wrapper > * {
    margin: 15px;
}
.gallery2 .wrapper > div {
  /*flex: 100%;*/
  box-shadow: 5px 4px 13px -8px rgba(66, 68, 90, 1);
  /*max-width: 100%;*/
}

.gallery2 .media {
  width: 300px;
  height: 200px;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery2 .media img {
  width: 100%;
  max-width: 100%;
  height: auto;
}

.gallery2 .layer {
  opacity: 0;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 10px;
  height: 90%;
  background: #FFF;
  color: #151E3F;
  /*transition: all 0.9s ease;*/
  cursor: pointer;
}

.gallery2 .layer  p {
  /*transition: all 0.9s ease;*/
  transform: scale(0.1)
}

.gallery2 p {
  font-family: 'Inconsolata', monospace;
  text-align: center;
  font-size: 15px;
  letter-spacing: 1px;
}

.gallery2 .media:hover .layer {
    opacity: 0;
  /*opacity: 0.8;*/
  width: 100%;
  height: 100%;
  /*transition: all 0.5s ease;*/
}
.gallery .media:hover .layer  p {
  /*transform: scale(1);
  transition: all 0.9s ease;*/
}

@media (max-width: 800px){
    .gallery2 .wrapper > div {
      flex: 80%;
      max-width: 80%;
    }
}

@media (max-width: 600px) {
    .gallery2 .wrapper > div {
      flex: 60%;
      max-width: 60%;
    }
}

.gallery2 .spinner {
  margin: 100px auto;
  font-size: 25px;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  position: relative;
  text-indent: -9999em;
  -webkit-animation: load5 1.1s infinite ease;
  animation: load5 1.1s infinite ease;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
}
