body {
  margin: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 200px);
  justify-content: center;
  align-content: center;
  grid-gap: 10px;
  height: 100%;
}

.big_grid {
  grid-template-columns: repeat(2, 400px);
  grid-gap: 20px;
}

@media screen and (max-width: 1200px) {
  .grid {
    grid-template-columns: repeat(3, 200px);
  }
}

@media screen and (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 200px);
  }
}

.grid img {
  width: 200px;
  height: 200px;
  cursor: pointer;
  object-fit: cover;
}

.big_grid img {
  width: 400px;
  height: 400px;
}

@media screen and (max-width: 400px) {

  .grid {
    grid-template-columns: repeat(2, 150px);
  }

  .grid img {
    width: 150px;
    height: 150px;
  }
}

#lightbox {
  position: fixed;
  z-index: 1000;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, .8);
  display: none;
}

#lightbox.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

#lightbox img {
  max-width: 90%;
  max-height: 80%;
  padding: 4px;
  background-color: black;
  border: 2px solid white;
}