/* ================================================
   PickWishesHub — lightbox_v2.css
   Standalone lightbox styles (category + image pages)
   ================================================ */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.93);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
  padding: 16px;
}

.lightbox.open { display: flex; }

#lightbox-img {
  max-width: 94vw;
  max-height: 70vh;
  border-radius: 14px;
  object-fit: contain;
  display: block;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

.lightbox-icons {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  justify-content: center;
  align-items: center;
}

.lightbox-icons a {
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  text-decoration: none;
  flex-shrink: 0;
}

.lightbox-icons a:hover { transform: scale(1.1); background: #fff; }

.lightbox-icons img { width: 26px; height: 26px; }

.lb-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.92);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
  transition: background 0.2s, transform 0.2s;
  color: #1C1917;
}

.lb-nav-btn:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.lb-nav-btn.prev  { left: 12px; }
.lb-nav-btn.next  { right: 12px; }

.lb-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10001;
}

.lb-close:hover { background: rgba(255,255,255,0.28); }

@media (max-width: 600px) {
  #lightbox-img { max-height: 62vh; max-width: 96vw; }

  .lightbox-icons { gap: 10px; margin-top: 14px; }

  .lightbox-icons a { width: 46px; height: 46px; }
  .lightbox-icons img { width: 22px; height: 22px; }

  .lb-nav-btn { width: 36px; height: 36px; font-size: 15px; }
  .lb-nav-btn.prev { left: 8px; }
  .lb-nav-btn.next { right: 8px; }

  .lb-close { top: 10px; right: 10px; width: 34px; height: 34px; font-size: 16px; }
}
