/* ═══════════════════════════════════════════════════════════════
   Lightbox Gallery — mobile-friendly
   ═══════════════════════════════════════════════════════════════ */

.ac-lb {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
}

.ac-lb.open {
  display: flex;
}

.ac-lb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 16, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ac-lb-stage {
  position: relative;
  z-index: 2;
  max-width: 95vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ac-lb-img {
  max-width: 95vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  animation: ac-lb-fade 0.3s ease;
}

@keyframes ac-lb-fade {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

.ac-lb-close,
.ac-lb-prev,
.ac-lb-next {
  position: absolute;
  z-index: 3;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.2s, transform 0.15s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ac-lb-close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ac-lb-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.ac-lb-prev,
.ac-lb-next {
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 36px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.ac-lb-prev { left: 20px; }
.ac-lb-next { right: 20px; }

.ac-lb-prev:hover,
.ac-lb-next:hover {
  background: rgba(255, 255, 255, 0.25);
}

.ac-lb-caption {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: #fff;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
  border-radius: 20px;
  max-width: 80vw;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ac-lb-counter {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 3;
  color: #fff;
  font-size: 13px;
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 14px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Zoom-Hint entfernt — force hide falls Cache noch alt */
.ac-lb-zoom-hint { display: none !important; }

/* Mobile-friendly adjustments */
@media (max-width: 600px) {
  .ac-lb-img {
    max-width: 100vw;
    max-height: 80vh;
    border-radius: 0;
  }
  .ac-lb-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
  .ac-lb-prev,
  .ac-lb-next {
    width: 44px;
    height: 44px;
    font-size: 28px;
  }
  .ac-lb-prev { left: 8px; }
  .ac-lb-next { right: 8px; }
  .ac-lb-caption {
    bottom: 20px;
    font-size: 12px;
    padding: 6px 12px;
  }
  .ac-lb-counter {
    top: 12px;
    left: 12px;
    font-size: 12px;
  }
}

/* Hover-Effekt auf Slides (zeigt Klickbarkeit) */
.n2-ss-slide-background[data-ac-lb-attached] {
  transition: filter 0.3s ease;
}

.n2-ss-slide-background[data-ac-lb-attached]:hover {
  filter: brightness(1.05);
}
