/* ═══ Общий полноэкранный просмотрщик скриншотов (rl-lightbox) ═══
   Самодостаточный оверлей: тёмный фон, картинка по ширине окна с зумом
   колесом/пинчем, навигация стрелками и клавишами, закрытие по Esc/клику.
   Разметку строит /js/rl-lightbox.js по клику на [data-rl-lightbox];
   стили изолированы в .rl-lightbox, чтобы не зависеть от классов темы.
   До выделения в общий файл жил в product-incam.css как incam-lightbox. */
.rl-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(8, 9, 12, .94);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.rl-lightbox.is-open { display: flex; }
.rl-lightbox__img {
  max-width: 94vw; max-height: 88vh;
  object-fit: contain; border-radius: 8px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.8);
  /* transform задаётся JS (зум/перетаскивание); transition только для зума. */
  transition: transform .12s ease-out;
  cursor: grab;
}
.rl-lightbox__img.is-zoomed { transition: none; cursor: grab; }
.rl-lightbox__img.is-dragging { cursor: grabbing; transition: none; }
.rl-lightbox__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer;
  transition: background .15s ease, opacity .15s ease;
}
.rl-lightbox__btn:hover { background: rgba(255,255,255,.18); }
.rl-lightbox__btn:disabled { opacity: .25; cursor: default; }
.rl-lightbox__btn--prev { left: 18px; }
.rl-lightbox__btn--next { right: 18px; }
.rl-lightbox__close {
  position: absolute; top: 18px; right: 18px;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #fff;
  font-size: 24px; line-height: 1; cursor: pointer;
  transition: background .15s ease;
}
.rl-lightbox__close:hover { background: rgba(255,255,255,.18); }
.rl-lightbox__caption {
  position: absolute; bottom: 20px; left: 0; right: 0;
  padding: 0 70px; text-align: center;
  font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.7);
}
.rl-lightbox__counter {
  position: absolute; top: 22px; left: 22px;
  font-size: 13px; color: rgba(255,255,255,.55);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 760px) {
  .rl-lightbox__btn { width: 42px; height: 42px; font-size: 22px; }
  .rl-lightbox__btn--prev { left: 10px; }
  .rl-lightbox__btn--next { right: 10px; }
  .rl-lightbox__caption { padding: 0 50px; font-size: 13px; }
}
