﻿/*
Theme Name: Crane Museum
Author: Enrico Spada Creative
Description: Custom theme for Crane Museum.
Version: 1.0.0
*/

@import url("main.css");

/*--------------------------------------------------------------
# 1. RESET & NORMALIZE
--------------------------------------------------------------*/
html {
    font-family: sans-serif;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    margin: 0;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
menu,
nav,
section,
summary {
    display: block;
}

audio,
canvas,
progress,
video {
    display: inline-block;
    vertical-align: baseline;
}

    audio:not([controls]) {
        display: none;
        height: 0;
    }

[hidden],
template {
    display: none;
}

svg:not(:root) {
    overflow: hidden;
}

/*--------------------------------------------------------------
# 2. TYPOGRAPHY
--------------------------------------------------------------*/
body,
button,
input,
select,
optgroup,
textarea {
    color: #fff;
    font-family: clarendon-text-pro, serif;
    font-size: 16px;
    font-size: 1rem;
    line-height: 1.8;
}

h1 {
    font-size: 2.44em;
    margin: 0.67em 0;
    line-height: 1.4;
}

h2 {
    font-size: 1.95em;
    line-height: 1.4;
}

h3 {
    font-size: 1.56em;
    line-height: 1.4;
}

h4 {
    font-size: 1.25em;
    line-height: 1.5;
}

h5 {
    font-size: 1em;
}

h6 {
    font-size: 0.8em;
}

h1, h2, h3, h4, h5, h6 {
    color: #38526b;
    clear: both;
}

h2, h3, h4, h5, h6 {
    font-family: din-condensed, sans-serif;
    text-transform: uppercase;
    letter-spacing: .075em;
    font-weight: 400;
}

.entry-header h1.entry-title {
    font-size: 2.44em;
    line-height: 1.4;
    margin: 1em 0;
}

b,
strong {
    font-weight: bold;
}

dfn,
cite,
em,
i {
    font-style: italic;
}

mark {
    background: #ff0;
    color: #000;
}

mark, ins {
    background: #fff9c0;
    text-decoration: none;
}

small {
    font-size: 80%;
}

big {
    font-size: 125%;
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sup {
    top: -0.5em;
}

sub {
    bottom: -0.25em;
}

abbr[title],
abbr,
acronym {
    border-bottom: 1px dotted #666;
    cursor: help;
}

blockquote {
    margin: 0 1.5em;
}

blockquote, q {
    quotes: "" "";
}

.image-right {
    margin-left: auto;
    margin-right: 0;
    display: block;
}

.image-left {
    margin-left: 0;
    margin-right: auto;
    display: block;
}

.image-center {
    margin-left: auto;
    margin-right: auto;
    display: block;
}

    blockquote:before, blockquote:after,
    q:before, q:after {
        content: "";
    }

address {
    margin: 0 0 1.5em;
}

pre {
    background: #eee;
    font-family: "Courier 10 Pitch", Courier, monospace;
    font-size: 15px;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.6em;
    max-width: 100%;
    overflow: auto;
    padding: 1.6em;
}

code, kbd, tt, var,
code, kbd, pre, samp {
    font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
    font-size: 15px;
    font-size: 0.9375rem;
}

.site-title {
    margin: .4375em 0 0;
    font-size: 38px;
    font-weight: bold;
    line-height: 1.2;
    color: #333332;
}

    .site-title a {
        text-decoration: none;
        color: inherit;
    }

.site-description {
    margin: .4375em 0 0;
    font-size: 17px;
    font-weight: inherit;
    line-height: 1.4;
    word-wrap: break-word;
    color: #929292;
}

/*--------------------------------------------------------------
# 3. ELEMENTS
--------------------------------------------------------------*/
img {
    border: 0;
    height: auto;
    max-width: 100%;
}

body.home a.custom-logo-link img:not(.subpage) {
    max-width: 130% !important;
}

figure {
    margin: 1em 0;
}

hr {
    box-sizing: content-box;
    height: 0;
    border: 0;
    height: 1px;
    margin-bottom: 1.5em;
}

ul, ol {
    margin: 0 0 1.5em 3em;
}

ul {
    list-style: disc;
}

ol {
    list-style: decimal;
}

li > ul,
li > ol {
    margin-bottom: 0;
    margin-left: 1.5em;
}

dt {
    font-weight: bold;
}

dd {
    margin: 0 1.5em 1.5em;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
    margin: 0 0 1.5em;
    width: 100%;
}

td,
th {
    padding: 0;
}

optgroup {
    font-weight: bold;
}

textarea {
    overflow: auto;
    width: 100%;
}

fieldset {
    border: 1px solid #c0c0c0;
    margin: 0 2px;
    padding: 0.35em 0.625em 0.75em;
}

legend {
    border: 0;
    padding: 0;
}

input {
    line-height: normal;
}

/*--------------------------------------------------------------
# 4. FORMS
--------------------------------------------------------------*/
button,
input,
optgroup,
select,
textarea {
    color: inherit;
    font: inherit;
    margin: 0;
}

button {
    overflow: visible;
}

button,
select {
    text-transform: none;
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    -webkit-appearance: button;
    cursor: pointer;
    border: 1px solid;
    border-color: #ccc #ccc #bbb;
    border-radius: 3px;
    background: #e6e6e6;
    color: rgba(0, 0, 0, 0.8);
    font-size: 12px;
    font-size: 0.75rem;
    line-height: 1;
    padding: .6em 1em .4em;
}

    button[disabled],
    html input[disabled] {
        cursor: default;
    }

    button::-moz-focus-inner,
    input::-moz-focus-inner {
        border: 0;
        padding: 0;
    }

    button:hover,
    input[type="button"]:hover,
    input[type="reset"]:hover,
    input[type="submit"]:hover {
        border-color: #ccc #bbb #aaa;
    }

    button:active, button:focus,
    input[type="button"]:active,
    input[type="button"]:focus,
    input[type="reset"]:active,
    input[type="reset"]:focus,
    input[type="submit"]:active,
    input[type="submit"]:focus {
        border-color: #aaa #bbb #bbb;
    }

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
    color: #666;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 3px;
}

    input[type="text"]:focus,
    input[type="email"]:focus,
    input[type="url"]:focus,
    input[type="password"]:focus,
    input[type="search"]:focus,
    input[type="number"]:focus,
    input[type="tel"]:focus,
    input[type="range"]:focus,
    input[type="date"]:focus,
    input[type="month"]:focus,
    input[type="week"]:focus,
    input[type="time"]:focus,
    input[type="datetime"]:focus,
    input[type="datetime-local"]:focus,
    input[type="color"]:focus,
    textarea:focus {
        color: #111;
    }

input[type="checkbox"],
input[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

select {
    border: 1px solid #ccc;
}

/*--------------------------------------------------------------
# 5. LINKS
--------------------------------------------------------------*/
a {
    background-color: transparent;
    color: #aeb885;
}

    a:visited {
        color: #aeb885;
    }

    a:hover, a:focus, a:active {
        color: #38526b;
    }

    a:focus {
        outline: thin dotted;
    }

    a:active,
    a:hover {
        outline: 0;
    }

/*--------------------------------------------------------------
# 6. NAVIGATION & MENUS
--------------------------------------------------------------*/
.main-navigation ul {
    display: none;
    list-style: none;
    margin: 0;
    padding-left: 0;
}

    .main-navigation ul ul {
        box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
        float: left;
        position: absolute;
        top: 100%;
        left: -999em;
        z-index: 99999;
        text-align: left;
    }

        .main-navigation ul ul ul {
            left: -999em;
            top: 0;
        }

        .main-navigation ul ul li:hover > ul,
        .main-navigation ul ul li.focus > ul {
            left: 100%;
        }

        .main-navigation ul ul a {
            width: 200px;
        }

    .main-navigation ul li:hover > ul,
    .main-navigation ul li.focus > ul {
        display: block;
        left: auto;
    }

.main-navigation li {
    position: relative;
    display: flex;
    align-items: center;
}

    .main-navigation li svg {
        line-height: 44px;
    }

.main-navigation a {
    display: block;
    text-decoration: none;
}

.menu-toggle {
    padding: 1em;
}

@media screen and (max-width: 800px) {
    .menu-toggle,
    .main-navigation.toggled ul {
        display: block;
        margin: 0 auto;
    }
}

@media screen and (min-width: 800px) {
    .menu-toggle {
        display: none;
    }

    .main-navigation ul {
        display: flex;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .main-navigation a {
        padding: 0 .5em;
    }
}

.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
    border-bottom: 1px solid #111;
    margin: 0 auto 60px;
    max-width: 636px;
    overflow: hidden;
    padding-bottom: 60px;
}

.nav-links {
    display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
    width: 50%;
    flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
    text-align: end;
    flex: 1 0 50%;
}

/*--------------------------------------------------------------
# 7. ACCESSIBILITY
--------------------------------------------------------------*/
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

    .screen-reader-text:focus {
        background-color: #f1f1f1;
        border-radius: 3px;
        box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
        clip: auto !important;
        color: #21759b;
        display: block;
        font-size: 14px;
        font-size: 0.875rem;
        font-weight: bold;
        height: auto;
        left: 5px;
        line-height: normal;
        padding: 15px 23px 14px;
        text-decoration: none;
        top: 5px;
        width: auto;
        z-index: 100000;
    }

#primary[tabindex="-1"]:focus {
    outline: 0;
}

/*--------------------------------------------------------------
# 8. LAYOUT & ALIGNMENT
--------------------------------------------------------------*/
#page {
    margin: 0 auto;
    max-width: 100%;
}

.alignleft,
.alignright {
    max-width: 40% !important;
    margin-top: 0px !important;
}

    .alignleft figcaption {
        clear: left;
    }

    .alignright figcaption {
        clear: right;
    }

    .alignleft img,
    .alignleft figcaption {
        float: left;
        margin-right: 1.5em;
    }

    .alignright img,
    .alignright figcaption {
        float: right;
        margin-left: 1.5em;
    }

/*figure.alignright {
    float: right;
    margin: 0 0 1em 1.5em !important;
    max-width: 40%;
}

figure.alignleft {
    float: left;
    margin: 0 1.5em 1em 0 !important;
    max-width: 40%;
}*/

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/*--------------------------------------------------------------
# 9. SITE STRUCTURE
--------------------------------------------------------------*/
.site-branding {
    text-align: left;
    width: 315px;
    justify-content: flex-start;
    margin-bottom: 1.75em;
}

.archive .site-header {
    margin-bottom: 3.5em;
}

header.site-header {
    max-width: 960px;
    margin: auto;
    display: flex;
    padding: 0;
}

@media screen and (max-width: 960px) {
    header.site-header {
        padding: 0px 10px;
    }

    div.site-branding {
        margin: 20px 0px 20px 0px;
        width: 60%;
    }
}

.site-footer {
    margin: 1em 0;
    opacity: 1;
}

.site-info {
    font-size: 75%;
    text-align: right;
}

    .site-info a:link,
    .site-info a:hover,
    .site-info a:visited,
    .site-info a:active {
        color: #fff;
        text-decoration: none;
    }

/*--------------------------------------------------------------
# 10. CONTENT & POSTS
--------------------------------------------------------------*/
.sticky {
    display: block;
}

.hentry {
    margin: 60px 0;
}

.updated:not(.published) {
    display: none;
}

.page-content,
.entry-content,
.entry-summary {
    margin: 1.5em auto 0;
}

.page-links {
    clear: both;
    margin: 1.5em auto 0;
}

.entry, header.entry-header, h1.entry-title {
    margin: 0px auto !important;
}

.entry-content > * {
    margin: 36px auto;
    max-width: 960px;
    padding-left: 14px;
    padding-right: 14px;
}

.entry-content p {
    margin: 20px auto;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin: 36px auto 0px;
}

.entry-content > .alignwide {
    max-width: 1100px;
}

.entry-content > .alignfull {
    margin: 1.5em 0;
    max-width: 100%;
}

.entry-content ul,
.entry-content ol {
    margin: 1.5em auto;
    max-width: 960px;
    list-style-position: outside;
}

.entry-content li {
    margin-left: 2.5em;
    margin-bottom: 6px;
}

.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul {
    margin: 0 auto;
}

    .entry-content ul ul li,
    .entry-content ol ol li,
    .entry-content ul ol li,
    .entry-content ol ul li {
        margin-left: 0;
    }

.page-header,
.entry-footer,
.site-info,
.post-navigation,
.page-navigation,
.comments-area,
.not-found .page-content,
.search .entry-summary {
    margin: 1.5em auto;
    padding-left: 14px;
    padding-right: 14px;
    max-width: 960px;
}

.entry-header .wp-post-image {
    margin-bottom: 1.5em;
}

.entry-footer span {
    margin-right: 1em;
}

.entry-footer {
    color: #fff;
    font-size: 90%;
    padding-bottom: 40px;
}

@media screen and (min-width: 970px) {
    .entry-header,
    .page-header,
    .entry-footer,
    .site-info,
    .post-navigation,
    .page-navigation,
    .comments-area,
    .not-found .page-content,
    .search .entry-summary {
        padding-left: 0;
        padding-right: 0;
    }
}

@media screen and (min-width: 768px) {
    .wp-block-cover-text p {
        padding: 1.5em 0;
    }

    .entry-content > * {
        padding-left: 0px;
        padding-right: 0px;
    }
}

/*--------------------------------------------------------------
# 11. CAPTIONS & FIGURES
--------------------------------------------------------------*/
figcaption,
figure figcaption,
figure .wp-element-caption {
    font-style: italic;
    font-size: 0.9em;
    color: #666;
    text-align: right;
    margin-top: 0.5em;
}

.wp-caption {
    margin-bottom: 1.5em;
    max-width: 100%;
}

    .wp-caption img[class*="wp-image-"] {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .wp-caption .wp-caption-text {
        margin: 0.8075em 0;
    }

.wp-caption-text {
    text-align: center;
}

/*--------------------------------------------------------------
# 12. MEDIA & EMBEDS
--------------------------------------------------------------*/
embed,
iframe,
object {
    max-width: 100%;
}

.custom-logo-link {
    display: inline-block;
}

.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
    border: none;
    margin-bottom: 0;
    margin-top: 0;
    padding: 0;
}

/*--------------------------------------------------------------
# 13. GALLERIES
--------------------------------------------------------------*/
.gallery {
    margin-bottom: 1.5em;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    width: 100%;
}

.gallery-columns-2 .gallery-item {
    max-width: 50%;
}

.gallery-columns-3 .gallery-item {
    max-width: 33.3333333333%;
}

.gallery-columns-4 .gallery-item {
    max-width: 25%;
}

.gallery-columns-5 .gallery-item {
    max-width: 20%;
}

.gallery-columns-6 .gallery-item {
    max-width: 16.6666666667%;
}

.gallery-columns-7 .gallery-item {
    max-width: 14.2857142857%;
}

.gallery-columns-8 .gallery-item {
    max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
    max-width: 11.1111111111%;
}

.gallery-caption {
    display: block;
}

/*--------------------------------------------------------------
# 14. WORDPRESS BLOCKS
--------------------------------------------------------------*/
.wp-block-image img {
    display: block;
}

.wp-block-image.alignleft,
.wp-block-image.alignright {
    width: 100%;
}

.wp-block-image.alignfull img {
    width: 100vw;
}

.wp-block-gallery:not(.components-placeholder) {
    margin: 1.5em auto;
}

.wp-block-cover-text p {
    padding: 1.5em 14px;
}

.wp-block-video video {
    max-width: 960px;
}

.wp-block-table {
    display: block;
    overflow-x: auto;
}

    .wp-block-table table {
        border-collapse: collapse;
        width: 100%;
    }

    .wp-block-table td,
    .wp-block-table th {
        padding: .5em;
    }

.wp-block-embed.type-video > .wp-block-embed__wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 56.25%;
}

    .wp-block-embed.type-video > .wp-block-embed__wrapper > iframe {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
    }

.wp-block-quote.is-large {
    margin: 0 auto 16px;
}

.wp-block-pullquote > p:first-child {
    margin-top: 0;
}

.wp-block-separator {
    margin: 3em auto;
    padding: 0;
}

.wp-block-group > * {
    max-width: 610px;
    margin-left: auto;
    margin-right: auto;
}

.wp-block-group > .alignwide {
    max-width: 1100px;
}

.wp-block-group > .alignfull {
    max-width: 100%;
}

.wp-block-group.has-background > .alignfull {
    width: calc(100% + 60px);
    max-width: calc(100% + 60px);
    position: relative;
    left: -30px;
}

ul.wp-block-latest-posts.alignwide,
ul.wp-block-latest-posts.alignfull,
ul.wp-block-latest-posts.is-grid.alignwide {
    padding: 0 14px;
}

/*--------------------------------------------------------------
# 15. COLOR PALETTE
--------------------------------------------------------------*/
.has-crane-blue-color {
    color: #38526b;
}

.has-crane-blue-background-color {
    background-color: #38526b;
}

.has-crane-green-color {
    color: #aeb885;
}

.has-crane-green-background-color {
    background-color: #aeb885;
}

.has-very-light-gray-color {
    color: #eee;
}

.has-very-light-gray-background-color {
    background-color: #eee;
}

.has-very-dark-gray-color {
    color: #444;
}

.has-very-dark-gray-background-color {
    background-color: #444;
}

/*--------------------------------------------------------------
# 16. WIDGETS
--------------------------------------------------------------*/
.widget-area {
    width: 25%;
}

.widget {
    margin: 0 0 1.5em;
}

    .widget select {
        max-width: 100%;
    }

/*--------------------------------------------------------------
# 17. COMMENTS
--------------------------------------------------------------*/
.comment-content a {
    word-wrap: break-word;
}

.bypostauthor {
    display: block;
}

/*--------------------------------------------------------------
# 18. INFINITE SCROLL
--------------------------------------------------------------*/
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
    display: none;
}

.infinity-end.neverending .site-footer {
    display: block;
}
.layout-500 {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

.footer-500 {
    position: relative;
    z-index: 1;
    border-style: solid;
    border-color: hsl(var(--color-vanilla));
    border-top-width: 0.25rem;
    margin-top: auto;
    margin-bottom: 0;
    background-color: #20303c;
}

.site-main-museum {
    flex: 1;
    min-height: 30vh;
}


.site-main-500 {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

    .site-main-500 .content {
        max-width: 600px;
        width: 100%;
    }

.site-500 {
    color: white;
    font-size: 3rem;
}

.museum-logo-wrapper {
    z-index: 1;
    display: flex;
    min-height: 100%;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1.5rem;
    margin-bottom: -1rem;
    background-color: #20303c;
    margin-top: -1rem;
    border-bottom: solid 2px white;
}

.logo-line-color {
    background-color: #20303c;
    border-bottom: solid 2px white;
}