.jcm-lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98) !important;
  z-index: 10000;
  animation: fadeIn 0.3s ease-out;
  overflow: hidden;
}

.jcm-lightbox-overlay.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.jcm-lightbox-content {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.jcm-lightbox-image {
  max-width: 100vw;
  max-height: 100vh;
  width: auto;
  height: auto;
  object-fit: contain;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.jcm-lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: #333;
  font-size: 40px;
  cursor: pointer;
  z-index: 10001;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.jcm-lightbox-close:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: rotate(90deg);
}

.jcm-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.2);
  border: none;
  color: #333;
  font-size: 30px;
  cursor: pointer;
  padding: 15px 20px;
  border-radius: 4px;
  transition: all 0.2s ease;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
}

.jcm-lightbox-nav:hover {
  background: rgba(0, 0, 0, 0.4);
}

.jcm-lightbox-nav.prev {
  left: 20px;
}

.jcm-lightbox-nav.next {
  right: 20px;
}

.jcm-lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  z-index: 10001;
}

/* Make images clickable with pointer cursor */
.rzut-image,
.featured-image,
.gallery-item img {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.rzut-image:hover,
.featured-image:hover,
.gallery-item img:hover {
  opacity: 0.85;
}

@media (max-width: 768px) {
  .jcm-lightbox-nav {
    padding: 10px 15px;
    font-size: 20px;
    width: 40px;
    height: 40px;
  }

  .jcm-lightbox-nav.prev {
    left: 10px;
  }

  .jcm-lightbox-nav.next {
    right: 10px;
  }

  .jcm-lightbox-close {
    top: 10px;
    right: 10px;
    font-size: 30px;
    width: 40px;
    height: 40px;
  }

  .jcm-lightbox-counter {
    bottom: 10px;
    font-size: 12px;
    padding: 8px 15px;
  }
}
