/*----------------------- General --------------------------------*/
:root {
    --link-color-base: #ffffff;
    --link-color-hover: #d0d0d0;
    --link-color-active: #a0a0a0;
}

html,
body {
    margin: 0;
    min-height: 100%;
    cursor: default;
    background-color: #ffffff;
}

a {
    cursor: pointer;
}

img,
.menu a {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.noScroll {
    overflow: hidden;
    background-color: black;
}

/*------------ Menu -----------*/
.menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    z-index: 9999;
}

.menu li {
    float: left;
    mix-blend-mode: difference;
}

.menu li a {
    display: block;
    padding: 8px;
    color: var(--link-color-base);
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 0.08em;
}

.menu li a:hover {
    text-decoration: underline;
    color: var(--link-color-hover);
}

.menu li a:active {
    color: var(--link-color-active);
}

.menu li a.active {
    text-decoration: underline;
}

/* Mobile: vertical menu */
@media (max-width: 1000px) {
    .menu li {
        float: none;
        display: flex;
        justify-content: center;
    }

}

@media (max-width: 200px) {
    .menu li a {
        white-space: normal;
    }
}

/*----------------------- Homepage -------------------------------*/

#background-container {
    width: 100vw;
    height: 100dvh;
    position: relative;
    overflow: hidden;
    touch-action: none;
}

#background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center center;
    transform: translate(0, 0) scale(2.6);
    will-change: transform;
    contain: paint;
    transition: opacity 1s ease;
}

#background-image.fade-out {
    opacity: 0;
}

@media (max-width: 1000px) {
    #background-container {
        height: 100dvh;

    }
}


/*------------------------------------ Projects & Contact ----------------------------------*/


.outer-wrapper {
    min-height: 100vh;
    width: 100vw;
    padding: 2rem 0rem 2rem 0;
    box-sizing: border-box;
}

#contact-outer-wrapper {
    padding: 0rem 0rem 0rem 0;
}

.inner-wrapper {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    /* space between projects */
    box-sizing: border-box;
}

#contact-inner-wrapper {
    gap: 0rem;
    margin: 0;
    height: 100vh;
}

.project {
    display: flex;
    gap: 1rem;
    height: calc(100vh - 4rem);
    align-items: stretch;
}

.project-image {
    flex: 0 0 66.67%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    /* ToDO To have text adapt to image width
    flex: 0 0 auto;
    max-width: 60%*/
}

/* Make the <img> fill that box and crop nicely */
.project-image img {
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



/* Right side: content pinned bottom-right */
.project-desc {
    flex: 1;
    /*flex: 1 1 50%;*/
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /*justify-content: space-between;*/
    text-align: left;
    padding-right: 1rem;
}

.project-title {
    /*font-weight: bold; */
    /* font-size: 1.2rem; */
    font-size: 0.9rem;
    margin: 0rem 0 1rem 0;

}

/* Mobile: stack instead of side-by-side */
@media (max-width: 1000px) {
    .outer-wrapper {
        padding: 0;
    }

    .inner-wrapper {
        gap: 10rem;
    }

    .project {
        flex-direction: column;
        gap: 1rem;
        height: auto;
    }

    .project-image {
        /*min-width: 100%;*/
        width: 100%;
    }

    .project-image .image {
        /*min-width: 100%;*/
        width: 100%;
    }

    /* optional cap */
    .project-desc {
        align-items: flex-start;
        justify-content: flex-start;
        text-align: left;
        padding: 0 1rem;
    }

    #contact-outer-wrapper .project-image img {
        min-height: 80vh;
        min-width: 100vw;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

}

/*------------------------------------ About ----------------------------------*/
.category-first-child-wrapper {
    height: 100vh;
    display: flex;
    align-items: flex-end;
}

.category-wrapper {
    margin: 0 1rem;
    margin-top: 8rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
}

.category-wrapper:last-child {
    padding-bottom: 2rem;
}

.category-title {
    width: max-content;
}

.category-description {
    display: flex;
    flex-direction: column;
}

.job-wrapper {
    width: 100%;
    display: flex;
    justify-content: space-between;

}

.job-wrapper .job-date-wrapper {
    min-width: 5rem;
    text-align: right;
}

.job-wrapper .text {
    margin: 0;
}

.job-wrapper a {
    text-decoration: underline;
}

@media (max-width: 500px) {
    .category-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 0rem;
    }

    .category-description {
        gap: 0.2rem;
    }

    .job-wrapper .job-date-wrapper {
        text-align: right;
    }

    #contact-inner-wrapper {
        height: auto;
    }

    #contact-outer-wrapper .project {
        flex-direction: column;
        gap: 0;
        height: auto;
    }

    #contact-outer-wrapper .project-image {
        flex: none;
        width: 100%;
        height: 100dvh;
    }

    #contact-outer-wrapper .project-image img {
        width: 100%;
        height: 100%;
        min-width: 100%;
        min-height: 100%;
        object-fit: cover;
    }

    #contact-outer-wrapper .project-desc {
        width: 100%;
        padding: 1rem;
    }
}

/*------------------------------------ Contact ----------------------------------*/
.contact-links {
    text-align: left;
    width: 100%;
    margin-bottom: 1rem;
}

.list {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 0;
    margin: 0;
}

.contact-link {
    color: black;
    text-decoration: none;
}

.contact-link:hover {
    color: #666666;
    text-decoration: underline;
}

.contact-link:active {
    color: #333333;
}

.contact-link :hover {
    text-decoration: underline;
}


/*------------------------------------ Adobe Fonts ----------------------------------*/
html,
body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 350;
    font-style: normal;
}

/*-------------------------------------- Debug ---------------------------------------*/

/* * {
    outline: 1px solid rgba(255, 0, 0, 0.2);
} */