/* ==========================================================================
   Her Peptides — front page hero: lotus video on rippling water
   Markup: template-parts/front/hero-lotus.php. Behaviour: assets/js/hero-video.js.
   ========================================================================== */

section.hero.hp-vhero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0) 58%, rgba(250, 226, 236, .55) 80%, rgba(255, 255, 255, .9) 100%),
        linear-gradient(180deg, #fefafb 0%, #fdf3f7 55%, #fcedf3 100%);
}

/* full-hero canvas the ripples are drawn on, behind the flower and the copy */
.hp-vhero__ripples {
    position: absolute;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    inset: 0;
    pointer-events: none;
}

.hp-vhero__media {
    position: relative;
    z-index: 2;
    aspect-ratio: 1280 / 724;
    line-height: 0;
    mix-blend-mode: multiply;
    -webkit-mask: url(../hero/hp-lotus-mask.png) 0 0 / 100% 100% no-repeat;
    mask: url(../hero/hp-lotus-mask.png) 0 0 / 100% 100% no-repeat;
}

.hp-vhero__poster,
.hp-vhero__video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp-vhero__video {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .35s ease;
}

.hp-vhero__video.is-on {
    opacity: 1;
}

section.hero.hp-vhero .order-lg-1 {
    position: relative;
    z-index: 3;
}

@media (min-width: 992px) {
    section.hero.hp-vhero {
        display: flex;
        min-height: clamp(400px, 32vw, 510px);
        align-items: center;
    }

    section.hero.hp-vhero .container {
        width: 100%;
    }

    .hp-vhero__media {
        position: absolute;
        right: 0;
        bottom: 0;
        width: min(52%, 860px);
    }
}

@media (max-width: 991.98px) {
    .hp-vhero__media {
        width: 88%;
        margin: 0 auto;
    }
}
