/* Модальное окно (Лайтбокс) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 15, 28, 0.92);
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__content {
  position: relative;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox__img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  object-fit: contain;
  user-select: none;
}

.lightbox__caption {
  margin-top: 14px;
  text-align: center;
  color: #fff;
  font-family: inherit;
}

.lightbox__title {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.lightbox__desc {
  display: block;
  font-size: 0.9rem;
  color: #cbd5e1;
}

/* Кнопки управления */
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: fixed;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  user-select: none;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox__close {
  top: 20px;
  right: 20px;
  font-size: 28px;
}

.lightbox__prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* Счетчик слайдов */
.lightbox__counter {
  position: fixed;
  top: 28px;
  left: 24px;
  color: #94a3b8;
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .lightbox__prev,
  .lightbox__next {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  .lightbox__prev { left: 10px; }
  .lightbox__next { right: 10px; }
}