.hero {
    --bs-hero-bg: var(--bs-primary);
    --bs-hero-bg-rgb: var(--bs-primary-rgb);
}

.hero.bg-secondary {
    --bs-hero-bg: var(--bs-secondary);
    --bs-hero-bg-rgb: var(--bs-secondary-rgb);
}

.hero.bg-info {
    --bs-hero-bg: var(--bs-info);
    --bs-hero-bg-rgb: var(--bs-info-rgb);
}

.hero::before {
    content: "";
    background: linear-gradient(to bottom, var(--bs-hero-bg) 10%, rgba(var(--bs-hero-bg-rgb), 0.8) 50%, rgba(var(--bs-hero-bg-rgb), 0) 100%);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

@media (min-width: 992px) {
    .hero::before {
        background: linear-gradient(to right, var(--bs-hero-bg) 40%, rgba(var(--bs-hero-bg-rgb), 0) 100%);
        max-width: 45vw;
    }

    header.hero::before {
        max-width: 80vw;
    }
}

.hero {
    background-position: left bottom;
    background-repeat: repeat;
    background-size: auto 293px;
}

@media (min-width: 992px) {
    .hero {
        background-position: left top;
        background-size: auto 600px;
    }
}

.hero-overlay {
    background-position: left bottom;
    background-repeat: repeat;
    background-size: auto 293px;
    transform: skewX(-180deg);
}

@media (min-width: 992px) {
    .hero-overlay {
        left: -170px !important;
        background-position: left top;
        background-size: auto 600px;
        transform: skewX(-30deg);
    }
}

.hero-overlay.bg-pattern-primary-overlay::before {
    top: -3px;
    left: -27px;
    background-size: auto 485px;
}

@media (min-width: 992px) {
    .hero-overlay.bg-pattern-primary-overlay::before {
        top: 0;
        left: 0;
        background-position: 86px top;
        background-repeat: repeat-y;
        background-size: auto 500px;
    }
}

.hero > .container {
    display: flex;
    flex-direction: column;
    position: static;
}

@media (min-width: 992px) {
    .hero > .container {
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
    }
}

.hero-image {
    position: relative;
    width: 100vw;
    transform-origin: right top;
    overflow: hidden;
    order: -1;
    margin-left: -1.8rem;
}

@supports (clip-path: polygon(0 0, 0 0, 0 0, 0 0)) {
    .hero-image {
        clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
    }
}

@media (min-width: 992px) {
    .hero-image {
        position: absolute;
        right: 0;
        bottom: 0;
        width: 55vw;
        height: 100%;
        order: 1;
        clip-path: none;
        overflow: hidden;
        padding: 0;
        margin: 0;
    }

    .hero-image > div {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transform: skewX(30deg);
        transform-origin: left top;
        overflow: hidden;
    }
}

.hero-image picture {
    height: 100%;
    pointer-events: none;
}

@supports (object-fit: cover) {
    .hero-image img {
        width: 100%;
        height: 100%;
        max-width: initial;
        object-fit: cover;
        object-position: center;
    }
}

.hero-image img {
    max-width: none;
}

@media (min-width: 992px) {
    .hero-image img {
        width: 110%;
        transform: skewX(-30deg);
        margin-left: -19vw;
    }
}

@media (min-width: 1024px) {
    .hero-image img {
        margin-left: -15vw;
    }
}

@media (min-width: 1400px) {
    .hero-image img {
        width: 115%;
        margin-left: -13vw;
    }
}

.hero-text {
    padding: 2.5rem 0;
}

@media (min-width: 992px) {
    .hero-text {
        width: 100%;
        max-width: min(650px, 46%);
        padding: 3rem 0;
    }
}