.at-intro.--hasBackground + .postListCarousel {
    margin-top: calc(-1 * var(--articlePadding));
    padding-bottom: 4rem;
    background-color: var(--primaryColor200);
}

/**
 * Controls
 */

.postListCarousel {
    .carousel__navigationWrapper {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: center;
        gap: var(--gridGutter);
        width: 100%;
        margin-block: var(--marginMedium) 10px;
    }

    .u-buttonWrapper:has(.swiper-button-disabled + .swiper-button-disabled) {
        display: none;
    }

    &.swiper {
        padding: 1px;
    }

    & .postList {
        gap: 0;
    }

    & .postListPost {
        height: auto;
    }

    & .swiper-pagination {
        top: unset;
        bottom: unset;
    }

    & .swiper-pagination-bullet {
        border-radius: var(--borderRadiusSmall);
        transition: width 0.3s ease-in-out;
        background: var(--dynamoTeal);
    }

    & .swiper-pagination-bullet-active {
        width: var(--marginMedium);
        background: var(--primaryColor500);
    }

    .at-articleContainer.--light & .swiper-pagination-bullet-active {
        background: var(--baseLight100);
    }

    & .swiper-css-mode > .swiper-wrapper {
        overflow: clip;
    }

    & .u-buttonWrapper {
        flex-wrap: nowrap;
        justify-content: flex-end;
        flex-direction: row;
    }

    & .swiper-button-next,
    & .swiper-button-prev {
        position: static;
        margin-top: 0;
        display: flex;
        display: block;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 4px;
        font-family: var(--iconFont);
        background: url(../../../../img/button-arrow.svg) no-repeat;
        border: none;
    }

    & .swiper-button-next {
        right: 0;
    }

    & .swiper-button-prev {
        left: 0;
        transform: rotate(180deg);
    }

    & .swiper-button-next::after,
    & .swiper-button-prev::after {
        content: '';
    }

    & .postList__moreLink {
        white-space: nowrap;
        margin-inline: 0 auto;
    }
}

:is(.postListCarouselLarge, .postListCarouselLargeHalfPage) {
    .postListPost {
        gap: var(--marginSmallMedium);
    }

    .postListPost__image {
        order: 0;
        margin-block: auto 0;
    }

    .postListPost__imageLarge {
        width: 100%;
        border-radius: var(--borderRadiusSmall);
    }

    .postListPost__authorFunction {
        display: block;
    }

    .postListPost__authorLink {
        position: relative;
        text-decoration: none;
        z-index: 101;
    }

    .carousel__navigationWrapper {
        flex-direction: row;
    }

    body & .swiper-pager {
        position: absolute;
        width: auto;
        left: auto;
        right: 0;
        bottom: 19px;
        top: auto;
    }

    & .swiper-pagination-bullet-active {
        width: var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));
    }
}

@media (min-width: 990px) {
    .at-articleContainer__article:has(.postListCarouselLargeHalfPage) {
        width: calc((100vw - var(--gridGutter) - 17px) / 2);
    }

    body .postListCarouselLarge .swiper-pager,
    body .postListCarouselLargeHalfPage .swiper-pager {
        right: 20px;
    }
}
