#gallery {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.gallery-img {
  width: 150px;
  /*height: auto;*/
  cursor: pointer;
  transition: transform 0.2s;
}

.gallery-img:hover {
  transform: scale(1.1);
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay-content {
  width: 90%;
  height: 90%;
}

.overlay-content img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
}

.overlay-text {
  color: white;
  text-align: center;
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 30px;
  color: white;
  cursor: pointer;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: white;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px;
  border-radius: 5px;
  user-select: none;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}
