body .px-immobilien {
    max-width: none !important;
    &[data-slider="false"] {
        position: relative;
        
        &[data-margin-before="default"],
        &:not([data-margin-before]) {
            margin-top: 20px;
        }
        &[data-margin-after="default"],
        &:not([data-margin-after]) {
            margin-bottom: 20px;
        }

        &:not(.no-background) {
            padding-top: var(--fl-margin-after-medium, 70px);
            padding-bottom: var(--fl-margin-after-medium, 70px);
            background-color: var(--propstack-main-color, #D2720D);

            &:after,
            &:before {
                content: url("../images/line.png");
                position: absolute;
                left: 0 ;
                max-width: 100vw;
                overflow: hidden
            }
            &:before {
                top: -20px
            }
            &:after {
                bottom: -20px
            }
        }


        /* > *:not(#propstack-list-view) {
            max-width: var(--maxWidthBig, 1504px);
            width: var(--baseWidth, 92%);
            margin-left: auto;
            margin-right: auto;
        } */

        .real-estate-post-list {
            @media screen and ( min-width: 1201px ) {
                flex-wrap: wrap;
                justify-content: center;
            }
            @media screen and ( max-width: 1200px ) {
                &.mobile-slider-off {
                    flex-wrap: wrap;
                    justify-content: center;
                    /* flex-direction: column; */
                }
                &:not(.mobile-slider-off) {
                    overflow-x: auto;
                    overflow-y: hidden;
                    scroll-snap-type: x mandatory;
                    scroll-behavior: smooth;
                    -webkit-overflow-scrolling: touch;
                    padding-bottom: 20px;
                    padding-right: Max(4%, calc((100% - var(--maxWidthBig, 1504px))/2));
                    max-width: 100%;
                    --scrollbarHeight: 30px;

                    &:not(.propstack-properties-container) {
                        margin-left: Max(4%, calc((100% - var(--maxWidthBig, 1504px))/2));
                    }

                    &::-webkit-scrollbar {
                        height: var(--scrollbarHeight, 30px);
                    }

                    &::-webkit-scrollbar-track {
                        height: 2px;
                        background: var(--greyVeryLight, lightgrey);
                    }

                    &::-webkit-scrollbar-thumb {
                        background-color: var(--propstack-main-color, #D2720D);
                        border-radius: 5px;
                        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="white" class="bi bi-grip-horizontal" viewBox="0 0 16 16"><path d="M2 8a1 1 0 1 1 0 2 1 1 0 0 1 0-2m0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2m3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2m0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2m3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2m0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2m3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2m0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2m3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2m0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2"/></svg>');
                        background-repeat: no-repeat;
                        background-size: 90% 70%;
                        background-position: center;
                    }
                    &::-webkit-scrollbar-button:start:decrement,
                    &::-webkit-scrollbar-button:end:increment {
                        position: absolute;
                        top: 0;
                        display: block;
                        height: var(--scrollbarHeight, 30px);
                        width: var(--scrollbarHeight, 30px);
                        background: #fff;
                        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="rgb(210, 114, 13)" class="bi bi-caret-left-fill" viewBox="0 0 16 16"><path d="m3.86 8.753 5.482 4.796c.646.566 1.658.106 1.658-.753V3.204a1 1 0 0 0-1.659-.753l-5.48 4.796a1 1 0 0 0 0 1.506z"/></svg>');
                        background-size: 80%;
                        background-position: center;
                        background-repeat: no-repeat;
                        cursor: pointer;
                    }
                    &::-webkit-scrollbar-button:end:increment {
                        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="rgb(210, 114, 13)" class="bi bi-caret-right-fill" viewBox="0 0 16 16"><path d="m12.14 8.753-5.482 4.796c-.646.566-1.658.106-1.658-.753V3.204a1 1 0 0 1 1.659-.753l5.48 4.796a1 1 0 0 1 0 1.506z"/></svg>');
                    }

                    .real-estate-post {
                        scroll-snap-align: start;
                        flex-shrink: 0;
                    }
                }
            }
        }

        .innerBlocks {
            margin-bottom: var(--fl-margin-after-small, 45px);

            * {
                color: var(--contrastColorInverted, #fff)
            }
        }
        .px-immobilien-buttons {
            margin-top: var(--fl-margin-before-small, 45px);
            justify-content: center;
        }
    }
    &[data-slider="true"] {
        display: flex;
        gap: clamp(10px, 3vw, 45px);
        position: relative;
        padding-bottom: 100px;

        @media screen and ( min-width: 1201px ) {
            &:not(.propstack-split-view) {
                align-items: center;
            }
        }
        @media screen and ( max-width: 1200px ) {
            &:not(.propstack-content-wrapper) {
                flex-direction: column;
            }
        }
        .px-immobilien-buttons {
            align-items: flex-start;
            margin-top: var(--fl-margin-after-small, 45px);
            gap: clamp(10px, 1.5vw, 30px);
            min-width: max-content;
        }

        .real-estate-post-list {
            overflow-x: auto;
            overflow-y: hidden;
            scroll-snap-type: x mandatory;
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
            padding-bottom: 20px;
            padding-right: Max(4%, calc((100% - var(--maxWidthBig, 1504px))/2));
            max-width: 100%;
            --scrollbarHeight: 30px;
            @media screen and ( max-width: 1200px ) {
                &:not(.propstack-properties-container) {
                    margin-left: Max(4%, calc((100% - var(--maxWidthBig, 1504px))/2));
                }
            }

            &::-webkit-scrollbar {
                height: var(--scrollbarHeight, 30px);
            }

            &::-webkit-scrollbar-track {
                height: 2px;
                background: var(--greyVeryLight, lightgrey);
            }

            &::-webkit-scrollbar-thumb {
                background-color: var(--propstack-main-color, #D2720D);
                border-radius: 5px;
                background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="white" class="bi bi-grip-horizontal" viewBox="0 0 16 16"><path d="M2 8a1 1 0 1 1 0 2 1 1 0 0 1 0-2m0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2m3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2m0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2m3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2m0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2m3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2m0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2m3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2m0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2"/></svg>');
                background-repeat: no-repeat;
                background-size: 90% 70%;
                background-position: center;
            }
            &::-webkit-scrollbar-button:start:decrement,
            &::-webkit-scrollbar-button:end:increment {
                position: absolute;
                top: 0;
                display: block;
                height: var(--scrollbarHeight, 30px);
                width: var(--scrollbarHeight, 30px);
                background: #fff;
                background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="rgb(210, 114, 13)" class="bi bi-caret-left-fill" viewBox="0 0 16 16"><path d="m3.86 8.753 5.482 4.796c.646.566 1.658.106 1.658-.753V3.204a1 1 0 0 0-1.659-.753l-5.48 4.796a1 1 0 0 0 0 1.506z"/></svg>');
                background-size: 80%;
                background-position: center;
                background-repeat: no-repeat;
                cursor: pointer;
            }
            &::-webkit-scrollbar-button:end:increment {
                background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="rgb(210, 114, 13)" class="bi bi-caret-right-fill" viewBox="0 0 16 16"><path d="m12.14 8.753-5.482 4.796c-.646.566-1.658.106-1.658-.753V3.204a1 1 0 0 1 1.659-.753l5.48 4.796a1 1 0 0 1 0 1.506z"/></svg>');
            }

            .real-estate-post {
                scroll-snap-align: start;
                flex-shrink: 0;
            }
        }
        .slider-title {
            @media screen and ( min-width: 1201px ) {
                font-size: clamp(20px, 5vw, 94px);
                font-family: var(--headline);
                font-weight: 700;
                line-height: 57%;
                color: rgba(210, 114, 13, .1);
                margin-bottom: 0;
                align-self: end;
                writing-mode: sideways-lr;
            }
            @media screen and ( max-width: 1200px ) {
                display: none
            }

        }

        @media (min-width: 768px) {
            .slider-buttons {
                display: none
            }
        }
        @media screen and (min--moz-device-pixel-ratio:0) {
            .slider-buttons {
                display: flex;
                width: 100%;
                display: flex;;
                gap: 10px;
                align-items: center;
                justify-content: center;
                flex-wrap: wrap;
                margin-top: 20px;
                max-width: var(--baseWidth);
                margin-left: auto;
                margin-right: auto;

                > a {
                    text-decoration: none;
                    background: var(--propstack-main-color, #D2720D);
                    height: 30px;
                    width: 30px;
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    color: var(--contrastColorInverted, #fff);
                    border-radius: 5px;
                    font-size: 14px;

                    &:focus {
                        background-color: var(--contrastColorInverted, #fff);
                        color: var(--propstack-main-color, #D2720D);
                    }
                }
            }
        }
        @media (max-width: 767px) {
            .slider-buttons {
                width: 100%;
                display: flex;;
                gap: 10px;
                align-items: center;
                justify-content: center;
                flex-wrap: wrap;
                margin-top: 20px;
                max-width: var(--baseWidth);
                margin-left: auto;
                margin-right: auto;

                > a {
                    text-decoration: none;
                    background: var(--propstack-main-color, #D2720D);
                    height: 30px;
                    width: 30px;
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    color: var(--contrastColorInverted, #fff);
                    border-radius: 5px;
                    font-size: 14px;

                    &:focus {
                        background-color: var(--contrastColorInverted, #fff);
                        color: var(--propstack-main-color, #D2720D);
                    }
                }
            }
        }

        .innerBlocks {
            margin-left: Max(4%, calc((100% - var(--maxWidthBig, 1504px))/2));
            margin-top: var(--fl-margin-before-small, 45px);
        }
    }
    .px-immobilien-buttons {
        align-items: flex-start;
        margin-top: var(--fl-margin-after-small, 45px);
        gap: clamp(10px, 1.5vw, 30px);
        min-width: max-content;

        .wp-block-button__link {
            display: inline-block;
        }
    }
    @media screen and (min-width: 641px) {
        &:not(.propstack-split-view):not(.propstack-grid-view) .real-estate-post {
            flex: 0 0 361px;
        }
        &.propstack-split-view .real-estate-post {
            flex: 0 0 calc(33.333% - 20px);
        }
    }

    .real-estate-post-list {
        display: flex;
        gap: 20px;

        li:before {
            display: none
        }
        @media screen and (max-width: 640px) {
            .real-estate-post {
                flex: 0 0 96%;
            }
        }
        .real-estate-post {
            padding: 20px !important;
            margin: 0 !important;
            border-radius: 10px;
            background-repeat: no-repeat;
            background-size: cover;
            position: relative;
            background: #f2f2f2;
            color: var(--propstack-font-color, #282929);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            transition: .3s box-shadow ease;

            ul {
                padding-left: 0
            }

            h1, h2, h3, h4, h5, h6 {
                margin-bottom: 0 !important;
                font-size: 22px;
            }
            &:hover {
                background: #ddd;
                transition: background .3s ease-in-out;
            }

            .link {
                position: absolute !important;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                opacity: 0;
            }
            .property-placeholder,
            .property-image-placeholder {
                background-color: var(--contrastColorInverted, #fff);
                gap: .5rem;
                font-size: 14px
            }

            figure,
            .property-placeholder,
            .property-image-placeholder {
                aspect-ratio: 321 / 222;
                display: flex;
                justify-content: center;
                align-items: center;
                margin-bottom: 20px;
                overflow: hidden;
                width: 100%;
                height: auto;
                border-radius: 10px;
            }

            img {
                width: 100%;
                height: 100% !important;
                object-fit: cover;
            }

            li {
                padding: 0 !important;
                display: flex;
                justify-content: space-between;
                align-items: center;

                &:not(.call-to-action) {
                    font-size: 14px;
                }
            }

            .call-to-action {
                border-top: 1px solid var(--greyLight, lightgrey);
                margin-top: 20px !important;
                padding-top: 20px !important;
                flex-wrap: wrap;

                .price,
                .wp-block-button__link {
                    font-weight: 700;
                }

                .wp-block-button__link {
                    margin-bottom: 0;
                }
            }

        }
    }
}

body .px-immobilien.propstack-split-view .propstack-grid-view {
    .property-title {
        line-clamp: 2;
        -webkit-line-clamp: 2;
        overflow: hidden;
        display: -webkit-inline-box;
        -webkit-box-orient: vertical;
        text-align: left;
        width: 100%;
        padding: 0;
    }
    .call-to-action {
        justify-content: center;
        padding-top: 10px !important;
        .wp-block-button {
            display: none
        }
    }
}
@media ( min-width: 1201px ) {
    .propstack-split-view .propstack-grid-view {
        max-height: 90dvh;
        overflow: overlay;
    }
}

.editor-styles-wrapper {
    .px-immobilien {
        a {
            pointer-events: none;
        }
        &:before,
        &:after {
            display: none
        }
        &[data-slider="false"] {
            .real-estate-post-list:not(.propstack-grid-view) {
                max-height: 700px;
                overflow: overlay;
            }
        }
        .real-estate-post-list .real-estate-post {
            box-sizing: border-box;
        }
    }
    [data-title="Immobilien-Teaser"] {
        max-width: none !important
    }
}
