body {
    font-family: sans-serif;
}

.header, .sections, .content {
    text-align: center;
}

.content {
    display: flex;
    justify-content: space-around;
}


/* Bio */

div.bio {
    width: 100%;
    margin-top: 20px;
    display: flex;
}

#photo {
    display: inline;
    text-align: right;
    width: 42%;
}

#bio {
    display: inline;
    margin-left: 10px;
    vertical-align: top;
}


/* Contact */

.contact {
    padding-left: 50px;
    padding-right: 50px;
    max-width: 75%;
    text-align: left;
}

.contact-element {
    vertical-align: top;
    margin-top: 15px;
}

.contact-element label {
    display: block;
    margin-bottom: 5px;
}

.contact-element input, textarea {
    width: 100%;
    border: 1px solid black;
    border-radius: 5px;
    padding: 5px;
}

.contact-element button {
    border: none;
    padding: 15px;
    background-color: black;
    color: pink;
}

.contact-success {
    margin-top: 20px;
    text-align: center;
}


/* Gallery */

body.gallery {
    padding: 0;
    margin: 0;
    height: 100%;
    width: 100%;
}

#gallery {
    display: flex;
    flex-direction: column;
    text-align: center;
    height: 100vh;
}

#galleries {
    margin: 10px;
}

div.image {
    flex: 1 1 0%;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px; /* Why is this necessary? */
}

div.image > a.image {
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    box-sizing: border-box;
    object-fit: contain;
    border: 2px solid transparent;
}

div.image > a.image:hover {
    border-color: darkgrey;
}

img#image {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

#thumbs {
    display: inline;
}

.thumb {
    margin: 10px;
    vertical-align: middle;
    border: 2px solid transparent;
}

.thumb:hover {
    border-color: darkgrey;
}

#zoom {
    visibility: hidden;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    background: rgba(0, 0, 0, 0.75);
}

#zoom-image {
    position: fixed;
    margin: 0 auto;
    max-height: 100%;
    max-width: 100%;
}

.gnav {
    text-shadow: 0 0 6pt black;
    font-size: 60pt;
    color: white;
    text-decoration: none;
}

#zoom .gnav {
    position: fixed;
    color: black;
    text-shadow: 0 0 6pt white;
}

.gnav:hover {
    color: darkgrey;
}

#zoom .gnav:hover {
    color: darkgrey;
}

#zoom-prev {
    left: 10pt;
}

#zoom-next {
    right: 10pt;
}

#prev {
    visibility: hidden;
}
