/* MOUSE GLOW — a light blob that follows the cursor.
   Class .mouse-glow goes on the container that directly wraps the cards.
   Cards must have a transparent background; the container owns the
   background, radius and shadow. Script: js/mouse-glow.js.
   Disabled below 768px. Override the variables from the block CSS. */

:where(.mouse-glow) {
    --mouse-glow-x: 50%;
    --mouse-glow-y: 50%;
    --mouse-glow-size: 860px;
    --mouse-glow-inner-color: rgba(25, 71, 151, 0.12);
    --mouse-glow-middle-color: rgba(25, 71, 151, 0.06);
    --mouse-glow-outer-color: rgba(25, 71, 151, 0);
}

.mouse-glow {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.mouse-glow::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: var(--mouse-glow-y);
    left: var(--mouse-glow-x);
    width: var(--mouse-glow-size);
    height: var(--mouse-glow-size);
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(
        circle,
        var(--mouse-glow-inner-color) 0%,
        var(--mouse-glow-middle-color) 28%,
        var(--mouse-glow-outer-color) 68%
    );
    transform: translate(-50%, -50%);
    will-change: top, left;
}

.mouse-glow > * {
    position: relative;
    z-index: 1;
}

@media (max-width: 767px) {
    .mouse-glow::before {
        display: none;
    }
}
