.grid-gallery {
  display: -ms-flexbox; /* IE10 */
  display: flex;
  -ms-flex-wrap: wrap; /* IE10 */
  flex-wrap: wrap;
  padding: 0 1em;
  justify-content: center;
}

/* Create four equal columns that sits next to each other */
.gallery-column {
  -ms-flex: 20%; /* IE10 */
  flex: 20%;
  max-width: 20%;
  margin: 1.5em;
}

.gallery-column img {
  margin-top: 8px;
  vertical-align: middle;
  width: 100%;
  box-shadow: 2px 4px 7px #494949;
  border-radius: 2px;
  margin: 1em 0 1em 0;
}

.grid-gallery img:hover {
  transform: scale(1.05);
  opacity: 0.8;
}

.grid-gallery a {
  cursor: pointer;
}

/* Responsive layout - makes a two column-layout instead of four columns */
@media screen and (max-width: 1060px) {
  .gallery-column {
    -ms-flex: 40%;
    flex: 40%;
    max-width: 40%;
  }
}

/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 590px) {
  .gallery-column {
    -ms-flex: 100%;
    flex: 100%;
    max-width: 100%;
  }
}