
/* Sternfahrt: vergrößerte Bilder und Diashow */

body.sf-lb-open {
  overflow: hidden;
}

.sf-lightbox[hidden] {
  display: none !important;
}

.sf-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 12, 16, 0.96);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

.sf-lb-toolbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 12px 18px;
  z-index: 2;
}

.sf-lb-counter {
  margin-right: auto;
  font-size: 15px;
}

.sf-lightbox button {
  border: 0;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  cursor: pointer;
  border-radius: 6px;
  font: inherit;
}

.sf-lightbox button:hover {
  background: rgba(255, 255, 255, 0.25);
}

.sf-lightbox button:focus-visible {
  outline: 3px solid #ff7780;
  outline-offset: 3px;
}

.sf-lb-play {
  padding: 10px 15px;
}

.sf-lb-close {
  width: 48px;
  height: 48px;
  font-size: 32px !important;
  line-height: 1;
}

.sf-lb-prev,
.sf-lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 50px;
  height: 70px;
  font-size: 44px !important;
}

.sf-lb-prev { left: 12px; }
.sf-lb-next { right: 12px; }

.sf-lb-stage {
  max-width: calc(100vw - 145px);
  max-height: calc(100vh - 120px);
  text-align: center;
}

.sf-lb-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 155px);
  object-fit: contain;
  margin: auto;
}

.sf-lb-caption {
  margin: 10px 0 0;
  font-size: 14px;
  color: #ddd;
}

@media (max-width: 600px) {
  .sf-lb-prev, .sf-lb-next {
    width: 36px;
    height: 55px;
    font-size: 32px !important;
  }

  .sf-lb-prev { left: 4px; }
  .sf-lb-next { right: 4px; }

  .sf-lb-stage {
    max-width: calc(100vw - 85px);
  }

  .sf-lb-toolbar {
    padding: 8px;
    gap: 6px;
  }

  .sf-lb-play {
    padding: 10px;
    font-size: 13px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sf-lightbox * {
    transition: none !important;
    animation: none !important;
  }
}
