/* Gap between the columns rather than padding on each, so the row's outer edges
   line up flush with the blocks above and below. */
.cps-banner-row {
    display: flex;
    gap: 20px;
    width: 100%;
    margin: 10px 0;
    isolation: isolate;
}

/* Every column is a square, so all three blocks are the same height without
   hard-coding one: the columns are equal width, and width drives height. */
.cps-banner-col {
    flex: 1 1 0;
    min-width: 0;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
}

.cps-banner-col .cps-banner__link,
.cps-banner-col .cps-post-slider {
    flex: 1;
    min-height: 0;
}

@media (max-width: 1024px) {
    .cps-banner-row {
        flex-direction: column;
    }
}

/* Banner — supplied artwork already carries its own text and button, so it is
   shown whole, unframed and uncropped. */
.cps-banner__link {
    display: block;
}

.cps-banner {
    position: relative;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    overflow: hidden;
}

/* Post slider */
.cps-post-slider {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px 35px;
    position: relative;
    background: #fff;
    overflow: hidden;
}

.cps-post-slider .owl-nav {
    margin: 0;
}

.cps-post-slider .owl-nav button.owl-prev,
.cps-post-slider .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: transparent !important;
    color: #333 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border-radius: 0;
}

.cps-post-slider .owl-nav button.owl-prev {
    left: 5px;
}

.cps-post-slider .owl-nav button.owl-next {
    right: 5px;
}

.cps-post-slider .owl-nav button.owl-prev:hover,
.cps-post-slider .owl-nav button.owl-next:hover {
    background: transparent !important;
    opacity: 0.6;
}

.cps-post-slide__image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}

.cps-post-slide__title {
    font-size: 1em;
    font-weight: 700;
    margin: 8px 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cps-post-slide__title a,
.cps-post-slide__title a:hover,
.cps-post-slide__title a:focus {
    color: inherit !important;
    text-decoration: none !important;
    font-weight: 700 !important;
}

.cps-post-slide__excerpt {
    font-size: 0.9em;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cps-post-slide__cta {
    margin-top: 8px;
}

.cps-post-slide__cta .button {
    border-radius: 10px;
}

/* Optional caption (see the cps_banner_show_caption filter): centred at the bottom on a full-width dark strip, no overlay on the picture. */
.cps-banner__caption {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; box-sizing: border-box;
    color: #fff; font-size: 1.6em; font-weight: 600; line-height: 1.25; text-align: center; padding: .6em 1em;
    background: rgba(0, 0, 0, .55);
}
