img, video {
  max-width: 100%;
  vertical-align: middle;
}

html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.cf:after,
.lab-grid:after {
  content: "";
  display: table;
  clear: both;
}




/* Masonry grid */
.masonry {
	transition: all .5s ease-in-out;
	column-gap: 45px;
	column-fill: initial;
	column-count: 3;
}

/* Masonry item */
.masonry .brick {
	float: left;
  vertical-align: top; /* Keep the item on the very top */
}

.memoriesFeature {
  display: inline-block; /* Fix the misalignment of items */
}


/* Masonry image effects */
.masonry .brick img {
  transition: all .5s ease-in-out;
  backface-visibility: hidden; /* Remove Image flickering on hover */
}


/* 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 (max-width: 900px) {
  .masonry {
    column-count: 1;
  }
}


