* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #111111;
    color: #eeeeee;
    font-family: Arial, sans-serif;
}

/* General links in the main content area */
.main-content a {
    color: #dddddd;
    text-decoration: none;
}

.main-content a:visited {
    color: #dddddd;
}

.main-content a:hover {
    color: #ffffff;
    text-decoration: underline;
}
.page-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    background: #292929;
    padding: 24px 18px;
}

.sidebar h2 {
    margin-top: 0;
    font-size: 1.2rem;
}

.sidebar a {
    display: block;
    color: #dddddd;
    text-decoration: none;
    padding: 8px 0;
}

.sidebar a:hover {
    color: #ffffff;
}

.main-content {
    padding: 28px;
    min-width: 0;
}

/* Homepage album grid */

.album-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

.album-card {
    display: block;
    color: #eeeeee;
    text-decoration: none;
    text-align: center;
}

.album-cover {
    aspect-ratio: 1 / 1;
    background: #444444;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.album-cover img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

.album-name {
    padding: 10px 4px;
    font-size: 1rem;
}

.album-card:hover .album-name {
    color: #ffffff;
    text-decoration: underline;
}

/* Smaller screens */

@media (max-width: 700px) {
    .page-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        padding: 12px 20px;
    }

    .sidebar a {
        display: inline-block;
        margin-right: 18px;
    }

    .main-content {
        padding: 18px;
    }
}

/* Individual photograph page */

.photo-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

.photo-navigation a {
    color: #dddddd;
    text-decoration: none;
    padding: 8px 12px;
    background: #292929;
    border-radius: 4px;
}

.photo-navigation a:hover {
    background: #555555;
    color: white;
}

.photo-navigation span {
    font-weight: bold;
    white-space: nowrap;
}

.photo-display {
    background: #444444;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.photo-display img {
    display: block;
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    pointer-events: none;
}

@media (max-width: 500px) {
    .photo-navigation {
        gap: 5px;
    }

    .photo-navigation a {
        padding: 7px;
    }
}

