.ce_jinews_header {
    padding-bottom: 1rem;  /* 16px */
    margin: 0;
    text-align:center;
}

/* Desktop view */
.ce_jinews_item {
    position: relative;
    width: 100%;
    height: 100%;
    background: white;
    clip-path: polygon(-1% -1%, 101% -1%, 100% calc(100% - 2.8125rem), calc(100% - 2.8125rem) 100%, -1% 101%);
}

.ce_jinews_desktop_image {
    width: 100%;
    height: auto;
}

.ce_jinews_desktop_header {
    padding: 1.5625rem 1.5625rem 0 1.5625rem;  /* top: 25px, right: 25px, bottom: 0, left: 25px */
    margin: 0;
}

.ce_jinews_desktop_subheader {
    padding: 1.25rem 1.5625rem 0 1.5625rem;  /* top: 20px, right: 25px, bottom: 0, left: 25px */
    font-weight: 600;
}

.ce_jinews_desktop_text {
    padding-left: 1.5625rem; /* 25px */
    padding-right: 1.5625rem; /* 25px */
    padding-top: 1.25rem; /* 20px */
    padding-bottom: 3rem; /* 48px */
}

.ce_jinews_desktop_link {
    position: absolute;
    bottom: 0.5rem;
    right: 3.5rem; /* a little more than the width of the red triangle */
    padding-bottom: 0.5rem; /* 8px */
}

.ce_jinews_triangle_red img {
    position: absolute;
    right: -1px;
    bottom: -1px;
    height: 2.875rem;
    width: 2.875rem;
}

/* Mobile view */

.ce_jinews_image_container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

[id^="jiNewsCarousel"] .ce_jinews_image {
    width: 100%;
    height: auto;
}

[id^="jiNewsCarousel"] .ce_jinews_image_container::after {
    z-index: 1;
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 56px; /* not in rem, because image height is not in rem */
    background: black;
    opacity: 0.3;
    pointer-events: none;
}

.ce_jinews_mobile_header {
    padding: 1.5625rem 0 0 0;  /* top: 25px, right: 0, bottom: 0, left: 0 */
    margin: 0;
}

.ce_jinews_mobile_subheader {
    padding: 1.25rem 0 0 0;  /* top: 20px, right: 0x, bottom: 0, left: 0 */
    font-weight: 600;
}

.ce_jinews_mobile_text {
    padding-top: 1.25rem; /* 20px */
}

.ce_jinews_mobile_link {
    padding-top: 1.25rem; /* 20px */
    padding-bottom: 0.5rem; /* 8px */
}

[id^="jiNewsCarousel"] .carousel-indicators {
    z-index: 4;
    position: absolute;
    top: 136px; /* not in rem, because image height is not in rem */
    padding-right: 1rem;
}

[id^="jiNewsCarousel"] .carousel-indicators [data-bs-target] {
    width: 16px; /* not in rem, because image height is not in rem */
    height: 16px; /* not in rem, because image height is not in rem */
    margin-right:8px; /* not in rem, because image height is not in rem */
    border-radius: 50%;
    border: 1px solid white; /* not in rem, because image height is not in rem */
    background: transparent;
}

[id^="jiNewsCarousel"] .carousel-indicators .active {
    background-color: whitesmoke;
}

[id^="jiNewsCarousel"] .carousel-controls {
    z-index: 3;
    position: absolute;
    top: 136px; /* not in rem, because image height is not in rem */
    padding: 7px; /* not in rem, because image height is not in rem */
    width: 100%;
    justify-content: space-between;
}

[id^="jiNewsCarousel"] .carousel-control-prev .icon {
    position: absolute;
    left: 20px; /* not in rem, because image height is not in rem */
}

[id^="jiNewsCarousel"] .carousel-control-next .icon {
    position: absolute;
    right: 20px; /* not in rem, because image height is not in rem */
    padding-right: 1rem;
}