body {
    font-family: 'Open Sans', sans-serif;
    font-size: 100%;
    color: #333;
    background: #FFF;
    line-height: 1.4;
    font-weight: 300;
}

* {
    transition: color 0.4s ease 0s, opacity 0.4s ease 0s;

    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-sizing: border-box;
}

::-webkit-input-placeholder {
    color: #333;
    font-weight: 300;
}

:-moz-placeholder {
    color: #333;
    font-weight: 300;
}

:-ms-input-placeholder {
    color: #333;
    font-weight: 300;
}

a {
    color: #0B5D98;
    text-decoration: none;
}

h4 {
    font-size: 1.2em;
}

h3 {
    font-size: 1.3em;
}

h2 {
    font-size: 1.8em;
}

h1 {
    font-size: 3.6em;
}

h1, h2, h3, h4, h5 {
    font-family: 'Univers LT W02 55 Roman', 'Open Sans', sans-serif;
}

input,
select {
    border-radius: 0;
    color: inherit;
}

time {
    font-size: 0.85em;
}

time span {
    display: none;
}

strong {
    font-weight: 600;
}

p {
    line-height: 2.2em;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

::selection {
    color: #FFF;
    background: #0B5D98;
}

::-moz-selection {
    color: #FFF;
    background: #0B5D98;
}

pre {
    margin-bottom: 30px;
    white-space: pre-wrap;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 0.875rem; /* 14px */
    padding: 1rem 1.5rem; /* 16px 24px */
    border-radius: 0.375rem; /* 6px */
    overflow-x: auto;
}

iframe {
    max-width: 100%;
    margin: 0 auto;
    display: block;
}

code {
    font-weight: 300;
}

textarea {
    resize: vertical;
}

.clear {
    clear: both;
}

#overlay {
    display: none;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

#old_browser {
    display: none;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.pagination {
    color: #555555;
}

.pagination a,
.pagination .prev,
.pagination .next {
    font-weight: 400;
}

.pagination a {
    color: #0B5D98;
}

.pagination .prev {
    padding-right: 10px;
    border-right: 1px solid #CCCCCC;
}

.pagination .next {
    padding-left: 10px;
}

header #search_link,
footer #scroll_link {
    position: absolute;
    background-color: #333;
    color: #FFF;
    padding: 5px 10px;
    text-transform: lowercase;
}

header #menu_link a,
header #search_link a,
footer #scroll_link a {
    color: inherit;
    display: block;
}

header #search_link {
    top: 0;
    right: 20px;
    display: none;
}

#container {
    width: 100%;
    padding: 30px 20px 0;
    margin: 0 auto;
    max-width: 1400px;
}

#container > header {
    padding-bottom: 30px;
}

header h1 {
    background: url('../images/sprite.png') no-repeat -7px -4px / 500px 500px;
    text-indent: 100%;
    overflow: hidden;
    float: left;
    color: transparent;
    font-size: 0;
    display: block;
    height: 109px;
    width: 162px;
}

header.search_clicked h1 {
    background-size: 500px 500px;
    background-position: -7px 3px;
    height: 116px;
    width: 164px;
}

header h1 a {
    display: block;
    height: 100%;
    width: 100%;
}

header #menu_link {
    float: right;
    position: relative;
    z-index: 1;
}

header #search_link {
    display: none;
}

header #menu_link a:before {
    border-bottom: 0.165em solid rgba(51, 51, 51, 0.95);
    border-top: 0.495em double rgba(51, 51, 51, 0.95);
    content: "";
    height: 0.165em;
    left: 0;
    position: absolute;
    top: 0;
    width: 0.85em;
}

header #menu_link a {
    display: block;
    font-size: 2.5em;
    overflow: hidden;
    position: relative;
    text-indent: 100%;
    width: 0.85em;
}

header nav {
    position: absolute;
    width: 74.5%;
    height: 100%;
    background-color: #333;
    top: 0;
    left: 0;
    z-index: 2;
    padding: 30px 20px;
    display: none;
    overflow-y: auto;
    float: none;
    margin-top: 0;
}

header nav ul li {
    margin-top: 30px;
    display: list-item;
    margin-left: 0;
}

header nav ul li:first-child {
    margin-top: 0;
}

header nav ul li a {
    color: #FFF;
}

header nav ul li a:hover {
    color: #FFF;
}

header input[type="text"] {
    border: none;
    padding-left: 10px;
    height: 40px;
    width: 84%;
}

header input[type="image"] {
    background: #FFF;
    width: 40px;
    height: 40px;
    vertical-align: top;
}

#container > header form {
    margin-top: 60px;
    margin-bottom: 30px;
    display: block;
    border: none;
}

.menu_shown #container {
    overflow: hidden;
}

#content,
footer,
.post-type-archive-gallery.paged footer,
#content #tags,
#content form,
#content #comments,
.pagination,
.contact .width_max {
    margin-top: 60px;
}

#content article {
    margin-top: 90px;
}

#content article:first-child {
    margin-top: 0;
}

.home #content ul {
    display: none;
}

#content hgroup h3,
#content hgroup h2 {
    font-family: 'Univers LT W02 45 Light', 'Open Sans', sans-serif;
}

#content hgroup span {
    background-color: #333;
    color: #FFF;
    display: inline-block;
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 5px;
}

#content hgroup span#flicker {
    background-color: inherit;
    color: inherit;
    display: inline;
}

footer {
    padding-top: 60px;
    padding-bottom: 30px;
    position: relative;
    font-size: 0.85em;
}

footer ul {
    margin-top: 20px;
}

footer ul li {
    display: inline-block;
    margin-right: 15.2px;
    margin-bottom: 10px;
}

footer #scroll_link {
    right: 0;
    bottom: 0;
    display: none;
}

article header {
    margin-bottom: 30px;
}

article h2,
article h3,
article h4,
article h5 {
    text-transform: uppercase;
}

article h2 a,
article h3 a,
article h4 a,
article h5 a {
    color: inherit;
}

article p,
article h3,
article h4 {
    margin-bottom: 30px;
}

article p:last-child {
    margin-bottom: 0;
}

#content #comments a {
    color: #0B5D98;
}

#content #comments > li {
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    margin-top: 30px;
}

#content #comments > li:first-child {
    margin-top: 0;
}

#content #comments li {
    padding-top: 20px;
}

#content #comments li ul {
    margin-left: 60px;
    margin-top: 20px;
}

#content #comments img {
    float: left;
    margin-right: 20px;
    filter: grayscale(100%);
}

#content #comments img:hover {
    filter: grayscale(0%);
}

#content #comments header {
    margin-bottom: 20px;
    height: 80px;
}

#content #comments header span,
#content #comments header time,
#content #comments header a {
    display: block;
}

#content #comments header time,
#content #comments header a {
    margin-top: 4px;
}

#content form input[type="text"],
#content form input[type="email"],
#content form input[type="tel"],
#content form textarea,
#content form select {
    border: 1px solid rgba(0, 0, 0, 0.2);
    width: 100%;
    margin-bottom: 30px;
    padding-left: 20px;
    background: transparent;
}

/* Firefox hack >_< */
@-moz-document url-prefix() {
    #content form select {
        padding-top: 14px;
        padding-left: 16px;
    }
}

#content form option {
    padding-left: 20px;
}

#content form input,
#content form select {
    height: 60px;
}

#content form input[type="submit"] {
    background-color: #333;
    color: #FFF;
    border: none;
    height: auto;
    padding: 10px 20px;
    cursor: pointer;
}

#content form textarea {
    padding-top: 20px;
    height: 300px;
}

#gallery article {
    width: 100%;
    margin-top: 0;
    overflow: hidden;
    margin-bottom: 30px;
    position: relative;
}

#gallery article:last-child {
    margin-bottom: 0;
}

#gallery article img {
    display: block;
    width: 100%;
    height: auto;
}

#gallery article h2,
#gallery article h5 {
    position: absolute;
    bottom: 25px;
    text-align: center;
    width: 100%;
    color: #FFFFFF;
    font-size: 1.1em;
}

#gallery article * {
    transition: transform 0.8s cubic-bezier(.17, .73, .66, .99) 0s, z-index 0s step-end, opacity 0.4s ease;
}

#gallery article .overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: -webkit-linear-gradient(top, rgba(22, 22, 22, 0) 0%, rgba(22, 22, 22, 0.25) 100%);
    background: linear-gradient(top, rgba(22, 22, 22, 0) 0%, rgba(22, 22, 22, 0.25) 100%);
    background: -ms-linear-gradient(top, rgba(22, 22, 22, 0) 0%, rgba(22, 22, 22, 0.25) 100%);
    background: -o-linear-gradient(top, rgba(22, 22, 22, 0) 0%, rgba(22, 22, 22, 0.25) 100%);
}

#gallery article:hover .overlay {
    opacity: 0.2;
}

#gallery article:hover img {
    transform: matrix(1.08, 0, 0, 1.08, 0, 0);
}

.single-gallery #content ul {
    font-size: 0;
}

.single-gallery #content li {
    margin-bottom: 30px;
}

.single-gallery #content li:last-of-type {
    margin-bottom: 0;
}

.single-gallery #content img {
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    display: block;
}

.meta {
    display: none;
}

.single-portfolio img {
    margin-bottom: 30px;
}

.single-portfolio #content ul {
    margin-top: 30px;
}

.single-portfolio #content ul li {
    margin-top: 20px;
}

.alignleft, .alignright {
    float: none;
    margin: 0 auto 30px;
}

.aligncenter {
    margin: 0 auto 30px;
}

.wp-caption,
.alignleft,
.alignright,
.aligncenter {
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    margin-top: 15px;
}

@media screen and ( min-width: 400px ) {
    h1 {
        font-size: 4em;
    }

    h2 {
        font-size: 2.4em;
    }

    h3 {
        font-size: 1.6em;
    }
}

@media screen and ( min-width: 600px ) {
    body {
        font-size: 110%;
    }

    h2 {
        font-size: 2.6em;
    }

    #content hgroup {
        font-size: 1.3em;
    }

    header h1 {
        background-size: 250px 250px;
        height: 54px;
        width: 82px;
        background-position: -3px -3px;
    }

    header #menu_link {
        display: none;
    }

    header nav {
        float: right;
        display: block;
        background: none;
        padding: 0;
        position: inherit;
        width: auto;
        margin-top: 19px;
    }

    header nav ul li {
        display: inline-block;
        margin-left: 25.2px;
        margin-top: 0;
    }

    header nav ul li:first-child {
        margin-left: 0;
    }

    header nav ul li a {
        color: #333;
    }

    header nav ul li a:hover {
        color: #0B5D98;
    }

    .current-menu-item a,
    .current-page-ancestor a,
    .single-post .current_page_parent a,
    .single-portfolio nav li:nth-child(2) a,
    .single-gallery nav li:nth-child(2) a,
    .single-prints nav li:nth-child(4) a {
        color: #0B5D98;
    }

    #container > header form {
        display: none;
        border: 1px solid rgba(0, 0, 0, 0.2);
        margin-top: 20px;
        margin-bottom: 0;
    }

    /*Fix bug with chrome when header border bottom is shown (if search is activated)
    this is because of the h1 hidden link text hack*/
    #container > header.search_clicked {
        min-height: 147px;
    }

    .alignleft {
        float: left;
        margin-right: 30px;
        margin-bottom: 30px;
    }

    .alignright {
        float: right;
        margin-left: 30px;
        margin-bottom: 30px;
    }
}

@media screen and ( min-width: 768px ) {
    body {
        font-size: 115%;
    }

    .single-gallery #images {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .single-gallery #images ul {
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
        width: max-content;
        min-width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .single-gallery #content li {
        display: inline-block;
        flex: 0 0 auto;
        margin-right: 0;
        margin-bottom: 0;
    }

    .single-gallery #content li:last-of-type {
        margin-right: 0;
    }

    .single-gallery #content img {
        display: block;
        height: 550px;
        width: auto;
        max-height: 550px;
        object-fit: contain;
    }

    #gallery article {
        width: calc(100% / 2 - 15px);
    }
}

@media screen and ( min-width: 1024px ) {
    body {
        font-size: 125%;
    }

    h1 {
        font-size: 4.2em;
    }

    #gallery article {
        width: calc(100% / 3 - 20px);
    }

    .width_max {
        width: 65%;
    }

    .single-gallery footer {
        padding-top: 100px;
    }
}

@media screen and ( min-width: 1144px ) {
    div[itemprop="articleBody"] pre,
    #comments pre {
        width: 1100px;
    }

    #content hgroup {
        font-size: 1.5em;
    }
}