
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
}

.title {
  text-align: center;
  padding: 20px;
}

.thumb-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  padding: 20px;
}

.thumb-gallery img {
  width: 100%;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.thumb-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* Lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  touch-action: pan-y;
  user-select: none;
  will-change: transform;
}

#lightbox.show img {
  transform: scale(1);
  opacity: 1;
}
/* Controls */
.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
	z-index: 10001;
}

.nav img {
  width: 40px;
  height: 40px;
  transition: transform 0.2s ease, opacity 0.2s ease;
	
  touch-action: pan-y;
  user-select: none;

}

.nav:hover img {
  transform: scale(1.15);
  opacity: 0.8;
}

.prev { left: 20px; }
.next { right: 20px; }


@media (max-width: 768px) {
  .nav {
    display: none;
  }
}