/* ============================================================
   LIGHTBOX — lightbox.css
   ============================================================ */

.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.94);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lb-overlay.lb-active {
  display: flex;
}

.lb-img-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: calc(100vw - 160px);
  max-height: calc(100vh - 80px);
}

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

.lb-caption {
  margin-top: 14px;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  max-width: 600px;
  line-height: 1.5;
}

.lb-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
  z-index: 1001;
}

.lb-close:hover { color: #fff; }

.lb-arrow {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 56px;
  line-height: 1;
  cursor: pointer;
  padding: 0 20px;
  transition: color 0.2s, transform 0.15s;
  flex-shrink: 0;
  user-select: none;
}

.lb-arrow:hover {
  color: #fff;
}

.lb-prev:hover { transform: translateX(-3px); }
.lb-next:hover { transform: translateX(3px); }

.lb-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .lb-img-wrap { max-width: calc(100vw - 80px); }
  .lb-arrow { font-size: 40px; padding: 0 12px; }
  .lb-img { max-height: calc(100vh - 160px); }
}
