.c-hero {
    position: relative;
    z-index: 1;

    &::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 50%;
        background: linear-gradient(to bottom, rgba(0, 0, 0, .5), rgba(0, 0, 0, .0125));
        z-index: -1;
    }

    &.c-hero--live-section {
        @apply bg-gray-900;

        padding-bottom: 16rem;
    }

    @screen md {
        &.c-hero--live-section {
            padding-bottom: 0;
        }
    }
}

.c-hero__decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
}

.c-hero__image {
    display: block;
    position: relative;
    object-fit: cover;
    width: 100%;
    height: 30rem;
    z-index: -2;

    @screen lg {
        height: 40rem;
    }

    .c-hero--live-section & {
        height: 100vh;
    }
}

.c-hero__image-container {
    position: relative;

    .c-hero--live-section & {
        height: 100vh;

        &::after {
            content: '';
            position: absolute;
            display: block;
            bottom: 0;
            left: 0;
            right: 0;
            top: 50%;
            background: linear-gradient(to bottom, rgba(51, 51, 51, .0125), rgba(51, 51, 51, 1));
            z-index: -1;
        }
    }

    @screen md {
        .c-hero--live-section & {
            &::after {
                background: linear-gradient(to bottom, rgba(0, 0, 0, .0125), rgba(0, 0, 0, .95));
            }
        }
    }
}

.c-hero__icon {
    max-width: 50px;
}

.c-hero__text {
    display: flex;
    position: absolute;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 52rem;
    margin-left: auto;
    margin-right: auto;
    color: #fff;
    text-align: center;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 0 3rem;
    z-index: 1;
}

.c-hero__title {
    font-family: 'HeadingFontFamily', 'BaseFontFamily', serif;
    font-size: $heading-font-size--225;
    margin-top: 0;
    margin-bottom: 0;

    // Inline Font-Family overrides
    .font-base {
        font-family: 'BaseFontFamily', serif;
    }

    .font-headline {
        font-family: 'HeadingFontFamily', serif;
    }

    .font-decorative {
        font-family: 'DecorativeFontFamily', serif;
    }

    @screen md {
        font-size: $heading-font-size--3;
    }

    @screen lg {
        font-size: $heading-font-size--4;
    }
}

p.c-hero__title {
    text-transform: none;
    line-height: 1;
}

.c-hero__subtitle {
    font-size: 1.25em;
    max-width: 42rem;
    margin-top: 1rem;

    // Inline Font-Family overrides
    .font-base {
        font-family: 'BaseFontFamily', serif;
    }

    .font-headline {
        font-family: 'HeadingFontFamily', 'BaseFontFamily', serif;
    }

    .font-decorative {
        font-family: 'DecorativeFontFamily', 'BaseFontFamily', serif;
    }
}

.c-hero__button {
    margin-top: 2.5rem;
}

.c-hero__badge {
    position: absolute;
    right: 0;
    bottom: 0;
    margin: 0 1rem 5rem 0;

    img {
        width: 6rem;
    }

    @screen lg {
        margin: 0 3rem 4rem 0;

        img {
            width: 8rem;
        }
    }
}

.c-hero__badge--left {
    left: 0;
    margin: 0 0 5rem 1rem;

    @screen lg {
        margin: 0 0 4rem 3rem;
    }
}

.c-hero.tb-swiper__slide {
    .c-hero__text {
        top: 40%;
        bottom: 1rem;
        margin-left: 1rem;
        align-items: baseline;
        justify-content: flex-start;
        text-align: left;

        @media screen and (min-width: 30rem) {
            bottom: 0;
            top: 55%;
        }

        @screen md {
            margin-left: 5rem;
        }

        @screen lg {
            margin-left: 7rem;
        }
    }
}
