html{
    margin: 0;
    padding: 0;
}
body{
    color: #525252;
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background: url(../images/top-bg.jpg) repeat-x top #ffffff;
}
a{
    text-decoration: underline;
    color: #000d73;
}
a:hover{
    text-decoration: underline;
}
.clear{
    clear: both;
}
.left{
    float: left;
}
.right{
    float: right;
}
.tcenter{
    text-align: center;
}
.tleft{
    text-align: left;
}
.tright{
    text-align: right;
}
.half{
    width: 50%;
    float: left;
}
.third{
    width: 33%;
    float: left;
}
.quarter{
    width: 25%;
    float: left;
}
.three-quarters{
    width: 75%;
    float: left;
}
.three-quarters.content{
    padding: 3%;
}
.flex{
    display: flex;
}
.main-img{
    width: 90%;
    display: block;
    max-width: 407px;
    margin-left: 10px;
}
.border{
    border: 2px solid #000d73;
}
.container{
    max-width: 960px;
    margin: auto;
    padding: 0 20px;
}
.container:after{
    display: block;
    clear: both;
    content: "";
}
nav{
    margin-bottom: 37px;
}
nav ul{
    margin: 0;
    padding: 0;
    background: #fff;
    list-style-type: none;
}
nav ul:after{
    content: "";
    clear: both;
    display: block;
}
nav li{
    float: left;
    border-right: 1px solid #000d73;
}
nav li a{
    display: block;
    text-transform: uppercase;
    padding: 0 25px;
    line-height: 63px;
    text-decoration: none;
}
nav li a:hover, nav li a.active-page{
    background: url(../images/nav-rollover.jpg) repeat-x;
    color: #fff;
    text-decoration: none;
}

.pre-nav{
    padding: 37px 0;
}
.pre-nav:after{
    clear: both;
    display: block;
    content: "";
}

.header img{
    display: block;
    width: 100%;
}

.content{
    padding-bottom: 70px;
}
.content h1{
    margin-top: 0;
    font-weight: normal;
    font-size: 1.8em;
}
.content .container:after{
    clear: both;
    content: "";
    display: block;
}


.post-header{
    background: #979797;
    color: #fff;
    margin-bottom: 40px;
}
.post-header ul{
    margin: 0 auto;
    padding: 20px 0;
    text-align: center;
}
.post-header ul li{
    display: inline-block;
    margin-right: 20px;
}
.post-header ul li:after{
    content: "|";
    padding-left: 20px;
}
.post-header ul li:last-child{
    margin-right: 0;
    padding-right: 0;
}
.post-header ul li:last-child:after{
    content: "";
    padding-left: 0;
}

.container.items{
    column-count: 3;
    column-gap: 0;
}

.block{
    /* width: 25%;
    padding-right: 10px;
    margin-bottom: 10px;
    float: left;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    max-height: 140px;
    overflow: hidden; */
    display: flex;
    flex: 1 1 auto;
    border-radius: 10px;
}
.block img{
    display: block;
    width: 100%;
    padding: 1%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
.block:nth-child(4n){
    padding-right: 0;
}

footer{
    background: url(../images/footer-bg.jpg) repeat-x top #01118d;
    color: #fff;
    min-height: 207px;
    padding-top: 20px;
}
footer a{
    color: #fff;
}
footer p{
    margin-bottom: 0;
}
footer p:last-child{
    font-size: 14px;
}
footer .flex{
    justify-content: space-between;
}

@media only screen and (max-width: 748px) {
    .container{
        padding: 0 20px;
    }
    .flex{
        display: block;
    }
    .quarter, .half, .three-quarters{
        width: 100%;
    }
    .left, .right{
        float: none;
    }
    .three-quarters.content{
        padding: 0;
    }
    .logo{
        margin-bottom: 20px;
    }
    .logo img{
        width: 100%;
        display: block;
    }
    .phone{
        text-align: center;
    }
    nav li{
        display: block;
        text-align: center;
        float: none;
    }
    .container.items {
        column-count: 2;
    }
    .block{
        max-height: none;
        float: none;
        display: inline-block;
        vertical-align: top;
    }
    .block:nth-child(2n){
        padding-right: 0;
    }
    .block:nth-child(4n){
        padding-right: auto;
    }
    .header img{
        display: block;
        width: 100%;
    }
    .content{
        padding-bottom: 5%;
    }
    .content img{
        width: 60%;
        margin: auto;
        display: block;
    }
    .portfolio img{
        width: 100%;
    }
    .post-header ul{
        padding: 2% 0;
    }
    .post-header ul li{
        margin-right: 5px;
    }
    .post-header ul li:after{
        padding-left: 5px;
    }
    nav li{
        border-bottom: 1px solid #000d73;
        border-right: 0;
    }
    footer{
        font-size: .9em;
    }
}