.gallery {
  display: flex;
  padding: 0 10px;
  flex-direction: column;
  flex: 1;
  margin-bottom: 20px;
}

.images {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: 2300px;
  width: 100%;
  gap: 5px;

  @media (max-width: 1920px) {
    grid-template-columns: repeat(4, 1fr);
  }

  @media (max-width: 1200px) {
    grid-template-columns: repeat(3, 1fr);
  }

  @media (max-width: 600px) {
    grid-template-columns: 1fr;
  }

  &Container {
    --height: 220px;
    --gap: 5px;

    display: flex;
    flex-direction: column;
    gap: var(--gap);
    height: var(--height);
    cursor: pointer;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  .horizontal {
    grid-column: span 2;
  }

  .vertical {
    grid-row: span 2;
    height: calc(var(--height) * 2 + var(--gap));
  }
}

.fullscreenModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  cursor: pointer;

  img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
  }
}

.closeButton {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: all 50ms ease-in-out;
  z-index: 1001;

  &:hover {
    color: #ca2929;
  }
}

.arrowButton {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  transition: all 50ms ease-in-out;
  z-index: 1001;

  &:hover {
    color: #2a9d6d;
  }

  &Left {
    left: 20px;
  }

  &Right {
    right: 20px;
  }
}
