/*
 * HERO Cards — this site's overrides. Loaded after the block's own sheet, only when the
 * block is on the page.
 */

/* Full width: a thinner safety gutter than the theme's 16 / 24 / 24 / 32px, so the cards sit
 * closer to the screen edge. The theme puts it on the section below 1345px and on the
 * container above; here the container carries it at every width, the section none. */
.lvd-hero-cards.lvd-component:has(> .lvd-hero-cards-grid.lvd-width-full) {
    padding-left: 0;
    padding-right: 0;
}
.lvd-component.lvd-hero-cards .lvd-container.lvd-hero-cards-grid.lvd-width-full {
    padding-left: 16px;
    padding-right: 16px;
}
/* On the black card, keyword and body text take the desktop menu's grey (overrides.css), so
 * the white title carries the card alone. 8.16 on black. */
.lvd-hero-cards .lvd-style-dark {
    --lvd-cc-keyword: #A1A1A6;
    --lvd-cc-text:    #A1A1A6;
}

/* Margin top "None" at full width: the same gutter on top, so the cards frame evenly under the
 * header instead of touching it. Any other margin choice stays the editor's. */
.lvd-component.lvd-hero-cards .lvd-container.lvd-hero-cards-grid.lvd-width-full.lvd-mt-none {
    margin-top: 16px;
}
@media (max-width: 767px) {
    .lvd-component.lvd-hero-cards .lvd-container.lvd-hero-cards-grid.lvd-width-full {
        padding-left: 8px;
        padding-right: 8px;
    }
    .lvd-component.lvd-hero-cards .lvd-container.lvd-hero-cards-grid.lvd-width-full.lvd-mt-none {
        margin-top: 8px;
    }
}

/* Video card: black seeps in from the edges, so the footage sits inside the black cards
 * instead of being framed by them. Three layers, all eased (several stops, no hard band):
 * a soft vignette all round, a deeper fall-off on the side that faces the text card, and one
 * at the bottom, under the play CTA. Above the video, below the play button (z-index 2), so
 * nothing changes for clicks. */
.lvd-hero-cards .lvd-hero-cards-media:has(.lvd-cover-video) {
    --fd-hero-side: to right; /* media at the end: the text card is on its left */
}
.lvd-hero-cards .lvd-hero-cards-grid:not(.lvd-media-end) .lvd-hero-cards-media:has(.lvd-cover-video) {
    --fd-hero-side: to left;
}
.lvd-hero-cards .lvd-hero-cards-media:has(.lvd-cover-video)::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(var(--fd-hero-side),
            rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .38) 8%, rgba(0, 0, 0, .16) 18%, rgba(0, 0, 0, .04) 28%, rgba(0, 0, 0, 0) 36%),
        linear-gradient(to top,
            rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .30) 10%, rgba(0, 0, 0, .10) 22%, rgba(0, 0, 0, 0) 34%),
        radial-gradient(ellipse 115% 100% at 55% 45%,
            rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, .18) 74%, rgba(0, 0, 0, .42) 100%);
}
/* Stacked on mobile: the text card sits above the video, so the top carries the fall-off; a
 * lighter one stays at the bottom, under the play CTA. */
@media (max-width: 767px) {
    .lvd-hero-cards .lvd-hero-cards-media:has(.lvd-cover-video)::after {
        background:
            linear-gradient(to bottom,
                rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .36) 12%, rgba(0, 0, 0, .12) 26%, rgba(0, 0, 0, 0) 38%),
            linear-gradient(to top,
                rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, .20) 14%, rgba(0, 0, 0, 0) 30%),
            radial-gradient(ellipse 120% 100% at 50% 50%,
                rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .16) 78%, rgba(0, 0, 0, .38) 100%);
    }
}
