body, html {
    margin: 0;
    padding: 0;
    overflow: auto;
    background: #0a0a0a;
}

canvas {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

.content {
    position: absolute;
/*    top: 75%;
    left: 40%;
    transform: translate(-50%, -50%);*/
    min-width: 100%;
    color: white;
    /*font-family: 'Arial', sans-serif;*/
    text-align: center;
    z-index: 10;
    pointer-events: auto;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.container {
    position: relative;
    z-index: 10;
}

h1 {
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 0.5rem;
    text-shadow: 0 0 20px rgba(255,255,255,0.5);
}

/* Project article layout */
.project-card {
    display: grid;
    /*grid-template-columns: 1fr 360px;*/
    gap: 1.5rem;
    align-items: start;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 1.25rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.project-text h3 {
    margin-top: 0;
    color: #f6f3ff; /* brighter, high-contrast heading */
    font-weight: 300; /* thin like the main header */
    letter-spacing: 0.06rem;
    margin-bottom: 0.35rem;
}

.project-text .artist {
    color: #dcd6ff;
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
    font-weight: 300;
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.project-meta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    color: #d9d7de; /* higher contrast */
}

/* Article body text: thinner, left-aligned, higher contrast */
.project-text {
    text-align: left;
    color: #f4f4f6; /* near-white for readability on dark background */
    font-weight: 300;
    line-height: 1.6;
}

.project-text p {
    margin: 0.5rem 0 0.75rem 0;
    color: #e9e8ec;
    font-size: 1rem;
    font-family: "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, Helvetica, "Helvetica Neue";
    font-weight: 300;
}

/* Inline thumbnail inside the first paragraph */
.project-text p .inline-img {
    float: left;
    width: 160px;
    height: auto;
    margin: 0 1rem 1rem 0;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 6px 20px rgba(0,0,0,0.45);
}

@media (max-width: 880px) {
    .project-text p .inline-img {
        float: none;
        display: block;
        width: 100%;
        margin: 0 0 0.75rem 0;
    }
}

@media (max-width: 880px) {
    .project-card {
        grid-template-columns: 1fr;
    }
    .project-image {
        order: 2;
    }
}

/* Simple responsive gallery at end of article */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-top: 1.25rem;
}
.gallery figure {
    margin: 0;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}
.gallery img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 520px) {
    .gallery {
        grid-template-columns: 1fr 1fr;
    }
}