

/* Masonry grid */
.masonry {
  transition: all .5s ease-in-out;
  column-gap: 30px;
  column-fill: initial;
}

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

/* Masonry image effects */
.masonry .brick img {
  transition: all .5s ease-in-out;
  backface-visibility: hidden; /* Remove Image flickering on hover */
      width: 100%;
    height: auto;
    border-radius: 7px;
}

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

/* Bordered masonry */
.masonry.bordered {
  column-rule: 1px solid #eee;
  column-gap: 50px;
}

.masonry.bordered .brick {
  padding-bottom: 25px;
  margin-bottom: 25px;
  border-bottom: 1px solid #eee;
}

/* Gutterless masonry */
.masonry.gutterless {
  column-gap: 0;
  text-align: center;
    padding-top: 30px;
}

   .masonry.gutterless .brick {
  margin-bottom: 30px;
  width: 93%;

}

/* Masonry on tablets */

@media only screen and (mmax-width: 768px) {
      .masonry {
    column-count: 1;
  }

}


@media only screen and (min-width: 768px) and (max-width: 1480px) {
  .masonry {
    column-count: 2;
  }

}

@media only screen and (min-width: 1480px) and (max-width: 1650px) {
  .masonry {
    column-count: 3;
  }

}

/* Masonry on big screens */
@media only screen and (min-width: 1650px) {

  .masonry {
    column-count: 4;
  }

}













/* Masonry grid */
.masonry_g {
  transition: all .5s ease-in-out;
  column-gap: 20px;
  column-fill: initial;
}

/* Masonry item */
.masonry_g .brick_g {
  margin-bottom: 12px;
  display: inline-block; /* Fix the misalignment of items */
  vertical-align: top; /* Keep the item on the very top */
  width: 100%;
}

/* Masonry image effects */
.masonry_g .brick_g img {
  transition: all .5s ease-in-out;
  backface-visibility: hidden; /* Remove Image flickering on hover */
width: auto;
    height: 100%;
}


/* Bordered masonry */
.masonry_g.bordered_g {
  column-rule: 1px solid #eee;
  column-gap: 50px;
}

.masonry_g.bordered .brick_g {
  padding-bottom: 25px;
  margin-bottom: 25px;
  border-bottom: 1px solid #eee;
}

/* Gutterless masonry */
.masonry_g.gutterless_g {
  column-gap: 0;
  text-align: center;
    padding-top: 30px;
}

   .masonry_g.gutterless_g .brick_g {
  margin-bottom: 30px;
  width: 93%;

}

/* Masonry on tablets */

@media only screen and (mmax-width: 768px) {
      .masonry_g {
    column-count: 1;
  }

}


@media only screen and (min-width: 768px) and (max-width: 1480px) {
  .masonry_g {
    column-count: 2;
  }

}

@media only screen and (min-width: 1480px) and (max-width: 1650px) {
  .masonry_g {
    column-count: 3;
  }

}

/* Masonry on big screens */
@media only screen and (min-width: 1650px) {

  .masonry_g {
    column-count: 4;
  }

}