.ugm-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    isolation: isolate;
    font-family: "Be Vietnam Pro", Arial, sans-serif;
    background: #eee;
}

.ugm-hero--home {
    height: clamp(330px, 51.23vw, 648px);
    max-height: 648px;
}

.ugm-hero--polypropylene,
.ugm-hero--legacy {
    height: 617px;
}

.ugm-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease, visibility 0s linear .8s;
}

.ugm-hero__slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.ugm-hero__picture,
.ugm-hero__picture img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.ugm-hero__picture img {
    object-fit: cover;
    transform: scale(1.08);
}

.ugm-hero__slide.is-active .ugm-hero__picture img {
    animation: ugm-hero-pan 10s linear forwards;
}

.ugm-hero__shade {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(245, 239, 235, .8);
}

.ugm-hero__content {
    position: absolute;
    z-index: 2;
    top: 148px;
    left: max(0px, calc((100% - 1265px) / 2));
    width: 700px;
    color: #000;
}

.ugm-hero--polypropylene .ugm-hero__content {
    top: 136px;
}

.ugm-hero__eyebrow {
    display: inline-block;
    margin-left: 0;
    padding: 7px 12px 7px 10px;
    border-left: 4px solid #ff7925;
    border-radius: 3px;
    color: #202020;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .18);
    font-size: 13px;
    font-weight: 700;
    line-height: 20px;
    text-transform: uppercase;
}

.ugm-hero__title,
.ugm-hero__subtitle {
    width: 700px;
    box-sizing: border-box;
    color: #000;
    background: rgba(255, 255, 255, .9);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}

.ugm-hero__title {
    margin-top: 28px;
    padding: 20px 20px 20px 39px;
    font-family: Jost, Arial, sans-serif;
    font-size: 59px;
    font-weight: 500;
    line-height: 78px;
    text-transform: uppercase;
}

.ugm-hero--polypropylene .ugm-hero__title {
    margin-top: 40px;
    font-size: 39px;
    line-height: 59px;
}

.ugm-hero__subtitle {
    margin-top: 20px;
    padding: 20px 20px 20px 40px;
    font-size: 25px;
    line-height: 30px;
}

.ugm-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 226px;
    height: 52px;
    box-sizing: border-box;
    margin-top: 30px;
    padding: 17px 30px;
    border-radius: 4px;
    color: #fff;
    background: #ff7925;
    font-family: Jost, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 17px;
    text-decoration: none;
    transition: background-color .2s ease;
}

.ugm-hero__button:hover,
.ugm-hero__button:focus-visible {
    color: #fff;
    background: #ff8a1b;
}

.ugm-hero__slide.is-active .ugm-hero__content > * {
    animation: ugm-hero-content-in .7s both;
}

.ugm-hero__slide.is-active .ugm-hero__title {
    animation-delay: .12s;
}

.ugm-hero__slide.is-active .ugm-hero__subtitle {
    animation-delay: .24s;
}

.ugm-hero__slide.is-active .ugm-hero__button {
    animation-delay: .36s;
}

@keyframes ugm-hero-pan {
    from { transform: scale(1.08); }
    to { transform: scale(1); }
}

@keyframes ugm-hero-content-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
    .ugm-hero--home {
        height: 330px;
    }

    .ugm-hero--polypropylene,
    .ugm-hero--legacy {
        height: 621px;
    }

    .ugm-hero__shade {
        display: block;
    }

    .ugm-hero__content {
        top: 34px;
        left: 0;
        width: 100%;
        text-align: center;
    }

    .ugm-hero--polypropylene .ugm-hero__content {
        top: 136px;
        text-align: left;
    }

    .ugm-hero__eyebrow {
        display: block;
        width: max-content;
        max-width: calc(100% - 30px);
        box-sizing: border-box;
        margin-left: 15px;
        padding: 5px 9px 5px 7px;
        font-size: 12px;
        line-height: 18px;
        text-align: left;
    }

    .ugm-hero__title {
        width: calc(100% - 30px);
        margin: 22px 15px 0;
        padding: 5px 5px 5px 12px;
        font-size: 27px;
        line-height: 33px;
        text-align: center;
        box-shadow: 0 6px 18px rgba(0, 0, 0, .16);
    }

    .ugm-hero__subtitle {
        width: calc(100% - 30px);
        margin: 20px 15px 0;
        padding: 7px 7px 7px 15px;
        font-size: 18px;
        line-height: 22px;
        text-align: center;
        box-shadow: 0 6px 18px rgba(0, 0, 0, .16);
    }

    .ugm-hero__button {
        height: 48px;
        margin-top: 30px;
        padding: 15px 30px;
    }

    .ugm-hero--polypropylene .ugm-hero__eyebrow {
        display: block;
        width: max-content;
        max-width: calc(100% - 30px);
        margin: 0 15px;
        padding-left: 7px;
        text-align: left;
    }

    .ugm-hero--polypropylene .ugm-hero__title {
        width: 202px;
        margin: 32px 0 0 15px;
        padding: 5px 5px 5px 12px;
        font-size: 33px;
        line-height: 33px;
        text-align: left;
    }

    .ugm-hero--polypropylene .ugm-hero__subtitle {
        width: 259px;
        margin: 20px 0 0 15px;
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ugm-hero__slide,
    .ugm-hero__picture img,
    .ugm-hero__content > * {
        animation: none !important;
        transition: none !important;
    }
}
