.eco-slider-block{
    position: relative;
    margin-top: var(--mt-mobile, 0);
    margin-bottom: var(--mb-mobile, 0);
    background-color: var(--wp--preset--color--background);
}
@media (min-width: 851px) {
    .eco-slider-block {
        margin-top: var(--mt-desktop, 0);
        margin-bottom: var(--mb-desktop, 0);
    }
}
.eco-slider-inner{
    display: flex;
    width: 100%;
    flex-direction: column;
}
.eco-slider-banner{
    height: 400px;
}
.eco-slider-banner .eco-slider-banner-media{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.eco-slider-content{
    display: flex;
    width: 100%;
    padding: 5rem var(--gutters);
}
.eco-slider-message{
    width: 60%;
}
.eco-slider-images{
    width: 40%;
    display: flex;
    position: relative;
}
.eco-slider-images-wrapper{
    display: flex;
    width: 100%;
    max-width: 500px;
    position: absolute;
    clip-path: polygon(8% 0%, 92% 0, 100% 8%, 100% 90%, 92% 100%, 8% 100%, 0 90%, 0 8%);
    height: 700px;
    overflow: hidden;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.eco-slider-image-layer {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    transition: opacity 700ms ease-in-out;
}
.eco-slider-image-layer.is-current {
    opacity: 1;
    z-index: 2;
}
.eco-slider-image-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.eco-slider-nav{
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: absolute;
    right: -1rem;
    bottom: 0;
    transform: translateX(100%);
}
.eco-btn-wrapper{
    display: inline-flex;
    width: fit-content;
    position: relative;
    z-index: 0;
    isolation: isolate;
}
.eco-slider-nav-btn{
    width: 20px;
    height: 16px;
    padding: 0;
    border: 0;
    background: unset;
    background-color: var(--wp--preset--color--background);
    background-image: linear-gradient(var(--wp--preset--color--bordeau), var(--wp--preset--color--bordeau));
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 100% 0%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    clip-path: polygon(50% 0%, 50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: background-size 0.25s ease;
    border-radius: 0;
    
}

.eco-slider-nav-btn-shape{
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    clip-path: polygon(50% 0%, 50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background-color: var(--wp--preset--color--bordeau);
}

.eco-slider-nav-btn.is-active{
    background-size: 100% 100%;
}
@media (max-width: 768px) {
    .eco-slider-content{
        position: relative;
        flex-direction: column;
        padding: 1rem var(--gutters);
    }
    .eco-slider-message{
        width: 100%;
    }
    .eco-slider-message p br{
        display: none;
    }
    .eco-slider-images{
        width: 100%;
        height: auto;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    .eco-slider-images-wrapper{
        height: 350px;
    }
    .eco-slider-nav{
        position: relative;
        right: unset;
        bottom: unset;
        flex-direction: row;
        transform: unset;
    }
    .eco-slider-images-wrapper{
        transform: unset;
        position: initial;
    }
}