@media screen and (max-width: 1300px) 
{
    #headerMainContent{
        width:calc(100% - 50px);

    }

    .sticky #primary .ubermenu-skin-white {
        font-size: 1.5em;

    }

}

@media screen and (max-width: 1225px) 
{
    .page-template-page-home #homeSection1 section.main,
    .page-template-page-home #homeSection3 section.main,
    section.main
    {
        width: calc(100% - 325px);

    }

    #footerColumns,
    #copyright,
    #credit{
        padding: 0 25px;
    }
}

@media screen and (max-width: 1200px) 
{
    article.row3 {
        max-width: 250px;
        width:30%;
    }

    .sectionContainer{
        padding: 0 25px;
    }
}

@media screen and (max-width: 1150px) 
{
    article.row3 {
        max-width: 200px;
        width:30%;
    }

    .headshot p {
        width:80px;
        font-size: 1.1em;
    }
}

@media screen and (max-width: 1110px) 
{
    .companyName {
        width:300px;
    }
}

@media screen and (max-width: 1100px) 
{
    #homeSection3 article:nth-of-type(3),
    #homeSection5 article:nth-of-type(3) 
    {
        display:block;
    }

    article.row3 {
        max-width: 300px;
        width:48%;
    }

    #homeSection3.homeSection .flex .main article.flex {
        max-width: 300px;
        width:48%;
    }
}

@media screen and (max-width: 1050px) {

    .companyName img {
        margin-left:0;
    }

    #primary {
        max-width:100%;
    }

    .sticky #headerTop {
        height:180px;
    }

    aside.post {
        width:300px;
    }

    .postContent .main {
        width: calc(100% - 350px);

    }

    .row2.service .articleExcerpt {
        width:90%;
        left:5%;
    }


}

@media screen and (max-width: 1010px) {

    .companyName {
        width:290px;
    }

}


@media screen and (max-width: 1000px) {

    .companyName {
        width:400px;
    }

    span.headshot {
        display:none;
    }

    #primary .ubermenu-skin-white {
        font-size: 1.5em;

    }

    .ubermenu .ubermenu-colgroup .ubermenu-column, .ubermenu .ubermenu-custom-content-padded, .ubermenu .ubermenu-nonlink, .ubermenu .ubermenu-retractor, .ubermenu .ubermenu-submenu-padded, .ubermenu .ubermenu-submenu-type-stack > .ubermenu-item-normal > .ubermenu-target, .ubermenu .ubermenu-target, .ubermenu .ubermenu-widget, .ubermenu-responsive-toggle {
        padding: 12px 12px 10px 12px;
    }

    #backTop {
        right:0;
        padding:5px;
        font-size: 1.5em;
    }

    .home #homeSection2 section.main {
        display:none;
    }

    .home #homeSection2 section.aside {
        width:45%;
        min-width:325px;
    }

    .home #homeSection2 .flex {
        justify-content:space-between;
    }

    .home #homeSection2 section.aside .mpu {
        margin-left:auto;
        margin-right:auto;
    }

    .leadNews p {
        display:none;
    }

    .leadNews h2 {
        font-size: 2.6em;
    }

    article.row3 {
        max-width: 250px;
        width:48%;

    }


}

@media screen and (min-width: 951px) {
    .sticky header {
        border-bottom-color: #b80f13 !important;
    }

    .sticky .companyName img {
        /*height: auto;
        width: 175px !important;*/
        margin-bottom: 0px !important;
    }
}

@media screen and (max-width: 950px) {

    #secondary li.ubermenu-item .ubermenu-target::after {
        content: "";
        padding-left:0;
    }

    #secondary .ubermenu-skin-white .ubermenu-item-level-0:hover > .ubermenu-target {
        background: #cccccc;
    }

    .ubermenu-responsive-toggle.ubermenu-responsive-toggle-main.ubermenu-skin-white.ubermenu-loc-.ubermenu-responsive-toggle-content-align-left.ubermenu-responsive-toggle-align-full {
        text-align:center;
    }

    .ubermenu .ubermenu-item-layout-icon_left > .ubermenu-target-title {
        display:inline;
    }

    h1 {
        font-size:3.2em;
    }
    h2 {
        font-size:2.4em;
    }
    h3 {
        2em;
    }
    h4 {
        1.6em
    }
    h5 {
        1.5em
    }

    .featured .articleImage {
        width:100%;
        max-width:none;
    }

    .featured .articleExcerpt {
        width:100%;
        height:auto;
    }

    .featured .articleExcerpt .boxout{
        width:auto;
        left:0;
        margin-bottom:10px;
    }

    .featured .articleExcerpt span.watermark {
        margin-left:30px;
    }

    .sticky header {
        height: 155px;
    }

    #headerContainer.sticky {
        height: 145px
    }

    .sticky #headerMain #primary {
        display:none;
    }

    .sticky #headerPrimaryNav {
        display:block;
    }

    .footerColumn {
        width: 48%;


    }

}

@media screen and (min-width: 650px)
{
    .sticky .companyName img {
        height: auto;
        width: 175px !important;
        margin-bottom: 35px;
    }
}

@media screen and (min-width: 650px) and (max-width: 950px) {
    .sticky .companyName {
        width: 100%;
    }

    /*.sticky .companyName img {
        height: auto;
        width: 200px !important;
        margin-bottom: 35px;
    }*/

    .sticky #header #primary {
        position: relative;
        bottom: 0px;
    }
}


@media screen and (max-width: 870px) {

    .post-type-archive-company_listing section.main {
        width:100%;
        margin-right:0;
        border-right:0;

    }

    .post-type-archive-company_listing .content section.aside{
        width: 100%;
        justify-content: space-between;
    }



}

@media screen and (max-width: 850px) {



    #copyright p {
        width:100%;
        max-width:100%;
        margin-left:0;
    }

}

@media screen and (max-width: 800px) {
    section.main,
    .archive section.main {
        width:100%;
        margin-right:0;
        border-right:0;

    }


    article.row3 {
        max-width: 400px;
        width: 48%;
    }


    .content section.aside{
        width: 100%;
        justify-content: space-between;
    }

    section.aside div {
        max-width:300px;
    }

    .home #homeSection1 section.main {
        width:100%;
        padding-right:0;
        border-right:none;
    }

    .home #homeSection1 section.aside {
        width:calc(100% - 50px);
        margin:0 auto;
    }

    .home #homeSection3 section.main {
        width:calc(100% - 50px);
        margin:0 auto;
        padding-left:0;
        padding-right:0;
        border-right:none;
    }

    .home #homeSection3 section.aside {
        width:calc(100% - 50px);
        margin:0 auto;

    }

}

@media screen and (max-width: 778px) {

}

@media screen and (max-width: 750px) {

    #footerHeader p br {
        display:inline;
    }

    article.row3 {
        width: 48%;
    }

    .topNews.row3 {
        width:100%;
    }

    .reasonsWhy .row3 {
        width:100%;
    }

    article.row4 {
        width: 48%;
    }

    aside.post {
        width:100%;
        margin-bottom:25px;
    }

    .postContent .main {
        width:98%;
        margin-left:0;
        margin-right:2%;
    }


}

@media screen and (max-width: 700px) {
    .leadNews p {
        display:none;
    }

    .gridWrapper {
        display: grid;
        grid-template-columns: 2fr repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        grid-column-gap: 5px;
        grid-row-gap: 5px;
    }


    .grid1 { grid-area: 1 / 1 / 3 / 2; }
    .grid2 { grid-area: 1 / 2 / 2 / 3; }
    .grid3 { grid-area: 1 / 3 / 2 / 4; }
    .grid4 { grid-area: 2 / 2 / 3 / 3; }
    .grid5 { grid-area: 2 / 3 / 3 / 4; } 


    .gridWrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        grid-column-gap: 2px;
        grid-row-gap: 2px;
    }

    .grid1 { grid-area: 1 / 1 / 2 / 2; }
    .grid2 { grid-area: 1 / 2 / 2 / 3; }
    .grid3 { grid-area: 2 / 1 / 3 / 2; }
    .grid4 { grid-area: 2 / 2 / 3 / 3; } 
    .grid5 {display:none;}

    .gridWrapper .grid1 .articleExcerpt h3 {
        font-size: 1.7em;
        color: #ffffff;
        padding: 25px 15px 0 15px;
        font-weight: 600;
        text-shadow: 0 0 3px #000;
        line-height: 110%;

    }

    .gridWrapper .grid1 .articleExcerpt span.postType {
        left:15px;
    }

}

@media screen and (max-width: 650px) {

    #headerPrimaryNav {
        margin-bottom: 50px;
    }


    section.aside div {
        width:100%;
        max-width:100%;
    }

    .content section.aside {
        justify-content: center;
    }

    .home #homeSection2 section.aside {
        width:100%;
        min-width:auto;
        padding-left: 25px;
        padding-right:25px;
    }
    #headerMainContent.flex {
        flex-direction:column;
        justify-content:center;
        align-items: center !important;
        flex-wrap:nowrap;
    }

    .sticky header, .sticky #headerMainContent {
        height: 100px;
    }

    .sticky header {
        border-bottom-color: transparent;
    }

    .social.flex {
        justify-content:center;
    }

     .companyName {
        width:100%;
        max-width:100%;
        margin-top: 15px;
    }

    .headerLinks {
        width:100%;
        max-width:100%;
        margin-top: 5px;
    }

    .sticky .companyName {
        margin: 0 !important;
    }

    .companyName img {
        margin:0 auto;
        width: 150px;
        height: auto;
    }

    .headerRight.flex {
        justify-content: center;
    }

    .headerLinks {
        height:auto;
    }

    .headerLinks p {
        text-align:center;
    }


    .companyName a,
    .headerLinks {

        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    #primary {
        background-color: #b80f13;
        width:100%;
        position:absolute;
        top:0;
        border-bottom: 1px solid #f5f5f5;

    }



    .footerColumn {
        width: 100%;
        margin-bottom:0;


    }

}

@media screen and (max-width: 625px) {
    #homeSection3 article:nth-of-type(3),
    #homeSection5 article:nth-of-type(3),
    #homeSection3 article:nth-of-type(4),
    #homeSection5 article:nth-of-type(4) {
        display:block;
    }
}

@media screen and (max-width: 600px) {



    section.sectionLeft,
    section.sectionRight {
        width:100%;
        margin-right:0;
    }

    #contactForm section .contactFormBlock .submitButton p {
        text-align:left;
    }

    #footer1.footerColumn {
        width:100%;
    }

    .postContent .main {
        width:96%;
        margin-left:2%;
    }

    h1 {
        font-size:3em;
    }

    .leadNews h2 {
        font-size:2.2em;
    }


}

@media screen and (max-width: 508px) {
}

@media screen and (max-width: 500px) {

    div.row2{
        width:100%;
    }

    .home #homeSection1 section.main article.leadNews .articleImage{
        width:100%;
        margin:0;
    }

    .home #homeSection1 section.main article.leadNews .articleExcerpt {
        width:100%;
        margin:0;
    }

    .row3 {
        width: 100%;
    }

    .row4 {
        width: 100%;
    }


    div.alignright,
    img.alignright,
    div.alignleft,
    img.alignleft{
        float:none;
        clear:both;
        margin:20px auto;
        width:100%;
        max-width:500px;
        height:auto;
    }

    div.aligncenter,
    img.aligncenter,
    p img.aligncenter{
        float:none;
        clear:both;
        display:block;
        margin:20px auto;
        width:100%;
        max-width:720px;
        height:auto;
    }

}


@media screen and (max-width: 470px) {

    .sticky #headerTop {
        height:150px;
    }

    .checkboxes span:nth-of-type(2n),
    .checkboxes span:nth-of-type(2n+1) {
        width:100%;
    }

    h1 {
        font-size:2.8em;
    }

}

@media screen and (max-width: 450px) {

    .gridWrapper {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
        grid-column-gap: 5px;
        grid-row-gap: 5px;
    }

    .grid1 { grid-area: 1 / 1 / 2 / 2; }
    .grid2 { grid-area: 2 / 1 / 3 / 2; }
    .grid3{ grid-area: 3 / 1 / 4 / 2; }
    .grid4 { grid-area: 4 / 1 / 5 / 2; } 

    .headerLinks form {
        display:none;
    }

    article.row3 {
        max-width: 400px;
        width: 100%;
        margin-left:auto;
        margin-right:auto;
    }

    .single-issue .featuredImage {
        width: 100%;
        max-width: auto;
    }

    .single-issue .featuredImage img {
        margin:0 auto;
    }

    .single-issue .articleContent {
        width: 100%;
        margin-left: 0;
    }

    #homeSection3.homeSection .flex .main article.flex {
        width:100%;
        max-width:auto;
    }

    .row1 .articleImage {
        width:100%;
        max-width:400px;
    }

    .row1 .articleExcerpt {
        width: 100%;

    }
    .row1 .articleExcerpt h3 {
        margin-top:10px;
    }

}