* {
    box-sizing: border-box;
    margin: auto;
    padding: 0;
}
html, body {
    width: 100%;
    line-height: 1.5;
}
body {
    text-align: center;
    font-family: Inter, Roboto, 'Helvetica Neue', 'Arial Nova', 'Nimbus Sans', Arial, sans-serif;
    background: white url("bg.jpg") center top / cover no-repeat;
    max-width: 60em;
}
nav a, footer a {
    display: inline-block;
    border-radius: 6px;
    padding: 0.4em 1.2em;
    margin: 0.4em 0.8em;
    background: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    color: black;
    transition: background-color 0.5s, color 0.5s;
    border: 2px solid rgb(0, 0, 200);
}
nav a:hover, footer a:hover {
    background: rgba(0, 0, 200, 0.7);
    color: white;
    transition: background-color 0.1s, color 0.1s;
}
nav a {
    width: 9.5em;
}
p, h2, header, nav, .galnav {
    margin: 1rem;
}
footer {
    margin: 1.5rem;
}
h1 {
    font-size: 280%;
    font-weight: bold;
    font-family: 'Iowan Old Style', 'Palatino Linotype', 'URW Palladio L', P052, serif;
}
h2 {
    font-size: 160%;
    font-weight: normal;
}
h3 {
    font-size: 120%;
    font-weight: bold;
    font-style: italic;
    margin: 0.25em 1em 1.5em 1em;
    color: #666;
}
.galnav div {
    display: inline-block;
    margin: 0.5em 1em;
}
.galnav a {
    text-decoration: none;
}
.galnav a span {
    display: block;
    font-size: 140%;
    font-weight: bold;
    color: black;
    margin: 0 0 0.25em 0;
}
.galnav a img {
    width: 20em;
    height: 20em;
    display: block;
    border: 2px solid rgb(0, 0, 200);
    border-radius: 6px;
}
.galnav a img, #slideshowControls img {
    transition: filter 0.5s, color 0.5s;
}
.galnav a:hover img, #slideshowControls img:hover {
    filter: brightness(1.5);
    transition: filter 0.1s, color 0.1s;
}
#slideshowContainer, #slideshowControls {
    max-width: calc(100vw - 2em);
    width: 60em;
    margin: 0.5em auto;
}
#slideshowContainer {
    max-height: calc(100vw - 2em);
    height: 60em;
    position: relative;
}
#slideshowContainer img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.5s;
    border-radius: 4px;
}
#slideshowControls {
    height: 6em;
    overflow: scroll hidden;
    white-space: nowrap;
}
#slideshowControls img {
    border: 4px solid transparent;
    transition: border 0.5s;
    border-radius: 8px;
    width: 6em;
    height: 6em;
}
#slideshowMeasureOuter {
    position: absolute;
    top: -100em;
    left: 0;
    visibility: hidden;
    overflow: scroll;
    width: 10em;
    height: 10em;
}
#slideshowMeasureInner {
    width: 100%;
    height: 100%;
}
