/* Make gallery images show pointer cursor */
.gallery3 img {
  cursor: pointer;
  transition: transform 0.25s ease;
}
.gallery3 img:hover {
  transform: scale(1.02);
}

/* Lightbox Overlay */
.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  padding: 20px;
  user-select: none;
}

.lb-overlay.active {
  display: flex;
}

/* Image Wrapper */
.lb-content {
  position: relative;
  max-width: 85vw;
  max-height: 85vh;
  text-align: center;
}

.lb-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 6px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6);
  object-fit: contain;
}

/* Image Counter (e.g., 1 / 3) */
.lb-counter {
  color: #cbd5e1;
  font-size: 14px;
  margin-top: 10px;
  letter-spacing: 0.08em;
}

/* Close Button */
.lb-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #ffffff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.lb-close:hover {
  color: #facc15;
}

/* Previous & Next Buttons */
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.lb-nav:hover {
  background: #facc15;
  color: #0f172a;
}

.lb-prev {
  left: 25px;
}

.lb-next {
  right: 25px;
}

@media (max-width: 600px) {
  .lb-nav {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  .lb-prev {
    left: 10px;
  }
  .lb-next {
    right: 10px;
  }
}
