/* Lightbox-Overlay */
#lightbox-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  /* box-shadow: 0 0 20px black; */
  background-color: white;
  transition: transform 0.3s;
  cursor: zoom-out;
}

/* Schließen-Button oben rechts */
#lightbox-overlay .lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3em;
    color: white;
    cursor: pointer;
    z-index: 10000;
    user-select: none;
  }

  /* Add styles or remove the empty ruleset */
  figure.lightbox {
    cursor: pointer;
  }

.background-highlight {
  width: 100vw;               /* Hintergrund über volle Seitenbreite */
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bg-color, transparent);
}
.background-highlight-inner {
  max-width: 960px;          /* gleiche Breite wie dein main */
  margin: 0 auto;
  padding: 20px 10px;
  box-sizing: border-box;
  color: var(--text-color, inherit);
}

/* sorgt dafür, dass auch Links etc. die Textfarbe übernehmen */
.background-highlight-inner * {
  color: inherit;
}

.background {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center center;
  background-repeat: repeat;
  margin-top: -40px
}
.invert-text, .invert-text p {
  color: white;
}