/* 1. Hide the checkbox completely */
.lightbox-checkbox {
  display: none;
}

/* 2. Lightbox Container (Hidden by default using pointer-events and opacity for smooth transitions) */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}

/* 3. The Invisible Backdrop Label (Fills the screen behind the content) */
.lightbox-backdrop-close {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  cursor: pointer;
  z-index: 1; /* Sits below the content */
    pointer-events: none
}

/* 4. The Content Box */
.lightbox-content {
  position: relative;
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  max-width: min(80vw, 800px);
  width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 2; /* Sits above the backdrop */
}

/* 5. The Close "X" Button */
.lightbox-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 28px;
  line-height: 1;
  font-family: sans-serif;
  color: #333;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
    display: none
}

.lightbox-close-btn:hover {
  color: #ff0000;
}

/* 6. The Magic: Show the lightbox when the checkbox is checked */
.lightbox-checkbox:checked ~ .lightbox-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Optional styling for the initial open button */
.open-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  font-family: sans-serif;
}
.open-btn:hover {
  background-color: #0056b3;
}
