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

body {
    font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
    color: #111;
    background: #fff;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.site-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 1rem 4rem;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: .35em;
    text-decoration: none;
    margin-bottom: 1.5rem;
    display: block;
}

.logo img {
    display: block;
    max-height: 90px;
    max-width: 320px;
    width: auto;
    height: auto;
}

.site-nav {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}

.site-nav a {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    text-decoration: none;
    color: #555;
    transition: color .2s ease;
}

.site-nav a:hover {
    color: #000;
}

.site-nav a.active {
    color: #000;
    border-bottom: 1px solid #000;
    padding-bottom: 2px;
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 1rem 0 4rem;
}

.text-section .prose {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
}

.prose p {
    margin-bottom: 1.2rem;
}

.prose a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.empty-note {
    text-align: center;
    color: #aaa;
}

.home-section {
    display: flex;
    justify-content: center;
    padding: 1rem 0 4rem;
}

.home-image {
    max-width: 820px;
    width: 100%;
}

.home-image img {
    width: 100%;
    height: auto;
    display: block;
}

.year-group {
    margin-bottom: 5rem;
}

.year-label {
    font-size: 2.2rem;
    font-weight: 200;
    letter-spacing: .1em;
    color: #ccc;
    margin-bottom: 1.5rem;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 160px;
    grid-auto-flow: dense;
    gap: 14px;
}

.grid-item {
    overflow: hidden;
    background: #f2f2f2;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.grid-item:hover img {
    transform: scale(1.03);
}

.grid-item:nth-child(7n + 1) {
    grid-column: span 2;
    grid-row: span 2;
}

.grid-item:nth-child(7n + 4) {
    grid-row: span 2;
}

.grid-item:nth-child(7n + 6) {
    grid-column: span 2;
}

img.zoomable {
    cursor: zoom-in;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .88);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    cursor: zoom-out;
    padding: 2rem;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 92vw;
    max-height: 92vh;
    object-fit: contain;
    box-shadow: 0 10px 60px rgba(0, 0, 0, .5);
}

@media (max-width: 760px) {
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 140px;
    }

    .grid-item:nth-child(7n + 1) {
        grid-column: span 2;
    }

    .grid-item:nth-child(7n + 6) {
        grid-column: span 1;
    }

    .site-header {
        padding: 3.5rem 1rem 2.5rem;
    }
}

.site-footer {
    text-align: center;
    padding: 3rem 1rem;
    font-size: .75rem;
    letter-spacing: .15em;
    color: #bbb;
    text-transform: uppercase;
}
