/* ================= LIGHTBOX ================= */

.gallery-image {
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-image:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(232, 137, 44, 0.2);
}

.gallery-image:focus {
  outline: 2px solid var(--kc-orange);
  outline-offset: 2px;
  border-radius: 12px;
}

/* LIGHTBOX MODAL */
.kc-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 1rem;
}

.kc-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.kc-lightbox-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#kc-lightbox-image {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  animation: lightboxSlideIn 0.3s ease;
}

@keyframes lightboxSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* LIGHTBOX BUTTONS */
.kc-lightbox-close,
.kc-lightbox-prev,
.kc-lightbox-next {
  position: absolute;
  background: rgba(232, 137, 44, 0.9);
  border: none;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 1060;
}

.kc-lightbox-close:hover,
.kc-lightbox-prev:hover,
.kc-lightbox-next:hover {
  background: var(--kc-orange);
  transform: scale(1.1);
}

.kc-lightbox-close:focus,
.kc-lightbox-prev:focus,
.kc-lightbox-next:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.kc-lightbox-close {
  top: 1rem;
  right: 1rem;
}

.kc-lightbox-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.kc-lightbox-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

/* LIGHTBOX COUNTER */
.kc-lightbox-counter {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  margin-top: 1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  #kc-lightbox-image {
    max-width: 95%;
    max-height: 75vh;
  }

  .kc-lightbox-close,
  .kc-lightbox-prev,
  .kc-lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .kc-lightbox-close {
    top: 0.5rem;
    right: 0.5rem;
  }

  .kc-lightbox-prev {
    left: 0.5rem;
  }

  .kc-lightbox-next {
    right: 0.5rem;
  }
}

@media (max-width: 480px) {
  .kc-lightbox {
    padding: 0.5rem;
  }

  .kc-lightbox-prev,
  .kc-lightbox-next {
    display: none;
  }
}
