.masthead--homepage {
    position: relative;
    margin-bottom: 25px;
}

.masthead--homepage > .container {
    position: relative;
}

.masthead--homepage::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    opacity: 0.7;
    z-index: 1;
}

.masthead--homepage::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 25px;
    background-color: var(--white);
    z-index: 1;
}

.masthead--homepage:has(+ .bg-light)::after,
.wp-block:has(+ .wp-block > .bg-light) .masthead--homepage::after {
    background-color: var(--light);
}

.masthead--homepage:has(+ .bg-medium)::after,
.wp-block:has(+ .wp-block > .bg-medium) .masthead--homepage::after {
    background-color: var(--medium);
}

.masthead--homepage:has(+ .bg-dark)::after,
.wp-block:has(+ .wp-block > .bg-dark) .masthead--homepage::after {
    background-color: var(--dark);
}

.masthead__slider,
.masthead__slider * {
    width: 100%;
    height: 100%;
}

.masthead__text-slider:not(.slick-initialized) .masthead__slide:not(:first-child) {
    display: none;
}

.masthead__image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
}

.masthead.masthead--homepage .masthead__image img {
    object-position: right;
}

.masthead.masthead--homepage .masthead__image::before {
    display: none;
}

.masthead__video {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.masthead__video video,
.masthead__video iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.masthead__image::before,
.masthead--landing-page .masthead__image::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: var(--linear-black);
    z-index: 1;
}

.masthead--landing-page .masthead__image::before {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.60) 0%, rgba(0, 0, 0, 0.60) 100%);
}

.masthead__image img {
    display: block;
}

.masthead.masthead--homepage .masthead__text {
    position: relative;
    padding: 56px 0 65px 0;
    z-index: 2;
}

.masthead.masthead--homepage .masthead__text .btn-group {
    justify-content: center;
    align-items: center;
}

.masthead--homepage__wrap {
    text-align: center;
}

.masthead__text .sub-heading,
.masthead__text .sub-heading * {
    color: var(--secondary-color);
}

.masthead__text-image {
    position: relative;
    max-width: 664px;
    margin: 64px auto 0;
}

.masthead__text-image img {
    width: calc(100% - 27px);
    height: 354px;
    display: block;
    margin-left: auto;
    object-fit: cover;
    border-radius: 100px 30px;
}

.masthead__text-image::before {
    content: "";
    position: absolute;
    left: 0;
    top: 17px;
    width: calc(100% - 27px);
    height: 100%;
    border-radius: 100px 30px;
    border: 3px solid var(--secondary-color);
}

.masthead--homepage .masthead__text h1 {
    margin: 0 0 30px;
    padding: 0;
    font-size: 38px;
    color: var(--white);
}

.masthead__text h4 {
    margin: 0 0 var(--paragraph-spacing);
    padding: 0;
    font-size: 16px;
    line-height: 1.26em;
    color: var(--white);
    text-transform: uppercase;
    font-weight: 700;
}

.masthead__text p {
    color: var(--white);
}

.masthead__text .btn-tertiary {
    color: var(--white);
    border-color: var(--white);
}

.masthead:has(+ .bg-white) .masthead__wave path,
.wp-block:has(+ .wp-block > .bg-white) .masthead__wave path {
    fill: var(--white);
}

.masthead:has(+ .bg-light) .masthead__wave path,
.wp-block:has(+ .wp-block > .bg-light) .masthead__wave path {
    fill: var(--light);
}

.masthead:has(+ .bg-medium) .masthead__wave path,
.wp-block:has(+ .wp-block > .bg-medium) .masthead__wave path {
    fill: var(--medium);
}

.masthead:has(+ .bg-dark) .masthead__wave path,
.wp-block:has(+ .wp-block > .bg-dark) .masthead__wave path {
    fill: var(--dark);
}

.masthead.masthead--homepage .masthead__awards-logo {
    position: relative;
    left: 0;
    bottom: -24px;
    background: var(--white);
    padding: 12px 22px;
    border-radius: 10px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    box-shadow: var(--drop-shadow);
    z-index: 2;
}

.masthead.masthead--homepage .slick__arrows-custom {
    margin-top: 25px;
    align-items: center;
    justify-content: center;
}

/* @media ( max-width: 767px ) {
    .masthead--homepage::after {
        content: '';
        height: 10vh;
        width: 100%;
        background: var(--white);
        z-index: 1;
        position: absolute;
        bottom: -1px;
    }
} */

.masthead__video-mobile {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

@media (min-width: 768px){
    .masthead.masthead--homepage .masthead__text {
        padding: 84px 0;
    }

    .masthead__text__wrap {
        max-width: 547px;
    }
    
    .masthead--homepage .masthead__text h1 {
        font-size: 45px;
        line-height: 1.2em;
    }

    .masthead.masthead--homepage .slick__arrows-custom .slick-arrow {
        background: var(--primary-color);
    }

    .masthead.masthead--homepage .slick__arrows-custom {
        position: absolute;
        bottom: -5px;
        left: 15px;
    }

    .masthead.masthead--homepage .masthead__text .btn-group {
        gap: 16px 32px;
    }

    .masthead.masthead--homepage .masthead__awards-logo {
        width: max-content;
        margin: 0 auto;
        padding: 8px 14px;
    }

    .masthead--homepage::after {
        bottom: -10px;
    }
}

@media (min-width: 1200px) {


    .masthead--homepage .masthead__text .slick-track {
        padding-bottom: 40px;
    }
    
    .masthead.masthead--homepage .masthead__text {
        padding: 150px 0 110px;
    } 

    .masthead--homepage__flex {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .masthead__text-image {
        position: relative;
        width: 529px;
        margin: 0 0 0 auto;
        height: 450px;
    }

    .masthead__text-image img {
        width: calc(100% - 22px);
        height: 100%;
    }

    .masthead__text-image::before {
        top: 21px;
    }
    
    .masthead--homepage .masthead__text {
        padding: 150px 0;
    }

    .masthead__text-wrap {
        width: 50%;
        text-align: left;
        padding-top: 20px;
    }

    .masthead__text__wrap {
        max-width: 724px;
    }

    .masthead.masthead--homepage .masthead__text .btn-group {
        justify-content: flex-start;
    }
    
    .masthead--homepage .masthead__text h1 {
        font-size: 80px;
    }

    .masthead.masthead--homepage .masthead__awards-logo {
        bottom: -20px;
        margin: unset;
        padding: 8px 16px;
    }

    .masthead.masthead--homepage .masthead__image img {
        object-position: center;
    }

    .masthead.masthead--homepage .masthead__awards-logo img {
        max-width: 100%;
        height: auto;
    }

    .masthead__text__flex {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .masthead__text__flex .masthead__text__wrap {
        max-width: 100%;
        width: calc(100% - 507px);
        padding-right: 38px;
        padding-top: 60px;
    }

    .masthead__text .btn-tertiary:hover {
        color: var(--dark);
    }
}

@media ( min-width: 1367px ) {
    .masthead.masthead--homepage .masthead__awards-logo {
        left: var(--bs-gutter-x, 21px);
    }
}

.masthead__awards-logo__col:first-child {
    width: 150px;
}