custom-banner {
    display: none;
    width: 100%;
}

custom-banner.custom-banner-border-top {
    border-top: 1px solid var(--color-brd-soft);
}

custom-banner.custom-banner-border-top .custom-banner-head {
    padding-top: 20px;
}

custom-banner.custom-banner-border-bottom {
    border-bottom: 1px solid var(--color-brd-soft);
    padding-bottom: 20px;
}

.custom-banner-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 0 20px 0;
    font-family: var(--font1);
}

.custom-banner-head.center {
    justify-content: center;
}

.custom-banner-heading,
.custom-banner-counter {
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--color-typ);
    opacity: 0.8;
}

.custom-banner-swiper {
    width: 100%;
    overflow: hidden;
}

custom-banner figcaption {
    margin-top: 6px;
}

custom-banner:has(.custom-banner-head.center) figcaption {
    text-align: center;
}

section[data-banner="all-articles"] + *,
section[data-banner="newsletter"] + * {
    margin-top: 2rem !important;
}

/* Styles for mobile */
@media (max-width: 767px) {
    custom-banner.custom-banner-border-top .custom-banner-head {
        padding-top: 12px;
    }

    custom-banner.custom-banner-border-bottom {
        padding-bottom: 12px;
    }

    .custom-banner-head {
        padding: 0 0 12px 0;
    }
}
