.text-img-bg {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 800px;
    height: 100%;
    overflow: hidden;
}

.text-img-bg .bg-img{
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    font-size: 0;
}

.text-img-bg .bg-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text-img-bg .text-box{
    position: absolute;
    max-width: 30%;
    min-width: 350px;
    background-color: #164A6A;
    border: 5px solid #ECA840;
    margin: 5%;
    padding: 30px;
    color: #ffffff;
}

.text-img-bg .text-box h2, .text-img-bg.is-preview .text-box h2{
    color: #ffffff;
    margin-top: 0;
}

.text-img-bg .text-box p{
    margin-top: 0;
}


@media only screen 
      and (min-width: 0px) 
      and (max-width: 768px) 
{ 
    .text-img-bg .text-box{
        position: absolute;
        max-width: 90%;
        min-width: 90%;
        margin: 0;
        bottom: 20px;
        padding: 5%;
    }
    .text-img-bg {
        flex-direction: column;
        min-height: auto;
    }
    .text-img-bg .bg-img{
        position: relative;
        height: 100vh;
    }
}

@media only screen 
      and (min-width: 769px) 
      and (max-width: 1200px) 
{ 
    .text-img-bg .bg-img{
        position: absolute;
    }

}


