/* Лайтбокс — общий компонент сайта */

.lb {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.lb--open { display: flex; }

.lb__figure {
  margin: 0;
  max-width: min(1180px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lb__img {
  max-width: 100%;
  max-height: calc(100vh - 150px);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}
.lb__caption {
  margin: 0;
  max-width: 70ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.224px;
  text-align: center;
}

.lb__close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .18s ease;
}
.lb__close:hover { background: rgba(255, 255, 255, 0.3); }
.lb__close:focus-visible { outline: 2px solid #0071e3; outline-offset: 2px; }

html.lb-locked, html.lb-locked body { overflow: hidden; }

/* Курсор-подсказка: изображение можно увеличить */
a[href$=".png"] img,
a[href$=".jpg"] img,
a[href$=".jpeg"] img,
a[href$=".webp"] img,
a[href$=".gif"] img { cursor: zoom-in; }

@media (max-width: 720px) {
  .lb { padding: 16px; }
  .lb__img { max-height: calc(100vh - 120px); }
}
