/* -- Services -- */

#r_main::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 400px;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .33) 50%, #fff 100%), url(/imageserver/Reusable/gutters21/abstract_bg.webp);
    background-size: cover;
    background-position: 75% 75%;
    z-index: -1;
}
.r_services-section {
    margin: 100px auto;
}
.r_services-section:first-child {
    margin-top: 25px;
}
.r_services-section:last-child {
    margin-bottom: 25px;
}
.r_services-wrapper {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    max-width: 1250px;
}
.r_services-col-bg,
.r_services-col-text {
    width: 50%;
}
.r_services-col-bg {
    position: absolute;
    inset: 8% auto 8% 0;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
    overflow: hidden;
}
#r_services_section_2 .r_services-col-bg {
    background-image: url("/imageserver/UserMedia/westchester/wr-gutter-clean001.webp");
}
.r_services-col-text {
    background-color: #fff;
    padding: 60px 50px 70px;
    border: 2px solid #ccc;
    box-shadow: 0 4px 8px rgba(5, 5, 5, .2);
    margin-left: auto;
}
.r_services-col-text h2 {
    position: relative;
    font-size: 1.75rem;
    font-weight: 600;
}
.r_services-col-text h2::before {
    content: "";
    position: absolute;
    top: 15px;
    left: -50px;
    width: 35px;
    height: 2px;
    background-color: var(--accent-color);
}
.r_services-col-text p {
    font-weight: 400;
}

.r_services-wrapper-reverse .r_services-col-bg {
    inset: 8% 0 8% auto;
}
.r_services-wrapper-reverse .r_services-col-text {
    margin-left: 0;
}



/* -- Responsiveness -- */

@media (max-width: 981px) {
    .r_services-wrapper {
        max-width: 750px;
    }
    .r_services-col-bg,
    .r_services-col-text {
        width: 100%;
    }
    .r_services-col-bg {
        position: relative;
        inset: 0;
        height: 400px;
    }
}

@media (max-width: 550px) {
    #r_services_section_2 .r_services-col-bg {
        height: 300px;
    }
    .r_services-col-text {
        padding: 40px 30px 50px;
    }
    .r_services-col-text h2::before {
        top: 12px;
        left: -30px;
        width: 20px;
    }
}



/*** Image Comparison Sliders ***/

.ba-slider-container {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 850px;
    margin-inline: auto;
}

.before-after {
    max-width: 48.063em;
    margin-right: auto;
    margin-left: auto;
    height: 100%;
}

.before-after__slider-wrapper {
    position: relative;
    height: 100%;
}

.before-after__label {
    font-size: 0;
    line-height: 0;
}

.before-after__label,
.before-after__range {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: transparent;
    border: none;
    appearance: none;
    outline: none;
    cursor: ew-resize;
    z-index: 20;
}

.before-after__range:hover~.before-after__slider .before-after__thumb {
    transform: scale(1.2);
}

/* Specificity needed to override hover state above */
.before-after .before-after__slider-wrapper .before-after__range:active~.before-after__slider .before-after__thumb,
.before-after .before-after__slider-wrapper .before-after__range:focus~.before-after__slider .before-after__thumb,
.before-after .before-after__slider-wrapper .before-after__range--active~.before-after__slider .before-after__thumb {
    transform: scale(0.8);
    background-color: rgba(0, 97, 127, 0.5);
}

.before-after__image-wrapper--overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(50% + 1px);
    height: 100%;
    overflow: hidden;
}

.before-after__figure {
    margin: 0;
}

.before-after__figure::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f2f2f2;
}

.before-after__image-wrapper {
    height: 100%;
}

.before-after__figure:not(.before-after__figure--overlay) {
    position: relative;
    padding-top: 66.666666667%;
    height: 100%;
}

.before-after__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 0 100%;
    overflow: hidden;
}

.before-after__figure--overlay .before-after__image {
    z-index: 1;
}

.before-after__caption {
    position: absolute;
    bottom: 12px;
    min-width: max-content;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
}

@media screen and (max-width: 40.063em) {
    .before-after__caption {
        font-size: 12px;
    }
}

.before-after__caption--before {
    left: 12px;
    z-index: 2;
}

.before-after__caption--after {
    right: 12px;
    text-align: right;
}

.before-after__caption-body {
    max-width: 40vmin;
    padding: 6px 12px;
    background-color: rgba(0, 0, 0, 0.55);
}

.before-after__slider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: #fff;
    transition: background-color 0.3s ease-in-out;
    z-index: 10;
}

.before-after__range--active~.before-after__slider {
    background-color: rgba(255, 255, 255, 0);
}

.before-after__thumb {
    position: absolute;
    top: calc(50% - 20px);
    left: calc(50% - 20px);
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #0091df;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 0 22px 0 rgba(0, 0, 0, 0.5);
    transform-origin: center;
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.before-after__range::-webkit-slider-runnable-track {
    width: 40px;
    height: 40px;
    opacity: 0;
}

.before-after__range::-moz-range-thumb {
    width: 40px;
    height: 40px;
    opacity: 0;
}

.before-after__range::-webkit-slider-thumb {
    width: 40px;
    height: 40px;
    opacity: 0;
}

.before-after__range::-ms-fill-lower {
    background-color: transparent;
}

.before-after__range::-ms-track {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    margin: 0;
    padding: 0;
    background-color: transparent;
    color: transparent;
    outline: none;
    cursor: col-resize;
}

.before-after__range::-ms-thumb {
    width: 0.5%;
    height: 100%;
    opacity: 0;
}

.before-after__range::-ms-tooltip {
    display: none;
}


@media screen and (max-width:992px) {
    .sec1-wrapper,
.sec2-grid,
.sec5-grid{
    grid-template-columns: 1fr;
        max-width:80%;
        margin:20px auto;
        text-align:center;
    }

.section2 .sec2-grid {
	display: flex;
	flex-direction: column-reverse;
	justify-content: center;
	align-items: center;
}

.sec2-grid-right {
	display: contents;
}
    .grid2-left,.grid2-right{
        max-width:100%;
    }
    .header-title::after {
        height: 0px;
    }
    .header-title::before {
        height: 0px;
    }
    .color{
        min-height:40vw;
        background-position: center;
    }
    #box-img{
        margin-top:-50px;
        max-width:200px;
    }

    .color-overlay{
        min-height:40vw;
    }
}