html {
    overflow-y: scroll;
}
body {
    width: 540px;
    margin: 20px auto 30px auto;
    -webkit-tap-highlight-color: transparent;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;
}
body, td, th, input, textarea, select, button {
    font: 14px 'Droid Serif', 'Georgia', serif;
    line-height: 1.7;
    color: #666666;
}
a {
    color: #a1abba;
    transition: color 0.2s linear;
}
a:hover {
    color: #3a4351;
}
a:active {
    background-color: inherit;
}
ul, li {
    display: block;
    margin: 0;
    padding: 0;
}
img {
    vertical-align: top;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
td {
    padding: 0;
    vertical-align: top;
}
iframe, a img {
    border: none;
}

.clearfix:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
}
* html .clearfix             { zoom: 1; } /* IE6 */
*:first-child+html .clearfix { zoom: 1; } /* IE7 */

header {
    height: 148px;
    background: #222222 url('/assets/images/layout/header-bg.png') no-repeat;
}
header .logo {
    width: 299px;
    height: 19px;
    margin: 16px 20px;
}

nav {
    position: absolute;
    width: 540px;
    border-top: 1px solid #fff;
}
nav li {
    float: left;
    width: 25%;
    padding: 0;
}
nav li a {
    display: block;
    border-right: 1px solid #fff;
    background: #222222;
    color: #ffffff;
    line-height: 24px;
    text-align: center;
    text-decoration: none;
    letter-spacing: 2px;
    transition: background 0.2s linear;
}
nav li.last a {
    border-right: none;
}
nav li a:hover {
    background: #3a4351;
    color: #ffffff;
}
nav.scrolled-down {
    position: fixed;
    top: 0;
    z-index: 5;
    -webkit-backface-visibility: hidden;
}

article h1,
article h2,
article h3 {
    color: #a1abba;
    font-family: 'Marvel', sans-serif;
    font-weight: normal;
    line-height: 1.18;
}
article h1 {
    margin: 60px 0 0 0;
    font-size: 34px;
}
article h2 {
    font-size: 28px;
}
article h3 {
    font-size: 22px;
}
article p,
article ul,
article h2,
article h3,
article .paragraph {
    margin: 16px 0 0 0;
}
article li {
    padding: 0 0 0 32px;
    list-style-type: none;
    background: url('/assets/images/layout/bullet.png') 12px 9px no-repeat;
}

.project-thumb {
    float: left;
    margin-top: 5px;
}
.project-desc {
    margin-left: 136px;
}

.attributes {
    margin-top: 16px;
}
.attributes .label {
    padding-right: 36px;
}

.map {
    margin: 20px 0;
    width: 100%;
    height: 300px;
}
.map .olControlAttribution,
.map .olControlScaleLine {
    font: 12px "Droid Serif", serif;
    right: 4px;
    bottom: 2px;
}

.slideshow {
    position: relative;
    height: 0;
    margin: 20px 0;
    padding-bottom: 73.704%; /* Props to Thierry Koblentz. */
    overflow: hidden;
    -webkit-user-select: none;
}
.slideshow img {
    display: block;
    max-width: 100%;
    height: auto;
}
.slideshow .item-spec {
    display: none;
}
.slideshow .item {
    background: url('/assets/images/layout/loading.gif') no-repeat center center;
    text-align: center;
}
.slideshow a.right,
.slideshow a.left {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    z-index: 2;
    cursor: pointer;
    background: url('/assets/images/layout/transparent.png') no-repeat -10px -10px; /* IE fix */
}
.slideshow a.left {
    left: 0;
}
.slideshow a.right {
    right: 0;
}
.slideshow a.left:hover {
    background: url('/assets/images/layout/slideshow-prev.png') no-repeat left center;
}
.slideshow a.right:hover {
    background: url('/assets/images/layout/slideshow-next.png') no-repeat right center;
}

.bot-trap {
    display: none;
}

footer {
    margin-top: 40px;
    padding: 4px 12px;
    background: #222222;
    color: #ffffff;
    font-size: 12px;
}
footer a {
    color: #ffffff;
}
footer a:hover {
    color: #a1abba;
}
footer .links {
    float: left;
}
footer li {
    padding: 0 0 0 17px;
    list-style-type: none;
    background: url('/assets/images/layout/bullet-footer.png') 0 8px no-repeat;
}
footer address {
    float: right;
    text-align: right;
    font-style: normal;
}
footer .networks {
    float: right;
    margin-top: 3px;
}
footer .networks a {
    float: left;
    margin-left: 3px;
}
footer .sep {
    padding: 0 8px;
}

@media only screen and (max-width: 540px) {
    body {
        width: 100%;
        min-width: 320px;
        margin-top: 0;
        margin-bottom: 0;
    }
    header .logo {
        margin: 16px 10px;
    }
    nav {
        width: 100%;
    }
    nav li {
        width: 33.333%;
    }
    article {
        margin: 0 10px;
    }
    .hidden-small {
        display: none;
    }
}

@media only screen and (width: 320px) {
    nav li {
        width: 106px;
    }
    nav li:nth-child(2) {
        width: 108px;
    }
}

@media only screen and (width: 360px) {
    nav li {
        width: 120px;
    }
}

@media only screen and (width: 480px) {
    nav li {
        width: 160px;
    }
}

