* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    background: #ffffff;
    color: #000000;
    font-family: Menlo, "SFMono-Regular", "SF Mono", "Liberation Mono", "Courier New", monospace;
    font-size: 9px;
    overflow-x: hidden;
}

a {
    color: inherit;
}

.project-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding-bottom: 100px;
}

.mark,
.visible-space,
.header-space,
.info-space,
.end-mark {
    font-family: Menlo, "SFMono-Regular", "SF Mono", "Liberation Mono", "Courier New", monospace;
    font-style: normal;
    font-weight: 400;
    color: #000000;
}

.mark {
    margin-left: 1px;
}

.project-header {
    position: absolute;
    top: 12vh;
    left: 3.2vw;
    width: 30vw;
    margin: 0;
    padding: 0;
    font-size: 9px;
    z-index: 10;
}

.back-link {
    display: block;
    width: fit-content;
    margin: 0 0 14px 0;
    padding: 0;
    font-family: Menlo, "SFMono-Regular", "SF Mono", "Liberation Mono", "Courier New", monospace;
    font-size: 9px;
    font-weight: 400;
    line-height: 1;
    color: #000000;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.project-domain {
    display: block;
    width: fit-content;
    margin: 0;
    padding: 0;
    font-family: "slight-chance-mono", "Courier New", monospace;
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
    color: #000000;
    text-decoration: none;
}

.header-space {
    margin: 7px 0 8px 0;
    padding: 0;
    line-height: 1;
}

.header-link {
    display: grid;
    grid-template-columns: 18px 58px auto 10px;
    align-items: baseline;
    width: fit-content;
    margin: 0 0 7px 0;
    padding: 0;
    line-height: 1.1;
}

.header-link .arrow {
    display: block;
}

.visible-space {
    display: block;
    white-space: nowrap;
}

.header-link a {
    white-space: nowrap;
    color: #000000;
    text-decoration: none;
}

.header-link a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.project-header .end-mark {
    margin-top: 7px;
}

.project-info {
    position: absolute;
    top: 69vh;
    left: 11vw;
    width: 39vw;
    margin: 0;
    padding: 0;
    font-size: 9px;
    z-index: 5;
}

.project-info h1 {
    margin: 0;
    padding: 0;
    font-family: "slight-chance-mono", "Courier New", monospace;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.1;
}

.info-space {
    margin: 5px 0;
    padding: 0;
    line-height: 1;
}

.year {
    margin: 0;
    padding: 0;
    font-family: Menlo, "SFMono-Regular", "SF Mono", "Liberation Mono", "Courier New", monospace;
    font-size: 9px;
    font-weight: 400;
    line-height: 1.2;
}

.project-description {
    max-width: 470px;
    margin: 0;
    padding: 0;
    font-family: Menlo, "SFMono-Regular", "SF Mono", "Liberation Mono", "Courier New", monospace;
    font-size: 9px;
    font-weight: 400;
    line-height: 1.2;
}

.project-description a {
    font-family: Menlo, "SFMono-Regular", "SF Mono", "Liberation Mono", "Courier New", monospace;
    color: #000000;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.project-description a:hover {
    text-decoration: none;
}

.project-images {
    position: absolute;
    top: 31vh;
    right: 20vw;
    display: grid;
    grid-template-columns: repeat(2, 215px);
    gap: 15px;
    width: fit-content;
    margin: 0;
    padding: 0;
    z-index: 2;
}

.project-images img {
    display: block;
    width: 215px;
    height: 165px;
    margin: 0;
    padding: 0;
    object-fit: contain;
    object-position: center;
    background: transparent;
    border: none;
}

.project-images:has(img:only-child) {
    top: 31vh;
    grid-template-columns: 330px;
    gap: 0;
}

.project-images img:only-child {
    width: 330px;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}

.project-images:has(img:nth-child(2):last-child) {
    top: 25vh;
    grid-template-columns: 280px;
    gap: 12px;
}

.project-images:has(img:nth-child(2):last-child) img {
    width: 280px;
    height: auto;
    max-height: 240px;
    object-fit: contain;
}

.project-images:has(img:nth-child(3):last-child) {
    top: 20vh;
    grid-template-columns: 260px;
    gap: 10px;
}

.project-images:has(img:nth-child(3):last-child) img {
    width: 260px;
    height: auto;
    max-height: 190px;
    object-fit: contain;
}

.project-images:has(img:nth-child(4):last-child) {
    top: 31vh;
    grid-template-columns: repeat(2, 215px);
    gap: 15px;
}

.project-images:has(img:nth-child(4):last-child) img {
    width: 215px;
    height: 165px;
    object-fit: contain;
}

.project-images:has(img:nth-child(5):last-child) {
    top: 25vh;
    grid-template-columns: repeat(2, 215px);
    gap: 15px;
}

.project-images:has(img:nth-child(5):last-child) img {
    width: 215px;
    height: 165px;
    object-fit: contain;
}

.project-images img.image-large {
    position: relative;
    top: -70px;
    left: -50px;
    width: 470px;
    max-width: none;
    max-height: none;
}

.footer {
    position: absolute;
    left: 3.2vw;
    bottom: 30px;
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 0;
    font-family: Menlo, "SFMono-Regular", "SF Mono", "Liberation Mono", "Courier New", monospace;
    font-size: 9px;
    font-weight: 400;
    line-height: 1;
    color: #000000;
}

@media (max-width: 1200px) {
    .project-header {
        left: 4vw;
        width: 35vw;
    }

    .project-info {
        left: 9vw;
        width: 43vw;
    }

    .project-images {
        right: 10vw;
    }

    .footer {
        left: 4vw;
    }
}

@media (max-width: 900px) {
    .project-header {
        left: 5vw;
        width: 42vw;
    }

    .project-info {
        left: 6vw;
        width: 43vw;
    }

    .project-images,
    .project-images:has(img:nth-child(4):last-child),
    .project-images:has(img:nth-child(5):last-child) {
        right: 5vw;
        grid-template-columns: repeat(2, 180px);
        gap: 10px;
    }

    .project-images img,
    .project-images:has(img:nth-child(4):last-child) img,
    .project-images:has(img:nth-child(5):last-child) img {
        width: 180px;
        height: 140px;
    }

    .project-images:has(img:only-child) {
        right: 7vw;
        grid-template-columns: 260px;
    }

    .project-images img:only-child {
        width: 260px;
        height: auto;
    }

    .project-images:has(img:nth-child(2):last-child) {
        right: 7vw;
        grid-template-columns: 230px;
    }

    .project-images:has(img:nth-child(2):last-child) img {
        width: 230px;
        height: auto;
    }

    .project-images:has(img:nth-child(3):last-child) {
        top: 18vh;
        right: 7vw;
        grid-template-columns: 220px;
        gap: 9px;
    }

    .project-images:has(img:nth-child(3):last-child) img {
        width: 220px;
        height: auto;
        max-height: 170px;
    }

    .project-description {
        max-width: 350px;
    }

    .footer {
        left: 5vw;
    }
}

.project-images.video-project {
    top: 20vh;
    right: 12vw;
    display: block;
    width: 420px;
}

.project-images.video-project video {
    display: block;
    width: 420px;
    height: auto;
    max-height: 520px;
    object-fit: contain;
}

.project-images.illustration-list {
    position: absolute;
    top: 20vh;
    right: 15vw;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;

    width: 350px;
}

.project-images.illustration-list img {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: contain;
}

@media (max-width: 700px) {
    body {
        min-height: 100vh;
    }

    .project-page {
        min-height: auto;
        padding: 35px 18px 70px;
    }

    .project-header {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
    }

    .back-link {
        margin-bottom: 14px;
    }

    .project-images,
    .project-images:has(img:only-child),
    .project-images:has(img:nth-child(2):last-child),
    .project-images:has(img:nth-child(3):last-child),
    .project-images:has(img:nth-child(4):last-child),
    .project-images:has(img:nth-child(5):last-child) {
        position: relative;
        top: auto;
        right: auto;
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        margin-top: 90px;
        gap: 12px;
    }

    .project-images img,
    .project-images img:only-child,
    .project-images:has(img:nth-child(2):last-child) img,
    .project-images:has(img:nth-child(3):last-child) img,
    .project-images:has(img:nth-child(4):last-child) img,
    .project-images:has(img:nth-child(5):last-child) img {
        display: block;
        width: 100%;
        height: auto;
        max-width: 100%;
        max-height: none;
        object-fit: contain;
    }

    .project-images img.image-large {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        max-width: 100%;
        max-height: none;
    }

    .project-info {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        margin-top: 90px;
    }

    .project-description {
        max-width: 100%;
    }

.project-images.video-project {
    top: 0vh;
    right: 12vw;
    display: block;
    width: 420px;
}

  .project-images.illustration-list {
        position: relative;
        top: auto;
        right: auto;

        width: 100%;
        margin-top: 90px;

        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    .project-images.illustration-list img {
        width: 100%;
        height: auto;
        max-width: none;
        max-height: none;
    }

    .footer {
        position: relative;
        left: auto;
        bottom: auto;
        margin-top: 120px;
    }
}

