/* Melon's Gallery Maker! 0.0.2+ */

a,
a:visited {
    color: var(--border);
    text-decoration: none;
}

a:hover {
    color: var(--border);
    text-decoration: bold;
}

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

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

/* Album Index List Styling */
#index ul {
    list-style-type: square;
    padding-left: 20px;
    line-height: 1.8;
}

#index li a {
    font-size: 16px;
    font-weight: bold;
}


#photos {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

#photos figure {
    margin: 10px 0;
    width: fit-content;
    background: rgba(var(--border-rgb), 0.15);
    padding: 10px;
    border-radius: 8px;
}


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


#photos img:hover {
    transform: scale(1.02);
}

.page-links {
    text-align: center;
}

.page-links ul {
    padding: 0 5px;
    margin: 15px 0;
    display: inline-block;
}

.page-links li {
    list-style: none;
    display: inline;
    margin: 0 4px;
}

.page-links a {
    background: var(--border);
    color: var(--section);
    padding: 4px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.page-links a:hover {
    background: var(--text);
    color: var(--section);
}

@media (max-width: 800px) {
    #photos figure {
        width: 100%;
        max-width: unset;
    }

    #photos img {
        width: 100%;
    }
}

#js-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(var(--text-rgb), 0.85);
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#js-viewer img {
    max-width: 90%;
    max-height: 80%;
    height: auto;
    width: auto;
    border: 4px solid var(--section);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

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

#js-viewer span button {
    border-radius: 6px;
    border: none;
    background-color: var(--section);
    color: var(--link);
    font-family: Georgia, serif;
    font-weight: bold;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#js-viewer span button:hover {
    background-color: var(--border);
    color: var(--section);
}