* {
    box-sizing: border-box;
}

#content .right-column h1 {
    font-size: 28px;
}
#content .right-column h2 {
    font-size: 24px;
}
#content .right-column h3 {
    font-size: 20px;
}
#content .right-column h4 {
    font-size: 16px;
}

#left-column {
    float: left;
    width: 25%;
}

#left-column ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

#left-column li {
    margin: 5px 0;
}

#left-column-button {
    display: inline-block;
}

#left-column-button .collapse {
    display: none;
    background-color: #e6e7e8;
    border-color: #e6e7e8;
}

#page-header {
    display: none;
}

#left-column-button .fa {
    background: url('/media/img/icons/menu.png') no-repeat center center;
    width: 50px;
    height: 50px;
    border-radius: 3px 3px 0 0;
    border: 1px #ccc solid;
    cursor: pointer;
    position: relative;
    top: 4px;
}
#left-column-button .fa.collapse {
    display: none;
}
#left-column-button .expand {
    display: inline-block;
}
#left-column-button.toggled-on .collapse {
    display: inline-block;
}
#left-column-button.toggled-on .expand {
    display: none;
}

#categories {
    font-size: 15px;
}

#recent-posts {
    opacity: 0.8;
    margin-top: 20px;
    line-height: 18px;
}

#recent-posts h3 {
    opacity: 1
}

#recent-posts h3, .grey-header {
    padding: 5px 10px;
    margin: 0 -10px 15px;
    line-height: 22px;
}

#search-box {
    height: 30px;
    margin-top: 20px;
}

#search-box input {
    box-sizing: border-box;
    float: left;
    height: 30px;
}

#search-box input[type=search] {
    width: 60%;
    padding-left: 30px;
    background-image: url(/media/img/icons/blog-search.gif);
    background-repeat: no-repeat;
    background-position: left center;
    border: 1px solid #ccc;
}

#search-box input[type=submit] {
    width: 40%;
}

.right-column {
    position: relative;
    width: 72%;
    float: right;
}

.right-column .messages {
    list-style: none;
    font-size: 36px;
    line-height: 46px;
    text-align: center;
    padding-left: 0;
    margin: 0 0 18px 0;
}

#category-title {
    margin-top: 30px;
    font-size: 24px;
}

.article-page {
    text-align: justify;
}

article .excerpt a,
article .body a {
    text-decoration: underline;
    font-weight: 800;
    color: #43a454;
}

figure {
    position: relative;
    top: 0;
}

/* See "CSS intrinsic ratio scaling technique" */
figure:after {
    content: '';
    display: block;
    height: 0;
    width: 100%;
}

figure img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    display: block;
}

figure,
.video-container {
    margin: 10px 0;
    max-width: 100%;
}

figure.large img {
    width: 100%;
}

figure.medium {
    width: 300px;
}

figure.small {
    width: 150px;
}

figure.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

figure.alignleft {
    float: left;
    margin: 10px 20px 10px 0;
}

figure.alignright {
    margin: 10px 0 10px 20px;
    float: right;
}

figure figcaption {
    position: absolute;
    bottom: 5px;
    padding-left: 5px;
    padding-right: 5px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    color: #fff;
    font-style: italic;
}

figure.aligncenter figcaption {
    position: absolute;
    bottom: 0;
    padding-left: 0;
    text-align: center;
    margin-top: -25px;
}
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.article-page #article-lead {
    margin-bottom: 20px;
}

#article-lead.starts-with-small-image header.wngrey,
#article-lead.starts-with-medium-image header.wngrey,
#article-lead.starts-with-gallery header.wngrey,
#article-lead.starts-with-text header.wngrey,
#article-lead.starts-with-video header.wngrey {
    opacity: 0.8;
}
#article-lead.starts-with-text .excerpt {
    margin-top: 10px;
}
/*#article-lead.starts-with-small-image .excerpt figure,*/
/*#article-lead.starts-with-medium-image .excerpt figure {*/
    /*float: left;*/
/*}*/
/*#article-lead.starts-with-medium-image .excerpt figure {*/
    /*width: 300px;*/
/*}*/
/*#article-lead.starts-with-small-image .excerpt figure.alignright,*/
/*#article-lead.starts-with-medium-image .excerpt figure.alignright {*/
    /*float: right;*/
/*}*/
#article-lead h1 {
    font-family: 'latoheavy', Arial, Helvetica, sans-serif;
    padding: 0 10px 10px 10px;
    margin-bottom: 0;
}
#article-lead header,
#article-lead header a {
    color: #fff;
}

#article-lead a.leave-comment {
    font-size: 16px;
    float: right;
    padding: 0 0 5px 30px;
    background: url(/media/img/icons/blog-comment-big.gif) no-repeat left center;
}

#article-lead a.continue {
    font-size: 18px;
    position: relative;
}

#article-lead a.continue span {
    width: 0;
    height: 0;
    display: block;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left-width: 10px;
    border-left-style: solid;
    position: absolute;
    right: -20px;
    top: 6px;
}

#article-lead.starts-with-large-image {
    position: relative;
}

#article-lead.starts-with-large-image header {
    position: absolute;
    width: 100%;
    z-index: 1;
}

#article-lead.starts-with-large-image header h1 {
    margin-top: 15%;
    padding: 15px;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
}

#article-lead .article-lead-category {
    font-family: 'latoheavy', Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 24px;
    padding: 5px 0 0 40px;
    background: url(/media/img/icons/category-folder-white.png) no-repeat left center;
    background-position-x: 10px;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.5);
}

#article-lead.starts-with-large-image header .article-lead-category {
    width: 100%;
    padding: 5px 40px;
    background-color: rgba(0, 0, 0, 0.4);
}

#article-lead.starts-with-small-image figure,
#article-lead.starts-with-medium-image figure,
#article-lead.starts-with-large-image figure,
#article-lead.starts-with-gallery figure,
#article-lead.starts-with-video .video-container {
    margin-top: 0;
}

.gallery figcaption {
    display: none;
}

.gallery img {
    margin: 3px;
}

.gallery-wrap-outer {
    text-align: center;
}

.gallery-wrap-inner {
    text-align: left;
    display: inline-block;
}

.gallery-wrap-inner .gallery {
    display: inline-block;
}

.gallery-wrap-inner figure {
    display: inline;
    margin: 0;
}

.gallery-wrap-inner figcaption {
    margin: 0 3px;
}

.gallery-wrap-inner .columns-2 figcaption {
    max-width: 300px;
}

.gallery-wrap-inner .columns-3 figcaption,
.gallery-wrap-inner .columns-4 figcaption,
.gallery-wrap-inner .columns-5 figcaption {
    max-width: 150px;
}

#promote {
    padding-top: 0;
    padding-bottom: 2px;
    background-position: left bottom;
}

#promote label {
    display: block;
    font-size: 18px;
    text-align: right;
    padding-right: 10px;
}

#entry-list article {
    position: relative;
    width: 300px;
    height: 270px;
    max-width: 30%;
    float: left;
    padding: 0;
}

#entry-list article figure {
    margin: 0;
    width: 100%;
    max-width: 100%;
}

#entry-list figure img {
    position: relative;
    height: auto;
}

#entry-list article h3 {
    margin: 8px;
    text-align: center;
    line-height: 18px;
    overflow: hidden;
}

#entry-list article .article-category {
    font-size: 12px;
    position: absolute;
    bottom: 5px;
    left: 8px;
    background: url(/media/img/icons/category-folder-small.png) no-repeat left center;
    padding-left: 20px;
}

#related,
.comments-area {
    clear: both;
    margin-top: 15px;
}

#related a {
    font-size: 16px;
    padding-right: 10px;
}

.grey-header {
    opacity: 0.8;
}

#email-notes, .nav-title {
    font-size: 12px;
    font-style: italic;
}

.comment-form label {
    display: block;
    width: 25%;
    float: left;
    text-align: left;
}

.comment-form .g-recaptcha {
    margin-left: 25%;
}

.comment-form input[type=text], .comment-form input[type=email], .comment-form textarea {
    width: 74%;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) inset;
    max-width: 400px;
}

.comment-metadata {
    float: right;
    font-size: 12px;
}

.comment-post span {
    font-style: italic;
    display: block;
    margin: 5px 0;
}

.nav-links {
    margin-top: 60px;
}

.nav-previous {
    float: left;
    width: 45%;
    padding: 10px 20px 20px 30px;
    background-image: url(/media/img/icons/arrow_left.png);
    background-repeat: no-repeat;
    background-position: left center;
}

.nav-next {
    float: right;
    width: 45%;
    text-align: right;
    padding: 10px 30px 20px 20px;
    background-image: url(/media/img/icons/arrow_right.png);
    background-repeat: no-repeat;
    background-position: right center;
}

.pagination {
    text-align: center;
    margin: 30px 0;
}

.pagination .current,
.pagination .page-number {
    padding: 10px 15px;
    margin: 0 3px;
}

.pagination .ellipsis {
    padding: 5px;
}

@media only screen and (max-width: 820px) {
    #page-header {
        display: block;
    }
    #container div#header, #container div#content, #container .mainWidth {
        margin-left: 1.5%;
        margin-right: 1.5%;
    }
    #left-column, .right-column {
        float: none;
        width: 100%;
        max-width: 100%;
    }

    #left-column {
        display: none;
        min-height: inherit !important;
        margin-bottom: 30px;
    }

    #article-lead h1 {
        font-size: 24px;
        line-height: normal;
    }
}
@media only screen and (max-width: 820px) and (min-width: 500px) {
    #left-column {
        padding-bottom: 60px;
    }

    #left-column aside {
        width: 48%;
        float: left;
        margin-right: 2%
    }

    #recent-posts {
        margin-top: 0;
    }

    #left-column .grey-header {
        margin: 0 0 15px;
    }

    #search-box {
        position: absolute;
        top: auto;
        bottom: 20px;
    }
}
@media only screen and (max-width: 1020px) {
    #container div#header, #container div#content, #container .mainWidth {
        margin-left: 1.5%;
        margin-right: 1.5%;
    }
}
@media only screen and (min-width: 1020px) {
    #entry-list article {
        max-width: 300px;
        margin: 1.5%;
        height: 270px;
    }
}
@media only screen and (max-width: 1020px) and (min-width: 900px) {
    #entry-list article {
        max-width: 30%;
        margin: 1.5%;
        height: 270px;
    }
}
@media only screen and (max-width: 900px) and (min-width: 800px) {
    #entry-list article {
        max-width: 31%;
        margin: 1%;
        height: 255px;
    }
}
@media only screen and (max-width: 800px) and (min-width: 720px) {
    #entry-list article {
        height: 270px;
    }
}
@media only screen and (max-width: 800px) and (min-width: 760px) {
    #entry-list article {
        margin: 4.5%;
    }
}
@media only screen and (max-width: 760px) and (min-width: 720px) {
    #entry-list article {
        margin: 3%;
    }
}
@media only screen and (max-width: 720px) and (min-width: 600px) {
    #entry-list article {
        margin: 1.5%;
        height: 270px;
    }
}
@media only screen and (max-width: 600px) and (min-width: 500px) {
    #entry-list article {
        margin: 1%;
        height: 255px;
    }
}
@media only screen and (max-width: 800px) and (min-width: 500px) {
    #entry-list article {
        max-width: 47%;
    }
}
@media only screen and (min-width: 500px) {
    #entry-list article {
        float: left;
    }
}
@media only screen and (max-width: 500px) {
    figure figcaption {
        font-size: 12px;
    }

    #article-lead h1 {
        font-size: 18px;
    }

    #promote {
        display: none;
    }

    #entry-list article {
        width: 300px;
        height: 270px;
        max-width: 97%;
        float: none;
        margin: 2% auto;
    }

    .comment-form label,
    .comment-form input[type=text],
    .comment-form input[type=email],
    .comment-form textarea {
        width: 100%;
        float: none;
    }

    .comment-form .g-recaptcha {
        margin-left: 0%;
    }

    .nav-previous, .nav-next {
        width: 49%;
    }
}

/*
    Colorbox Core Style:
    The following CSS is consistent between example themes and should not be altered.
*/
#colorbox, #cboxOverlay, #cboxWrapper {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9999;
    overflow: hidden;
    -webkit-transform: translate3d(0, 0, 0);
}

#cboxWrapper {
    max-width: none;
}

#cboxOverlay {
    position: fixed;
    width: 100%;
    height: 100%;
}

#cboxMiddleLeft, #cboxBottomLeft {
    clear: left;
}

#cboxContent {
    position: relative;
}

#cboxLoadedContent {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

#cboxTitle {
    margin: 0;
}

#cboxLoadingOverlay, #cboxLoadingGraphic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow {
    cursor: pointer;
}

.cboxPhoto {
    float: left;
    margin: auto;
    border: 0;
    display: block;
    max-width: none;
    -ms-interpolation-mode: bicubic;
}

.cboxIframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    padding: 0;
    margin: 0;
}

#colorbox, #cboxContent, #cboxLoadedContent {
    box-sizing: content-box;
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box;
}

/*
    User Style:
    Change the following styles to modify the appearance of Colorbox.  They are
    ordered & tabbed in a way that represents the nesting of the generated HTML.
*/
#cboxOverlay {
    background: #000;
    opacity: 0.9;
    filter: alpha(opacity=90);
}

#colorbox {
    outline: 0;
}

#cboxContent {
    margin-top: 20px;
    background: #000;
}

.cboxIframe {
    background: #fff;
}

#cboxError {
    padding: 50px;
    border: 1px solid #ccc;
}

#cboxLoadedContent {
    border: 5px solid #000;
    background: #fff;
}

#cboxTitle {
    position: absolute;
    top: -20px;
    left: 0;
    color: #ccc;
}

#cboxCurrent {
    position: absolute;
    top: -20px;
    right: 0;
    color: #ccc;
}

#cboxLoadingGraphic {
    background: url(/media/images/loading.gif) no-repeat center center;
}

/* these elements are buttons, and may need to have additional styles reset to avoid unwanted base styles */
#cboxPrevious, #cboxNext, #cboxSlideshow, #cboxClose {
    border: 0;
    padding: 0;
    margin: 0;
    overflow: visible;
    width: auto;
    background: none;
}

/* avoid outlines on :active (mouseclick), but preserve outlines on :focus (tabbed navigating) */
#cboxPrevious:active, #cboxNext:active, #cboxSlideshow:active, #cboxClose:active {
    outline: 0;
}

#cboxSlideshow {
    position: absolute;
    top: -20px;
    right: 90px;
    color: #fff;
}

#cboxPrevious {
    position: absolute;
    top: 50%;
    left: 5px;
    margin-top: -32px;
    background: url(/media/images/controls.png) no-repeat top left;
    width: 28px;
    height: 65px;
    text-indent: -9999px;
}

#cboxPrevious:hover {
    background-position: bottom left;
}

#cboxNext {
    position: absolute;
    top: 50%;
    right: 5px;
    margin-top: -32px;
    background: url(/media/images/controls.png) no-repeat top right;
    width: 28px;
    height: 65px;
    text-indent: -9999px;
}

#cboxNext:hover {
    background-position: bottom right;
}

#cboxClose {
    position: absolute;
    top: 5px;
    right: 5px;
    display: block;
    background: url(/media/images/controls.png) no-repeat top center;
    width: 38px;
    height: 19px;
    text-indent: -9999px;
}

#cboxClose:hover {
    background-position: bottom center;
}
