:root {
    /* background-color: #d5d7d8; */
    background-color: #617187;
    font-family: Helvetica, Ariel, sans-serif;
    color: white;
}

body {
    padding: 0;
    margin: 0;
}

header {
    display: flex;
    justify-content: space-between;
    margin-left: 1rem;
    margin-right: 1rem;
    margin-top: 1rem;
}

footer {
    padding-bottom: 2rem;
}

main {
}

.image {
}

h1 {
    text-align: center;
}

h2, h3, h4 {
    font-weight: normal;
}

img {
    border-width: 2px;
    border-style: solid;
    border-radius: 2px;
    margin-right: 4px;
}

.public {
    border-color: #ddddee;
}

.private {
    border-color: #ff9999;
}

.single-image {
    border-radius: 4px;
    box-shadow: 6px 6px 3px #243141;
}

figure {
    display: table;
    margin-right: auto;
    margin-left: auto;
    max-width: 90%;
    max-height: 90%;
}

figure > div {
    display: block;
    position: relative;
}

figure img {
    max-width: 100%;
    max-height: 85vh;
}

figcaption {
    padding-top: 0.5rem;
    display: table-caption;
    caption-side: bottom;
    text-align: left;
    font-style: italic;
}

.credits {
    writing-mode: vertical-lr;
    position: absolute;
    right: -2em;
    bottom: 1em;
}

.metadata {
    padding-left: 2rem;
}

#map {
    width: 100%;
    max-width: 380px;
    height: 200px;
    margin-bottom: 0.5em;
}

.map {
    height: 100%;
    display: grid;
    grid-template-rows: 2em 1fr 1.5em;
    grid-template-columns: 100%;
}

.map main {
    padding: 0;
}

.map #map {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    margin-bottom: 0;
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

ul ul {
    padding-left: 2em;
    padding-top: 0.5em;
}

li {
    padding-bottom: 0.5em;
}

a, a:visited {
    color: white;
}

.homecols > div {
    margin-left: 2rem;
}

.homecols > .images {
    margin-left: 1rem;
}

.homecols > .images ul li {
    display: inline;
}

.imagecols {
    margin-left: 1rem;
}

.imagecols .data .paginate {
    display: none;
}

@media screen and (min-width: 800px) {
    .metadata {
        padding-left: 0;
        display: flex;
        justify-content: center;
    }
    .leftcol {
        margin-right: 2rem;
    }
    .rightcol {
        width: min(50%, 380px);
    }

    .homecols {
        display: flex;
        align-content: space-evenly;
    }

    .homecols > .images ul li {
        display: list-item;
    }

    .imagecols {
        display: flex;
    }

    .imagecols > .images {
        width: 100%;
        max-width: calc(100% - 400px);
    }

    .imagecols > .data {
        width: 400px;
    }

    .imagecols .data .paginate {
        display: block;
    }
}

