/**
 * Lightbox / Bild-Zoom - Styling
 * -----------------------------------------
 */

/* Cursor-Hinweis auf klickbaren Artikelbildern */
.entry-content img.lightbox-enabled {
    cursor: zoom-in;
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    background: rgba(0, 0, 0, .92);
    cursor: zoom-out;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease;
}
.lightbox-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay__img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
    cursor: default;
}

.lightbox-overlay__close {
    position: fixed;
    top: 1.25rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    transition: background .2s ease;
}
.lightbox-overlay__close:hover,
.lightbox-overlay__close:focus-visible {
    background: rgba(255, 255, 255, .18);
}

.lightbox-overlay__loading {
    position: absolute;
    color: var(--color-text-muted);
    font-family: var(--font-sans);
    font-size: var(--size-sm);
}

@media (max-width: 600px) {
    .lightbox-overlay {
        padding: 1rem;
    }
    .lightbox-overlay__close {
        top: .75rem;
        right: .75rem;
        width: 38px;
        height: 38px;
    }
}
