img,
video {
  max-width: 100%;
}
/* Masonry grid */
.masonry {
  transition: all 0.5s ease-in-out;
  column-fill: initial;
  margin-left: -30px;
  /* Masonry item */
  /* Bordered masonry */
  /* Gutterless masonry */
}
.masonry .brick {
  margin-bottom: 30px;
  display: inline-block;
  /* Fix the misalignment of items */
  vertical-align: top;
  /* Keep the item on the very top */
  background: transparent;
  position: relative;
  font-family: 'Montserrat';
  font-size: 15px;
  cursor: pointer;
  /*
    transition-duration: 1500ms;
    &.hide {
      opacity: 0;
      transition-duration: 500ms;
    }



    /* Masonry image effects */
  /*
    img {
      transition: all .5s ease-in-out;
      backface-visibility: hidden; /* Remove Image flickering on hover */
  /*
    }

    &:hover img {
      opacity: .75;
    }
*/
}
.masonry .brick.bg_white img.masonry-img {
  opacity: 1;
  transition: 1.25s;
}
.masonry .brick:hover.bg_white img.masonry-img {
  transition: 0.5s;
  opacity: 0;
}
.masonry .brick.small {
  margin: 0 0 6px 6px;
  transition-duration: 280ms;
}
.masonry .brick.normal {
  margin: 0 0 30px 30px;
  transition-duration: 280ms;
}
.masonry .brick.large {
  margin: 0 0 45px 45px;
  transition-duration: 280ms;
}
.masonry .brick .masonry-title {
  position: absolute;
  left: 15%;
  bottom: 15%;
  color: #000;
  text-align: left;
  z-index: 1000;
  opacity: 0;
  transition: 0.25s;
  transform-origin: left;
  transform: scale(0);
}
.masonry .brick .masonry-title .masonry-title_ {
  font-size: 20px;
  font-weight: 200;
  line-height: 30px;
  word-wrap: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
}
.masonry .brick .masonry-title .masonry-title_sub {
  font-size: 12px;
  margin-top: 4px;
  font-weight: 300;
}
.masonry .brick .masonry-title img {
  margin-top: 10px;
}
.masonry .brick:hover .masonry-title {
  opacity: 0.8;
  transform: scale(1);
  transition: 0.25s;
}
.masonry .brick.bg_white img.masonry-img {
  opacity: 1;
  transition: 1.25s;
}
.masonry .brick:hover.bg_white img.masonry-img {
  transition: 0.5s;
  opacity: 0;
}
.masonry .brick.hidden_ {
  display: none!important;
  visibility: hidden!important;
  opacity: 0!important;
}
.masonry .brick.hidden_ img {
  display: none!important;
}
.masonry.bordered {
  column-rule: 1px solid #eee;
  column-gap: 50px;
}
.masonry.bordered .brick {
  padding-bottom: 25px;
  margin-bottom: 25px;
  border-bottom: 1px solid #eee;
}
.masonry.gutterless {
  column-gap: 0;
}
.masonry.gutterless .brick {
  margin-bottom: 0;
}
/* Masonry on tablets */
@media only screen and (min-width: 768px) and (max-width: 1023px) {
  .masonry {
    column-count: 2;
  }
}
/* Masonry on big screens */
@media only screen and (min-width: 1024px) {
  .desc {
    font-size: 1.25em;
  }
  .intro {
    letter-spacing: 1px;
  }
  .masonry {
    column-count: 3;
  }
}
