body {
    margin: 0;
    padding: 0; /* background moves with content */

    /* 5-column responsive checkerboard */
    background-color: #ddd; /* fallback */
    background-image: 
        linear-gradient(45deg, #ccc 25%, transparent 25%), 
        linear-gradient(-45deg, #ccc 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, #ccc 75%), 
        linear-gradient(-45deg, transparent 75%, #ccc 75%);

    background-size: 40vw 40vw;
    background-position: 0 0, 0 20vw, 20vw -20vw, -20vw 0;
    background-repeat: repeat;
}

.image-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: stretch;
    margin: 0;
    padding: 0;
}

.image-list img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 150ms ease, box-shadow 150ms ease;
    cursor: pointer;
}

.image-list img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.image-list a {
    cursor: pointer;
}

/* logo and button overrides */
.image-list img.logo,
.image-list img.button {
    cursor: default;
    transform: none;
    box-shadow: none;
    transition: filter 150ms ease;
}

.image-list img.logo:hover,
.image-list img.button:hover {
    filter: brightness(0.85);
}


.logo {
    grid-column: span 2;
}


/* modal styles */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    padding: 20px;
}

.modal.open { display: flex; }

.modal-content {
    width: min(90vmin, 1100px);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    background: #fff;
    position: relative;
    transform: scale(1);
    transition: transform 200ms ease, opacity 180ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.open .modal-content { transform: scale(1.04); }

.modal-content img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 200ms ease, opacity 180ms ease;
}

.modal-close {
    position: absolute;
    right: 12px;
    top: 12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    padding: 6px 10px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

/* About / Info page content */
.page-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 24px;
}

.pixel-box {
    max-width: 540px;
    width: 100%;
    padding: 28px 32px;
    font-family: monospace;
    font-size: 15px;
    line-height: 1.8;
    color: #222;
    background: #ddd;

    /* chunky pixel-art style border */
    border: 4px solid #222;
    box-shadow:
        -4px -4px 0 0 #fff,
        4px 4px 0 0 #888,
        -8px -8px 0 0 #222,
        8px 8px 0 0 #222;
}

.pixel-box p {
    margin: 0 0 14px;
}

.pixel-box p:last-child {
    margin-bottom: 0;
}

.pixel-box a {
    color: #222;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pixel-box a:hover {
    opacity: 0.6;
}

/* Medium screens: 3 columns */
@media (max-width: 1000px) {
    .image-list {
        grid-template-columns: repeat(3, 1fr);
    }
    body {
        background-size: 33.3333vw 33.3333vw;
        background-position: 0 0, 0 16.6666vw, 16.6666vw -16.6666vw, -16.6666vw 0;
    }
}

/* Small screens: 2 columns */
@media (max-width: 600px) {
    .image-list {
        grid-template-columns: repeat(2, 1fr);
    }
    body {
        background-size: 50vw 50vw;
        background-position: 0 0, 0 25vw, 25vw -25vw, -25vw 0;
    }
}