body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;

  background-color: var(--pastel);
}

.gallery-container {
  width: 90vw;
  height: 90vh;
  margin: 5rem auto;
  padding: 0.5rem;
  overflow: scroll;

  background-color: #f9f9f9;
  border-radius: 4px;
  box-shadow: 5px 6px 5px rgba(0, 0, 0, 0.4);
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
  height: 100%;
}

.image-container {
  flex: 1 1 250px;
  height: 250px;
  overflow: hidden;

  border-radius: 4px;
}

.image-container img {
  width: 100%;
  height: 100%;

  border-radius: 4px;
  box-shadow: 2px 3px 2px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: 0.4s;
}

.image-container:hover img {
  transform: scale(1.1);
}

.image-container:last-child {
  max-width: 500px;
  max-height: 500px;
}

.popup-image {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 4;

  display: none;
  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.9);
}

.popup-image span {
  position: absolute;
  top: 0;
  right: 10px;
  z-index: 2;

  font-size: 3.75rem;
  color: var(--red);

  cursor: pointer;
}

.popup-image img {
  position: absolute;
  top: 50%;
  left: 50%;

  width: 60%;
  object-fit: cover;

  border: 3px solid var(--red);
  border-radius: 5px;
  transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
  .popup-image img {
    width: 95%;
  }
}
