/* Melon's Gallery Maker! 0.0.2+ */

body {
    font-family: "Courier New", monospace;
    background-color: #4f5727;
    color: #faf9f8;
    font-size: 1.1em;
    padding: 30px;
}

a,
a:visited {
    color: #f6d96b;
    text-decoration: none;
}

a:hover {
    color: #fff0a6;
    text-decoration: underline;
}

header,
body > section,
footer {
    max-width: 900px;
    margin: 0 auto;
    background: #636B2F;
    padding: 25px;
}
.intro {
    margin: 0 0 25px;
    line-height: 1.6;
    text-align: left;
}
.back-link {
    margin-top: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.9em;
}

.back-link a,
.back-link a:visited {
    color: #f6d96b;
    text-decoration: none;
    font-weight: bold;
}

.back-link a:hover {
    color: #fff0a6;
    text-decoration: underline;
}
nav {
    margin: 10px;
    clear: both;
}

footer.footer {
    clear: both;
    padding-top: 30px;
    text-align: center;
    line-height: 1.5;
}

footer.footer .gallery-credit {
    display: block;
    font-size: 10px;
    opacity: 0.65;
    margin-bottom: 6px;
}

footer.footer .handmade {
    display: block;
    font-size: 12px;
}

/* Gallery Pages */

#photos {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
}

#photos figure {
    margin: 10px;
    max-width: min-content;
}

#photos img {
    border: 3px solid #8c6d1f;
}

#photos img:hover {
    border-color: #ffda00;
}

#photos span {
    text-align: center;
    display: block;
}

#photos figcaption {
    padding: 10px 0px;
}

.page-links {
    text-align: center;
}

.page-links ul {
    padding: 0px 5px;
    margin: 10px 0px;
    display: inline-block;
}

.page-links li {
    list-style: none;
    display: inline;
    margin: 0px 3px;
}

.photo-filename {
    display: none;
}

/* Mobile Styling */

@media (max-width: 800px) {
    body {
        padding: 10px;
    }

    #photos figure {
        width: 95%;
        max-width: unset;
    }

    #photos img {
        width: 100%;
    }
}

/* Styling for JavaScript viewer (if enabled) */

#js-viewer {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.612);
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
}

#js-viewer img {
    max-width: 95%;
    max-height: 80%;
    height: auto;
    width: auto;
    border: 3px ridge #c3c3c3;
}

#js-viewer span {
    margin-top: 10px;
}

#js-viewer span button {
    border-radius: 0px;
    border: 2px outset #cecece;
    background-color: #e2e2e2;
    cursor: pointer;
}

#js-viewer span button:hover {
    border: 2px inset #cecece;
    background-color: #b8b8b8;
}

figure .photo-filename {
    display: none !important;
    visibility: hidden !important;
    font-size: 0 !important;
    line-height: 0 !important;
}
.footer-nav {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
    margin-bottom: 20px;
}

.footer-nav a,
.footer-nav a:visited {
    color: #f8f7f7;
    text-decoration: none;
    font-weight: bold;
}

.footer-nav a:hover {
    color: #f6d96b;
    text-decoration: underline;
}