:root {
    --work-cta-height: clamp(3.6rem, 6.5vh, 5.6rem);
}

.work-section {
    min-height: calc(100vh - var(--work-cta-height));
    min-height: calc(100svh - var(--work-cta-height));
    min-height: calc(100dvh - var(--work-cta-height));
    display: grid;
    align-items: center;
    padding: 0;
    overflow: hidden;
}

.work-carousel-stage {
    width: 100vw;
    height: calc(100vh - var(--work-cta-height));
    height: calc(100svh - var(--work-cta-height));
    height: calc(100dvh - var(--work-cta-height));
    position: relative;
}

#carouselCanvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: grab;
    touch-action: pan-y;
}

#carouselCanvas:active {
    cursor: grabbing;
}

.work-list-cta-section {
    min-height: var(--work-cta-height);
    padding: 0.7rem 1rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
}

.work-list-cta {
    min-width: min(100%, 20rem);
    min-height: 2.5rem;
    font-family: "Metropolis", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

@media (max-width: 680px) {
    :root {
        --work-cta-height: 4.4rem;
    }

    .work-section {
        min-height: calc(100vh - var(--work-cta-height));
        min-height: calc(100svh - var(--work-cta-height));
        min-height: calc(100dvh - var(--work-cta-height));
        padding: 0;
    }

    .work-carousel-stage {
        height: calc(100vh - var(--work-cta-height));
        height: calc(100svh - var(--work-cta-height));
        height: calc(100dvh - var(--work-cta-height));
    }

    #carouselCanvas {
        cursor: default;
    }

    .work-list-cta-section {
        min-height: var(--work-cta-height);
        padding: 0.4rem 0.8rem 0.8rem;
    }

    .work-list-cta {
        min-height: 2.3rem;
        font-size: 0.64rem;
        letter-spacing: 0.07em;
    }
}
