::-webkit-scrollbar {
  width: 0px;
  /* Remove scrollbar space */
  background: transparent;
  /* Optional: just make scrollbar invisible */
}

#dimmed {
  display: none;
  position: fixed;
  overflow: auto;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: 0.5;
  z-index: 665;
}

#close {
  position: fixed;
  display: none;
  top: 0px;
  right: 20px;
  color: #c1c1c1;
  font-size: 50px;
  font-weight: 600;
  z-index: 667;
  cursor: pointer;
  transition: all .3s ease;
  user-select: none;
}

#next {
  position: fixed;
  display: none;
  width: 20px;
  right: 0px;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #c1c1c1;
  font-size: 40px;
  font-weight: 600;
  z-index: 667;
  cursor: pointer;
  transition: all .3s ease;
  user-select: none;
}

#previous {
  position: fixed;
  display: none;
  width: 20px;
  left: 15px;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #c1c1c1;
  font-size: 40px;
  font-weight: 600;
  z-index: 667;
  cursor: pointer;
  transition: all .3s ease;
  user-select: none;
}

#image {
  position: fixed;
  display: none;
  width: 95%;
  height: 95%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 666;
  user-select: none;
  cursor: pointer;
  object-fit: contain;
}

.gallery-container {
  width: 100%;
  padding-top: 25px;
  height: 90vh;
}

.gallery-thumbnails {
  margin: 0 auto;
  text-align: center;
  padding-top: 15px;
}

.gallery-thumbnails img {
  height: 200px;
  margin: 0 10px 10px 0;
  width: auto;
  display: inline-block;
  margin: 3px;
  cursor: pointer;
  transition: transform .2s;
  border-radius: 5px;
}

.gallery-thumbnails img:hover {
  transform: scale(1.02);
}

@media only screen and (max-width: 500px) {
  .gallery-thumbnails img {
    height: auto;
    width: 95% !important;
  }
}

:hover:where(#close, #next, #previous) {
  color: white !important;
}
