/* ── Gallery Lightbox ─────────────────────────────────────────── */

/* Make gallery items clickable */
.lb-clickable {
  position: relative;
  cursor: zoom-in;
}

.lb-clickable::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30, 42, 54, 0);
  transition: background 0.3s;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
}

.lb-clickable:hover::before {
  background: rgba(30, 42, 54, 0.45);
}

/* Zoom icon that appears on hover */
.lb-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 3;
  pointer-events: none;
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1E2A36;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.lb-clickable:hover .lb-hint {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ── Overlay ── */
.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 18, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.lb-overlay.lb-open {
  opacity: 1;
  pointer-events: all;
}

/* ── Image container ── */
.lb-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: calc(100vw - 160px);
  max-height: calc(100vh - 100px);
}

.lb-img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 140px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
}

.lb-img.lb-anim {
  animation: lbFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes lbFadeIn {
  from { opacity: 0; transform: scale(0.93); }
  to   { opacity: 1; transform: scale(1); }
}

.lb-caption {
  margin-top: 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.42);
  text-align: center;
  max-width: 620px;
  line-height: 1.5;
}

/* ── Controls ── */
.lb-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  z-index: 10001;
}

.lb-close:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.1);
}

.lb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: rgba(61, 142, 205, 0.12);
  border: 1px solid rgba(61, 142, 205, 0.25);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  z-index: 10001;
}

.lb-prev { left: 20px; }
.lb-next { right: 20px; }

.lb-nav:hover {
  background: rgba(61, 142, 205, 0.3);
  border-color: rgba(61, 142, 205, 0.5);
  transform: translateY(-50%) scale(1.08);
}

.lb-counter {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.35);
  z-index: 10001;
  white-space: nowrap;
}

/* ── Site-wide: wider containers for large monitors ── */
.process-inner,
.gallery-inner,
.footer-inner {
  max-width: 1600px;
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .lb-wrap {
    max-width: calc(100vw - 16px);
  }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-nav { width: 40px; height: 40px; }
}
