.view-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem;
}

@media (max-width: 600px) {
    .site-nav {
        flex-direction: column;
        align-items: center;
        gap: 0.35rem;
    }
}

/* ==========================
   Header
========================== */

.site-header {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.brand {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
}

.logo {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    text-decoration: none;
    color: white;
    margin-bottom: 0;
}

.site-nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 0;
}

.site-nav a {
    color: white;
    text-decoration: none;
    font-weight: 700;
}

.site-nav a:visited {
    color: white;
}

.site-nav a:hover {
    opacity: 0.7;
}

.site-nav a.active {
    opacity: 1;
    font-weight: 700;
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;   /* <-- Add this */
    gap: clamp(1rem, 3vw, 2rem);
    align-items: flex-start;
}

/* Regular gallery images that are not inside buttons */
.image-gallery > img {
    flex: 1 1 320px;
    width: 100%;
    max-width: 40%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Clickable artwork container */
.artwork-trigger {
    flex: 1 1 320px;
    width: 100%;
    max-width: 40%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

/* Image inside the clickable button */
.artwork-trigger img {
    width: 100%;
    max-width: none;
    height: auto;
    display: block;
    object-fit: contain;
}

.artwork-trigger:focus-visible {
    outline: 4px solid white;
    outline-offset: 5px;
}

.gif-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: grid;
    place-items: center;

    padding: 2rem;
    background: rgba(0, 0, 0, 0.82);
}

.gif-modal[hidden] {
    display: none;
}

.gif-modal img {
    max-width: min(90vw, 1100px);
    max-height: 85vh;
    object-fit: contain;
}

.modal-close {
    position: fixed;
    top: 1rem;
    right: 1.25rem;

    border: 0;
    background: transparent;
    color: white;
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
}

/* Footer */

.site-footer {
    margin-top: 5rem;
    padding: 2.5rem 1rem;

    background-color: #84A92A;   /* darker than your page */
    border-top: 2px solid rgba(255,255,255,.35);

    text-align: center;
}

.site-footer a {
    color: white;
    font-size: 2rem;
    text-decoration: none;

    transition:
        transform .2s ease,
        opacity .2s ease;
}

.site-footer a:hover {
    opacity: .75;
    transform: scale(1.1);
}

.site-footer p {
    color: white;
    margin-top: 1rem;
    margin-bottom: 0;
    font-size: .9rem;
    letter-spacing: .05em;
}