.cheno-home {
    --cheno-home-gap: 20px;
    box-sizing: border-box;
    overflow-anchor: none;
}

.cheno-home :is(.cheno-home__grid, .cheno-home__card, .cheno-home__media) > * {
    margin: 0;
}

.cheno-home__title a {
    color: inherit;
    text-decoration: none;
}

.cheno-home__image {
    position: relative;
    overflow: hidden;
}

.cheno-home .cheno-home__image :is(img, video) {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
}

.cheno-home:not(.is-row) {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: max(calc(100dvh - var(--cheno-header-height)), 620px);
    padding-bottom: 40px;
}

.cheno-home:not(.is-row) .cheno-home__grid {
    display: flex;
    flex-direction: column;
    gap: var(--cheno-home-gap);
}

.cheno-home:not(.is-row) :is(.cheno-home__intro, .cheno-home__title) {
    line-height: 1.4;
    letter-spacing: 2.5px;
}

.cheno-home:not(.is-row) .cheno-home__card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.cheno-home:not(.is-row) .cheno-home__media {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
}

.cheno-home:not(.is-row) .cheno-home__image {
    grid-area: 1 / 1;
    aspect-ratio: 3 / 4;
}

.cheno-home:not(.is-row) .cheno-home__image::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: auto 0 0;
    height: 62%;
    background: linear-gradient(to top, rgb(25 37 35 / .86) 0%, rgb(25 37 35 / .8) 24%, rgb(25 37 35 / .55) 45%, rgb(25 37 35 / .22) 70%, rgb(25 37 35 / 0) 100%);
    pointer-events: none;
}

.cheno-home:not(.is-row) .cheno-home__text {
    z-index: 2;
    grid-area: 1 / 1;
    align-self: end;
    justify-self: start;
    box-sizing: border-box;
    width: 100%;
    padding: 20px;
    color: var(--wp--preset--color--cream);
    text-shadow: 0 1px 2px rgb(25 37 35 / .5);
}

.cheno-home__text strong {
    font-size: var(--wp--preset--font-size--label);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cheno-home__teaser {
    display: block;
    margin-top: 2px;
    font-size: var(--wp--preset--font-size--base);
    line-height: 21px;
}

.cheno-home__text .cheno-forward {
    position: relative;
    z-index: 2;
    margin-inline: 4px;
    vertical-align: -1px;
}

.cheno-home__text .cheno-forward::after {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='12' viewBox='0 0 16 15'%3E%3Cpath d='M1 1.2l7 7.6 7-7.6M1 6.2l7 7.6 7-7.6' fill='none' stroke='%23f8f8f1' stroke-width='1.5'/%3E%3C/svg%3E");
    display: block;
    width: 13px;
    height: 12px;
    background: none;
    -webkit-mask: none;
    mask: none;
    line-height: 0;
}

.cheno-home__text .cheno-forward:hover {
    color: inherit;
    opacity: .75;
}

.wp-site-blocks .cheno-home:not(.is-row) .cheno-home__title a::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

@media (min-width: 1025px) {
    .cheno-home:not(.is-row) .cheno-home__grid {
        flex-direction: row;
        align-items: flex-end;
    }

    .cheno-home:not(.is-row) .cheno-home__grid > * {
        flex: 1 1 0;
        min-width: 0;
    }

    .cheno-home:not(.is-row) .cheno-home__title {
        overflow: hidden;
        white-space: nowrap;
    }
}

@media (max-width: 1024px) {
    .cheno-home:not(.is-row) {
        min-height: calc(100svh - var(--cheno-header-height));
        padding-bottom: 20px;
    }

    .cheno-home:not(.is-row) .cheno-home__grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cheno-home:not(.is-row) .cheno-home__intro {
        grid-column: 1 / -1;
        padding: 24px 0 7px;
        font-size: 14px;
        letter-spacing: 2px;
    }

    .cheno-home:not(.is-row) .cheno-home__card {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr) auto;
        gap: 0;
    }

    .cheno-home:not(.is-row) .cheno-home__media {
        display: contents;
    }

    .cheno-home:not(.is-row) .cheno-home__image {
        grid-area: 1 / 1 / 3 / 2;
    }

    .cheno-home:not(.is-row) .cheno-home__image::after {
        height: 42%;
    }

    .cheno-home:not(.is-row) .cheno-home__title {
        z-index: 2;
        grid-area: 2 / 1;
        padding: 0 12px 12px 14px;
        color: var(--wp--preset--color--cream);
        font-size: 14px;
        letter-spacing: 1.5px;
        line-height: 20px;
        text-shadow: 0 1px 2px rgb(25 37 35 / .5);
        pointer-events: none;
    }

    .cheno-home:not(.is-row) .cheno-home__title a {
        pointer-events: auto;
    }

    .cheno-home:not(.is-row) .cheno-home__text {
        display: none;
    }
}

.cheno-home.is-row {
    --cheno-home-zoom: 1.3;
    --cheno-home-target: 48svh;
    --cheno-home-across: 30vw;
    --cheno-home-reserve: 135px;
    --cheno-home-least: 140px;
    --cheno-home-aside: 280px;
    --cheno-home-bottom: 24px;
    --cheno-home-height: max(var(--cheno-home-least), min(var(--cheno-home-target), var(--cheno-home-across) / .756, (100svh - var(--cheno-header-height) - var(--cheno-home-reserve)) / var(--cheno-home-zoom)));
    --cheno-home-width: calc(var(--cheno-home-height) * .756);
    position: relative;
    height: calc(100svh - var(--cheno-header-height));
    min-height: calc(var(--cheno-home-height) * var(--cheno-home-zoom) + var(--cheno-home-reserve));
}

.cheno-home.is-row .cheno-home__grid {
    position: relative;
    z-index: 2;
    padding-top: 28px;
    pointer-events: none;
}

.cheno-home.is-row .cheno-home__intro {
    font-family: var(--wp--preset--font-family--serif);
    font-size: 24px;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.15;
    text-transform: none;
}

.cheno-home__row {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(50% - 50vw);
    width: 100vw;
    overflow: hidden;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.cheno-home__row.is-dragging {
    cursor: grabbing;
}

.cheno-home__probe {
    position: absolute;
    width: var(--cheno-home-width);
    height: var(--cheno-home-height);
    visibility: hidden;
    pointer-events: none;
}

.cheno-home.is-row .cheno-home__card {
    position: absolute;
    bottom: var(--cheno-home-bottom);
    left: 0;
    display: block;
    width: var(--cheno-home-width);
    will-change: transform;
}

.cheno-home.is-row .cheno-home__title {
    height: 16px;
    margin-bottom: 8px;
    overflow: hidden;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.5px;
    line-height: 16px;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: clamp(0, 1 - var(--p, 0) * 3, 1);
}

.cheno-home.is-row .cheno-home__media {
    display: block;
}

.cheno-home.is-row .cheno-home__image {
    height: var(--cheno-home-height);
    transform-origin: 50% 100%;
    will-change: transform;
}

.cheno-home.is-row .cheno-home__image :is(img, video) {
    -webkit-user-drag: none;
}

.cheno-home.is-row .cheno-home__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.cheno-home__aside {
    position: absolute;
    top: 24px;
    left: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: calc(var(--cheno-home-aside) + var(--cheno-home-gap));
    padding-left: var(--cheno-home-gap);
    opacity: 0;
    transform: translate3d(calc(var(--sx, 0px) + var(--sw, 0px)), var(--sy, 0px), 0);
    transition: opacity 200ms ease;
    pointer-events: none;
}

.cheno-home__card.is-active .cheno-home__aside {
    opacity: 1;
    transition: none;
    pointer-events: auto;
    cursor: pointer;
}

.cheno-home__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.cheno-home__name {
    font-family: var(--wp--preset--font-family--serif);
    font-size: 24px;
    font-style: italic;
    line-height: 1.15;
    white-space: nowrap;
    clip-path: inset(0 -.2em 100% -.2em);
    transform: translateY(100%);
}

.cheno-home__go {
    display: flex;
    flex: none;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-decoration: underline;
    text-transform: uppercase;
    text-underline-offset: 4px;
    opacity: 0;
    transform: translateY(8px);
}

.cheno-home__rule {
    height: 1px;
    margin-top: 12px;
    background: var(--wp--preset--color--line);
    transform: scaleX(0);
    transform-origin: left;
}

.cheno-home__more {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0;
}

.cheno-home__aside :is(.cheno-home__name, .cheno-home__go, .cheno-home__rule, .cheno-home__more) {
    transition: clip-path 0s 220ms, transform 0s 220ms, opacity 0s 220ms;
}

.cheno-home__card.is-active .cheno-home__name {
    clip-path: inset(-.2em -.2em -.35em -.2em);
    transform: none;
    transition: clip-path 800ms cubic-bezier(.2, .7, .1, 1) 100ms, transform 800ms cubic-bezier(.2, .7, .1, 1) 100ms;
}

.cheno-home__card.is-active .cheno-home__rule {
    transform: none;
    transition: transform 800ms cubic-bezier(.2, .7, .1, 1) 250ms;
}

.cheno-home__card.is-active .cheno-home__go {
    opacity: 1;
    transform: none;
    transition: opacity 500ms cubic-bezier(.2, .7, .1, 1) 300ms, transform 500ms cubic-bezier(.2, .7, .1, 1) 300ms;
}

.cheno-home__card.is-active .cheno-home__more {
    opacity: 1;
    transition: opacity 600ms ease 550ms;
}

@media (min-width: 768px) and (orientation: portrait) {
    .cheno-home.is-row {
        --cheno-home-across: 40vw;
    }
}

@media (max-width: 767px) {
    .cheno-home.is-row {
        --cheno-home-target: 100svh;
        --cheno-home-gap: 12px;
        --cheno-home-zoom: 1.15;
        --cheno-home-across: calc(100vw - 2 * var(--cheno-gutter) - 36px);
        --cheno-home-reserve: 240px;
    }
}

@media (max-width: 767px), (orientation: portrait) {
    .cheno-home__aside {
        width: var(--sw, 100%);
        padding-left: 0;
        transform: translate3d(var(--sx, 0px), calc(var(--sy, 0px) - 100% - 10px), 0);
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .cheno-home.is-row {
        --cheno-home-gap: 12px;
        --cheno-home-zoom: 1.15;
        --cheno-home-target: 100svh;
        --cheno-home-across: 34vw;
        --cheno-home-reserve: 110px;
        --cheno-home-least: 200px;
        --cheno-home-aside: 220px;
    }

    .cheno-home.is-row .cheno-home__grid {
        padding-top: 16px;
    }

    .cheno-home__aside {
        width: calc(var(--cheno-home-aside) + var(--cheno-home-gap));
        padding-left: var(--cheno-home-gap);
        transform: translate3d(calc(var(--sx, 0px) + var(--sw, 0px)), var(--sy, 0px), 0);
    }
}

@media (max-height: 760px) {
    .cheno-home.is-row .cheno-home__intro,
    .cheno-home__name {
        font-size: 20px;
    }

    .cheno-home__more {
        font-size: 13px;
        line-height: 1.35;
    }
}

@media (min-width: 2200px) {
    .cheno-home.is-row {
        --cheno-home-aside: 340px;
    }

    .cheno-home__name {
        font-size: 28px;
    }

    .cheno-home__go {
        font-size: 14px;
    }

    .cheno-home__more {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cheno-home *,
    .cheno-home *::before,
    .cheno-home *::after {
        transition-duration: 0ms !important;
        transition-delay: 0ms !important;
    }
}
