/* Melon's Gallery Maker! - Pixel Shop v0.2 */

@import url("https://melonking.net/styles/fonts/BPdots/BPdotsDiamond.css");
@import url("https://melonking.net/styles/fonts/BPdots/BPdotsDiamondBold.css");

:root {
    --ink: #3f2a24;
    --paper: #fff8f3;
    --cream: #fff1e8;
    --pink: #ff2aa6;
    --rose: #ff8bc3;
    --lavender: #d793e3;
    --blue: #85d0f3;
}

body {
    font-family: Chicago, Chicago_12, Geneva_9, "BPdotsDiamond", monospace;
    color: var(--ink);
    font-size: 0.95em;
    background-color: var(--paper);
    background-image: url("https://i.postimg.cc/J43jNJ0X/pixel-sakura.gif");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    font-weight: 700;
    padding: 20px;
}



a,
a:visited {
    color: var(--pink);
    text-shadow: 1px 1px rgba(255, 170, 210, 0.25);
    font-weight: 700;
    text-decoration: none;
}

a:hover {
    color: var(--blue);
}

header,
section,
footer {
    margin: 18px;
}

header,
body > section {
    padding-bottom: 5px;
}

h1,
h1 a,
h1 a:visited {
    color: transparent;
    text-decoration: none;
    text-align: center;
    font-size: 2.6rem;
    margin: 18px 10px 24px;
    background: linear-gradient(to left, #ff3187 0%, #ff8bc3 22%, #d793e3 52%, #85d0f3 78%, #85d0f3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 1px 1px 2px rgba(32, 18, 24, 0.12);
}

h2 {
    border-top: 3px double var(--ink);
    background-image: linear-gradient(180deg, rgba(133, 208, 243, 0.25) 5%, rgba(255, 255, 255, 0) 77%);
}

nav {
    margin: 10px;
    clear: both;
}

ul {
    padding-left: 20px;
}

footer {
    text-align: center;
    padding-top: 30px;
    clear: both;
    font-size: 0.75em;
}

#wrapper {
    margin: 40px auto;
    max-width: 760px;
    background: rgba(255, 248, 243, 0.9);
    border: 2px solid var(--ink);
    box-shadow: 3px 3px var(--ink);
    padding: 18px;
}


/* Gallery Pages */

#photos {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

#photos figure {
    margin: 0;
    background: var(--cream);
    border: 2px solid var(--ink);
    box-shadow: 2px 2px var(--ink);
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}


#photos img {
    display: block;
    width: 150px;
    height: 150px;
    object-fit: cover;
    background: #ffffff;
    border: 2px solid var(--ink);
    image-rendering: pixelated;
    filter: drop-shadow(0px 0px 26px rgba(133, 208, 243, 0.25));
}


#photos img:hover {
    filter: drop-shadow(0px 0px 30px rgba(255, 170, 210, 0.45));
}

#photos span {
    text-align: center;
    display: block;
}

#photos figcaption {
    padding: 10px 0 2px;
    font-size: 0.85rem;
}

.page-links {
    text-align: center;
}
.page-links ul {
    padding: 0px 5px;
    display: inline-block;
}
.page-links li {
    list-style: none;
    display: inline;
    margin: 0px 5px;
}
.page-links li:after {
    content: ",";
}

/* Mobile Styling */

@media (max-width: 800px) {
    #wrapper {
        margin: 24px auto;
        max-width: 92vw;
    }

    #photos figure {
        padding: 10px;
    }
}

/* Styling for JavaScript viewer (if enabled) */

#js-viewer {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 248, 243, 0.8);
    filter: drop-shadow(0px 0px 50px rgba(133, 208, 243, 0.6));
    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-radius: 6px;
    border: 3px double var(--ink);
    background: #ffffff;
}

#js-viewer span {
    margin-top: 10px;
}

#js-viewer span button {
    font-size: 1.2em;
    border-radius: 0px;
    color: var(--paper);
    border: 2px double var(--paper);
    background-color: var(--ink);
    cursor: pointer;
}

#js-viewer span button:hover {
    border: 2px double var(--rose);
    background-color: #2a1a16;
}
