/* Lightbox Overlay */
#lightboxOverlay {
  opacity: 0;
  transition: opacity 0.3s;
  display: none;
}
#lightboxOverlay[style*="display: flex"] {
  opacity: 1;
}
#lightboxOverlay .lightbox-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 40px 10px rgba(0,0,0,0.25);
  padding: 20px;
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
#lightboxOverlay img {
  max-width: 80vw;
  max-height: 70vh;
  border-radius: 8px;
  box-shadow: 0 0 10px 2px rgba(0,0,0,0.10);
  border: 10px solid #fff;
  background: #fff;
}
/* Lightbox Pfeile und Close-Button im Scroll-to-top-Button-Design */
.lightbox-nav-btn, .lightbox-close-btn {
  background-color: #0b9275;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2em;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  cursor: pointer;
  position: absolute;
  opacity: 0.97;
  z-index: 100001;
  transition: all 0.3s ease;
  padding: 0;
  outline: none;
}
.lightbox-nav-btn.left {
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-nav-btn.right {
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-nav-btn span, .lightbox-close-btn span {
  color: #fff;
  font-size: 1.7em;
  line-height: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-nav-btn:hover, .lightbox-close-btn:hover {
  background-color: #085e48;
  transform: scale(1.1);
}
.lightbox-close-btn {
  top: 32px;
  right: 32px;
  width: 50px;
  height: 50px;
  font-size: 2em;
  z-index: 100002;
}
@media (max-width: 600px) {
  .lightbox-nav-btn, .lightbox-close-btn {
    width: 38px;
    height: 38px;
    font-size: 1.2em;
  }
  .lightbox-nav-btn.left {
    left: 8px;
  }
  .lightbox-nav-btn.right {
    right: 8px;
  }
  .lightbox-close-btn {
    top: 8px;
    right: 8px;
  }
}
/* Touch-Swipe Hinweis */
.lightbox-touch-hint {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: 6px 16px;
  border-radius: 16px;
  font-size: 0.95em;
  z-index: 100003;
  pointer-events: none;
  display: none;
}
@media (max-width: 800px) {
  .lightbox-touch-hint {
    display: block;
  }
}
/* Fade-in Animation für das Lightbox-Bild */
.lightbox-fade-in {
  animation: lightboxFadeIn 1s;
}

@keyframes lightboxFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
} 