.hero-caption {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    text-align: left;
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: left center;
}

.caption-contant h1 {
    color: #fff;
    margin-bottom: 22px;
}
.caption-contant p {
    color: #fff;
    font-size: 24px;
    line-height: 33px;
    margin-bottom: 28px;
}
.caption-contant {
    width: 100%;
    max-width: 498px;
}

section.hero-bg-image {
    background-size: cover;
    position: relative;
    overflow: hidden;
    text-align: right;
    min-height: 674px;
}
section.hero-bg-image img {
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    right: 0;
}

.hero_content h3 {
    font-size: 39px;
    font-weight: bold;
    line-height: 1.15;
    letter-spacing: normal;
    font-family: 'Roboto', sans-serif;
    color: #fff;
    text-align: left;
}
.hero_content p {
    text-align: left;
}
.hero_content .btn-primary {
    width: 185px;
    border-radius: 27px;
    background-color: #e56b59 !important;
    color: #fff;
    padding: 10px 15px;
    border-color: #e56b59 !important;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: inherit;
    text-align: center;
}
.hero_content .btn-primary:hover, .hero_content .btn-primary:focus{
    background: #ffffff !important;
    color: #e56b59 !important;
    outline: none;
    box-shadow: none !important;
    border-color: #ffffff !important;
}
.hero_content{
    font-family: Roboto;
    font-size: 24px;
    font-weight: normal;
    line-height: 1.38;
    letter-spacing: normal;
    z-index: 2;
    position: relative;
    color: #fff;
}


@media (min-width: 768px){
    .half-block.custom-theme{background-position: right !important;}
} 
@media (min-width: 1024px){
    .caption-contant {max-width: 612px;}
}

@media  (max-width: 1024px) and (min-width: 768px){
 
    .caption-contant h1{font-size: 38px;}
    .caption-contant p{font-size: 22px;}
}
@media  (min-width: 768px) and (max-width: 991px){
    .page-id-21 .caption-contant{max-width: 45%;}
    .page-id-21 section.hero-bg-image img {max-width: 80%;}
}
@media (max-width: 1700px){
    .half-block.custom-theme{background-size: cover !important;}
}
@media  (max-width: 767px) {
    .caption-contant h1 {
        max-width: 100%;
        margin-bottom: 27px;
    }
    .caption-contant p{
        font-size: 16px;
        line-height: 24px;
        margin-bottom: 15px;
    }
    section.hero-bg-image.hero-light {
        background-image: url(/wp-content/uploads/pattern-overlay2x.png);
        background-size: 320px 194px;
        background-repeat: no-repeat;
        /*padding-bottom: 59px;*/

    }
    .hero-caption{position: relative !important;}
    section.hero-bg-image{min-height: auto;}
    .caption-contant {
        padding: 29px 0 0;
    }

    .home .hero-caption::after {
        background-image: linear-gradient(to top, #000 14%, rgba(0, 0, 0, 0) 55%);
        position: absolute;
        content: "";
        top: -100px;
        left: 0;
        width: 100%;
        height: 100px;
    }
    section.hero-bg-image img {
        object-fit: cover;
        position: relative;
        height: auto;
    }
}