body {
  margin: 0;
  font-family: sans-serif;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
}

.gallery img {
  cursor: pointer;
  width: 150px;    /* adjust as needed */
  height: auto;
  transition: transform .3s;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* Lightbox Modal Styles */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
  padding: 20px;
  box-sizing: border-box;
}

.lightbox-img {
  max-width: 90%;
  max-height: 80%;
  margin: 0 auto;
}

.caption {
  color: #fff;
  margin-top: 10px;
  text-align: center;
}

.lightbox button {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 10px;
  transition: color .3s;
}

.lightbox button:hover {
  color: #ddd;
}

.lightbox .close {
  top: 20px;
  right: 20px;
}

.lightbox .prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox .next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}
