.hero {
    --hero-background: #212529;
    --hero-background-image: none;
    --hero-overlay: #000000;
    --hero-overlay-opacity: .55;
    --hero-heading: #ffffff;
    --hero-subheading: #ffffff;
    --hero-body: #ffffff;
    position: relative;
    display: flex;
    width: 100%;
    overflow: hidden;
    color: var(--hero-body);
    background-color: var(--hero-background);
    background-image: var(--hero-background-image);
    background-position: center;
    background-size: cover;
    isolation: isolate;
}

.hero--small {
    min-height: 400px;
}

.hero--medium {
    min-height: 600px;
}

.hero--fullscreen {
    min-height: 100vh;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--hero-overlay);
    opacity: var(--hero-overlay-opacity);
}

.hero__container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 3rem;
    width: 100%;
}

.hero--left-text .hero__layout,
.hero--right-text .hero__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.hero--right-text .hero__content {
    order: 2;
}

.hero--right-text .hero__media {
    order: 1;
}

.hero--centered .hero__content {
    width: min(66.6667%, 800px);
}

.hero--centered .hero__container.justify-content-start .hero__content {
    margin-right: auto;
    margin-left: 0;
}

.hero--centered .hero__container.justify-content-center .hero__content {
    margin-inline: auto;
}

.hero--centered .hero__container.justify-content-end .hero__content {
    margin-right: 0;
    margin-left: auto;
}

.hero--centered .hero__media {
    display: none;
}

.hero__heading {
    margin: 0;
    color: var(--hero-heading);
    font-size: 42px;
    font-weight: 300;
    line-height: 1.12;
}

.hero__subheading {
    margin: 1rem 0 0;
    color: var(--hero-subheading);
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.3;
}

.hero__body {
    margin-top: 1.25rem;
    color: var(--hero-body);
    font-size: 1.125rem;
    line-height: 1.65;
    white-space: pre-line;
}

.hero__heading[hidden] + .hero__subheading:not([hidden]),
.hero__heading[hidden] + .hero__subheading[hidden] + .hero__body:not([hidden]) {
    margin-top: 0;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.75rem;
}

.hero__content.text-start .hero__actions {
    justify-content: flex-start;
}

.hero__content.text-center .hero__actions {
    justify-content: center;
}

.hero__content.text-end .hero__actions {
    justify-content: flex-end;
}

.hero__heading[hidden] + .hero__subheading[hidden] + .hero__body[hidden] + .hero__actions {
    margin-top: 0;
}

.hero__media img {
    display: block;
    width: 100%;
    max-height: 500px;
    object-fit: contain;
}

@media (max-width: 767.98px) {
    .hero--centered .hero__content {
        width: 100%;
    }

    .hero--small {
        min-height: 320px;
    }

    .hero--medium {
        min-height: 480px;
    }

    .hero--fullscreen {
        min-height: 100svh;
    }

    .hero--left-text .hero__layout,
    .hero--right-text .hero__layout {
        grid-template-columns: 1fr;
    }

    .hero--right-text .hero__content,
    .hero--right-text .hero__media {
        order: initial;
    }

    .hero__heading {
        font-size: 34px;
    }

    .hero__subheading {
        font-size: 1.35rem;
    }

    .hero__container {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

.cms-preview-shell[data-preview-viewport="tablet"] .hero__container {
    max-width: 720px;
}

.cms-preview-shell[data-preview-viewport="mobile"] .hero--small {
    min-height: 320px;
}

.cms-preview-shell[data-preview-viewport="mobile"] .hero--medium {
    min-height: 480px;
}

.cms-preview-shell[data-preview-viewport="mobile"] .hero--left-text .hero__layout,
.cms-preview-shell[data-preview-viewport="mobile"] .hero--right-text .hero__layout {
    grid-template-columns: 1fr;
}

.cms-preview-shell[data-preview-viewport="mobile"] .hero--right-text .hero__content,
.cms-preview-shell[data-preview-viewport="mobile"] .hero--right-text .hero__media {
    order: initial;
}

.cms-preview-shell[data-preview-viewport="mobile"] .hero--centered .hero__content {
    width: 100%;
}

.cms-preview-shell[data-preview-viewport="mobile"] .hero__heading {
    font-size: 34px;
}

.cms-preview-shell[data-preview-viewport="mobile"] .hero__subheading {
    font-size: 1.35rem;
}

.cms-preview-shell[data-preview-viewport="mobile"] .hero__container {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.cms-hero-action-editor {
    padding: var(--site-space-3);
    border: 1px solid var(--site-color-border);
    border-radius: var(--site-radius-medium);
    background: var(--site-color-background);
}

.cms-hero-conditional-field {
    margin-top: var(--site-space-3);
    padding-top: var(--site-space-3);
    border-top: 1px solid var(--site-color-border);
}

.cms-hero-action-editor + .cms-hero-action-editor {
    margin-top: var(--site-space-3);
}

.cms-hero-action-editor__heading {
    margin: 0 0 var(--site-space-2);
    color: var(--site-color-heading);
    font-size: .82rem;
    font-weight: var(--site-font-weight-bold);
}

.cms-hero-library-item {
    overflow: hidden;
    border: 1px solid var(--site-color-border);
    border-radius: var(--site-radius-medium);
    background: var(--site-color-background);
    box-shadow: var(--site-shadow-small);
    transition: box-shadow var(--site-transition-standard), transform var(--site-transition-standard);
}

.cms-hero-library-item:hover {
    box-shadow: var(--site-shadow-medium);
    transform: translateY(-2px);
}

.cms-hero-library-item__form {
    border-color: var(--site-color-border) !important;
    background: var(--site-color-surface);
}
