body {
    /* Always show vertical scrollbar */
    overflow-y: scroll;
}

p {
    line-height: 1.7em;
    font-size: 14px;
    margin: 0 0 20px 0;
}

.centre_column {
    padding-left: 25px;
    padding-right: 25px;
}

/* + Skill filters {{{ */

#filterNav {
    padding: 0;
    margin-top: 10px;
    margin-right: 25px;
    margin-bottom: 10px;
    margin-left: 20px;
}

#filterNav li {
    display: block;
    float: left;
    background: none;

    margin: 0 0 10px 0;
    padding: 1px 0 0 0;
    font-size: 80%;

    /*line-height: 1.2em;*/
}

#filterNav li a {
    padding: 0.3em 0.5em 0.3em 0.5em;
    margin-right: 0.5em;
    line-height: 1;

    display: inline-block;
    text-decoration: none;
    position: relative;
    cursor: pointer;
    border: none;

    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

#filterNav li a:hover {
    background: #6a6a6a;
    color: #fff !important;
}

#filterNav a {
    color: rgba(226, 226, 225, 1);
}

#filterNav .selected {
    background: #6a6a6a;
    color: #fff;
}

/* + }}} */

/* + Project thumbs {{{ */

.projectThumbs {
    margin: 0 auto;

    position: relative;
    overflow: hidden;
}

.projectThumb {
    /* Fit exactly 4 pictures per row */
    display: inline-block;
    margin: 0;
    padding: 0;
    width: 25%;

    /* */
    cursor: pointer;
}

/* + + Narrow screens {{{ */

@media only screen and (max-width: 800px) {
    .projectThumb {
        width: 50%;
    }
}
@media only screen and (max-width: 480px) {
    .projectThumb {
        width: 100%;
        padding: 0;
    }
}

/* + + }}} */

.projectPadding {
    margin: 5.5px;

    /* Act as containing block for title */
    position: relative;
}

.projectThumb img {
    /* Make thumb fill div cell */
    width: 100%;
    height: auto;

    /* Avoid 3-4px margin below images */
    vertical-align: middle;
}

/* + + Titles {{{ */

.projectThumb .title {
    /* Fix to bottom of image cell */
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;

    /**/
    padding-top: 16px;
    padding-left: 14px;
    padding-right: 10px;
    padding-bottom: 12px;
}

/* + + + Solid box style {{{ */

.projectThumb .title {
    background: rgba(0, 0, 0, 0.5);
    color: #FFF;
}

/* + + + }}} */

/* + + + Subtitle style {{{ */

/*
.projectThumb .title {
    text-align: center;
}

.projectThumb .title span {
    display: inline;
    background: rgba(0, 0, 0, 0.9);
    padding: 5px 6px 4px 6px;
    line-height: 1.6;
    -webkit-box-decoration-break: clone;
}
*/

/* + + + }}} */

/* + + }}} */

/* + + Darken thumbnail when hovered or selected {{{ */

.projectThumb img {
    position: relative;
    transition-duration: 0.2s;

    /* Fix Chrome image size jitter during transition */
    -webkit-backface-visibility: hidden;
}
.projectThumb:hover img {
    opacity: 0.9;
}
.projectThumb.selected img {
    opacity: 0.9;
}

/* + + }}} */

/* + + Show title when hovered or selected {{{ */

.projectThumb .title {
    opacity: 0;
    transition-duration: 0.2s;
}
.projectThumb:hover .title {
    opacity: 1;
}
.projectThumb.selected .title {
    opacity: 1;
    display: block;
}

/* + + }}} */

/* + }}} */

/* + Project thumb/details transition {{{ */

#zoomBox {
    position: fixed;
    z-index: 5;
    background-color: #e2e2e1;
}

/* + }}}

/* + Project details {{{ */

/* + + Project drawer and related opened/closed styles {{{ */

#projectDrawer {
    margin: 0;
    padding: 0;
    background: #e2e2e1;
    height: auto;

    /* Initially hidden */
    display: none;

    /* Contain floating children */
    position: relative;

    /* Avoid scrollbar (appears in some marginal cases in IE 11) */
    overflow: visible;
}

body.projectDrawerOpen {
    background-color: #e2e2e1;
}
body.projectDrawerOpen #scrollingContent {
    display: none;
}
body.projectDrawerOpen #projectDrawer {
    display: block;
}
@media only screen and (max-width: 800px) {
    body.projectDrawerOpen #mtfHeader {
        display: none;
    }
}

/* + + }}} */

/* + + Ajax loading {{{ */

#ajaxLoading {
    width: 16px;
    height: 16px;
    background: transparent url(images/ajax_loading.gif) no-repeat;
    position: absolute;

    left: 50%;
    transform: translateX(-50%);

    top: 24px;
    display: none;
}

/* + + }}} */

/* + + Project content {{{ */

#projectContent {
    padding: 17px 25px 25px 25px;
    height: auto;
    color: black;

    /* Contain float children */
    overflow: hidden;

    /* Initially hidden */
    display: none;
}

/* + + }}} */

/* + + Title {{{ */

h1.projectTitle {
    margin: 0 0 15px 0;
    padding: 0;
    font-size: 1em;
    /*font-size: 20px;*/
    line-height: 1.4;
}

/* + + }}} */

/* + + Nav buttons {{{ */

.projectNav {
    float: right;
    margin: 4px 0 0 5%;
}

.projectNav a {
    display: inline-block;
    width: 20px;
    height: 20px;
    text-indent: -9999px;
}

.projectNav .previous {
    margin-right: 10px;
}

.projectNav .closeButton {
    background: transparent url(images/close_btn.png) no-repeat;
    background-position: 0 -20px;

    margin-left: 4px;
}
.projectNav .closeButton:hover {
    background-position: 0 0;
}

.projectNav .previousButton {
    background: transparent url(images/project_nav_btn.png) no-repeat;
    background-position: -20px -20px;
}
.projectNav .previousButton:hover {
    background: transparent url(images/project_nav_btn.png) no-repeat;
    background-position: -20px 0px;
}
.projectNav .previousButton.inactive {
    background: transparent url(images/project_nav_btn.png) no-repeat;
    background-position: -20px -40px;
}

.projectNav .nextButton {
    background: transparent url(images/project_nav_btn.png) no-repeat;
    background-position: 0 -20px;
}
.projectNav .nextButton:hover {
    background: transparent url(images/project_nav_btn.png) no-repeat;
    background-position: 0 0px;
}
.projectNav .nextButton.inactive {
    background: transparent url(images/project_nav_btn.png) no-repeat;
    background-position: 0 -40px;
}

/* + + }}} */

/* + + Visuals (typically a video embed) {{{ */

#projectContent .visuals {
    float: left;
    width: 74.468085%;
    padding: 0;
    padding-top: 5px;
}

/* + + }}} */

/* + + Detail text {{{ */

#projectContent .details {
    float: right;
    width: 22%;
    padding: 0px 0 0 0;
}

/* + + }}} */

/* + + Narrow screens {{{ */

@media only screen and (max-width: 800px) {
    #projectContent .visuals {
        float: none;
        width: 100%;
        display: block;
        margin-bottom: 18px;
    }
    #projectContent .details {
        float: none;
        width: 100%;
        display: block;
    }
}

/* + + }}} */

/* + }}} */
