.gallery-loader {
  display: none;
}

#gallery {
  position: relative;
}
#gallery.gallery-loading .gallery-loader {
  align-items: center;
  background-color: rgba(34, 34, 34, 0.85);
  display: flex;
  height: 180px;
  justify-content: center;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 2;
}
#gallery.gallery-loading .gallery-loader span {
  animation: gallery-spinner 0.8s linear infinite;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  height: 42px;
  width: 42px;
}

@keyframes gallery-spinner {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  #gallery.gallery-loading .gallery-loader span {
    animation: none;
  }
}
.masonry {
  margin: 0 auto;
  -moz-column-gap: 40px;
  -webkit-column-gap: 40px;
  column-gap: 40px;
}
.masonry figure {
  break-inside: avoid;
  margin: 0;
}
.masonry a,
.masonry picture {
  display: block;
}
.masonry img {
  height: auto;
  max-width: 100%;
  width: 100%;
  margin: 20px 0;
  display: block;
  cursor: zoom-in;
  transition: box-shadow 0.2s;
}
.masonry img:hover {
  box-shadow: #666 10px 10px 20px;
}
@media only screen and (max-width: 699px) {
  .masonry {
    -moz-column-count: 2;
    -webkit-column-count: 2;
    column-count: 2;
  }
}
@media only screen and (min-width: 700px) {
  .masonry {
    -moz-column-count: 3;
    -webkit-column-count: 3;
    column-count: 3;
  }
}
@media only screen and (min-width: 900px) {
  .masonry {
    -moz-column-count: 4;
    -webkit-column-count: 4;
    column-count: 4;
  }
}