/* ============================================================
   sassolino — custom stylesheet
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #000000;
    font-family: 'Times New Roman', Times, serif;
    font-size: 2rem;
}

main {
    margin: 0;
    padding: 0;
}

/* ── Project page ────────────────────────────────────────── */

figure.project-images {
    margin: 0;
    padding: 0;
}

figure.project-images a.project-link {
    display: flex;
    width: 100%;
    height: 100vh;
    align-items: flex-start;
    text-decoration: none;

    /* @media (width <=868px) {
        flex-direction: column;
    } */

}

figure.project-images img {
    display: block;
    width: 50%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;

    /* @media (width <=868px) {
        width: 100%;
    } */
}

figure.project-images img.portrait {
    object-fit: cover;
    object-position: center;
    height: 100vh;
}

figure.project-images img.landscape {
    object-fit: contain;
    height: auto;
}

figcaption.caption {
    position: absolute;
    bottom: 0;
    padding: 1rem;
    font-family: 'Times New Roman', Times, serif;
    font-size: 2rem;
    /* font-size: clamp(1.4rem, calc(-1 * 1rem + 4vw), 1.8rem); */
    color: #000000;
    background-color: white;
    width: 100%;

    & p {
        display: inline;
    }


}

figcaption.caption p {
    margin: 0;
}

figcaption.caption a.about-link {
    color: #000000;
    text-decoration: none;
}

figcaption.caption a.about-link:hover {
    /* text-decoration: underline; */
}

/* ── About page ──────────────────────────────────────────── */

article.about {
    padding: 1rem;
    /* max-width: 40rem; */
}

.backlink {
    text-decoration: none;
    height: 100vh;
    width: 100vw;
    position: absolute;
    top: 0;
    left: 0;
}

article {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100vh;
}

article a {
    color: currentColor;
}


article.about p,
article.about h1,
article.about h2,
article.about h3 {
    font-family: 'Times New Roman', Times, serif;
    /* font-size: 2rem; */
    /* color: #000000; */
    margin: 0;
    font-weight: normal;
    z-index: 2;
}

@media (max-width: 1000px),
(orientation: portrait) {
    figure.project-images a.project-link {
        flex-direction: column;
        height: 100vh;
    }

    figure.project-images img.portrait,
    figure.project-images img.landscape {
        width: 100%;
        height: 50vh;
        object-fit: cover;
    }
}