/* ==============================================================
   LIGHTBOX CSS - Szybka, lekka przeglądarka zdjęć bez bibliotek
   ============================================================== */

.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 99999;
  inset: 0;
  background-color: rgba(5, 6, 8, 0.96);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  user-select: none;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.lightbox-caption {
  margin-top: 15px;
  color: #e2e8f0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 30px;
  color: #fff;
  font-size: 2.5rem;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  z-index: 100;
}

.lightbox-close:hover {
  color: #e51b24;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(20, 22, 29, 0.7);
  color: #fff;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s, color 0.2s;
  z-index: 100;
}

.lightbox-arrow:hover {
  background: #e51b24;
  color: #fff;
}

.lightbox-prev {
  left: 25px;
}

.lightbox-next {
  right: 25px;
}

.lightbox-counter {
  position: absolute;
  top: 25px;
  left: 30px;
  color: #94a3b8;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 1px;
}
