:root {
    --primary: #f7d25d;
    --secondary: #172b65;
    --tertiary: #D81159;
    --highlight-background: #ffe4d6;
    --bluesky-color: #1083fe;
}

html {
    height: 100%;
    overflow-y: scroll;
}

body {
    font-family: 'Raleway', Arial, sans-serif;
    font-size: 16px;
    background: rgb(168, 219, 255); /* Old browsers */
    background: -moz-linear-gradient(left, rgba(23, 43, 101, 0.9) 0%, rgba(168, 219, 255, 1) 25%, rgba(168, 219, 255, 1) 75%, rgba(23, 43, 101, 0.9) 100%);
    background: -webkit-linear-gradient(left, rgba(23, 43, 101, 0.9) 0%, rgba(168, 219, 255, 1) 25%, rgba(168, 219, 255, 1) 75%, rgba(23, 43, 101, 0.9) 100%);
    background: linear-gradient(to right, rgba(23, 43, 101, 0.9) 0%, rgba(168, 219, 255, 1) 25%, rgba(168, 219, 255, 1) 75%, rgba(23, 43, 101, 0.9) 100%);
    margin: 0;
    padding: 0;
    height: 100%;
}

a, a:hover {
    transition: color ease-in-out 0.2s;
}

.container {
    min-height: 100%;
    position: relative;
}

.inner-container {
    max-width: 1000px;
    margin: 0 auto;
}

header {
    position: fixed;
    width: 100%;
    background: var(--secondary);
    -webkit-box-shadow: 4px 4px 5px 0 rgba(0, 0, 0, 0.5);
    -moz-box-shadow: 4px 4px 5px 0 rgba(0, 0, 0, 0.5);
    box-shadow: 4px 4px 5px 0 rgba(0, 0, 0, 0.5);
    height: 9em;
    z-index: 1000;
    overflow: hidden;
}

header .inner-container {
    display: flex;
    position: relative;
    bottom: 13em;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    padding: 1.5em 2em 1em 2em;
    color: #eee;
    z-index: 1003;
    height: 100%;
}

.sliding-shader {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    background: -moz-linear-gradient(bottom, rgba(23, 43, 101, 0) 50%, rgba(23, 43, 101, 0.85) 100%);
    background: -webkit-linear-gradient(bottom, rgba(23, 43, 101, 0) 50%, rgba(23, 43, 101, 0.85) 100%);
    background: linear-gradient(to bottom, rgba(23, 43, 101, 0) 50%, rgba(23, 43, 101, 0.85) 100%);
    z-index: 1002;
}

@keyframes slide {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-1900px, 0, 0);
    }
}

.sliding-background {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    height: 100%;
    position: relative;
    top: 0;
    z-index: 1001;
    animation: slide 90s linear alternate infinite;
}

.sliding-background img {
    height: 100%;
    border-right: 1px var(--secondary) solid;
}

h1 {
    position: absolute;
    top: 0;
    padding: 1.5em 0.5em 0.8em 0.5em;
    background: rgba(23, 43, 101, 0.5);
    height: 100%;
}

h1 a {
    color: #fff;
    text-decoration: none;
}

.content > .inner-container {
    background: hsl(46, 91%, 94%);
    padding: 9em 2em 200px 2em;
    min-height: 60vh;
}

.content > .inner-container > h2 {
    letter-spacing: 0.05em;
    background: var(--secondary);
    color: var(--primary);
    padding: 0.5em 1em 0.5em 2em;
    display: inline-block;
    margin: 1em 0 0.5em -2em;
    -webkit-box-shadow: 4px 4px 5px 0 rgba(0, 0, 0, 0.5);
    -moz-box-shadow: 4px 4px 5px 0 rgba(0, 0, 0, 0.5);
    box-shadow: 4px 4px 5px 0 rgba(0, 0, 0, 0.5);
    border-radius: 10px 2px 10px 2px;
}

.content > .inner-container > h3 {
    letter-spacing: 0.05em;
    color: #444;
    font-weight: 800;
}

h2 > .fa, .content .fa {
    color: var(--tertiary);
}

dl {
    display: grid;
    grid-template-columns: 1fr 6fr;
    gap: 0.8rem 0.6rem;
}

dl dt {
    font-weight: 600;
    color: var(--tertiary);
    white-space: nowrap;
}

.content ul {
    margin-top: 0.3rem;
    margin-left: 0;
    padding-left: 1rem;
    list-style: "➔";
}

.content ul li {
    padding-left: 0.3rem;
    margin-bottom: 0.2rem;
}

.content ul li::marker {
    color: var(--tertiary);
}

.content > div > ul {
    margin-left: 1rem;
}

dl dd ul i {
    font-size: 0.9rem;
}

dl dd ul li a {
    display: inline-block;
    width: 18rem;
}

nav {
    position: absolute;
    top: 10em;
    right: 2rem;
    letter-spacing: 0.05em;
}

nav ul {
    display: flex;
    flex-direction: row;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav .active-link {
    color: var(--primary);
}

nav ul li {
    display: inline-block;
    margin-right: 0;
}

nav a {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    padding: 0.5em 1em;
    transition: color ease-in-out 0.3s;
}

nav a:hover {
    color: var(--primary);
    transition: color ease-in-out 0.3s;
}

.external-link:after, .bio a[href^="http"]:after, .post-content a[href^="http"]:after {
    content: " ↗";
    display: inline-block;
    margin-left: 2px;
    color: #666;
    position: relative;
    top: -0.5em;
    font-size: 0.8em;
}

.content img {
    max-width: 40vw;
    height: auto;
}

.centered {
    display: flex;
    align-items: center;
    justify-content: center;
}

.centered img, .side-by-side aside img, .side-by-side div img {
    border: 4px transparent solid;
    outline: 6px var(--tertiary) solid;
}

.centered img.noborder {
    border: none;
    outline: none;
}

.bio a[href^="http"]:after {
    color: #000 !important;
}

.content a {
    color: #000;
    text-decoration: underline;
}

.content a i {
    margin-right: 0.4em;
}

.content a:hover {
    color: #666;
    text-decoration: none;
}

.content p, .content dl {
    max-width: 750px;
    font-size: 1.2rem;
    padding-left: 1rem;
}

.content p strong, .people div strong {
    color: var(--tertiary);
}

blockquote {
    position: relative;
    background: #fff;
    border-left: 4px solid var(--tertiary);
    padding: 4.1rem 1rem 1rem 1.6rem;
    font-style: italic;
    font-size: 1.1rem;
    margin: 0;
    max-width: 30%;
}

blockquote::before {
    position: absolute;
    top: -0.7rem;
    left: 1rem;
    content: "”";
    color: var(--tertiary);
    font-size: 8rem;
    font-weight: bold;
    font-style: normal;
    display: block;
}

blockquote cite {
    display: block;
    text-align: right;
    color: #888;
    font-size: 1rem;
    margin-top: 0.4rem;
}

blockquote cite::before {
    content: "– ";
}

.content p button, .content dl button {
    padding: 0;
    font-size: 1.1rem;
    background: transparent;
    border: none;
    text-decoration: underline var(--secondary);
    cursor: pointer;
    color: var(--tertiary);
}

.content p button:hover, .content dl button:hover {
    text-decoration: underline var(--tertiary);
}

.content p button:hover i, .content dl button:hover i {
    color: var(--secondary);
}

.content dl code {
    display: inline-block;
    background: #fff;
    padding: 0.5rem;
    font-size: 1rem;
}
.side-by-side {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.side-by-side aside {
    flex-basis: 33%;
}

.people div {
    margin-left: 1.2rem;
}

.people div img {
    display: block;
    margin-bottom: 1rem;
}

.people div {
    font-size: 1.2rem;
}

form {
    border-left: 4px var(--secondary) solid;
    margin-left: 1rem;
    padding-left: 1rem;
    width: fit-content;
}

fieldset {
    max-width: 50rem;
    display: grid;
    grid-template-columns: 4fr 7fr;
    gap: 1rem 0.6rem;
    margin: 0;
    padding: 0.5rem;
    border: none;
}

fieldset label {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
}

fieldset input, fieldset select, fieldset button, fieldset textarea {
    font-family: 'Raleway', Arial, sans-serif;
    font-size: 1.2rem;
    padding: 0.3rem;
}

fieldset input:invalid, fieldset select:invalid {
    outline: 3px #b51515 solid;
}

fieldset button {
    padding: 0.8rem 1rem;
}

fieldset span[role="status"] {
    display: inline-block;
    color: #b51515;
    align-content: center;
}

.fake-table {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.fake-table .fake-row, .fake-table .header-row, .fake-table .summary-row {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr 1fr;
    flex-direction: row;
    gap: 0.2rem;
}

.fake-table .header-row div {
    font-weight: bold;
    background: var(--secondary);
    color: #fff;
    text-align: center;
    padding: 0.5rem 0.8rem;
}

.fake-table .summary-row div {
    background: var(--secondary);
    color: #fff;
    text-align: right;
    padding: 0.5rem 0.8rem;
}
.fake-table .summary-row div:first-child {
    text-align: right;
}

.fake-table .fake-row div {
    padding: 0.2rem 0.4rem;
    text-align: right;
    border-bottom: 1px var(--primary) solid;
}

.fake-table .fake-row div:first-child, .fake-table .header-row div:first-child {
    text-align: left;
}

.fake-table .fake-row div:nth-child(3) {
    text-align: center;
}

.fake-table .fake-row div:nth-child(2) {
    text-align: center;
}

.fake-table .fake-row:hover div {
    background: #fff;
}

.credits {
    list-style-type: square;
}

i.supersign {
    font-size: 8rem;
}

.message {
    display: none;
    margin: 1rem;
    padding: 1rem;
    flex-direction: row;
    gap: 0.5rem;
    max-width: 750px;
    border-radius: 10px;
}

.message i {
    font-size: 1.4rem;
}

.message.visible {
    display: block;
}

.message.message-error {
    background: var(--highlight-background);
}

.message.message-confirm {
    background: #d4f7d4;
}

address {
    padding-left: 1em;
    font-style: normal;
}

footer {
    background: #666;
    color: #eee;
    margin: 4em 0 0 0;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

footer .inner-container {
    padding: 0.7em 3em;
}

footer a {
    color: #eee;
    text-decoration: underline;
}

footer a:hover {
    text-decoration: none;
}

.albums {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.albums h3:before {
    content: "";
}

.albums h3 {
    margin-left: 0;
    margin-top: 0.3em;
}

.album {
    flex-basis: 100%;
    order: 2;
    background: #ccc;
    padding: 1em 3em 1em 3em;
    margin-left: -3em;
    margin-right: -3em;
    border-top: 4px var(--primary) solid;
    -webkit-box-shadow: 4px 4px 5px 0 rgba(0, 0, 0, 0.5);
    -moz-box-shadow: 4px 4px 5px 0 rgba(0, 0, 0, 0.5);
    box-shadow: 4px 4px 5px 0 rgba(0, 0, 0, 0.5);
}

.album > a {
    text-decoration: none;
}

.album > a > img {
    display: none;
}

.album-collapsed {
    flex-basis: auto;
    order: 1;
    background: none;
    padding: 0;
    margin-left: 0;
    margin-right: 1em;
    border-top: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}

.album-collapsed a {
    color: #000;
}

.album-collapsed > a > img {
    display: block;
}

.album-collapsed > ul {
    display: none;
}

.album-collapsed .description {
    display: none;
}

.album-collapsed i.fa {
    display: none;
}

.album .description {
    margin-bottom: 1em;
}

.images {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.image {
    margin-right: 0.7em;
    margin-bottom: 0.7em;
}

.image img, .album img {
    border: 1px #000 solid;
    box-sizing: border-box;
    -webkit-box-shadow: 4px 4px 5px 0 rgba(0, 0, 0, 0.5);
    -moz-box-shadow: 4px 4px 5px 0 rgba(0, 0, 0, 0.5);
    box-shadow: 4px 4px 5px 0 rgba(0, 0, 0, 0.5);
    outline-color: #ccc;
    transition: outline-color ease-in-out 0.2s, outline-width ease-in-out 0.2s;
}

.album img {
    max-height: 8em;
    width: auto;
}

.image img {
    cursor: zoom-in;
}

.image > a:hover > img, .album > a:hover > img {
    outline: 3px #000 solid;
    transition: outline-color ease-in-out 0.2s, outline-width ease-in-out 0.2s;
}

.to-top-button {
    position: fixed;
    bottom: 0;
    right: 0;
    background: #000;
    color: var(--primary);
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 10px 0 0 2px;
    -webkit-box-shadow: 4px 4px 5px 0 rgba(0, 0, 0, 0.5);
    -moz-box-shadow: 4px 4px 5px 0 rgba(0, 0, 0, 0.5);
    box-shadow: 4px 4px 5px 0 rgba(0, 0, 0, 0.5);
}

.to-top-button:hover {
    margin-top: calc(1em + 2px);
    margin-left: calc(-3.5em + 2px);
    margin-bottom: -2px;
    -webkit-box-shadow: 2px 2px 5px 0 rgba(0, 0, 0, 0.5);
    -moz-box-shadow: 2px 2px 5px 0 rgba(0, 0, 0, 0.5);
    box-shadow: 2px 2px 5px 0 rgba(0, 0, 0, 0.5);
}

a.more-link {
    display: block;
    color: #fff;
    text-align: right;
    text-decoration: underline;
    margin-top: -0.8em;
}

a.more-link:hover {
    color: #fff;
    text-decoration: none;
}

.post-photo img {
    max-width: 100%;
    max-height: 500px;
}

.post-photo .photographer {
    font-size: 0.8em;
    text-align: right;
}

.post-photo .photographer a {
    color: #888;
    text-decoration: none;
}

.post-photo .photographer a:hover {
    color: #ccc;
    text-decoration: underline;
}

.diashow-info-slide {
    background: url(../images/logo.svg) center top no-repeat;
    background-size: auto 55px;
    color: #fff;
    text-align: center;
    margin-top: 20vh;
    padding-top: 85px;
    font-size: 1.2em;
}

.diashow-info-slide button {
    background: #ccc;
    border: 1px #fff solid;
    padding: 1em 2em;
    margin: 1em 0 0 0;
    color: #000;
}

.photo-description {
    color: #fff;
    border-bottom: 1px #202020 solid;
    padding: 0.3em;
    margin-bottom: 0.5em;
}

.post-expansion {
    display: none;
}

.post-expansion.expanded {
    display: block;
}

@media (min-width: 900px) {
    a.post-anchor {
        display: block;
        position: relative;
        top: -7.1em;
        visibility: hidden;
    }

    .pswp__caption__center {
        max-width: 1280px !important;
    }

    .photo-description {
        float: left;
        width: 50%;
        border: none;
        padding: 0;
        margin-right: 2em;
    }

    .blog .blog-post .post-photos {
        margin-left: -3em;
        margin-right: -3em;
    }

    .post-photo:first-child .photographer {
        text-align: left;
    }

    .mobile-only {
        display: none;
    }

    .desktop-only {
        display: inline-block;
    }
}

@media (max-width: 1096px) and (min-width: 900px) {
    .blog .blog-post .post-photos {
        margin-left: -2em;
        margin-right: -2em;
    }
}

@media (max-width: 900px) {
    .mobile-only {
        display: inline-block;
    }

    .desktop-only {
        display: none;
    }

    header .sliding-shader {
        display: none;
    }

    header .inner-container {
        padding: 0;
        flex-direction: column;
        margin: 0;
    }

    footer .inner-container {
        padding: 1em;
    }

    h1 {
        position: relative;
        margin: 4rem 0 0 0;
        background: rgba(0,0,0,.5);
        padding: 0.5rem 0;
        height: 130px;
        width: fit-content;
        font-size: 1.5rem;
        text-align: center;
    }

    h1 img {
        margin: 0;
        height: 100%;
    }

    h2 {
        padding-left: 1em;
        margin-left: -1em;
    }

    .content > .inner-container > h3 {
        margin-left: 0;
    }

    .content > .inner-container > h3:before {
        content: normal;
    }

    .content p, .content dl {
        padding-left: 0;
        padding-right: 0;
    }

    dl {
        grid-template-columns: 1fr;
        gap: 0 0;
    }

    dl > dd {
        margin: 0.3rem 0 1rem 1.8rem;
    }

    blockquote {
        max-width: 100%;
    }

    .side-by-side {
        flex-direction: column;
    }

    form {
        margin-left: -2rem;
        border-width: 0.5rem;
    }

    fieldset {
        grid-template-columns: 1fr;
    }

    .fake-table .fake-row, .fake-table .header-row, .fake-table .summary-row {
        grid-template-columns: 3fr 1fr;
    }

    nav {
        position: absolute;
        top: 10.6rem;
        right: 0.5rem;
    }

    nav ul {
        padding: 0;
        margin: 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }

    nav ul li {
        margin: 0;
        padding: 0;
    }

    nav ul li a {
        padding: 0;
    }

    .cc-license {
        padding-left: 0;
        padding-top: 40px;
    }

    .content img {
        max-width: 65vw;
        height: auto;
    }

    .albums {
        flex-direction: column;
    }

    .album {
        margin: 1em -1em;
        padding: 1em;
    }

    .album-collapsed {
        margin: 0 1em 1em 0;
        padding: 0;
    }

    .album.album-collapsed a {
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    .album.album-collapsed a img {
        width: auto;
        height: 50px;
        margin-right: 1em;
    }

    .album > a {
        display: inline;
    }

    .album > a:hover > img {
        outline: none;
    }

    .albums > .album-collapsed h3 {
        margin: auto 0;
    }

    .biography-box {
        float: none;
        display: block;
        margin: 0 -1em 1em -1em;
        max-width: none;
        padding: 0.5em 1em 1em 1em;
        width: auto;
    }

    .bios, .blog {
        margin: 0;
    }

    .bios .bio {
        flex-basis: 100%;
        margin: 1em 0 0 0;
    }

    .blog .blog-post {
        margin: 1em 0 0 0;
    }

    .blog-post .inner-container {
        margin: 1em !important;
    }

    .blog-post .post-photos {
        flex-direction: column;
        align-items: center;
    }

    .blog-pagination .page-count {
        display: none;
    }

    .bio-left, .bio-right {
        padding: 0 1em;
    }

    .share-button .share-popover {
        width: 18em;
    }

    .share-popover:after {
        left: 75%;
    }

    .diashow-info-slide button {
        display: none;
    }
    .to-top-button {
        margin-left: 0;
        margin-bottom: 3em;
    }
    .to-top-button:hover {
        margin-left: 2px;
        margin-bottom: calc(3em - 2px);
    }
}
