/* ============================================= */
/* LIGHTBOX - Portfolio Screenshot Viewer         */
/* ============================================= */

.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: zoom-out;
  overflow: hidden;
}

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

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  overflow: visible;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  overflow: visible;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-caption {
  text-align: center;
  color: #ccc;
  font-size: 0.9rem;
  margin-top: 12px;
  opacity: 0.8;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 20px;
  opacity: 0.5;
  transition: opacity 0.2s ease;
  overflow: visible;
}

.lightbox-nav:hover {
  opacity: 1;
}

.lightbox-prev {
  left: -60px;
}

.lightbox-next {
  right: -60px;
}

/* Hover hint on project images */
.project-img {
  position: relative;
}

.project-img::after {
  content: 'Klicken zum Vergroessern';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
  font-size: 0.8rem;
  text-align: center;
  padding: 20px 10px 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  overflow: hidden;
}

.project-item:hover .project-img::after {
  opacity: 1;
}

/* Live badge */
.project-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--green);
  color: var(--dark-gray);
  z-index: 2;
  overflow: hidden;
}

@media (max-width: 768px) {
  .lightbox-prev {
    left: 5px;
  }

  .lightbox-next {
    right: 5px;
  }

  .lightbox-nav {
    font-size: 1.5rem;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
  }
}
