/* Melon's Gallery Maker! 0.0.2+ */

body { 
	float:left;
	width: 750px; 
	height: 950px;
	margin: 0 auto;
	font-family: Zen Maru Gothic;
  color: #A62D16; 
    padding: 30px;
	background-image: url("gallerybg.png");
	background-repeat:no-repeat;
}
a,
a:visited {
    color: #0D389B;
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}


body > section,
footer {
    padding: 5px;
}

nav {
    margin: 10px;
    clear: both;
}

footer {
    clear: both;
    font-size: 0.7em;
    padding-top: 30px;
}

/* Gallery Pages */

#photos {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
}

#photos figure {
    margin: 10px;
    max-width: min-content;
border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
width: 200px;
height:200px;
background-color:lightcoral;
transform:rotate(-5deg) scale(0.8) translate(10px);
}

#photos img {
    border: 3px ridge #c3c3c3;
    /* Enable this for pixel art!! */
    /* image-rendering: pixelated; */
}

#photos img:hover {
    border-color: rebeccapurple;
}

#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;
}

/* Mobile Styling */

@media (max-width: 800px) {
    body {
        padding: 10px;
    }

    #photos figure {
        width: 40%;
        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;
}
