.gifs-masonry {
  display: flex;
  flex-wrap: wrap;

  > .gif {
    flex: 1 0 auto;
    max-width: 100%;
    height: 100px;
    margin: 2.5px;
    cursor: pointer;
    //background: #000;
    position: relative;

    video, img {
      object-fit: cover;
      width: 100%;
      height: 100%;
    }

    img {
      position: absolute;
      left: 0;
      top: 0;
    }
  }
}