/* Overlay */
.llh-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 24px;
}

.llh-lightbox.is-open {
    display: flex;
}

/* Dialog */
.llh-lightbox__dialog {
    position: relative;
    width: min(1100px, 100%);
    max-height: 100%;
    outline: none;
}

/* Bild */
.llh-lightbox__img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 140px);
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    background: transparent;
}

/* Caption */
.llh-lightbox__caption {
    margin-top: 12px;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}

/* Buttons (Basis) */
.llh-lightbox__btn {
    position: absolute;
    top: 12px;
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 8px;
}

.llh-lightbox__btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* Close: fix oben rechts im Overlay */
.llh-lightbox__close {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 1000000;

    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

/* Minimalistische Prev/Next: icon-only, kein "Springen" */
.llh-lightbox__prev,
.llh-lightbox__next {
    top: 50%;
    transform: translateY(-50%);

    width: 44px;
    height: 44px;
    padding: 0;

    display: none; /* default: nie zeigen */
    align-items: center;
    justify-content: center;

    /* Icon-only: wir zeichnen die Chevrons selbst */
    font-size: 0;
    line-height: 0;
    color: transparent;

    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    border-radius: 999px;

    transition:
            background 160ms ease,
            border-color 160ms ease,
            opacity 160ms ease;
}

/* Nur bei Galerie-Navigation zeigen */
.llh-lightbox.llh-lightbox--multi .llh-lightbox__prev,
.llh-lightbox.llh-lightbox--multi .llh-lightbox__next {
    display: inline-flex;
}

/* Abstand zum Bild: weiter nach außen */
.llh-lightbox__prev { left: -72px; }
.llh-lightbox__next { right: -72px; }

/* Chevron-Icon (minimal) */
.llh-lightbox__prev::before,
.llh-lightbox__next::before {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(255, 255, 255, 0.92);
    border-bottom: 2px solid rgba(255, 255, 255, 0.92);
}

/* Links / rechts ausrichten */
.llh-lightbox__prev::before {
    transform: rotate(135deg);
    margin-left: 2px;
}
.llh-lightbox__next::before {
    transform: rotate(-45deg);
    margin-right: 2px;
}

/* Hover/Focus: nur dezente Hervorhebung (kein Springen) */
.llh-lightbox__prev:hover,
.llh-lightbox__next:hover,
.llh-lightbox__prev:focus-visible,
.llh-lightbox__next:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
}

/* Größere Klickfläche, ohne dass es optisch größer wirkt */
.llh-lightbox__prev::after,
.llh-lightbox__next::after {
    content: "";
    position: absolute;
    inset: -10px;
}

/* Auf kleinen Screens nicht nach außen schieben */
@media (max-width: 700px) {
    .llh-lightbox__prev { left: 12px; }
    .llh-lightbox__next { right: 12px; }
}

/* Body scroll lock */
body.llh-lightbox--lock {
    overflow: hidden;
}

/* Screenreader helper */
.llh-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}