/*================ BEFORE AFTER SECTION =================*/

.before-after-section{
    padding:80px 0;
}

.content-box{
    background:#4b3729;
    color:#fff;
    border-radius:30px;
    padding:70px;
    height:100%;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.content-box small{
    color:#d5a95c;
    letter-spacing:2px;
    font-weight:600;
}

.content-box h2{
    font-size:55px;
    line-height:1.15;
    margin:20px 0;
    font-weight:700;
}

.content-box p{
    color:#ddd;
    line-height:30px;
}

/*================ COMPARISON =================*/

.comparison-container{
    position:relative;
    width:100%;
    height:100%;
    min-height:620px;
    overflow:hidden;
    border-radius:30px;
    user-select:none;
}

.comparison-container img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    pointer-events:none;
}

.after-image{
    clip-path: inset(0 50% 0 0);
}

/*================ LABELS =================*/

.comparison-labels{
    position:absolute;
    top:20px;
    left:20px;
    right:20px;
    display:flex;
    justify-content:space-between;
    z-index:50;
}

.before-label,
.after-label{

    color:#fff;
    padding:10px 22px;
    border-radius:50px;
    font-size:15px;
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:1px;
    backdrop-filter:blur(5px);
}

/*================ LINE =================*/

.slider-line{
    position:absolute;
    top:0;
    left:50%;
    width:3px;
    height:100%;
    background:#fff;
    transform:translateX(-50%);
    z-index:20;
}

/*================ BUTTON =================*/

.slider-button{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    width:70px;
    height:70px;
    border-radius:50%;
    background:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
    cursor:ew-resize;
    z-index:30;
    font-size:28px;
    color:#c59a4a;
    box-shadow:0 10px 30px rgba(0,0,0,.25);
}

/*================ RESPONSIVE =================*/

@media(max-width:991px){

    .content-box{
        padding:40px;
        margin-bottom:30px;
    }

    .content-box h2{
        font-size:40px;
    }

    .comparison-container{
        min-height:450px;
    }

}

@media(max-width:576px){

    .before-after-section{
        padding:50px 0;
    }

    .content-box{
        padding:25px;
    }

    .content-box h2{
        font-size:30px;
    }

    .content-box p{
        line-height:26px;
    }

    .comparison-container{
        min-height:320px;
    }

    .slider-button{
        width:55px;
        height:55px;
        font-size:22px;
    }

    .before-label,
    .after-label{
        padding:8px 15px;
        font-size:12px;
    }

}