#hero {
    height: 100vh;
    overflow: hidden;
    position: relative;
    min-height: 950px;
}

/* HERO WITH NEW CLASS ARE THE HERO STYLES THAT CHANGED ON 11/13. TO REVERT JUST REMOVE STYLES WITH NEW CLASS.  */
/* ALSO CHANGED OVERLAY CLASSES- ORIGONALLY 2 DIFERENT OVERLAYS IN ACF- OVERLAY-RIGHT AND OVERLAY-TOP. NOW ITS JUST OVERALAY. */
.home #hero.new {
    min-height: 825px;
}

.admin-bar #hero {
    height: calc(100vh - 32px);
}

#hero .hero__overlay {
    position: absolute;
    z-index: 10;
    top: 0;
    left: 0;
    width: 100%;
    height: 15%;
    background: linear-gradient(0deg, transparent, black);
}

#hero .carousel-content {
    position: absolute;
    bottom: 200px;
    right: 0;
    padding: 64px;
    width: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 9;
}

#hero .carousel-content h2 {
    font-size: 20px;
    margin-bottom: 48px;
    color: #fff;
    text-transform: uppercase;
    font-family: "Cachet Bold", sans-serif;
}

.home #hero.new .carousel-content h2 {
    color: var(--black);
}

.home #hero.new .carousel-content p,
.home #hero.new .carousel-content h2 {
    color: var(--black);
}

.home #page.teal-yellow #hero.new .carousel-content .text-primary {
    color: var(--teal) !important;
}

.home #page.teal-yellow #hero.new .carousel-content .btn.text-secondary.fill {
    background: var(--lorange) !important;
}

.home #page.red-yellow #hero.new .carousel-content .btn.text-secondary.fill {
    background: var(--lorange) !important;
}

#hero .carousel-content h3 {
    font-family: "Cachet Book", sans-serif;
    font-size: 60px;
    line-height: 1;
    margin-bottom: 48px;
    color: white;
    transition: color 1s ease;
}

#hero .carousel-content p {
    font-family: "Cachet Extra Light", sans-serif;
    font-size: 20px;
    color: #fff;
    font-weight: 100;
    line-height: 28px;
    margin-bottom: 48px;
}

#hero .carousel-content .btn {
    font-family: "Cachet Bold", sans-serif;
    font-size: 15px;
    font-weight: 100;
    line-height: 28px;
    padding: 8px 32px;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 1000px;
    width: fit-content;
    border: none;
    color: #fff;
    transition: background-color 1s ease;
}

#hero .carousel-content .btn:hover {
    transition-delay: 0s;
}

#hero .carousel-inner {
    height: 100%;
    background-size: cover;
    background-position: center;
}

#hero .global-alert {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    bottom: 0;
    left: 0;
    width: 100%;
    color: white;
    margin: 0;
    border-radius: 0;
    text-align: center;
    padding: 16px;
    transition: background-color 1s ease;
    font-family: "Cachet Book", sans-serif;
    line-height: 1.2;
    background: var(--mblue);
}

#hero .global-alert .icon {
    font-size: 2em;
    margin-right: 16px;
}

#hero .carousel-item {
    display: block;
    margin-right: 0;
    opacity: 1;
    float: unset;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(0 0, 0% 0, -500px 100%, 0 100%);
    transition: 1s ease clip-path;
    transition-delay: 1s;
    z-index: 1;
}

#hero .carousel-item.overlay-top::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent);
    z-index: 8;
}

#hero .carousel-item.overlay-right::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: 650px;
    height: 100%;
    background: linear-gradient(270deg, rgba(0, 0, 0, 0.8), transparent);
    z-index: 8;
}

#hero .carousel-item.active,
#hero .carousel-item.carousel-item-next {
    clip-path: polygon(0 0, calc(150% + 200px) -50%, 100% 100%, 0 100%);
    transition-delay: 0s;
    z-index: 2;
}

#hero .carousel-item.carousel-item-next {
    z-index: 3;
}

#hero .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Top row */
.home #hero .carousel-item.img-top-left img {
    object-position: left top;
}

.home #hero .carousel-item.img-top-center img {
    object-position: center top;
}

.home #hero .carousel-item.img-top-right img {
    object-position: right top;
}

/* Center row */
.home #hero .carousel-item.img-center-left img {
    object-position: left center;
}

.home #hero .carousel-item.img-center img {
    object-position: center center;
}

/* unchanged */
.home #hero .carousel-item.img-center-right img {
    object-position: right center;
}

/* Bottom row */
.home #hero .carousel-item.img-bottom-left img {
    object-position: left bottom;
}

.home #hero .carousel-item.img-bottom-center img {
    object-position: center bottom;
}

.home #hero .carousel-item.img-bottom-right img {
    object-position: right bottom;
}

#hero .carousel-indicators {
    position: absolute;
    bottom: 112px;
    right: 64px;
    left: unset;
    width: calc(600px - 128px);
    margin: 0;
    justify-content: flex-start;
    padding-left: 16px;
    z-index: 4;
}

#content #hero .scroll-text {
    z-index: 4;
    bottom: 6rem;
}

@keyframes orbit-and-fade {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
        opacity: 0;
    }
}

#hero .carousel-indicators li {
    width: 8px;
    height: 8px;
    border-radius: 1000px;
    background-color: white;
    border: none;
    transition: 0.5s ease background-color;
    margin: 0;
    margin-right: 16px;
    position: relative;
}

#hero .carousel-indicators li::after {
    content: "";
    display: block;
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    border-radius: 1000px;
    background-color: white;
    z-index: 1;
    transform-origin: 0 -8px;
    margin-top: 10px;
}

#hero .carousel-indicators li::before {
    content: "";
    display: block;
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    width: 23px;
    height: 23px;
    border-radius: 1000px;
    border: 4px solid var(--mblue);
}

#hero .carousel-indicators li.active::before,
#hero .carousel-indicators li.active::after {
    opacity: 1;
    animation: orbit-and-fade 1s ease forwards;
}

#hero .carousel-indicators li:not(.active)::before #hero .carousel-indicators li:not(.active)::after {
    background-color: transparent;
}

@media (max-width: 992px) {
    #hero .carousel-item.overlay-right::before {
        width: 100%;
        background: linear-gradient(90deg, rgba(0, 0, 0, 0.8), transparent);
    }

    #hero .carousel-content {
        right: unset;
        left: 0;
        top: 100px;
    }

    #hero .carousel-indicators {
        right: unset;
        left: 56px;
        bottom: 128px;
    }

    #hero .hero__overlay {
        display: none;
    }

    #hero .global-alert .text-start {
        font-size: 14px;
    }
}

@media (max-width: 2800px) {
    .home #hero.new .carousel-item.overlay-right::before {
        background: linear-gradient(0deg, rgba(255, 255, 255, 1), transparent);
        width: 100%;
        height: 65%;
        top: unset;
        bottom: 0;
    }

    .home #hero.new .carousel-content h3 {
        margin-bottom: 0.5rem;
        font-weight: 600;
    }

    .home #hero.new .carousel-content h2 {
        margin-bottom: 0.5rem;
        font-size: 32px;
        text-shadow: 2px 2px 8px #fff;
    }

    .home #hero.new .carousel-content p {
        margin-bottom: 1rem;
        display: none;
    }

    .home #hero.new .carousel-content {
        padding: 0 2rem;
        max-width: 100%;
        width: 100%;
        text-align: center;
        height: auto;
        top: unset;
        bottom: 8.5rem;
        left: 0;
        align-items: center;
    }

    .home #hero.new .carousel-indicators {
        left: 0;
        bottom: 115px;
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    .home #hero.new .carousel-indicators li {
        background-color: #bbb;
    }
}

@media (max-width: 1000px) {
    .home #hero.new .carousel-content h3 {
        font-size: 30px;
    }

    .home #hero.new .carousel-content h2 {
        font-size: 20px;
    }
}

@media (max-width: 550px) {
    .home #hero.new .carousel-content {
        bottom: 10rem;
    }

    .home #hero.new .carousel-indicators {
        bottom: 140px;
    }

    .home #hero.new .carousel-content h2 {
        text-shadow: 2px 2px 10px #fff;
    }
}

@media (max-width: 768px) {
    #hero {
        min-height: 850px;
    }

    #hero .carousel-content h3 {
        font-size: 40px;
    }

    #hero .carousel-content h2,
    #hero .carousel-content p {
        font-size: 15px;
    }

    #hero .global-alert {
        text-align: left;
    }

    #hero .carousel-content {
        padding: 0 2rem;
        top: 250px;
        max-width: 100%;
        height: auto;
    }

    #hero .carousel-indicators {
        left: 20px;
        bottom: 140px;
    }
}