/* Просмотр картинок портфолио: своё окно вместо старого highslide */
.rek-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(12, 18, 24, .92);
  padding: 24px;
}
.rek-lightbox.is-open { display: flex; }
.rek-lightbox__img {
  max-width: min(1200px, 94vw);
  max-height: 86vh;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .45);
}
.rek-lightbox__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.rek-lightbox__close:hover { background: rgba(255, 255, 255, .28); }
.rek-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.rek-lightbox__nav:hover { background: rgba(255, 255, 255, .28); }
.rek-lightbox__prev { left: 18px; }
.rek-lightbox__next { right: 18px; }
.rek-lightbox__count {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font: 14px/1.4 Arial, sans-serif;
  opacity: .85;
}
.rek-lightbox__img { cursor: zoom-out; }
@media (max-width: 600px) {
  .rek-lightbox { padding: 10px; }
  .rek-lightbox__nav { width: 42px; height: 42px; font-size: 22px; }
  .rek-lightbox__prev { left: 6px; }
  .rek-lightbox__next { right: 6px; }
}
