
.before-after-section {
    padding: 15px;
    max-width: 960px;
    margin: 0 auto;
    font-family: foundersgrotesk-regular,sans-serif!important;
    font-size: 1.25rem!important;
}

.before-after-section * {
    font-size: 1.25rem;
}

.before-after-section, .before-after-section h1, .before-after-section h2, .before-after-section h3, .before-after-section h4, .before-after-section h5, .before-after-section h6, .before-after-section h1 *, .before-after-section h2 *, .before-after-section h3 *, .before-after-section h4 *, .before-after-section h5 *, .before-after-section h6 * {
    font-family: sindelar-medium,serif;
    color: #214256;
    font-size: 36px!important;
}

.before-after-section li {
    list-style-type: unset;
}

.before-after-section.before {
    margin-top: 20px;
}

.home #main-image.image-main .owl-carousel .owl-wrapper-outer .item .permalink {
    position: absolute;
    width: 100%;
    display: inline-block;
    height: 100%;
}

.home #main-image.image-main .owl-carousel .owl-wrapper-outer .item .text .row a {
    padding: 0 15px;
}

@media only screen and (min-width: 768px) {
    .before-after-section .before {
        margin-top: 80px;
    }

    .before-after-section .after {
        margin: 40px auto 100px auto;
    }

    .home #main-image.image-main .owl-carousel .owl-wrapper-outer {
        min-height: 700px;
    }

    .home #main-image.image-main .owl-carousel .owl-wrapper-outer .item .text {
        padding: 15% 30px 10% 90px;
        height: 100%;
    }

    .home #main-image img {
        object-fit: cover;
        width: 55%;
        min-height: auto;
        max-height: 100%;
        height: 100%;
    }

}

@media only screen and (max-width: 2650px){
    .home #main-image.image-main .owl-carousel .owl-pagination {
        bottom: 351px;
        left: -420px;
    }
}

@media only screen and (max-width: 1440px){
    .home #main-image.image-main .owl-carousel .owl-pagination {
        bottom: 404px;
        left: -162px;
    }

    .owl-buttons {
        right: 68% !important;
        bottom: 173px !important;
    }
}

@media only screen and (max-width: 1140px) {
    .home #main-image.image-main .owl-carousel .owl-pagination {
        left: -10px;
    }

    .home #main-image.image-main .owl-carousel .owl-wrapper-outer {
        min-height: 620px!important;
    }

    .owl-buttons {
        right: 64% !important;
        bottom: 100px !important;
    }
}

@media only screen and (max-width: 1024px){
    .home #main-image.image-main .owl-carousel .owl-pagination {
        left: 28px;
    }

    .owl-buttons {
        bottom: 138px !important;
    }
}

@media only screen and (max-width: 768px) {
    .home #main-image.image-main .owl-carousel .owl-wrapper-outer {
        min-height: 793px!important;
    }
    #internal-one {
        padding: 0;
    }

    .home #main-image.image-main .owl-carousel .owl-wrapper-outer .item a img {
        min-height: auto;
        object-fit: cover;
    }

    .home #main-image.image-main .owl-carousel .owl-wrapper-outer .item .text a {
        width: auto;
    }

    .home #main-image.image-main .owl-carousel .owl-wrapper-outer .item .text {
        min-height: 395px!important;
    }

    .home #main-image.image-main .owl-carousel .owl-wrapper-outer {
        min-height: 720px;
    }

    .home #main-image img {
        width: 100%;
    }

    .home #main-image.image-main .owl-carousel .owl-pagination {
        bottom: 600px;
    }

    .owl-buttons {
        bottom: 417px !important;
        right: 11% !important;
    }

}

@media (max-width: 640px) {
    .home #main-image.image-main .owl-carousel .owl-wrapper-outer {
        min-height: 633px!important;
    }
    .home #main-image.image-main .owl-carousel .owl-wrapper-outer .item .text {
        min-height: 315px!important;
    }

    .owl-buttons {
        bottom: 250px !important;
    }

    #main-image .owl-buttons .owl-prev, #main-image .owl-buttons .owl-next {
        width: 32px;
        height: 32px;
    }

    .owl-slider .text {
        padding: 10% 25px;
    }

    .owl-buttons {
        bottom: 350px !important;
        right: 60px !important;
    }
    .owl-slider .owl-buttons div {
        margin-left: 8px;
    }

    .home #main-image img {
        object-fit: cover;
        width: 100%;
        min-height: auto;
        max-height: 100%;
        height: 100%;
    }

    .home #main-image.image-main .owl-carousel .owl-pagination {
        bottom: 580px;
        left: 30px!important;
    }
}

@media only screen and (max-width: 560px) {
    .home #main-image.image-main .owl-carousel .owl-wrapper-outer {
        min-height: 570px!important;
    }
    
    .home #main-image.image-main .owl-carousel .owl-wrapper-outer .item .text {
        min-height: 380px;
    }

    .owl-buttons {
        bottom: 510px !important;
    }

    .home #main-image.image-main .owl-carousel .owl-pagination {
        bottom: 541px;
    }
    
}


/* REVISED HERO SECTION */

.hero-section {
    position: relative;
}

.section-heading {
    position: absolute;
    top: 60px;
    left: 50%;
    z-index: 2;
    text-align: center;
    padding: 16px 55px 2px;
    color: #fff;
    display: inline-block;
    background-color: rgba(0,0,0,0.4);
    transform: translateX(-50%);
    border-radius: 3px;
    font-family: 'founders-grotesk-bold';
    font-size: 38px;
}

.hero-section .owl-carousel .owl-wrapper-outer{
    height: auto;
}

.hero-section .carousel-item {
    display: flex;
}

.hero-section .carousel-item div {
    height: 100%;
    width: 100%;
    height: 680px;
}

.hero-section .carousel-item .content {
    width: 45%;
    background-color: #C4E6E1;
    padding: 4%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-section .carousel-item .image {
    width: 55%;
    position: relative;
}

.hero-section .carousel-item .image a {
    width: 100%;
    height: 100%;
    position: absolute;
    opacity: 0;
}

.hero-section .carousel-item .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.owl-slider .owl-controls {
    position: absolute;
    bottom: 16px;
    left: calc(45% - 120px);
}

.owl-slider .owl-buttons {
    position: unset;
}

.owl-slider .owl-buttons div {
    margin: 4px;
}

@media only screen and (max-width: 768px) {
    .section-heading {
        top: 0;
        width: 100%;
        padding: 9px 39px 0px;
    }

    .hero-section .carousel-item {
        flex-direction: column;
    }

    .hero-section .carousel-item .content, .hero-section .carousel-item .image {
        width: 100%;
    }

    .hero-section .carousel-item .content {
        padding: 8%;
        height: 400px;
        min-height: 400px
    }

    .hero-section .carousel-item .image {
        /* height: 260px!important; */
        height: auto;
    }

    .owl-slider .owl-buttons {
        /* right: 8px!important;
        bottom: 260px!important; */
        position: unset;
    }

    .owl-slider .owl-controls {
        position: absolute;
        height: 100px;
        width: 100%;
        top: 336px;
        left: calc(100% - 116px);
    }
}


@media only screen and (max-width: 1444px){
    .hero-section .carousel-item div {
        height: 532px;
    }
}