.header-img {
    width: 100%;
    height: 450px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.container {
    max-width: 1200px;
}

.container.page-content {
    margin-top: -150px;
    background: #ffffffcd;
    min-height: 150px;
    width: 100vw;
    padding: 2rem;
}

.container.page-content .main-image img{
    width: auto;
}

.title {
    font-size: 56px;
    font-family: serif;
    display: block;
    width: 100%;
    margin-top: 2rem;
    position: relative;
}

.title.mobile {
    display: none;
    position: absolute;
    line-height: 150px;
    bottom: 0;
    width: 100%;
    text-align: center;
    height: 150px;
    background: #ffffffcd;
}

.main-image {
    float:left;
    display: inline-block;
}

.container .main-image img {
    max-height: 300px;
    margin: 2rem 3rem 2rem 0;
}

@media (max-width: 768px) {
    .container.page-content{
        padding: 2rem 1rem 3rem 1rem !important;
    }

    .title {
        display: none;
    }

    .title.mobile {
        font-size: 39px;
        width: 100%;
        text-align: center;
    }

}

@media (max-width: 500px) {
    .title.mobile {
        font-size: 30px;
    }
}

@media only screen and (max-width: 1199px) {
    .container.page-content{
        margin-top: 0;
        padding: 1rem 4rem 3rem 4rem;
    }

    .title {
        display: none;
    }

    .title.mobile {
        display: block;
        height: 100px;
        line-height: 100px;
    }

    .header-img {
        margin-top: 0;
    }

    .container div.main-image img {
        margin-top: 0.5rem;
    }
}
