*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Georgia, serif;
    background: #fff;
    color: #222;
}

header {
    padding: 2rem;
    text-align: center;
}

header h1 a {
    text-decoration: none;
    color: inherit;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
}

main {
    padding: 1rem 2rem 4rem;
}

/* Photo grid — masonry via CSS columns */
.gallery {
    column-count: 3;
    column-gap: 0.75rem;
}

.gallery a {
    display: block;
    break-inside: avoid; /* never split a photo across two columns */
    margin-bottom: 0.75rem;
}

.gallery img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.2s ease;
}

.gallery img:hover {
    opacity: 0.85;
}



.empty {
    color: #999;
    text-align: center;
    padding: 4rem 0;
}

@media (max-width: 768px) {
    .gallery { column-count: 2; }
}

@media (max-width: 480px) {
    .gallery { column-count: 1; }
}

footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.8rem;
    color: #999;
    letter-spacing: 0.05em;
}

/* Album dropdown nav in the header */
.album-nav {
    margin-top: 0.75rem;
    text-align: center;
}

.album-nav summary {
    cursor: pointer;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: #666;
    list-style: none; /* hides the default disclosure triangle */
}

.album-nav summary::after {
    content: " ▾";
}

.album-nav ul {
    list-style: none;
    margin-top: 0.5rem;
    display: inline-flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.album-nav a {
    text-decoration: none;
    color: #444;
    font-size: 0.85rem;
}

.album-nav a:hover {
    text-decoration: underline;
}

/* Album detail page header */
.album-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.album-header h2 {
    font-size: 1.2rem;
    font-weight: normal;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

.back-link {
    font-size: 0.8rem;
    color: #999;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}
