/* Defaults */


/* Masonry grid */
.masonry {
  transition: all .5s ease-in-out;
  column-fill: initial;
}

/* Masonry item */
.masonry .brick {
  margin-bottom: 0px;
  display: inline-block; /* Fix the misalignment of items */
  vertical-align: top; /* Keep the item on the very top */
}

/* Masonry image effects */
.masonry .brick img 
{
  transition: all .5s ease-in-out;
  backface-visibility: hidden; /* Remove Image flickering on hover */
}

/* Bordered masonry */
.masonry.bordered {
  column-rule: 0px solid #fff;
  column-gap: 5px;
  background-color:#fff !important;
}

.masonry.bordered .brick {
  padding-bottom: 0px;
  margin-bottom: 5px;
  border: 0px solid #eee;
}

/* Gutterless masonry */
.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) {
  
  .masonry {
    column-count: 2;
    
  }
}


@media only screen and (max-width:768px) {
  
  .masonry {
    column-count: 1;
    padding-left:10px;padding-right:10px;
  }
}