/* ════════════════════════════════════════════════
   Soap46 – Stile
   Version 1.0.0
════════════════════════════════════════════════ */

/* ─── Widget-Container ────────────────────── */
.soap46-widget {
    position: relative;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 4px;
    /* Hintergrund kommt inline vom PHP (Gradient) */
    touch-action: none; /* verhindert Browser-Scrolling bei Touch-Events */
}

.soap46-widget canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    position: absolute;
    inset: 0;
}

/* ─── Lightbox ────────────────────────────── */
.soap46-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;

    /* Backdrop-Blur für Glasmorphismus */
    backdrop-filter: blur(6px) saturate(180%);
    -webkit-backdrop-filter: blur(6px) saturate(180%);
}

.soap46-lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    transition:
        transform  .38s cubic-bezier(.22, 1, .36, 1),
        opacity    .30s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.soap46-lightbox button {
    position: absolute;
    top: 20px;
    right: 28px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 36px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .2s;
    backdrop-filter: blur(8px);
}

.soap46-lightbox button:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(1.08);
}

/* ─── Zugänglichkeit ──────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .soap46-lightbox img {
        transition: none;
    }
}

/* ─── Responsive ──────────────────────────── */
@media (max-width: 480px) {
    .soap46-lightbox img {
        max-width: 96vw;
        max-height: 82vh;
        border-radius: 10px;
    }
    .soap46-lightbox button {
        top: 12px;
        right: 14px;
        font-size: 28px;
        width: 42px;
        height: 42px;
    }
}
