#page-blackout {
    position: fixed;
    inset: 0;
    background: rgb(255, 255, 255);
    z-index: 2000;
    opacity: 1;
    transition: opacity 0.45s ease;
}

#page-blackout.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

body {
    color: rgb(0, 0, 0);
    margin: 0;
    background-color: rgb(255, 255, 255);
    background-size: fill;
    background-repeat: repeat-y repeat-x;

    font-family: Helvetica, sans-serif;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar-toggle {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid rgb(0, 0, 0);
    padding: 8px 12px;
    font-size: 14px;
    font-style: bold;
    cursor: pointer;
    color: black;
}

.sidebar {
    width: 350px;
    padding: 24px 16px;
    background: rgba(255, 255, 255, 0.7);
    border-right: 1.5px solid rgba(0, 0, 0);
    position: sticky;
    top: 0;
    height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.sidebar-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 16px;
    text-decoration: none;
    color: black;
}

#title {
    text-decoration: none;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    text-decoration: none;

}

.menu a {
    color: rgb(0, 0, 0);
    text-decoration: none;


}


.menu a.active {

    border: 1.5px solid rgb(0, 0, 0);

    padding: 3px;

}

.sidebar-bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;

    padding-top: 12px;
}

.sidebar-bottom a {
    color: rgb(0, 0, 0);
    text-decoration: none;


}

.sidebar-svg {
    display: flex;
    justify-content: flex-start;
    align-self: flex-start;
    margin-top: 12px;
    margin-bottom: 12px;

}

.sidebar-svg svg {
    width: auto;


    display: block;
    height: 10vh;
}


.content {
    flex: 1;
    padding-left: 1vw;
    position: relative;
}

.content-blackout {
    position: absolute;
    inset: 0;
    background: rgb(255, 255, 255);
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

.project-content {
    opacity: 1;
    transition: opacity 0.45s ease;
}

.content.is-loading .content-blackout {
    opacity: 1;
    transition: none;
}

.content.is-loading .project-content {
    opacity: 0;
}

.content.is-revealing .content-blackout {
    opacity: 0;
    transition: opacity 0.45s ease;
}

.content.is-revealing .project-content {
    opacity: 1;
}

@media (max-width: 900px) {
    .layout {
        display: block;
    }

    .sidebar-toggle {
        display: inline-block;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100%;
        width: min(80vw, 320px);
        transform: translateX(-110%);
        transition: transform 0.25s ease-in-out;
        z-index: 1000;
        background: rgba(255, 255, 255, 1);
        padding-top: 10vh;


        border-top: 1.5px solid rgba(0, 0, 0);
        border-right: 1.5px solid rgba(0, 0, 0);
        border-bottom: 1.5px solid rgba(0, 0, 0);

    }

    .sidebar.sidebar-open {
        transform: translateX(0);
    }

    .content {
        padding-left: 0;
        padding-top: 56px;
    }

    .project-split-layout {
        flex-direction: column;
    }

    .project-split-media {
        width: 100%;
        max-width: none;
    }

    .sidebar-bottom {
        display: flex;
        flex-direction: column;
        gap: 8px;

        padding-top: 2px;
    }

    .sidebar-bottom a {
        color: rgb(0, 0, 0);
        text-decoration: none;


    }
}

section {
    margin-bottom: 36px;
}

.project-split-layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.project-split-text {
    flex: 1;
    min-width: 0;
}

.project-split-media {
    flex: 1;
    min-width: 0;
    max-width: 700px;

}

.project-split-media .carousel {
    margin-top: 0;
}

.project-content {

    padding: 16px;
    background: rgba(255, 255, 255, 0);
}

.carousel {
    position: relative;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;

    margin: 16px 0;
    padding-bottom: 2vh;
    overflow: hidden;
    scrollbar-width: none;
    scrollbar-color: transparent transparent;
}

.carousel-track::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 18px;
    margin-bottom: -18px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    transition: transform 0.3s ease-in-out;
    will-change: scroll-position;
    scrollbar-width: none;

}

.carousel-track>* {
    scroll-snap-align: center;
    flex: 0 0 100%;
    min-width: 100%;
    scrollbar-width: none;

}

.carousel-track img,
.carousel-track iframe {
    width: 100%;
    height: auto;
    max-height: 80vh;
    display: block;
    object-fit: contain;
}

.carousel-track iframe {
    width: 100%;
    height: auto;
    flex: 0 0 100%;
    display: block;
    object-fit: contain;
}

.carousel-btn {
    position: absolute;
    bottom: 50%;
    transform: translateY(-0%);
    background: rgb(255, 255, 255);
    border: 1.5px solid rgba(0, 0, 0, 1);
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 18px;
}

.carousel-btn.prev {
    left: 8px;
    z-index: 100;
    visibility: hidden;
}

.carousel-btn.next {
    right: 8px;
    z-index: 100;
    visibility: hidden;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 10px 0;
    background: rgba(255, 255, 255, 1);
    z-index: 9999;
}

.carousel-dot {
    width: 8px;
    height: 14px;
    border-radius: 0%;
    border: 1px solid rgba(0, 0, 0, 1);
    background: transparent;
    cursor: pointer;
    z-index: 9999;
}

.carousel-dot.active {
    background: rgba(0, 0, 0, 1);
}

a:link {
    color: rgb(0, 0, 0);
}

a:visited {
    color: rgb(0, 0, 0);
}

#basics {
    background-image: url("assets/basics.gif");
    width: 225px;
    height: 30px;
    background-size: cover;
    border: none;
    cursor: pointer;
}

#newmedia {
    background-image: url("assets/newmedia.gif");
    width: 225px;
    height: 30px;
    background-size: cover;
    border: none;
    cursor: pointer;
}