.row {
  display: flex;
  flex-wrap: wrap;
  padding: 0 4px;
}

.column {
  flex: 25%;
  max-width: 33%;
  padding: 0 4px;
}

.column img {
  margin-top: 8px;
  vertical-align: middle;
  width: 100%;
  filter: grayscale(100%);
  position: relative;
}

.column img:hover {
  filter: grayscale(0);
  transform: scale(1.02);
  z-index: 1;
}

@media screen and (max-width: 800px) {
  .column {
    flex: 50%; 
    max-width: 50%;
  }
}

@media screen and (max-width: 600px) {
  .column {
    flex: 100%;
    max-width: 100%;
  }
}

/* Lightbox Modal Styling */
.modal {
  background-color: rgba(0, 0, 0, 0.9);
  color: var(--accent-text);
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  padding: auto;
  z-index: 11; /* Above nav*/
  overflow: auto;
}

.modal-content {
  position: relative;
  margin: auto;
  padding: 0;
  width: 90%;
  max-width: 1200px;
}

#close-modal {
  color: white;
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
}

#close-modal:hover, .close-modal:focus {
  color: #999;
  text-decoration: none;
  cursor: pointer;
}

#prev, #next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 40vh 20px;
  margin-top: -40vh;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 50% 50% 0;
  user-select: none;
  -webkit-user-select: none;
}

#next {
  right: 0;
  border-radius: 50% 0 0 50%;
}

#prev:hover, #next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.slide {
  display: flex;
  justify-content: center;
  align-items: center;
  position: aboslute;
  height: calc(100vh - 55px);
  width: 100vw;
}

.slide img {
  height: 90vh;
  max-height: 90vh;
  margin: auto;
  -webkit-user-select: none;
}

.slide-index {
  color: white;
  position: absolute;
  top: 15px;
  left: 25px;
  font-size: 20px;
  font-weight: bold;
}

.caption-container {
  position: absolute;
  width: 100vw;
  text-align: center;
  background-color: black;
  padding: 2px 0;
  color: white;
  bottom: 0px;
}