section {
    width: 100%;
}

#main {
    padding-left: var(--site-gutter);
    padding-right: var(--site-gutter);
}


/* TEXT = always full width */

.project_text {
    width: 100%;
    max-width: none;
    margin-bottom: 30px;
}


/*
#mouse {
    cursor: url('mousehover.png') 32 32, auto;
} */


/* TYPO STYLES */

.head_text {
    color: var(--color-font);
    font-size: var(--fs-sm);
    line-height: var(--line-height-sm);
    letter-spacing: var(--lsp-sm);
    font-weight: normal;
    padding-top: var(--gap);
}

.error {
    margin-top: 25vh;
    font-weight: normal;
    font-size: 96px;
    text-align: center;
}


/* NAVIGATION */

.back_menu {
    position: fixed;
    top: 0px;
    left: 15px;
    mix-blend-mode: difference;
}

.back_menu a {
    text-decoration: none;
    font-size: var(--fs-xl);
    font-weight: normal;
    color: var(--color-background);
}

.back_menu a:hover {
    background-color: #09005C;
    -webkit-transition: background-color 0.35s ease-out;
    -moz-transition: background-color 0.35s ease-out;
    -o-transition: background-color 0.35s ease-out;
    transition: background-color 0.35s ease-out;
}


/* PROJECT_CONTENT */

.object {
    text-align: right;
}

.role {
    text-align: right;
}

.date {
    text-align: right;
}

.project_visuals {
    width: 100%;
    max-width: 800px;
    margin-left: 0;
    margin-right: auto;
}

.media {
    width: 100%;
    display: block;
    margin-bottom: 15px;
}


/* Aspect ratios */

.ratio-16x9 {
    aspect-ratio: 16 / 9;
}

.ratio-1x1 {
    aspect-ratio: 1 / 1;
}

.ratio-9x16 {
    aspect-ratio: 9 / 16;
}

.ratio-4x5 {
    aspect-ratio: 4 / 5;
}

.ratio-3x2 {
    aspect-ratio: 3 / 2;
}

.ratio-2x3 {
    aspect-ratio: 2 / 3;
}

.ratio-5x6 {
    aspect-ratio: 5 / 6;
}

.ratio-10x3 {
    aspect-ratio: 10 / 3;
}

video.media {
    object-fit: cover;
}

#version {
    display: inline;
    text-align: right;
    font-style: normal;
    font-weight: normal;
    font-size: var(--fs-sm);
    line-height: var(--line-height-sm);
    letter-spacing: 0.25px;
    color: var(--color-font);
    background-color: var(--color-primary);
}

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

.visual_responsive {
    display: none;
}


/* PROJECT CAROUSEL (NEW SYSTEM) */

.project-carousel .media {
    margin-bottom: 0;
}

.project-carousel {
    position: relative;
    margin-bottom: 15px;
}

ul.project-carousel-track {
    list-style: none;
    text-decoration: none;
}

.project-carousel-track {
    display: flex;
    overflow: hidden;
    scroll-snap-type: x mandatory;
}

.project-carousel-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.project-carousel-slide img {
    width: 100%;
    display: block;
}


/* Arrows (desktop) */

.project-carousel-arrow {
    font-family: var(--font-primary);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-secondary);
    transition: transform 0.2s ease;
    color: var(--color-font);
    border: none;
    border-radius: 2px;
    padding: 20px 8px;
    margin-left: 6px;
    margin-right: 6px;
    font-size: var(--fs-lg);
    cursor: pointer;
    user-select: none;
}

.project-carousel-arrow.prev {
    left: 0;
}

.project-carousel-arrow.next {
    right: 0;
}

.project-carousel-arrow:hover {
    background-color: var(--color-primary);
}


/* Dots */

.project-carousel-dots {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    pointer-events: none;
}

.project-carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-secondary);
    transition: transform 0.2s ease;
}

.project-carousel-dot.is-active {
    background-color: var(--color-primary);
    transform: scale(1.4);
}


/* RESPONSIVE */

@media screen and (max-width: 800px) {
    #main {
        margin: 0;
        padding-left: var(--site-gutter);
        padding-right: var(--site-gutter);
    }
    .head_text {
        display: grid;
    }
    .object,
    .role,
    .date {
        text-align: right;
    }
    h2 {
        font-size: var(--fs-sm);
        line-height: var(--line-height-sm);
        letter-spacing: 0.25px;
    }
    /* PROJECT_CONTENT */
    .project_visuals {
        max-width: 100%;
    }
    .visual_responsive {
        display: inline;
    }
    .legende {
        display: none;
    }
    .error {
        font-size: var(--fs-xl);
        line-height: var(--line-height-xl);
    }
    .project-carousel-track {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        overscroll-behavior-x: contain;
        overscroll-behavior-y: auto;
        touch-action: auto;
    }
    .project-carousel-track::-webkit-scrollbar {
        display: none;
    }
    .project-carousel-arrow {
        display: none;
    }
}