/*For Gallery.html page*/
#gallery {
  padding: 40px;
  background-color: #f9f9f9;
  text-align: center;
}

#gallery h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.gallery-container img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-container img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
/* Fullscreen Lightbox */
/* Make gallery pictures clickable */
.gallery-container img {
  cursor: pointer;
}

/* Fullscreen lightbox overlay */
#lightbox {
  position: fixed;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  background: rgba(0, 0, 0, 0.9);
  display: flex;               /* we’ll toggle display via JS */
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 9999;
}

/* Big image inside lightbox */
#lightbox #lbImg {
   max-width: 90vw;  
  max-height: 80vh;
  border-radius: 12px;
}

/* Controls */
#lbPrev, #lbNext, #lbClose {
  position: absolute;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  font-size: 32px;
  line-height: 1;
  padding: 10px 14px;
  transition: background 0.25s ease;
}

#lbPrev:hover, #lbNext:hover {
  background: rgba(255,255,255,0.4);
}

/* Prev / Next positions */
#lbPrev { left: 20px; top: 50%; transform: translateY(-50%); }
#lbNext { right: 20px; top: 50%; transform: translateY(-50%); }

/* Close button */
#lbClose {
  right: 20px;
  top: 20px;
  background: transparent;
  font-size: 42px;
  padding: 0 8px;
}
#lbClose:hover { background: rgba(255,255,255,0.25); }

/* Optional: small fade-in */
#lightbox.fade-in { animation: lbFade 0.18s ease; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }