
img, video {
  max-width: 100%;
  vertical-align: middle;
}

/* Masonry grid */
.masonry {
  transition: all .5s ease-in-out;
  column-gap: 10px;
  /*column-fill:balance;*/
	padding-top: 15px;
 padding-left: 5px;
}

/* Masonry item */
.masonry .brick {
  margin-bottom: 10px;
  display: inline-block; /* Fix the misalignment of items */
  vertical-align: top; /* Keep the item on the very top */
	opacity: 1;
}

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

.masonry .brick:hover img {
  opacity: .75;
}




/* Masonry on tablets */
@media only screen and (min-width: 540px) and (max-width: 1023px) {
  .masonry {
    column-count: 4;
	  padding-left: 5px;
	  column-gap: 5px;
  }
	.masonry .brick {
  margin-bottom: 5px;
}
}

@media only screen and (max-width :960px)   { 
	.masonry .brick {
  margin-bottom: 5px;
}
}

/* Masonry on big screens */
@media only screen and (min-width: 1024px) {
  .desc {
    font-size: 1.25em;
  }

  .intro {
    letter-spacing: 1px;
  }

  .masonry {
    column-count: 6;
  }
  .masonry.fullwidth {
    column-count: 5;
  }
  .masonry.fullwidth2 {
    column-count: 7;
  }
}