/* Reversible editorial art direction for the existing homepage blocks. */
body.vb27-home-editorial {
    background: #f4efe8;
}

body.vb27-home-editorial .vb27-events {
    padding-block: clamp(4.5rem, 7vw, 6.5rem);
}

@media (max-width: 760px) {
    body.vb27-home-editorial .vb27-events {
        padding-block: 3.75rem;
    }
}

body.vb27-home-editorial .vb27-hero {
    min-height: 108svh;
    align-items: center;
    background-color: #260d12;
    clip-path: polygon(0 0, 100% 0, 100% 97%, 52% 100%, 0 97.5%);
}

body.vb27-home-editorial .vb27-hero__image {
    transform: scale(1.015);
}

body.vb27-home-editorial .vb27-hero__shade {
    background:
        linear-gradient(90deg, rgba(24, 7, 10, .9) 0%, rgba(47, 8, 14, .64) 43%, rgba(48, 8, 14, .14) 78%),
        linear-gradient(0deg, rgba(24, 7, 10, .5), transparent 58%),
        linear-gradient(135deg, rgba(117, 13, 25, .2), transparent 60%);
}

body.vb27-home-editorial .vb27-hero__content {
    padding: clamp(5rem, 10vh, 7rem) 0;
}

body.vb27-home-editorial .vb27-hero__content::before {
    position: absolute;
    top: 27%;
    bottom: 23%;
    left: -1.4rem;
    width: 1px;
    background: linear-gradient(transparent, rgba(255,255,255,.72) 18%, rgba(255,255,255,.45) 82%, transparent);
    content: "";
}

body.vb27-home-editorial .vb27-hero h1 {
    max-width: 760px;
    font-size: clamp(4.1rem, 9.2vw, 9rem);
    line-height: .82;
    letter-spacing: -.025em;
}

body.vb27-home-editorial .vb27-hero--alternative h1 {
    letter-spacing: var(--vb27-alt-title-letter-spacing, -.025em);
}

body.vb27-home-editorial .vb27-hero h1 em {
    display: block;
    margin-top: 2em;
    color: #ef5b49;
}

body.vb27-home-editorial .vb27-hero__lead {
    max-width: 34rem;
    margin-top: clamp(2rem, 3vw, 3rem) !important;
    padding-top: 1rem !important;
    font-size: clamp(1rem, 1.35vw, 1.25rem);
    line-height: 1.4;
}

body.vb27-home-editorial .vb27-section:not(.vb27-hero) {
    padding-top: clamp(6rem, 10vw, 9rem);
    padding-bottom: clamp(6rem, 10vw, 9rem);
}

body.vb27-home-editorial .vb27-intro::after,
body.vb27-home-editorial .vb27-release::before,
body.vb27-home-editorial .vb27-events::before,
body.vb27-home-editorial .vb27-catalogue::before,
body.vb27-home-editorial .vb27-newsletter::before {
    top: clamp(-2rem, -2.5vw, -1rem);
    bottom: clamp(-2rem, -2.5vw, -1rem);
    clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
}

body.vb27-home-editorial .vb27-intro--with-image {
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
    gap: clamp(3rem, 8vw, 8rem);
}

body.vb27-home-editorial .vb27-intro--with-image .vb27-intro__visual {
    transform: none;
    margin-top: -1.5rem;
    margin-bottom: -1.5rem;
}

body.vb27-home-editorial .vb27-intro--with-image .vb27-intro__visual::before {
    inset: auto 0 0 0;
    height: 24%;
    background: linear-gradient(0deg, rgba(169, 28, 38, .78), transparent);
    transform: none;
}

body.vb27-home-editorial .vb27-intro--with-image .vb27-intro__visual img {
    box-shadow: 0 1.5rem 3.5rem rgba(42, 23, 20, .2);
}

body.vb27-home-editorial .vb27-intro--custom[data-home-block-name="terra-2027"],
body.vb27-home-editorial .vb27-intro--custom[data-home-block-title="terra-2027"],
body.vb27-home-editorial .vb27-intro--custom[data-home-block-name="terra2027"],
body.vb27-home-editorial .vb27-intro--custom[data-home-block-title="terra2027"] {
    gap: clamp(1.5rem, 3vw, 3rem);
}

body.vb27-home-editorial .vb27-intro--custom[data-home-block-name="terra-2027"] .vb27-intro__visual::before,
body.vb27-home-editorial .vb27-intro--custom[data-home-block-title="terra-2027"] .vb27-intro__visual::before,
body.vb27-home-editorial .vb27-intro--custom[data-home-block-name="terra2027"] .vb27-intro__visual::before,
body.vb27-home-editorial .vb27-intro--custom[data-home-block-title="terra2027"] .vb27-intro__visual::before {
    content: none;
}

body.vb27-home-editorial .vb27-intro--custom[data-home-block-name="terra2027"].vb27-intro--with-image .vb27-intro__visual {
    margin-bottom: 0;
}

body.vb27-home-editorial .vb27-intro--custom[data-home-block-name="terra2027"].vb27-intro--with-image .vb27-custom-intro__actions {
    align-self: end;
    margin: 0;
}

body.vb27-home-editorial .vb27-release[data-home-block-name="terra-2027"],
body.vb27-home-editorial .vb27-release[data-home-block-title="terra-2027"],
body.vb27-home-editorial .vb27-release[data-home-block-name="terra2027"],
body.vb27-home-editorial .vb27-release[data-home-block-title="terra2027"] {
    gap: clamp(1.5rem, 3vw, 3rem);
}

body.vb27-home-editorial .vb27-release[data-home-block-name="terra-2027"] .vb27-release__cover::before,
body.vb27-home-editorial .vb27-release[data-home-block-title="terra-2027"] .vb27-release__cover::before,
body.vb27-home-editorial .vb27-release[data-home-block-name="terra2027"] .vb27-release__cover::before,
body.vb27-home-editorial .vb27-release[data-home-block-title="terra2027"] .vb27-release__cover::before {
    content: none;
}

/* Biography: large left portrait, full image, with an angled red overlay. */
body.vb27-home-editorial #bio.vb27-intro--with-image {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    align-items: center;
    gap: clamp(2.5rem, 6vw, 6rem);
}

body.vb27-home-editorial #bio .vb27-intro__visual {
    grid-column: 1;
    grid-row: 1;
    justify-self: stretch;
    width: calc(100% + max(24px, calc((100vw - var(--max)) / 2)));
    max-width: none;
    margin: -1.5rem 0 -1.5rem calc(-1 * max(24px, calc((100vw - var(--max)) / 2)));
}

body.vb27-home-editorial #bio .vb27-intro__visual::before {
    content: none;
}

body.vb27-home-editorial #bio .vb27-intro__visual::after {
    position: absolute;
    z-index: 1;
    inset: 78% 0 0;
    background: linear-gradient(0deg, rgba(145, 17, 31, .56), rgba(207, 43, 48, .38));
    clip-path: polygon(0 24%, 100% 0, 100% 100%, 0 100%);
    content: "";
    pointer-events: none;
}

body.vb27-home-editorial #bio .vb27-intro__visual img {
    position: relative;
    z-index: 0;
    width: 100%;
    height: auto;
    max-height: 700px;
    object-fit: contain;
    filter: none;
}

body.vb27-home-editorial #bio .vb27-intro__content {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    padding: 2rem 0;
}

body.vb27-home-editorial .vb27-release {
    grid-template-columns: minmax(260px, .82fr) minmax(0, 1.18fr);
    gap: clamp(3rem, 7vw, 7rem);
}

body.vb27-home-editorial .vb27-release__cover img {
    box-shadow: 0 1rem 2.5rem rgba(36, 19, 16, .18);
}

body.vb27-home-editorial .vb27-release__cover {
    position: relative;
    z-index: 0;
    transform: translateY(-1rem);
}

body.vb27-home-editorial .vb27-release__cover::before {
    position: absolute;
    z-index: -1;
    inset: 1rem -1rem -1rem 1rem;
    background: color-mix(in srgb, var(--red) 82%, #a51d2b);
    content: "";
}

body.vb27-home-editorial .vb27-release h2,
body.vb27-home-editorial .vb27-intro h2,
body.vb27-home-editorial .vb27-section-heading h2 {
    font-size: clamp(3.5rem, 7vw, 7rem);
}

body.vb27-home-editorial .vb27-section-heading {
    align-items: end;
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

body.vb27-home-editorial .vb27-albums {
    column-gap: clamp(1rem, 2.2vw, 2rem);
    row-gap: clamp(2.5rem, 4vw, 4rem);
}

body.vb27-home-editorial .vb27-album img {
    background: rgba(255,255,255,.42);
    box-shadow: 0 .55rem 1.6rem rgba(48, 31, 25, .09);
    transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease;
}

body.vb27-home-editorial .vb27-album:hover img {
    transform: scale(1.025);
    box-shadow: 0 1rem 2rem rgba(48, 31, 25, .16);
}

body.vb27-home-editorial #libri::before {
    background: color-mix(in srgb, var(--vb27-section-bg, #f2eee7) 88%, #efb9bd);
}

body.vb27-home-editorial .vb27-newsletter::before {
    background:
        radial-gradient(ellipse at 78% 110%, rgba(255, 255, 255, .055), transparent 48%),
        linear-gradient(118deg,
            color-mix(in srgb, var(--vb27-section-bg, #181616) 95%, #ffffff),
            color-mix(in srgb, var(--vb27-section-bg, #181616) 95%, #000000));
}

body.vb27-home-editorial .vb27-newsletter {
    max-width: none;
    padding-right: max(24px, calc((100vw - var(--max)) / 2));
    padding-left: max(24px, calc((100vw - var(--max)) / 2));
    color: #fff;
    text-align: left;
}

body.vb27-home-editorial .vb27-newsletter h2,
body.vb27-home-editorial .vb27-newsletter p:not(.vb27-kicker),
body.vb27-home-editorial .vb27-newsletter .vb27-kicker {
    color: #fff;
}

body.vb27-home-editorial .vb27-newsletter p:not(.vb27-kicker) {
    max-width: 34rem;
    margin: 0 0 2rem;
}

body.vb27-home-editorial .vb27-footer {
    background-color: var(--vb27-section-bg, #171515);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

body.vb27-home-editorial .vb27-release-book-pair__card {
    border-radius: 0 2.5rem 0 2.5rem;
    box-shadow: 0 1.2rem 3rem rgba(43, 27, 24, .1);
}

/* Keep each homepage block faithful to its saved background color. */
body.vb27-home-editorial .vb27-release,
body.vb27-home-editorial .vb27-books {
    background-color: transparent;
}

body.vb27-home-editorial #libri::before {
    background: var(--vb27-section-bg, #f2eee7);
}

body.vb27-home-editorial .vb27-newsletter::before {
    background: var(--vb27-section-bg, #181616);
}

body.vb27-home-editorial .vb27-books::before {
    background: var(--vb27-section-bg, #f2eee7);
}

/* Keep the page paper as a deliberate separator between every homepage block. */
body.home.vb27-home-editorial #content > section {
    margin-bottom: 16px;
}

body.home.vb27-home-editorial #content > .vb27-intro::after,
body.home.vb27-home-editorial #content > .vb27-release::before,
body.home.vb27-home-editorial #content > .vb27-events::before,
body.home.vb27-home-editorial #content > .vb27-catalogue::before,
body.home.vb27-home-editorial #content > .vb27-newsletter::before {
    top: 0;
    bottom: 0;
}

body.home.vb27-home-editorial #content {
    padding-bottom: 16px;
}

@media (max-width: 760px) {
    body.home.vb27-home-editorial #content > section {
        margin-bottom: 10px;
    }

    body.home.vb27-home-editorial #content {
        padding-bottom: 10px;
    }

    body.vb27-home-editorial .vb27-hero {
        min-height: 108svh;
        align-items: center;
        clip-path: polygon(0 0, 100% 0, 100% 98%, 45% 100%, 0 98.5%);
    }

    body.vb27-home-editorial .vb27-hero__content {
        padding: clamp(4.5rem, 9vh, 6rem) 0;
    }

    body.vb27-home-editorial .vb27-hero__content::before {
        left: -.55rem;
    }

    body.vb27-home-editorial .vb27-hero h1 {
        font-size: clamp(3.4rem, 13vw, 5.4rem);
        line-height: .9;
    }

    body.vb27-home-editorial .vb27-hero__lead {
        margin-top: 1.8rem !important;
        padding-top: 1rem !important;
    }

    body.vb27-home-editorial .vb27-intro--with-image {
        grid-template-columns: minmax(0, 1fr);
    }

    body.vb27-home-editorial #bio.vb27-intro--with-image {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    body.vb27-home-editorial #bio .vb27-intro__visual {
        grid-column: 1;
        grid-row: 1;
        width: calc(100% + 16px);
        margin: -1rem 0 0 -16px;
    }

    body.vb27-home-editorial #bio .vb27-intro__content {
        grid-column: 1;
        grid-row: 2;
        padding: 1.5rem 0 0;
    }

    body.vb27-home-editorial .vb27-release {
        grid-template-columns: minmax(0, 1fr);
    }

    body.vb27-home-editorial .vb27-release__cover {
        transform: translateY(-.45rem);
    }

    body.vb27-home-editorial .vb27-intro h2,
    body.vb27-home-editorial .vb27-release h2,
    body.vb27-home-editorial .vb27-section-heading h2 {
        font-size: clamp(3rem, 12vw, 5rem);
    }

    body.vb27-home-editorial .vb27-newsletter {
        padding-right: 16px;
        padding-left: 16px;
    }

    body.vb27-home-editorial .vb27-release-book-pair__card {
        border-radius: 0 1.5rem 0 1.5rem;
    }
}
