/* =========================
   Simple Lightbox2-ish CSS
   (no external icon images needed)
   ========================= */

:root{
  --lb-overlay: rgba(0,0,0,.82);
  --lb-panel: rgba(18,18,18,.92);
  --lb-text: #fff;
  --lb-muted: rgba(255,255,255,.72);
  --lb-radius: 14px;
  --lb-shadow: 0 18px 60px rgba(0,0,0,.45);
}

/* Overlay */
.lightboxOverlay{
  position: fixed;
  inset: 0;
  background: var(--lb-overlay);
  z-index: 9998;
  display: none;
}

/* Main wrapper */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  text-align: center;
  /* iOS safe */
  -webkit-tap-highlight-color: transparent;
}

.lightbox *{
  box-sizing: border-box;
}

/* Centering */
.lightbox .lb-outerContainer{
  position: relative;
  margin: 0 auto;
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
}

.lightbox .lb-container{
  position: relative;
  overflow: hidden;
  border-radius: var(--lb-radius);
  box-shadow: var(--lb-shadow);
  background: rgba(0,0,0,.25);
}

/* Image */
.lightbox .lb-image{
  display: block;
  width: 100%;
  height: auto;
  max-height: 86vh;
  object-fit: contain;
  border-radius: var(--lb-radius);
}

/* Navigation areas */
.lightbox .lb-nav{
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  pointer-events: none; /* only buttons clickable */
}

/* Prev/Next clickable zones */
.lightbox .lb-prev,
.lightbox .lb-next{
  width: 28%;
  min-width: 90px;
  height: 100%;
  display: block;
  opacity: 1;
  pointer-events: auto;
  text-decoration: none;
  outline: none;
  position: relative;
}

/* Add subtle gradients for hint */
.lightbox .lb-prev{
  background: linear-gradient(to right, rgba(0,0,0,.35), transparent);
}
.lightbox .lb-next{
  background: linear-gradient(to left, rgba(0,0,0,.35), transparent);
}

/* Arrow icons (no images needed) */
.lightbox .lb-prev::after,
.lightbox .lb-next::after{
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  color: var(--lb-text);
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
}

.lightbox .lb-prev::after{
  content: '‹';
  left: 16px;
}
.lightbox .lb-next::after{
  content: '›';
  right: 16px;
}

.lightbox .lb-prev:hover::after,
.lightbox .lb-next:hover::after{
  opacity: 1;
  transform: translateY(-50%) scale(1.02);
}

/* Close button */
.lightbox .lb-close{
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  color: var(--lb-text);
  display: grid;
  place-items: center;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.15);
  transition: transform .18s ease, background .18s ease;
}

.lightbox .lb-close::after{
  content: '×';
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.lightbox .lb-close:hover{
  transform: scale(1.04);
  background: rgba(0,0,0,.7);
}

/* Caption / data area */
.lightbox .lb-dataContainer{
  width: 100%;
  max-width: min(92vw, 1100px);
  margin: 10px auto 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--lb-panel);
  color: var(--lb-text);
  box-shadow: var(--lb-shadow);
}

.lightbox .lb-data{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.lightbox .lb-caption{
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  color: var(--lb-text);
}

.lightbox .lb-number{
  font-size: 12px;
  color: var(--lb-muted);
  white-space: nowrap;
}

/* Loading (optional) */
.lightbox .lb-loader{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 4;
}
.lightbox .lb-cancel{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 3px solid rgba(255,255,255,.35);
  border-top-color: rgba(255,255,255,.95);
  animation: lbspin .8s linear infinite;
}
@keyframes lbspin{ to{ transform: rotate(360deg); } }

/* Mobile tweaks */
@media (max-width: 768px){
  .lightbox .lb-prev,
  .lightbox .lb-next{
    width: 32%;
  }
  .lightbox .lb-prev::after,
  .lightbox .lb-next::after{
    opacity: .95; /* always visible on mobile */
  }
  .lightbox .lb-dataContainer{
    max-width: 94vw;
  }
}