.masonry {
    column-count: 1;
    column-gap: 0;
    counter-reset: item-counter;
  }
  
  @media screen and (min-width: 400px) {
    .masonry {
      column-count: 2;
    }
  }
  
  @media screen and (min-width: 600px) {
    .masonry {
      column-count: 3;
    }
  }
  
  @media screen and (min-width: 800px) {
    .masonry {
      column-count: 4;
    }
  }
  
  @media screen and (min-width: 1100px) {
    .masonry {
      column-count: 5;
    }
  }
  
  .item {
    box-sizing: border-box;
    break-inside: avoid;
    padding: 10px;
    counter-increment: item-counter;
  }
  
  .item__content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 220px;
    font-size: 40px;
    color: #46000A;
    background: #720026;
    box-sizing: border-box;
  }
  
  .item__content:hover {
    background: #8A002E;
  }
  
  .item__content:before {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 13px;
    width: 2em;
    height: 2em;
    line-height: 2em;
    text-align: center;
    font-weight: bold;
    background-color: #222;
    content: counter(item-counter);
  }
  
  .item__content:after {
    color: #3D0009;
    content: 'ಠ‿ಠ';
  }
  
  .item__content--small {
    background: #CE4257;
    height: 100px;
  }
  
  .item__content--small:hover {
    background: #E24C62;
  }
  
  .item__content--small:after {
    content: '♥◡♥';
  }
  
  .item__content--medium {
    background: #FFC093;
    height: 175px;
  }
  
  .item__content--medium:hover {
    background: #FFD4B0;
  }
  
  .item__content--medium:after {
    content: '◔ᴗ◔';
  }
  
  .item__content--large {
    background: #FF7F51;
    height: 280px;
  }
  
  .item__content--large:hover {
    background: #FF936D;
  }
  
  .item__content--large:after {
    content: 'ಠ_๏';
  }