@font-face {
    font-family: 'Ballet';
    src: url('Ballet-Regular.woff2') format('woff2'),
        url('Ballet-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body{
    font-family: Arial, Helvetica, sans-serif;
    color: black;
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
    background:white;
}

.menuWrapper{
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    color: black;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    z-index: 1000;
}

.menu{
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.menuElement{
    margin: 0;
    font-size: 0.8rem;
    text-align: left;
}

.menuElement.link,
.title.link{
    cursor: pointer;
}

.selected{
    font-weight: 600;
}

.title{
    display: flex;
    justify-content: flex-start;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

/* @media (max-width: 640px) {
    .menuWrapper{
        gap: 0.35rem;
    }

    .title{
        font-size: 1.3rem;
    }

    .menuElement{
        font-size: 1.05rem;
    }
} */

/* index.html */

.frontpageWrapper{
    display: flex;
    flex-direction: column;
    width: 100%;
}

.frontpageWrapper img{
    width: 100%;
    height: auto;
    display: block;
}

/* diary.html */

.diaryWrapper{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    --diary-row-gap: clamp(0.2rem, 0.75vw, 0.5rem);
    gap: var(--diary-row-gap);
    width: 100%;
}

.diarycolumn{
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    flex: 1 1 0;
    max-width: 36vw;
}

.secondcolumn{
    max-width: 28vw;
}

.image img {
    width: 100%;
}

.image{
    display: flex;
    width: 100%;
    margin-bottom: var(--diary-row-gap);
}

.image:last-child{
    margin-bottom: 0;
}

.diaryLightbox{
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
}

.diaryLightbox.is-visible{
    opacity: 1;
    pointer-events: auto;
}

.diaryLightbox img{
    max-width: 90vw;
    max-height: 90vh;
}

/* projects.html */

.projectsViewer{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 3rem;
}

.projectCard{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.projectCard img{
    display: block;
    width: min(var(--image-width, 90vw), 90vw, calc(80vh * var(--image-aspect-ratio, 1)));
    height: auto;
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
}

.projectCard .projectTitle{
    max-width: 90vw;
    padding-left: 30vw;
    text-align: right;
    font-size: 0.95rem;
    padding-bottom: 3rem;
}

.openedProject{
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: clamp(1rem, 4vw, 2.5rem);
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    padding: clamp(1rem, 4vw, 2rem) 0;
    box-sizing: border-box;
    background: white;
}

.imageWrapper{
    width: 100vw;
    max-height: 80vh;
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 clamp(1rem, 5vw, 3rem);
    box-sizing: border-box;
    scroll-timeline: none;
}

.imageWrapper::-webkit-scrollbar{
    display:none;
}

.imageViewer {
    display: flex;
    min-height: 60vh;
    align-items: center;
    gap: clamp(1rem, 5vw, 4rem);
    box-sizing: border-box;
}

.imageViewer img {
    height: auto;
    max-height: 80vh;
    width: min(var(--image-width, 85vw), min(85vw, 1100px), calc(80vh * var(--image-aspect-ratio, 1)));
    max-width: min(85vw, 1100px);
    object-fit: contain;
    flex: 0 0 auto;
}

.projectNote{
    display: none;
    flex-shrink: 0;
    padding: 0 clamp(2rem, 6vw, 3rem);
    max-width: min(100vw - 2rem, 900px);
    margin: 0 auto;
    font-size: clamp(0.85rem, 1.4vw, 1rem);
    line-height: 1.4;
    text-align: center;
    box-sizing: border-box;
}

/* about.html */

.aboutWrapper{
    min-height: 100vh;
    padding: clamp(2rem, 8vw, 3rem) clamp(5vw, 8vw, 6vw);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(2rem, 6vw, 4rem);
    box-sizing: border-box;
}

.jwImage{
    flex: 0 0 25%;
    display: flex;
    justify-content: center;
}

.jwImage > img{
    max-height: min(50vh, 400px);
    width: auto;
}

.aboutText{
    flex: 0 0 50%;
    padding-left: clamp(0rem, 3vw, 2rem);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    line-height: 1.5rem;
}

a {
    color: black;
    text-decoration: none;
}

@media (max-width: 640px) {
    .aboutWrapper{
        flex-direction: column;
        align-items: flex-start;
        gap: clamp(1.25rem, 6vw, 2rem);
        padding: clamp(2rem, 12vw, 3rem) clamp(6vw, 12vw, 8vw);
    }

    .jwImage,
    .aboutText{
        flex: 1 1 auto;
        width: 100%;
    }

    .jwImage > img{
        max-width: 100%;
        height: auto;
        max-height: none;
    }

    .aboutText{
        padding-left: 0;
    }
}
