/*300px - height of the footer*/

.contact-us-article {
    height: calc(100% - 270px);
}

.contact-us {
    width: 1140px;
    height: calc(100% - 100px);
    max-height: 370px;
    align-items: flex-end;
    border-radius: 20px;
    position: relative;
    margin: auto;
    overflow: visible;
}

.contact-us .contact-info-wrapper {
    width: 50%;
    background-color: #FBFBFB;
    height: calc(100%);
    max-height: 326px;
    overflow: visible;
}

.contact-us .contact-info-wrapper:first-child {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

.contact-us .contact-info-wrapper:nth-child(2) {
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.contact-us .contact-info {
    width: 100%;
    justify-content: center;
    padding-left: 10%;
}

.contact-us .contact-info .title {
    font-family: Grifter;
    font-weight: 700;
    font-size: 1.5em;
    line-height: 33px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--main-blue); 
}

.contact-us .contact-info .subtitle {
    font-family: Avenir;
    font-weight: normal;
    font-size: 16px;
    line-height: 25px;
    display: flex;
    align-items: center;
    color: #333333;
}


.contact-us .img-wrapper {
    height: 100%;
    overflow: visible;
    display: flex;
    align-items: flex-end;
}

.contact-us .img-wrapper > picture:first-child {
    max-height: 370px;
    height: calc(100% + (100vh * 44 / 800));
    width: 100%;
}

.contact-us .img-wrapper > picture > img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    object-position: right;
}

@media only screen and (max-width: 1200px),
       only screen and (max-height: 600px) {

    .img-wrapper {
        display: none !important;
        visibility: hidden;
    }
    .contact-us {
        width: 100%;
        border-radius: 0;
        max-height: 300px;
    }
    .contact-us .contact-info-wrapper:first-child {
        width: 100%;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }
    .contact-us .contact-info-wrapper:nth-child(2) {
        width: 0;

    }
    .contact-us .contact-info {
        justify-content: center;
        align-items: center;
        padding: 0 20px;
    }
}

@media only screen and (max-width: 480px) {
    .contact-us .contact-info-wrapper {
        height: 100% !important;
    }
}
