.demo__inner {
    padding-bottom: 3rem;
    background-image: url(../../images/demo-bg.png);
    background-position: center top;
    background-size: 100% auto;
    background-repeat: repeat-y;
    position: relative;
    z-index: 1;
}

.demo__inner::after {
    content: "";
    display: block;
    width: 100%;
    height: 15rem;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        white 100%
    );
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1;
    transition: 0.6s ease-out;
}

.demo__content {
    width: 50%;
    position: relative;
}

.demo__device {
    width: 100%;
    margin: 0 auto;
    position: sticky;
    top: 8rem;
    z-index: 1;
}

.demo__device-inner {
    width: 85%;
    height: 96%;
    background-image: var(--bg-desktop);
    background-repeat: no-repeat;
    background-size: 100% auto;
    position: absolute;
    left: 50%;
    top: 4%;
    transform: translateX(-50%);
    z-index: -1;
    border-radius: 0.5rem;
    overflow: hidden;
    backface-visibility: hidden;
}

.demo__image {
    width: 85%;
    opacity: 0;
}

.demo__bg-image {
    width: 100%;
    height: auto;
    position: absolute;
    left: 0;
    top: 0;
    z-index: -2;
    opacity: 0;
}

body[data-background="black"] .demo__inner::after {
    filter: invert(1);
}

.demo__image-item_mobile {
    display: none;
}

/* media queries START */
@media (max-width: 767.9px) {
    .demo__inner {
        background-image: url(../../images/demo-mobile-bg.png);
    }

    .demo__content {
        width: 44%;
    }

    .demo__device-inner {
        width: 89%;
        height: 96%;
        top: 2%;
        background-image: var(--bg-mobile);
    }

    .demo__image-item_desktop {
        display: none;
    }

    .demo__image-item_mobile {
        display: block;
    }
}
/* media queries END */