
main {
  background-image: url("../../images/backgrounds/gallery.jpg?v=1763854361");  background-size: auto;
  background-repeat: repeat;
  background-position: center;
  background-color: #000;
}

main > div {
  background-color: rgba(0, 0, 0, 0) !important;
}

#galleryPageContainer {
  box-sizing: border-box;
  padding: 75px 90px;
  width: 100%;
  align-self: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 50px;
}

h2 {
  width: fit-content;
  align-self: flex-start;
}

#galleryThumbnailsContainer {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
}

#galleryThumbnailsContainer ul {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 20px;
  width: 100%;
  max-width: 100%;
}

#galleryThumbnailsContainer li {
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  height: fit-content;
}

#galleryThumbnailsContainer button {
  all: unset;
  margin: 0;
  padding: 0;
  border: none;
  background-color: rgba(0, 0, 0, 0);
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  height: fit-content;
  cursor: zoom-in;
  transition: filter 0.2s;
  position: relative;
}

#galleryThumbnailsContainer button::after {
  content: "";
  background-color: rgba(0, 0, 0, 0.001);
  position: absolute;
  inset: 0;
  display: flex;
  z-index: 1;
}

#galleryThumbnailsContainer button:hover, #galleryThumbnailsContainer button:focus-visible {
  filter: brightness(1.2);
}

#galleryThumbnailsContainer button:active {
  filter: brightness(1.4);
}

#galleryThumbnailsContainer img {
  width: 100%;
  height: auto;
  aspect-ratio: 2/1;
  object-fit: cover;
  background-color: #000;
  pointer-events: none;
}

@media (max-width: 1300px) {

  #galleryPageContainer {
    padding: 30px 30px var(--pagePaddingBottomMobile) 30px;
    gap: 30px;
  }

  #galleryThumbnailsContainer ul {
    grid-template-columns: auto auto auto;
  }
}

@media (max-width: 799px) {

    #galleryPageContainer {
      padding: 0 30px var(--pagePaddingBottomMobile) 30px;
      gap: 30px;
    }

    h2 {
      width: 100%;
      text-align: center;
      align-self: center;
    }

    #galleryThumbnailsContainer ul {
      grid-template-columns: auto auto;
    }

    #galleryThumbnailsContainer button:hover {
      filter: brightness(1);
    }
  }

  @media (max-width: 650px) {

    #galleryPageContainer {
      padding: 0 30px var(--pagePaddingBottomMobile) 30px;
      gap: 30px;
    }

    h2 {
      width: 100%;
      text-align: center;
      align-self: center;
    }

    #galleryThumbnailsContainer ul {
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
      width: fit-content;
    }

    #galleryThumbnailsContainer img {
      width: clamp(100px, 50px + 70%, 1000px);
    }

    #galleryThumbnailsContainer button:hover {
      filter: brightness(1);
    }
  }