.grid_gallery {
  display: flex;
  flex-wrap: wrap;
  margin: -12px;
}

.grid_gallery a {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #f2f2f2;
  overflow: hidden;
  max-width: calc(25% - 24px);
  width: 100%;
  margin-left: 12px;
  margin-right: 12px;
  margin-top: 12px;
  margin-bottom: 12px;
  position: relative;
  max-height: 200px;
}

.grid_gallery a img {
  max-width: 100%;
  max-height: 100%;
  transition: all 400ms;
}

.grid_gallery a:hover img {
  transform: scale(1.05, 1.05);
  transition: all 400ms;
}

@media screen and (max-width: 640px) {
  .grid_gallery a {
    max-width: calc(100% - 24px);
  }
}
