#custom-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
}
#custom-lightbox.clb-open {
  display: flex;
}
.clb-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}
.clb-img-wrap {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.clb-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  box-shadow: 0 4px 40px rgba(0,0,0,0.6);
}
.clb-close,
.clb-prev,
.clb-next {
  position: absolute;
  z-index: 2;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 0;
  transition: background 0.2s;
}
.clb-close:hover,
.clb-prev:hover,
.clb-next:hover {
  background: rgba(255,255,255,0.35);
}
.clb-close {
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.clb-prev,
.clb-next {
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.clb-prev { left: 16px; }
.clb-next { right: 16px; }
.clb-counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-family: sans-serif;
  letter-spacing: 1px;
}
@media (max-width: 600px) {
  .clb-prev { left: 4px; }
  .clb-next { right: 4px; }
  .clb-prev, .clb-next { width: 36px; height: 56px; font-size: 18px; }
}
