.masonry {
  -webkit-column-count: 1;
          column-count: 1;
  -webkit-column-gap: 0;
          column-gap: 0;
  counter-reset: item-counter;
}
@media screen and (min-width: 400px) {
  .masonry {
    -webkit-column-count: 1;
            column-count: 1;
  }
}
@media screen and (min-width: 600px) {
  .masonry {
    -webkit-column-count: 3;
            column-count: 3;
  }
}
@media screen and (min-width: 800px) {
  .masonry {
    -webkit-column-count: 4;
            column-count: 4;
  }
}
@media screen and (min-width: 1100px) {
  .masonry {
    -webkit-column-count: 5;
            column-count: 5;
  }
}

.item {
  box-sizing: border-box;
  -webkit-column-break-inside: avoid;
          break-inside: avoid;
  padding: 0px 1px 1px 0px;
  counter-increment: item-counter;
}

.item  a {display:block;}

.item  img {width: 100%; display: block!important  }

.item__content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 220px;
  font-size: 40px;
  color: #eee;
  background: currentColor;
  box-sizing: border-box;
  color: #eee;
}
.item__content:hover {
  background: #eee;
}

.item__content--small {
  color: #eee;
  height: 100px;
}
.item__content--small:hover {
  background: #eee;
}
.item__content--medium {
  color: #eee;
  height: 175px;
}
.item__content--large {
  color: #eee;
  height: 280px;
}
.item__content--large:hover {
  background: #eee;
}