/* RESET */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-weight: inherit;
    font-style: inherit;
    font-size: 100%;
    font-family: inherit;
    vertical-align: baseline;
}



/* THE BIG ONES */
body {
    font-family: 'Roboto', arial, helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
    background-color: #333;
    color: #efefef;
    padding: 30px;
    float: left;
    width: 100%;
    box-sizing: border-box;
    -moz-user-select: -moz-none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
    user-select: none;
}
a {
    color: #999;
}
em {
    font-style: italic;
}
::selection {
    color: black;
    background-color: #ffed71;
}
:focus {
    outline: none;
}



/* WRAPPER */
.wrapper {
    float: left;
    width: 100%;
}



/* GENERIC */
.button {
    padding: 4px 6px;
    text-decoration: none;
    -webkit-transition: background-color 0.2s linear;
    -moz-transition: background-color 0.2s linear;
    transition: background-color 0.2s linear;
    text-decoration: none;
    padding: 4px 6px;
    background-color: transparent;
    cursor: pointer;
}
.button:active {
    background-color: black;
    border-color: black;
    color: white;
}
.lazy {
    background: transparent url('../img/loader.gif') center no-repeat;
    background-size: 33px 33px;
}



/* HEADER */
header {
    width: 15%;
    float: left;
}
.logo {
    display: block;
    margin-bottom: 15px;
}
h1 {
    font-size: 26px;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    line-height: 24px;
}
nav {
    margin: 15px 0 30px 0;
}
nav ul {
    list-style-type: none;
    list-style-position: inside;
    font-size: 0;
}
nav li {
    display: block;
    margin-bottom: 2px;
    font-size: 14px;
}
nav .button {
    display: block;
    background-color: #efefef;
    color: #333;
}
nav .active {
    background-color: #ffed71;
}
nav ul li span {
    display: block;
    padding: 4px 6px;
    color: #ccc;
}



/* ARTICLE */
article {
    float: right;
    width: 80%;
}
article h2 {
    font-weight: 700;
    font-size: 24px;
    line-height: 24px;
    display: block;
    margin-bottom: 15px;
}
article p {
    margin: 15px 0;
    width: 50%;
}
article ul {
    padding: 0 0 0 30px;
    width: 50%;
    margin: 15px 0;
    box-sizing: border-box;
}
article li {
    margin: 8px 0;
}



/* INFORMATION */
.information article img {
    height: auto;
    width: 50%;
    max-width: 512px;
    vertical-align: top;
}



/* GALLERY */
.gallery-info {
    width: 40%;
    min-width: 400px;
    border: 1px solid #eee;
    margin-bottom: 15px;
    font-size: 10px;
    padding: 15px;
    box-sizing: border-box;
}
.gallery-image {
    height: 80%;
    max-height: 640px;
    display: block;
}
.gallery-image img {
    height: 100%;
    width: auto;
    display: none;
    margin: 0;
    cursor: pointer;
    background: transparent url('../img/loader.gif') center no-repeat;
    background-size: 33px 33px;
    -webkit-transform: scale(1);
}
.gallery-nav {
    margin-top: 15px;
    width: 40%;
    min-width: 400px;
    font-size: 0;
}
.gallery-nav > div {
    border: 1px solid #454545;
    color: #454545;
    padding: 5px;
    width: 40%;
    font-size: 10px;
    text-align: center;
    display: inline-block;
    box-sizing: border-box;
}
.gallery-nav .gallery-number {
    width: 20%;
    border-color: transparent;
}



/* FOOTER */
footer {
    float: left;
    width: 100%;
    font-size: 10px;
    border-top: 1px solid #454545;
    padding-top: 15px;
    margin-top: 30px;
    color: #454545;
}
footer em a {
    color: #454545;
}



/* Lower rez screens */
@media (max-width: 1024px) {
    header,
    article,
    .gallery-info,
    .gallery-nav {
        display: block;
        width: 100%;
        min-width: initial;
        box-sizing: border-box;
    }
    nav {
        margin-top: 15px;
    }
    nav li {
        display: inline-block;
        margin-right: 2px;
    }
    .gallery-image {
        text-align: center;
        height: auto;
        max-width: 100%;
        max-height: none;
    }
    .gallery-image img {
        width: 100%;
        height: auto;
        
    }
    article p,
    article ul {
        width: 80%;
    }
}
@media (max-width: 480px) {
    body {
        font-size: 10px;
    }
    header {
        position: relative;
        padding-left: 70px;
        margin-bottom: 30px;
    }
    header:before {
        content: '';
        background: transparent url('../img/logo.png') left center no-repeat;
        height: 60px;
        width: 60px;
        display: block;
        position: absolute;
        background-size: cover;
        left: 0;
        top: 50%;
        margin-top: -30px;
    }
    .logo {
        display: none;
    }
    h1 {
        font-size: 18px;
        line-height: 16px;
    }
    nav {
        margin: 10px 0 0 0;
    }
    article p,
    article ul {
        width: 100%;
        font-size: 12px;
    }
    .information article img {
        width: 100%;
    }
    .gallery-number {
        font-size: 8px;
    }
}