/* Header */

#header {
    display: -moz-flex;
    display: -webkit-flex;
    display: -ms-flex;
    display: flex;
    -moz-flex-direction: column;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -moz-align-items: -moz-flex-end;
    -webkit-align-items: -webkit-flex-end;
    -ms-align-items: -ms-flex-end;
    align-items: flex-end;
    -moz-justify-content: space-between;
    -webkit-justify-content: space-between;
    -ms-justify-content: space-between;
    justify-content: space-between;
    background-color: #1f1815;
    background-attachment: scroll, scroll;
    background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), var(--straty-background-image, none);
    background-position: top left, top left;
    background-repeat: repeat, no-repeat;
    background-size: auto, 150%;
    color: rgba(255, 255, 255, 0.5);
    height: 100%;
    left: 0;
    padding: 2em 4em 1em 4em;
    position: fixed;
    text-align: right;
    top: 0;
    width: 35%;
}

#header>* {
    -moz-flex-shrink: 0;
    -webkit-flex-shrink: 0;
    -ms-flex-shrink: 0;
    flex-shrink: 0;
    width: 100%;
    align-content: flex-end
}

#header>.inner {
    -moz-flex-grow: 1;
    -webkit-flex-grow: 1;
    -ms-flex-grow: 1;
    flex-grow: 1;
    margin: 0 0 2em 0;
}

#header h1,
#header strong,
#header b {
    color: #ffffff;
    font-weight: 300;
}

#header h2,
#header h3,
#header h4,
#header h5,
#header h6 {
    color: #ffffff;
}

#header h1 {

    font-size: 1.25em;
    line-height: 1.5em;
    margin: 0;
    opacity: 0.75
}

#header h1 span {
    font-weight: 300;
    font-size: 0.85em;
}

.note {
    font-size: 0.8em;
}

/* Footer */

#footer .icons {
    margin: 1em 0 0 0;
}

#footer .icons a {
    color: rgba(255, 255, 255, 0.4);
}

#footer .copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8em;
    list-style: none;
    margin: 1em 0 0 0;
    padding: 0;
}

#footer .copyright li {
    border-left: solid 1px rgba(255, 255, 255, 0.25);
    display: inline-block;
    line-height: 1em;
    margin-left: 0.75em;
    padding-left: 0.75em;
}

#footer .copyright li:first-child {
    border-left: 0;
    margin-left: 0;
    padding-left: 0;
}

#footer .copyright li a {
    color: inherit;
}

#footer .note {
    font-size: 0.8rem;
    opacity: 0.75;
}

/* Main */

header.major h1 {
    color: var(--color-b)
}

#main {
    margin-left: 35%;
    max-width: 54em;
    padding: 1.5em 4em 4em 4em;
    width: calc(100% - 35%);
}

#main>section {
    border-top: solid 2px #efefef;
    margin: 4em 0 0 0;
    padding: 4em 0 0 0;
}


#main>section:first-of-type {
    border-top: 0;
    margin-top: 3em;
    padding-top: 0;
}

#main .breadcrumbs+section {
    border-top: 0;
    margin-top: 1em;
    padding-top: 0;
}

/* Touch */

body.is-touch .image.thumb:before {
    opacity: 0.5 !important;
}

body.is-touch .image.thumb:after {
    display: none !important;
}

body.is-touch #header {
    background-attachment: scroll;
    background-size: auto, cover;
}

body.is-touch .poptrox-popup .nav-next,
body.is-touch .poptrox-popup .nav-previous,
body.is-touch .poptrox-popup .closer {
    opacity: 1.0 !important;
}

/* XLarge */

@media screen and (max-width: 1800px) {

    /* Basic */

    body,
    input,
    select,
    textarea {
        font-size: 12pt;
    }

}

/* Large */

@media screen and (max-width: 1280px) {

    /* Header */

    #header {
        padding: 6em 3em 3em 3em;
        width: 30%;
    }

    #header h1 {
        font-size: 1.25em;
    }

    #header h1 br {
        display: none;
    }

    #header>.inner {
        margin-bottom: 0;
    }

    /* Footer */

    #footer .copyright li {
        border-left-width: 0;
        display: block;
        line-height: 2.25em;
        margin-left: 0;
        padding-left: 0;
    }

    /* Main */

    #main {
        margin-left: 30%;
        max-width: none;
        padding: 2em 3em 3em 3em;
        width: calc(100% - 30%);
    }

}

/* Medium */

@media screen and (max-width: 980px) {

    /* Basic */

    h1 br,
    h2 br,
    h3 br,
    h4 br,
    h5 br,
    h6 br {
        display: none;
    }

    /* List */

    ul.icons li .icon {
        font-size: 1.25em;
    }

    /* Header */

    #header {
        background-attachment: scroll;
        background-position: top left, center center;
        background-size: auto, cover;
        left: auto;
        padding: 0 0 5vw 0;
        position: relative;
        text-align: center;
        top: auto;
        width: 100%;
        height: 60vw;
        display: flex;
    }

    #header .inner {
        max-width: 70%;
        margin: auto;
        align-items: flex-end;
    }

    #header h1 {
        font-size: 1.75em;
    }

    #header h1 br {
        display: inline;
    }

    /* Footer */

    #footer {
        background-attachment: scroll;
        background-color: #1f1815;
        background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), var(--straty-background-image, none);
        background-position: top left, bottom center;
        background-repeat: repeat, no-repeat;
        background-size: auto, cover;
        bottom: auto;
        left: auto;
        padding: 4em 4em 2em 4em;
        position: relative;
        text-align: center;
        width: 100%;
    }

    #footer .icons {
        margin: 0 0 1em 0;
    }

    #footer .copyright {
        margin: 0 0 1em 0;
    }

    #footer .copyright li {
        border-left-width: 1px;
        display: inline-block;
        line-height: 1em;
        margin-left: 0.75em;
        padding-left: 0.75em;
    }

    /* Main */

    #main {
        margin: 0;
        padding: 1em 4em;
        width: 100%;
    }

}

/* Small */

@media screen and (max-width: 736px) {

    /* Basic */
    body,
    input,
    select,
    textarea {
        font-size: 13.5pt;
    }

    /* Section/Article */

    section.special,
    article.special {
        text-align: center;
    }

    header.major h1 {
        font-size: 1em;
    }

    /* List */

    ul.labeled-icons li {
        padding-left: 2em;
    }

    ul.labeled-icons li h3 {
        line-height: 1.75em;
    }

    /* Header */

    #header {
        height: 70vw;
    }

    #header h1 {
        font-size: 1.35em;
    }

    /* Footer */

    #footer {
        padding: 2.25em 1.5em;
    }

    /* Main */

    #main {
        padding: 0 1.5em 0.25em 1.5em;
    }

    #main>section {
        margin: 2.25em 0 0 0;
        padding: 2.25em 0 0 0;
    }

    /* Poptrox */

    .poptrox-popup {
        border-radius: 0;
    }

    .poptrox-popup .nav-next:before,
    .poptrox-popup .nav-previous:before {
        margin-top: -1em;
    }

}

/* XSmall */

@media screen and (max-width: 480px) {

    /* Header */

    #header .inner {
        max-width: 65%;
        font-size: 0.8em
    }

    #header h1 br {
        display: none;
    }

    #main {
        padding: 1.5em;
    }

    #main>section:first-of-type {

        margin-top: 1em;

    }

    /* Footer */

    #footer .copyright li {
        border-left-width: 0;
        display: block;
        line-height: 2.25em;
        margin-left: 0;
        padding-left: 0;
    }

}
