#wspl-overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--wspl-background-color);
    width: 100dvw;
    height: 100dvh;
    z-index: 999999;

    &.display-wspl-overlay {
        animation: wspl-show 0.3s ease-in-out forwards;
    }
    &.hidden {
        animation: wspl-hide 0.3s ease-in-out forwards;
        &.hiddenOnLoad {
            display: none;
        }
    }


    picture {
        max-width: 75dvw;
        max-height: 60dvh;
        object-fit: contain;
        width: auto;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;

        &:before {
            content: '';
            position: absolute;
            top: -50px;
            right: 0;
            bottom: 0;
            width: 30px;
            height: 30px;
            cursor: pointer;
            mask-image: var(--wspl-icon-url);
            mask-size: contain;
            mask-repeat: no-repeat;
            background-color: var(--wspl-icon-color);
            mask-position: center;
            transition: all ease-in-out 0.3s;

        }
        &:hover,
        &:active,
        &:focus {
            &:before {
                opacity: 0.8;
            }
        }

        img {
            width: auto;
            height: auto;
            max-width: 75dvw;
            max-height: 60dvh;
            object-fit: contain;
            position: relative;
        }
    }

}


#wspl-cta {
    z-index: 777;
    position: fixed;
    bottom: var(--cta-offset-mobil);
    width: 70px;
    height: 70px;
    cursor: pointer;
    transition: all ease-in-out 0.3s;
    border-radius: 50%;
    background-color : var(--cta-icon-background);
    display: flex;
    justify-content: center;
    align-items: center;
    #wspl-cta-icon {
        display: block;
        width: 50%;
        height: 50%;
        mask-image: var(--cta-icon-url);
        mask-size: contain;
        mask-repeat: no-repeat;
        background-color: var(--cta-icon-color);
        mask-position: center;
        transition: all ease-in-out 0.3s;
    }

    &:hover,
    &:active,
    &:focus {
        background-color : var(--cta-icon-color);
        #wspl-cta-icon {
            background-color: var(--cta-icon-background);
        }
    }
    @media (min-width: 768px) {
        bottom: var(--cta-offset-tablet);
    }
    @media (min-width: 1200px) {
        bottom: var(--cta-offset-desktop);
    }

    @media (min-width: 1920px) {
        bottom: var(--cta-offset-hd);
    }
    &.rechts {
        right: var(--cta-offset-rand-mobil);
        @media (min-width: 768px) {
            right: var(--cta-offset-rand-tablet);
        }
        @media (min-width: 1200px) {
            right: var(--cta-offset-rand-desktop);
        }
        @media (min-width: 1920px) {
            right: var(--cta-offset-rand-hd);
        }
    }
    &.links {
        left: var(--cta-offset-rand-mobil);
        @media (min-width: 768px) {
            left: var(--cta-offset-rand-tablet);
        }
        @media (min-width: 1200px) {
            left: var(--cta-offset-rand-desktop);
        }
        @media (min-width: 1920px) {
            left: var(--cta-offset-rand-hd);
        }
    }
    &.hidden {
        animation: wspl-hide 0.3s ease-in-out forwards;
    }
    &.show {
        animation: wspl-show 0.3s ease-in-out forwards;
    }
}
@keyframes wspl-show {
    0% {
        opacity: 0;
        display: flex;
    }
    100% {
        opacity: 1;
        display: flex;
    }
}

@keyframes wspl-hide {
    0% {
        opacity: 1;
        display: flex;
    }
    99% {
        opacity: 0;
        display: flex;
    }
    100% {
        opacity: 0;
        display: none;
    }
}