.header.--fixed + .main .at-banner.--fullwidth:first-of-type {
    padding-top: max(var(--articlePadding), var(--headerHeight));
}

.at-banner.--hasBackground,
.at-banner.--hasGradient {
    position: relative;
}

.at-banner.--hasGradient::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #00000026 31%, #520418 96%);
    z-index: 1;
    content:'';
}

.at-banner__inner {
    position: relative;
    padding-inline: var(--pageGutter);
}

.aside .at-banner__inner {
    padding-inline: var(--marginMedium);
}

.at-banner.--fullwidth .at-banner__inner {
    padding-inline: 0;
}

.at-banner.--hasBackground.--fullwidth .at-banner__inner {
    position: static;
}

.at-banner.--light,
.at-banner.--light *:not(.ctaButton),
.buttonStyle--ghost .at-banner.--light *:not(.ctaButton) {
    color: var(--baseLight100);
}

.at-banner__contentWrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    position: relative;
    padding-bottom: var(--marginLarge);
    z-index: 10;
}

.at-banner__contentWrapper.--isCenterAligned {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.at-banner__title:not(:only-child) {
    margin-bottom: 1.2rem;
}

.at-banner__contentWrapper.--isCenterAligned .at-banner__title {
    max-width: 48rem;
}

.at-banner__contentWrapper.--isCenterAligned .at-banner__text {
    max-width: 25rem;
    margin-bottom: var(--marginMedium);
}

.at-banner__preTitle {
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: clamp(1.125rem, 4vw, 1.75rem);
    font-family: var(--headingsFont);
}

/**
 * Button wrapper
 */

.at-banner__buttonWrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.at-banner__contentWrapper.--isCenterAligned .at-banner__buttonWrapper {
    justify-content: center;
}

/*
 * Image wrapper
 */

.at-banner__imageWrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.at-banner__imageWrapper.--hasOverlay .at-banner__image.--grayscale {
    filter: grayscale(1);
}

.at-banner__imageWrapper.--hasOverlay::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 10;
}

.Article:not(.--fullwidth) .at-banner__inner {
    overflow: clip;
    border-radius: var(--borderRadiusMedium);
}

.at-banner__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.at-banner__shapeWrapper {
    overflow: hidden;
    position: absolute;
    left: 0;
    width: 100%;
    line-height: 0;
    bottom: -1px;
    z-index: 2;
    transform: rotate(180deg);
}

.at-banner__shape {
    display: block;
    position: relative;
    left: 50%;
    width: calc(256% + 1.3px);
    height: 134px;
    transform: translateX(-50%) rotateY(180deg);
}

.at-banner__shapeFill {
    fill: #fff;
    transform-origin: center;
    transform: rotateY(0deg);
}

/**
 * Fullwidth with a color but without a article background color
 */

.at-banner.--fullwidth [style*='min-height: 15svh;'] {
    padding-block: 0;
}

@media (min-width: 768px) {
    .at-banner__title,
    .at-banner__text {
        max-width: 59%;
    }
}
