/* Lightbox Feature */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  cursor: zoom-out;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 80vw;
  max-height: 80vh;
  transform: scale(0.9);
  transition: transform 0.4s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  z-index: 100000;
}

.lightbox-close:hover {
  background: var(--y);
  color: #000;
  transform: rotate(90deg);
}

.lightbox-close svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

/* Add a hint cursor to trigger images */
.lightbox-trigger {
  cursor: zoom-in !important;
  pointer-events: auto !important;
}

@media (max-width: 768px) {
  .lightbox-content {
    max-width: 95vw;
    max-height: 85vh;
  }
  
  .lightbox-close {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5); /* Higher contrast for mobile */
    backdrop-filter: blur(4px);
  }

  .lightbox-img {
    border-radius: 8px;
  }
}
