/* Project screenshot lightbox */
.gallery-thumb { cursor: pointer; position: relative; }
.gallery-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.28);
  opacity: 0;
  transition: opacity 0.25s ease;
  display: flex;
}
.gallery-thumb:hover::after { opacity: 1; }
.gallery-thumb .gallery-hint {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: scale(0.85);
  pointer-events: none;
}
.gallery-thumb:hover .gallery-hint { opacity: 1; transform: scale(1); }
.gallery-hint span {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.95);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 10, 12, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.lightbox.open { display: flex; }
.lightbox-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: min(1040px, 92vw);
  width: 100%;
}
.lightbox-stage {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 68vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  background: #fff;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.lightbox-img.visible { opacity: 1; transform: scale(1); }
.lightbox-caption-wrap {
  text-align: center;
  color: #fff;
  max-width: 62ch;
}
.lightbox-counter {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.lightbox-caption {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
}
.lightbox-close,
.lightbox-arrow {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox-close:hover,
.lightbox-arrow:hover { background: rgba(255,255,255,0.22); }
.lightbox-close {
  top: 24px; right: 24px;
  width: 44px; height: 44px;
  font-size: 20px;
}
.lightbox-arrow {
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  font-size: 20px;
}
.lightbox-arrow:hover { transform: translateY(-50%) scale(1.06); }
.lightbox-arrow.prev { left: 16px; }
.lightbox-arrow.next { right: 16px; }

@media (max-width: 700px) {
  .lightbox { padding: 16px; }
  .lightbox-arrow { width: 42px; height: 42px; font-size: 16px; }
  .lightbox-arrow.prev { left: 6px; }
  .lightbox-arrow.next { right: 6px; }
  .lightbox-close { top: 12px; right: 12px; width: 38px; height: 38px; }
  .lightbox-img { max-height: 52vh; }
}
