.dreiwm-parallax-block {
    --caption-z-index: 1;
    --layer-z-index: 2;
    background-color: #d6dde5;
}

.parallax-container {
    position: relative;
    overflow: hidden;
    height: 100vh;
    perspective: 1px;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    will-change: transform;
}

.parallax-layer[data-hide-text="true"] {
    z-index: var(--layer-z-index);
}

.parallax-layer::after {
    content: "";
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: #d7dfe5;
}

.parallax-layer img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.parallax-branding {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--caption-z-index);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.parallax-caption {
    display: block;
    font-family: var(--wp--preset--font-family--sansita);
    font-size: var(--wp--preset--font-size--xx-large);
    color: var(--wp--preset--color--base);
    line-height: 1;
    max-width: 650px;
    font-weight: 700;
}

.parallax-price-tag {
    position: absolute;
    width: 100%;
    text-align: center;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    padding: 20px 20px;
    border-radius: 20px;
    color: #fff;
    font-size: var(--wp--preset--font-size--x-large);
    font-family: var(--wp--preset--font-family--sansita);
    z-index: 3;
}

/* give last and second-to-last .parallax-layer a z-index of 4 */
.parallax-layer:nth-last-child(1),
.parallax-layer:nth-last-child(2) {
    z-index: 4;
}

@media screen and (max-width: 1400px) {

    .parallax-caption {
        font-size: var(--wp--preset--font-size--x-large);
        max-width: 90%;
    }

}

@media screen and (max-width: 700px) {

    .parallax-branding {
        max-width: 100%;
        width: 100%;
    }

    .parallax-branding .custom-logo {
        max-width: 200px;
        width: 100%;
    }

}


@media screen and (max-width: 430px) {

    .dreiwm-parallax-block {
        margin-bottom: -200px !important;
        margin-block-end: -200px !important;
    }

    .parallax-layer:last-child img {
        object-position: left;
    }

    .parallax-price-tag {
        bottom: 40%;
    }

}