/* Lightbox pratinjau isi dan cuplikan paket di halaman detail ebook (t128u / t131u).
   Navy #0e2d6c + lime #c7f36b. Tanpa pustaka, tanpa pill dekoratif. */
#sni-lb {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: 100vw;
  max-height: 100dvh;
  z-index: 2147483000;
  isolation: isolate;
  display: none;
  align-items: center;
  justify-content: center;
  background: #0e2d6c;
  color: #fff;
  overflow: hidden;
  overscroll-behavior: contain;
  box-sizing: border-box;
}
#sni-lb.is-on { display: flex; }
#sni-lb[hidden] { display: none !important; }
#sni-lb .sni-lb-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100vw;
  max-height: 100dvh;
  padding: 56px 56px 48px;
  box-sizing: border-box;
  overflow: hidden;
}
#sni-lb img {
  position: relative;
  z-index: 1;
  display: block;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: calc(100dvh - 104px);
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: auto;
  cursor: default;
}
#sni-lb.sni-lb-many img { cursor: pointer; }
#sni-lb .sni-lb-close,
#sni-lb .sni-lb-prev,
#sni-lb .sni-lb-next {
  position: absolute;
  z-index: 5;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  margin: 0;
  background: #0e2d6c;
  color: #c7f36b;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  cursor: pointer;
  font: 600 26px/1 system-ui, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(199, 243, 107, 0.55);
}
#sni-lb .sni-lb-close {
  top: max(8px, env(safe-area-inset-top, 0px));
  right: max(8px, env(safe-area-inset-right, 0px));
  font-size: 28px;
}
#sni-lb .sni-lb-prev {
  left: max(8px, env(safe-area-inset-left, 0px));
  top: 50%;
  transform: translateY(-50%);
}
#sni-lb .sni-lb-next {
  right: max(8px, env(safe-area-inset-right, 0px));
  top: 50%;
  transform: translateY(-50%);
}
#sni-lb .sni-lb-count {
  position: absolute;
  z-index: 5;
  bottom: max(10px, env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  font: 600 14px/1.3 system-ui, sans-serif;
  color: #c7f36b;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  background: #0e2d6c;
  padding: 4px 10px;
}
#sni-lb button:focus-visible {
  outline: 2px solid #c7f36b;
  outline-offset: 2px;
}
#sni-lb .sni-lb-close[hidden],
#sni-lb .sni-lb-prev[hidden],
#sni-lb .sni-lb-next[hidden] { display: none !important; }
@media (max-width: 639px) {
  #sni-lb .sni-lb-stage { padding: 52px 8px 44px; }
  #sni-lb img { max-height: calc(100dvh - 96px); }
}
@media (prefers-reduced-motion: reduce) {
  #sni-lb, #sni-lb img, #sni-lb button { transition: none; }
}
html.sni-lb-lock,
html.sni-lb-lock body,
body.sni-lb-lock {
  overflow: hidden !important;
}
