body {
    font: 15px/1.5 Arial, Helvetica, sans-serif;
    padding: 0;
    margin: 0;
    background-color: #f2f2f2;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
/* body > div:first-child {
    flex: 1;
} */

/* Global */
.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

ul {
    margin: 0;
    padding: 0;
}

/* Header */
header {
    background-color: #1d2127;
    padding: 0;
    min-height: 75px;
    border-bottom: #b8860b 3px solid;
    color: #dcd7c9;
    box-sizing: border-box;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header #branding {
    margin: 0;
    padding: 30px 10px 30px 10px;
}

header #branding h1 {
    margin: 0;
    text-align: center;
}

header ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
header li {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 110px;
}

header a {
    color: #dcd7c9;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 18px;
    border: transparent 2px solid;
    padding: 0 10px 0 10px;
}

header .current a {
    color: #b8860b;
}

header a:hover {
    color: #b1afaf;
    border-top: transparent 2px solid;
    border-right: transparent 2px solid;
    border-left: transparent 2px solid;
    border-bottom: #b8860b 2px solid;
}

/* Showcase */
#showcase {
    min-height: 750px;
    background: url("../img/showcase-selfportrait2022.jpg") no-repeat center;
    border-bottom: #b8860b 3px solid;
    flex: 1;
}

/* About Me */
.main {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
    margin-bottom: 50px;
}

.aboutimage img {
    max-width: 300px;
}

.textflex {
    display: flex;
    flex-direction: column;
}

.aboutme {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    margin: 30px;
}

.title {
    text-align: center;
}

.aboutme h1 {
    font-size: 24px;
    margin: 0;
    padding-bottom: 10px;
}

.quote {
    text-align: center;
    font-style: italic;
    margin: 0 20px;
}

.aboutme h2 {
    font-size: 20px;
    padding: 25px 0;
    margin: 0;
}

.aboutme p {
    font-size: 16px;
    text-align: left;
    padding: 15px;
    margin: 5px 0;
    background-color: #e6e6e6e6;
}

.aboutme a {
    text-decoration: none;
}

/* Gallery Image Links */
#flex-container-gallery-links {
    display: flex;
    flex-wrap: wrap;
    flex: 1;
    justify-content: center;
    align-items: flex-start;
    margin: 50px 0;
}
.gallery-link {
    margin: 15px 30px;
    height: auto;
}

.gallery-link a {
    text-decoration: none;
}

.gallery-link img {
    max-width: 300px;
    margin: 0;
    display: block;
}

.gallery-link h3 {
    margin: auto;
    padding: 10px 0;
    text-decoration: none;
    text-align: center;
    color: #1d2127;
    cursor: pointer;
    max-width: 300px;
    background-color: rgba(0, 0, 0, 0.1);
}

.gallery-link:hover {
    opacity: 0.7;
}

/* Gallery Pages Navbar */
.gallery-nav {
    background-color: #3b424f;
    border-bottom: #b8860b 3px solid;
}

.gallery-nav .container {
    width: 100%;
}

.gallery-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.gallery-nav li {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    color: #dcd7c9;
    width: 150px;
}

.gallery-nav a {
    color: #dcd7c9;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
    padding: 5px 30px;
    border: transparent 2px solid;
}
.gallery-nav a:hover {
    color: #b1afaf;
    border-top: transparent 2px solid;
    border-right: transparent 2px solid;
    border-left: transparent 2px solid;
    border-bottom: #b8860b 2px solid;
}

.gallery-nav .current a {
    color: #b8860b;
}

/* Gallery Images */
.flex-container-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 30px 0;
}

.landscape-image {
    max-width: 600px;
}

.landscape-image img {
    width: 100%;
    object-fit: contain;
}

.gallery-image .description {
    text-decoration: none;
    color: #1d2127;
    text-align: center;
}

.gallery-image {
    border: 1px solid #cccccc;
    margin: 15px;
    padding: 5px;
    align-content: center;
    font-size: 0;
}

.gallery-image img {
    max-height: 300px;
    width: 100%;
}

/* Modal Image */

/* Style the Image Used to Trigger the Modal */
.gallerymodalimg {
    cursor: pointer;
    transition: 0.3s;
}

.gallerymodalimg:hover {
    opacity: 0.7;
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0, 0, 0); /* Fallback color */
    background-color: rgba(0, 0, 0, 0.9); /* Black w/ opacity */
}

/* Modal Content (Image) */
.modal-content {
    display: block;
    object-fit: contain;
    width: 80%;
    max-height: 80vh;
    height: auto;
}

#modal-content-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

/* Caption of Modal Image (Image Text) - Same Width as the Image */
#caption {
    display: block;
    width: 80%;
    max-width: 100%;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 24px;
}

/* Add Animation - Zoom in the Modal */
.modal-content #caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

/* The Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Contact Page */

/* Contact Form */
.construction {
    text-align: center;
}

/* Media Queries */

@media only screen and (max-width: 860px) {
    .main {
        flex-direction: column;
    }
    header .container {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    header #branding {
        border-bottom: #b8860b 3px solid;
        padding: 30px 20px 5px 20px;
        width: 100%;
    }
    header nav {
        width: 100%;
    }
    header a {
        padding: 5px 20px;
    }
}

/* 100% Image Width for Modal on Smaller Screens */
@media only screen and (max-width: 700px) {
    .modal-content {
        width: 95%;
    }
    #caption {
        font-size: 18px;
    }
}

@media only screen and (max-width: 635px) {
    /* Images that are oriented in landscape */
    .landscape-image {
        max-width: 400px;
    }
}

@media only screen and (max-width: 575px) {
    header #branding {
        display: flex;
        justify-content: center;
    }
    header li {
        width: 100%;
        justify-content: center;
        border-bottom: rgba(0, 0, 0, 0.2) 1px solid;
    }
    .gallery-nav ul {
        flex-direction: column;
        align-items: center;
    }
    .gallery-nav li {
        width: 100%;
        justify-content: center;
        border-bottom: rgba(0, 0, 0, 0.2) 1px solid;
    }
}

@media only screen and (max-width: 440px) {
    s .landscape-image {
        max-width: 221.25px;
    }
    header ul {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
    }
    .aboutme {
        margin: 20px 0;
    }

    .quote {
        margin: 20px 0;
    }
}

/* Footer */
footer {
    margin-top: auto;
}
footer p {
    background-color: #1d2127;
    text-align: center;
    margin: 0;
    padding: 10px;
    color: #dcd7c9;
}
