.row {
  display: -ms-flexbox; /* IE10 */
  display: flex;
  -ms-flex-wrap: wrap; /* IE10 */
  flex-wrap: wrap;
  padding: 0 4px;
  position: relative;
  z-index: 0;
  overflow: visible; /* allow image to grow beyond column */
  max-width: 1200px;
  margin: auto;
}
/* Mobile First Design - column of images */
.column {
  -ms-flex: 100%;
  flex: 100%;
  max-width: 100%;
  position: relative;
  overflow: visible; /* allow image to grow beyond column */
  z-index: 1;
}

.column img {
  max-width: 1200px;
  margin-top: 8px;
  padding: .5rem;
  vertical-align: middle;
  width: 100%;
  transform-origin: center center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 2;
}

.column img:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  z-index: 3;
}

/* Responsive layout - makes the two columns  */
@media screen and (min-width: 600px) {
  .column {
    -ms-flex: 50%;
    flex: 50%;
    max-width: 50%;
  }
}

/* Responsive layout - makes a four column layout */
@media screen and (min-width: 800px) {
  /* Create four equal columns that sits next to each other */
  .column {
    -ms-flex: 25%; /* IE10 */
    flex: 25%;
    max-width: 25%;
    padding: 0 4px;
  }
}
.modal {
  display: none; /* must be hidden by default */
  /* other styles... */
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  position: relative;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 80%;
  height: 80%;
}

.modal-content img {
  max-width: 100%;
  max-height: 100%;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.navigation {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.prev,
.next {
  cursor: pointer;
  color: white;
  font-size: 40px;
  padding: 16px;
  user-select: none;
}
@media screen and (max-width: 599px) {
  .modal,
  .navigation,
  .prev,
  .next,
  .close {
    display: none !important;
    pointer-events: none;
    visibility: hidden;
  }
}
