/* Make the main image look clickable */
#feature-image {
  cursor: zoom-in; /* Changes the mouse to a magnifying glass */
}

/* The Lightbox Background */
.lightbox {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 9999; /* Ensures it sits on top of absolutely everything */
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  padding: 40px 20px;
  
  /* A darker version of your glassmorphism effect */
  background-color: rgba(15, 15, 15, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  
  /* Flexbox to perfectly center the image */
  align-items: center;
  justify-content: center;
}

/* The Image Inside the Lightbox */
.lightbox-content {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0, 0.7);
  object-fit: contain; /* Prevents stretching */
   
  cursor: zoom-in; /* Hints that they can click to zoom */
  margin: auto; /* Helps keep the image centered even when scrolling */
  flex-shrink: 0; /* Prevents flexbox from forcing it to shrink */
  transition: max-width 0.3s ease, max-height 0.3s ease, width 0.3s ease;
  /* Smooth pop-in animation */
  animation: zoomIn 0.3s ease;
}

.lightbox-content.zoomed {
  /* Removes the screen-size limits */
  max-width: none; 
  max-height: none; 
  
  /* Forces the image to expand (you can adjust this percentage!) */
  width: 150%; 
  
  cursor: zoom-out; /* Changes cursor to a minus sign */
}


/* The Close Button (Top Right) */
.close-lightbox {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.close-lightbox:hover {
  color: #ff9800; /* Use your accent color here */
}

/* Keyframe for the pop-in effect */
@keyframes zoomIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
