/* Lightbox — fullscreen image viewer, global for all case study pages */
.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  cursor: zoom-out;
}
.lb-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.lb-overlay img {
  height: 92vh;
  width: auto;
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 0 80px rgba(0,0,0,0.5);
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}
.lb-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  z-index: 10001;
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, background 0.15s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lb-close.visible {
  opacity: 1;
  pointer-events: auto;
}
.lb-close:hover { background: rgba(255,255,255,0.18); }
.lb-close svg { width: 20px; height: 20px; stroke: #fff; stroke-width: 2; }

.lb-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  z-index: 10001;
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, background 0.15s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lb-arrow.visible { opacity: 1; pointer-events: auto; }
.lb-arrow:hover { background: rgba(255,255,255,0.18); }
.lb-arrow svg { width: 24px; height: 24px; stroke: #fff; stroke-width: 2; }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }

.lb-counter {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lb-counter.visible { opacity: 1; }

.lb-info {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  z-index: 10001;
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, background 0.15s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lb-info.visible { opacity: 1; pointer-events: auto; }
.lb-info:hover { background: rgba(255,255,255,0.18); }
.lb-info svg { width: 20px; height: 20px; stroke: #fff; stroke-width: 2; }

.lb-caption {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: rgba(10,10,9,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 20px 88px 20px 28px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.lb-caption.open { transform: translateY(0); }
.lb-caption-num {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}
.lb-caption-title {
  font-size: 15px; font-weight: 500; color: rgba(255,255,255,0.85);
  line-height: 1.4; max-width: 640px;
}

@media (max-width: 809px) {
  .lb-arrow { width: 44px; height: 44px; }
  .lb-prev { left: 12px; }
  .lb-next { right: 12px; }
  .lb-info { bottom: 16px; right: 16px; }
  .lb-caption { padding: 16px 72px 16px 20px; }
}
