.gallery {
  display: flex;
  flex-flow: row wrap;
  overflow: hidden;
}

.gallery__item {
  width: 50%;
  height: 200px;
  overflow: hidden;
}

@media screen and (min-width: 800px) {
  .gallery__item {
    width: 25%;
  }
}

@media screen and (min-width: 400px) {
  .gallery__item {
    height: 250px;
  }
}

@media screen and (min-width: 500px) {
  .gallery__item {
    height: 300px;
  }
}


@media screen and (min-width: 1240px) {
  .gallery__item {
    height: 350px;
  }
}

@media screen and (min-width: 1440px) {
  .gallery__item {
    height: 400px;
  }
}

.gallery__item img {
    object-fit: cover;
    transition: zoom .3s ease;
    min-height: 100%;
    max-width: 100%;
}

.gallery__item img:hover {
  zoom: 1.1;
}
