/** CAL4J Eventcards frontend layout. */
.cal4j-eventcards-surface {
    display: block;
    position: relative;
    isolation: isolate;
    container-name: cal4j-eventcards;
    container-type: inline-size;
    min-width: 0;
    min-height: var(--cal4j-eventcards-surface-min-height, 80px);
    margin: var(--cal4j-eventcards-surface-margin, 0);
    padding: var(--cal4j-eventcards-surface-padding, 24px);
    overflow: hidden;
    box-sizing: border-box;
    border-width: var(--cal4j-eventcards-surface-border-width, 0);
    border-style: var(--cal4j-eventcards-surface-border-style, solid);
    border-color: var(--cal4j-eventcards-surface-border-color, transparent);
    border-radius: var(--cal4j-eventcards-surface-radius, 16px);
    background-color: var(--cal4j-eventcards-surface-background-color, transparent);
    box-shadow: none;
}

.cal4j-eventcards-surface::before,
.cal4j-eventcards-surface::after,
.cal4j-eventcards-news-tile::before,
.cal4j-eventcards-news-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

.cal4j-eventcards-surface::before {
    z-index: 0;
    background-image: var(--cal4j-eventcards-surface-image, none);
    background-position: var(--cal4j-eventcards-surface-image-position, center center);
    background-size: var(--cal4j-eventcards-surface-image-size, cover);
    background-repeat: var(--cal4j-eventcards-surface-image-repeat, no-repeat);
    opacity: var(--cal4j-eventcards-surface-image-opacity, 1);
}

.cal4j-eventcards-surface::after {
    z-index: 1;
    background-image: var(--cal4j-eventcards-surface-overlay, none);
}

.cal4j-eventcards-news-grid {
    display: grid;
    position: relative;
    z-index: 2;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 16px;
    width: 100%;
    min-width: 0;
    min-height: clamp(320px, 32vw, 460px);
    min-height: clamp(320px, 32cqw, 460px);
}

.cal4j-eventcards-news-grid--count-1 {
    grid-template-columns: minmax(0, 1fr);
    min-height: clamp(260px, 30vw, 420px);
    min-height: clamp(260px, 30cqw, 420px);
}

.cal4j-eventcards-news-grid__side {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 16px;
    min-width: 0;
    min-height: 0;
}

.cal4j-eventcards-news-grid--count-2 .cal4j-eventcards-news-grid__side {
    grid-template-rows: minmax(0, 1fr);
}

.cal4j-eventcards-news-tile {
    display: flex;
    position: relative;
    isolation: isolate;
    align-items: flex-start;
    min-width: 0;
    min-height: var(--cal4j-eventcards-tile-min-height, 0);
    margin: var(--cal4j-eventcards-tile-margin, 0);
    overflow: hidden;
    box-sizing: border-box;
    border-width: var(--cal4j-eventcards-tile-border-width, 1px);
    border-style: var(--cal4j-eventcards-tile-border-style, solid);
    border-color: var(--cal4j-eventcards-tile-border-color, rgba(11, 79, 138, .10));
    border-radius: var(--cal4j-eventcards-tile-radius, 12px);
    background-color: var(--cal4j-eventcards-tile-background-color, rgba(255, 255, 255, .88));
}

.cal4j-eventcards-news-tile::before {
    z-index: 0;
    background-image: var(--cal4j-eventcards-tile-image, none);
    background-position: var(--cal4j-eventcards-tile-image-position, center center);
    background-size: var(--cal4j-eventcards-tile-image-size, cover);
    background-repeat: var(--cal4j-eventcards-tile-image-repeat, no-repeat);
    opacity: var(--cal4j-eventcards-tile-image-opacity, 1);
}

.cal4j-eventcards-news-tile::after {
    z-index: 1;
    background-image: var(--cal4j-eventcards-tile-overlay, none);
}

.cal4j-eventcards-news-tile__content {
    display: flex;
    position: relative;
    z-index: 2;
    flex-direction: column;
    align-self: stretch;
    width: 100%;
    min-width: 0;
    min-height: 100%;
    padding: var(--cal4j-eventcards-tile-padding, clamp(18px, 2.2vw, 32px));
    box-sizing: border-box;
}

.cal4j-eventcards-news-tile--side .cal4j-eventcards-news-tile__content {
    padding: var(--cal4j-eventcards-tile-padding, clamp(16px, 1.6vw, 24px));
}

.cal4j-eventcards-news-tile__title {
    margin: 0;
    color: #243043;
    font-size: clamp(1.15rem, 1.8vw, 1.65rem);
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.cal4j-eventcards-news-tile--featured .cal4j-eventcards-news-tile__title {
    color: var(--cal4j-eventcards-featured-title-color, #243043);
    font-family: var(--cal4j-eventcards-featured-title-font-family, inherit);
    font-size: var(--cal4j-eventcards-featured-title-font-size, 38px);
    font-weight: var(--cal4j-eventcards-featured-title-font-weight, 700);
    line-height: var(--cal4j-eventcards-featured-title-line-height, 1.2);
}

.cal4j-eventcards-news-tile--side .cal4j-eventcards-news-tile__title {
    color: var(--cal4j-eventcards-side-title-color, #243043);
    font-family: var(--cal4j-eventcards-side-title-font-family, inherit);
    font-size: var(--cal4j-eventcards-side-title-font-size, 20px);
    font-weight: var(--cal4j-eventcards-side-title-font-weight, 700);
    line-height: var(--cal4j-eventcards-side-title-line-height, 1.2);
}

.cal4j-eventcards-news-tile__title-link,
.cal4j-eventcards-news-tile__title-link:visited {
    color: inherit;
    text-decoration: none;
}

.cal4j-eventcards-news-tile__title-link:hover,
.cal4j-eventcards-news-tile__title-link:focus-visible {
    color: inherit;
    text-decoration: none;
}

.cal4j-eventcards-news-tile__date {
    display: block;
    margin-top: .45rem;
    color: var(--cal4j-eventcards-featured-date-color, #5d6979);
    font-family: var(--cal4j-eventcards-featured-date-font-family, inherit);
    font-size: var(--cal4j-eventcards-featured-date-font-size, 14px);
    font-weight: var(--cal4j-eventcards-featured-date-font-weight, 400);
    line-height: var(--cal4j-eventcards-featured-date-line-height, 1.35);
}

.cal4j-eventcards-news-tile--side .cal4j-eventcards-news-tile__date {
    margin-top: .35rem;
    color: var(--cal4j-eventcards-side-date-color, #5d6979);
    font-family: var(--cal4j-eventcards-side-date-font-family, inherit);
    font-size: var(--cal4j-eventcards-side-date-font-size, 12px);
    font-weight: var(--cal4j-eventcards-side-date-font-weight, 400);
    line-height: var(--cal4j-eventcards-side-date-line-height, 1.3);
}

.cal4j-eventcards-news-tile__excerpt {
    display: flow-root;
    margin-top: 1rem;
}

.cal4j-eventcards-news-tile--side .cal4j-eventcards-news-tile__excerpt {
    margin-top: .65rem;
}

.cal4j-eventcards-news-tile__thumbnail-link {
    display: block;
    width: var(--cal4j-eventcards-featured-image-width, 50px);
    height: var(--cal4j-eventcards-featured-image-height, 50px);
    max-width: min(50%, var(--cal4j-eventcards-featured-image-width, 50px));
    margin-top: .2em;
    overflow: hidden;
    border-radius: var(--cal4j-eventcards-featured-image-radius, 6px);
}

.cal4j-eventcards-news-tile__thumbnail-link--left {
    float: left;
    margin-right: var(--cal4j-eventcards-featured-image-gap, 12px);
    margin-bottom: .35rem;
}

.cal4j-eventcards-news-tile__thumbnail-link--right {
    float: right;
    margin-bottom: .35rem;
    margin-left: var(--cal4j-eventcards-featured-image-gap, 12px);
}

.cal4j-eventcards-news-tile__thumbnail {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    border-radius: inherit;
    object-fit: var(--cal4j-eventcards-featured-image-fit, cover);
}

.cal4j-eventcards-news-tile__text {
    margin: 0;
    color: var(--cal4j-eventcards-featured-text-color, #243043);
    font-family: var(--cal4j-eventcards-featured-text-font-family, inherit);
    font-size: var(--cal4j-eventcards-featured-text-font-size, 16px);
    font-weight: var(--cal4j-eventcards-featured-text-font-weight, 400);
    line-height: var(--cal4j-eventcards-featured-text-line-height, 1.55);
    text-align: var(--cal4j-eventcards-featured-text-align, left);
    overflow-wrap: anywhere;
    hyphens: auto;
}

.cal4j-eventcards-news-tile--side .cal4j-eventcards-news-tile__text {
    color: var(--cal4j-eventcards-side-text-color, #243043);
    font-family: var(--cal4j-eventcards-side-text-font-family, inherit);
    font-size: var(--cal4j-eventcards-side-text-font-size, 13px);
    font-weight: var(--cal4j-eventcards-side-text-font-weight, 400);
    line-height: var(--cal4j-eventcards-side-text-line-height, 1.45);
    text-align: var(--cal4j-eventcards-side-text-align, left);
}

.cal4j-eventcards-news-tile__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: var(--cal4j-eventcards-featured-button-justify, flex-start);
    gap: var(--cal4j-eventcards-featured-button-gap, 10px);
    margin-top: auto;
    padding-top: 1.25rem;
}

.cal4j-eventcards-news-tile--side .cal4j-eventcards-news-tile__actions {
    justify-content: var(--cal4j-eventcards-side-button-justify, flex-start);
    gap: var(--cal4j-eventcards-side-button-gap, 6px);
    padding-top: .8rem;
}

.cal4j-eventcards-news-tile__button,
.cal4j-eventcards-news-tile__button:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: var(--cal4j-eventcards-featured-button-padding-y, 10px) var(--cal4j-eventcards-featured-button-padding-x, 16px);
    border: 1px solid transparent;
    border-radius: var(--cal4j-eventcards-featured-button-radius, 8px);
    font-size: var(--cal4j-eventcards-featured-button-font-size, 15px);
    font-weight: var(--cal4j-eventcards-featured-button-font-weight, 600);
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: filter .18s ease, transform .18s ease;
}

.cal4j-eventcards-news-tile--side .cal4j-eventcards-news-tile__button,
.cal4j-eventcards-news-tile--side .cal4j-eventcards-news-tile__button:visited {
    padding: var(--cal4j-eventcards-side-button-padding-y, 6px) var(--cal4j-eventcards-side-button-padding-x, 9px);
    border-radius: var(--cal4j-eventcards-side-button-radius, 6px);
    font-size: var(--cal4j-eventcards-side-button-font-size, 12px);
    font-weight: var(--cal4j-eventcards-side-button-font-weight, 600);
}

.cal4j-eventcards-news-tile__button:hover {
    text-decoration: none;
    filter: brightness(.94);
    transform: translateY(-1px);
}

.cal4j-eventcards-news-tile__button--article,
.cal4j-eventcards-news-tile__button--article:visited {
    border-color: var(--cal4j-eventcards-featured-article-button-border, #0b4f8a);
    background: var(--cal4j-eventcards-featured-article-button-bg, #0b4f8a);
    color: var(--cal4j-eventcards-featured-article-button-color, #ffffff);
}

.cal4j-eventcards-news-tile__button--category,
.cal4j-eventcards-news-tile__button--category:visited {
    border-color: var(--cal4j-eventcards-featured-category-button-border, #0b4f8a);
    background: var(--cal4j-eventcards-featured-category-button-bg, #ffffff);
    color: var(--cal4j-eventcards-featured-category-button-color, #0b4f8a);
}

.cal4j-eventcards-news-tile--side .cal4j-eventcards-news-tile__button--article,
.cal4j-eventcards-news-tile--side .cal4j-eventcards-news-tile__button--article:visited {
    border-color: var(--cal4j-eventcards-side-article-button-border, #0b4f8a);
    background: var(--cal4j-eventcards-side-article-button-bg, #0b4f8a);
    color: var(--cal4j-eventcards-side-article-button-color, #ffffff);
}

.cal4j-eventcards-news-tile--side .cal4j-eventcards-news-tile__button--category,
.cal4j-eventcards-news-tile--side .cal4j-eventcards-news-tile__button--category:visited {
    border-color: var(--cal4j-eventcards-side-category-button-border, #0b4f8a);
    background: var(--cal4j-eventcards-side-category-button-bg, #ffffff);
    color: var(--cal4j-eventcards-side-category-button-color, #0b4f8a);
}

.cal4j-eventcards-news-tile__button--article:hover,
.cal4j-eventcards-news-tile__button--article:focus-visible {
    color: var(--cal4j-eventcards-featured-article-button-color, #ffffff);
}

.cal4j-eventcards-news-tile__button--category:hover,
.cal4j-eventcards-news-tile__button--category:focus-visible {
    color: var(--cal4j-eventcards-featured-category-button-color, #0b4f8a);
}

.cal4j-eventcards-news-tile--side .cal4j-eventcards-news-tile__button--article:hover,
.cal4j-eventcards-news-tile--side .cal4j-eventcards-news-tile__button--article:focus-visible {
    color: var(--cal4j-eventcards-side-article-button-color, #ffffff);
}

.cal4j-eventcards-news-tile--side .cal4j-eventcards-news-tile__button--category:hover,
.cal4j-eventcards-news-tile--side .cal4j-eventcards-news-tile__button--category:focus-visible {
    color: var(--cal4j-eventcards-side-category-button-color, #0b4f8a);
}

.cal4j-eventcards-news-tile__title-link:focus-visible,
.cal4j-eventcards-news-tile__thumbnail-link:focus-visible,
.cal4j-eventcards-news-tile__button:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.cal4j-eventcards-news-tile__stretched-link {
    position: absolute;
    z-index: 2;
    inset: 0;
    border-radius: inherit;
    color: var(--cal4j-eventcards-side-title-color, #243043);
}

.cal4j-eventcards-news-tile__stretched-link:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: -5px;
}

.cal4j-eventcards-news-tile--linked {
    cursor: pointer;
}

.cal4j-eventcards-news-tile--linked .cal4j-eventcards-news-tile__content {
    z-index: 3;
    pointer-events: none;
}

.cal4j-eventcards-news-tile--linked .cal4j-eventcards-news-tile__actions {
    pointer-events: none;
}

.cal4j-eventcards-news-tile--linked .cal4j-eventcards-news-tile__button {
    pointer-events: auto;
}

/** Content entered with Joomla's configured default editor. */
.cal4j-eventcards-news-tile__editor {
    display: flow-root;
    width: 100%;
    min-width: 0;
    color: var(--cal4j-eventcards-featured-text-color, #243043);
    font-family: var(--cal4j-eventcards-featured-text-font-family, inherit);
    font-size: var(--cal4j-eventcards-featured-text-font-size, 16px);
    font-weight: var(--cal4j-eventcards-featured-text-font-weight, 400);
    line-height: var(--cal4j-eventcards-featured-text-line-height, 1.55);
    text-align: var(--cal4j-eventcards-featured-text-align, left);
    overflow-wrap: anywhere;
    hyphens: auto;
}

.cal4j-eventcards-news-tile--side .cal4j-eventcards-news-tile__editor {
    color: var(--cal4j-eventcards-side-text-color, #243043);
    font-family: var(--cal4j-eventcards-side-text-font-family, inherit);
    font-size: var(--cal4j-eventcards-side-text-font-size, 13px);
    font-weight: var(--cal4j-eventcards-side-text-font-weight, 400);
    line-height: var(--cal4j-eventcards-side-text-line-height, 1.45);
    text-align: var(--cal4j-eventcards-side-text-align, left);
}

.cal4j-eventcards-news-tile__editor > :first-child {
    margin-top: 0;
}

.cal4j-eventcards-news-tile__editor > :last-child {
    margin-bottom: 0;
}

.cal4j-eventcards-news-tile__editor :where(h1, h2, h3, h4, h5, h6) {
    margin: 0 0 .55em;
    color: var(--cal4j-eventcards-featured-title-color, #243043);
    font-family: var(--cal4j-eventcards-featured-title-font-family, inherit);
    font-size: var(--cal4j-eventcards-featured-title-font-size, 38px);
    font-weight: var(--cal4j-eventcards-featured-title-font-weight, 700);
    line-height: var(--cal4j-eventcards-featured-title-line-height, 1.2);
    overflow-wrap: anywhere;
}

.cal4j-eventcards-news-tile--side .cal4j-eventcards-news-tile__editor :where(h1, h2, h3, h4, h5, h6) {
    color: var(--cal4j-eventcards-side-title-color, #243043);
    font-family: var(--cal4j-eventcards-side-title-font-family, inherit);
    font-size: var(--cal4j-eventcards-side-title-font-size, 20px);
    font-weight: var(--cal4j-eventcards-side-title-font-weight, 700);
    line-height: var(--cal4j-eventcards-side-title-line-height, 1.2);
}

.cal4j-eventcards-news-tile__editor :where(time, .event-date) {
    color: var(--cal4j-eventcards-featured-date-color, #5d6979);
    font-family: var(--cal4j-eventcards-featured-date-font-family, inherit);
    font-size: var(--cal4j-eventcards-featured-date-font-size, 14px);
    font-weight: var(--cal4j-eventcards-featured-date-font-weight, 400);
    line-height: var(--cal4j-eventcards-featured-date-line-height, 1.35);
}

.cal4j-eventcards-news-tile--side .cal4j-eventcards-news-tile__editor :where(time, .event-date) {
    color: var(--cal4j-eventcards-side-date-color, #5d6979);
    font-family: var(--cal4j-eventcards-side-date-font-family, inherit);
    font-size: var(--cal4j-eventcards-side-date-font-size, 12px);
    font-weight: var(--cal4j-eventcards-side-date-font-weight, 400);
    line-height: var(--cal4j-eventcards-side-date-line-height, 1.3);
}

.cal4j-eventcards-news-tile__editor :where(p, ul, ol, blockquote, figure, table) {
    margin-top: 0;
    margin-bottom: 1em;
}

.cal4j-eventcards-news-tile__editor :where(img, video, iframe) {
    max-width: 100%;
}

.cal4j-eventcards-news-tile--featured .cal4j-eventcards-news-tile__editor img {
    width: min(100%, var(--cal4j-eventcards-featured-image-width, 50px));
    height: var(--cal4j-eventcards-featured-image-height, 50px);
    object-fit: var(--cal4j-eventcards-featured-image-fit, cover);
    border-radius: var(--cal4j-eventcards-featured-image-radius, 6px);
}

.cal4j-eventcards-news-tile--editor-image-left .cal4j-eventcards-news-tile__editor img {
    float: left;
    margin: .2em var(--cal4j-eventcards-featured-image-gap, 12px) .5em 0;
}

.cal4j-eventcards-news-tile--editor-image-right .cal4j-eventcards-news-tile__editor img {
    float: right;
    margin: .2em 0 .5em var(--cal4j-eventcards-featured-image-gap, 12px);
}

.cal4j-eventcards-news-tile--editor-images-hidden .cal4j-eventcards-news-tile__editor img {
    display: none !important;
}

.cal4j-eventcards-news-tile--side .cal4j-eventcards-news-tile__editor img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

@container cal4j-eventcards (max-width: 767px) {
    .cal4j-eventcards-news-grid {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .cal4j-eventcards-news-grid__side {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
    }

    .cal4j-eventcards-news-tile--featured {
        min-height: max(260px, var(--cal4j-eventcards-tile-min-height, 0px));
    }

    .cal4j-eventcards-news-tile--side {
        min-height: max(180px, var(--cal4j-eventcards-tile-min-height, 0px));
    }
}

@container cal4j-eventcards (max-width: 479px) {
    .cal4j-eventcards-news-tile--featured {
        min-height: max(220px, var(--cal4j-eventcards-tile-min-height, 0px));
    }

    .cal4j-eventcards-news-tile--featured .cal4j-eventcards-news-tile__title {
        font-size: min(var(--cal4j-eventcards-featured-title-font-size, 38px), 32px);
    }

    .cal4j-eventcards-news-tile--featured .cal4j-eventcards-news-tile__editor :where(h1, h2, h3, h4, h5, h6) {
        font-size: min(var(--cal4j-eventcards-featured-title-font-size, 38px), 28px);
        overflow-wrap: break-word;
    }

    .cal4j-eventcards-news-tile--side {
        min-height: max(160px, var(--cal4j-eventcards-tile-min-height, 0px));
    }

    .cal4j-eventcards-news-tile--side .cal4j-eventcards-news-tile__title {
        font-size: min(var(--cal4j-eventcards-side-title-font-size, 20px), 24px);
    }
}

@supports not (container-type: inline-size) {
    @media (max-width: 767.98px) {
        .cal4j-eventcards-news-grid {
            grid-template-columns: minmax(0, 1fr);
            min-height: 0;
        }

        .cal4j-eventcards-news-grid__side {
            grid-template-columns: minmax(0, 1fr);
            grid-template-rows: none;
        }

        .cal4j-eventcards-news-tile--featured {
            min-height: max(260px, var(--cal4j-eventcards-tile-min-height, 0px));
        }

        .cal4j-eventcards-news-tile--side {
            min-height: max(180px, var(--cal4j-eventcards-tile-min-height, 0px));
        }
    }

    @media (max-width: 479.98px) {
        .cal4j-eventcards-news-tile--featured {
            min-height: max(220px, var(--cal4j-eventcards-tile-min-height, 0px));
        }

        .cal4j-eventcards-news-tile--featured .cal4j-eventcards-news-tile__title {
            font-size: min(var(--cal4j-eventcards-featured-title-font-size, 38px), 32px);
        }

        .cal4j-eventcards-news-tile--featured .cal4j-eventcards-news-tile__editor :where(h1, h2, h3, h4, h5, h6) {
            font-size: min(var(--cal4j-eventcards-featured-title-font-size, 38px), 28px);
            overflow-wrap: break-word;
        }

        .cal4j-eventcards-news-tile--side {
            min-height: max(160px, var(--cal4j-eventcards-tile-min-height, 0px));
        }

        .cal4j-eventcards-news-tile--side .cal4j-eventcards-news-tile__title {
            font-size: min(var(--cal4j-eventcards-side-title-font-size, 20px), 24px);
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    .cal4j-eventcards-news-tile__button {
        transition: none;
    }

    .cal4j-eventcards-news-tile__button:hover {
        transform: none;
    }
}

/* Selectable event-card preset based on the supplied visual reference. */
.cal4j-eventcards-news-tile.cal4j-eventcards-event-card {
    display: grid;
    grid-template-columns:
        var(--cal4j-eventcards-preset-date-width, 78px)
        var(--cal4j-eventcards-preset-image-width, 230px)
        minmax(0, 1fr);
    align-items: stretch;
    gap: var(--cal4j-eventcards-preset-gap, 22px);
    width: 100%;
    min-height: var(--cal4j-eventcards-tile-min-height, 0);
    padding: var(--cal4j-eventcards-tile-padding, 24px);
    box-shadow: var(--cal4j-eventcards-preset-shadow, 0 10px 30px rgba(25, 31, 46, .13));
}

.cal4j-eventcards-event-card--no-image {
    grid-template-columns: var(--cal4j-eventcards-preset-date-width, 78px) minmax(0, 1fr);
}

.cal4j-eventcards-event-card > :where(aside, div) {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.cal4j-eventcards-event-card__date-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cal4j-eventcards-event-card__calendar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid color-mix(in srgb, var(--cal4j-eventcards-preset-icon, #7153c6) 18%, transparent);
    border-radius: 50%;
    background: color-mix(in srgb, var(--cal4j-eventcards-preset-icon, #7153c6) 7%, transparent);
    color: var(--cal4j-eventcards-preset-icon, #7153c6);
}

.cal4j-eventcards-event-card__calendar-icon svg,
.cal4j-eventcards-event-card__location svg,
.cal4j-eventcards-event-card__meta-item svg,
.cal4j-eventcards-event-card__image-placeholder svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cal4j-eventcards-event-card__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 12px;
    color: var(--cal4j-eventcards-featured-title-color, #243043);
    font-family: var(--cal4j-eventcards-featured-title-font-family, inherit);
    line-height: 1;
}

.cal4j-eventcards-event-card__day {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -.04em;
}

.cal4j-eventcards-event-card__month {
    margin-top: 5px;
    color: var(--cal4j-eventcards-preset-accent, #c7362e);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.cal4j-eventcards-event-card__year {
    margin-top: 5px;
    font-size: 16px;
    font-weight: 700;
}

.cal4j-eventcards-event-card__location,
.cal4j-eventcards-event-card__location:visited {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    width: 100%;
    margin-top: auto;
    padding-top: 18px;
    color: var(--cal4j-eventcards-featured-text-color, #243043);
    font-family: var(--cal4j-eventcards-featured-text-font-family, inherit);
    font-size: 11px;
    line-height: 1.25;
    text-align: left;
    text-decoration: none;
}

.cal4j-eventcards-event-card__location:hover,
.cal4j-eventcards-event-card__location:focus-visible {
    color: var(--cal4j-eventcards-featured-text-color, #243043);
    text-decoration: none;
}

.cal4j-eventcards-event-card__location svg {
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    color: var(--cal4j-eventcards-preset-accent, #c7362e);
}

.cal4j-eventcards-event-card__location strong,
.cal4j-eventcards-event-card__location small {
    display: block;
    font: inherit;
    overflow-wrap: anywhere;
}

.cal4j-eventcards-event-card__location strong {
    font-weight: 650;
}

.cal4j-eventcards-event-card__media {
    align-self: center;
    width: 100%;
    height: var(--cal4j-eventcards-preset-image-height, 160px);
    overflow: hidden;
    border-radius: var(--cal4j-eventcards-preset-image-radius, 8px);
    background: color-mix(in srgb, var(--cal4j-eventcards-preset-icon, #7153c6) 7%, #f5f6f9);
}

.cal4j-eventcards-event-card__media a {
    display: block;
    width: 100%;
    height: 100%;
}

.cal4j-eventcards-event-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    border-radius: inherit;
    object-fit: cover;
}

.cal4j-eventcards-event-card__image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--cal4j-eventcards-preset-icon, #7153c6);
}

.cal4j-eventcards-event-card__image-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: .55;
}

.cal4j-eventcards-event-card__body {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    min-height: var(--cal4j-eventcards-preset-image-height, 160px);
}

.cal4j-eventcards-event-card__kicker {
    margin: 1px 0 7px;
    color: var(--cal4j-eventcards-preset-accent, #c7362e);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .045em;
    line-height: 1.25;
    text-transform: uppercase;
}

.cal4j-eventcards-event-card__title {
    margin: 0;
    overflow-wrap: anywhere;
}

.cal4j-eventcards-event-card__description {
    margin-top: 13px;
    font-size: min(var(--cal4j-eventcards-featured-text-font-size, 16px), 16px);
}

.cal4j-eventcards-event-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 16px;
}

.cal4j-eventcards-event-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    min-width: 0;
}

.cal4j-eventcards-event-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--cal4j-eventcards-featured-date-color, #5d6979);
    font-family: var(--cal4j-eventcards-featured-date-font-family, inherit);
    font-size: min(var(--cal4j-eventcards-featured-date-font-size, 14px), 14px);
    font-weight: var(--cal4j-eventcards-featured-date-font-weight, 400);
    line-height: var(--cal4j-eventcards-featured-date-line-height, 1.35);
}

.cal4j-eventcards-event-card__meta-item svg {
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    color: var(--cal4j-eventcards-preset-icon, #7153c6);
}

.cal4j-eventcards-event-card__button {
    flex: 0 0 auto;
    gap: 20px;
    min-height: 42px;
    padding: 10px 17px;
    white-space: nowrap;
}

@container cal4j-eventcards (max-width: 900px) {
    .cal4j-eventcards-news-tile.cal4j-eventcards-event-card {
        grid-template-columns:
            var(--cal4j-eventcards-preset-date-width, 78px)
            minmax(160px, var(--cal4j-eventcards-preset-image-width, 230px))
            minmax(0, 1fr);
        gap: min(var(--cal4j-eventcards-preset-gap, 22px), 16px);
    }

    .cal4j-eventcards-event-card--no-image {
        grid-template-columns: var(--cal4j-eventcards-preset-date-width, 78px) minmax(0, 1fr);
    }

    .cal4j-eventcards-event-card__footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@container cal4j-eventcards (max-width: 700px) {
    .cal4j-eventcards-news-tile.cal4j-eventcards-event-card {
        grid-template-columns: var(--cal4j-eventcards-preset-date-width, 78px) minmax(0, 1fr);
        min-height: var(--cal4j-eventcards-tile-min-height, 0);
    }

    .cal4j-eventcards-event-card__date-panel {
        grid-column: 1;
        grid-row: 1;
    }

    .cal4j-eventcards-event-card__media {
        grid-column: 2;
        grid-row: 1;
    }

    .cal4j-eventcards-event-card__body {
        grid-column: 1 / -1;
        grid-row: 2;
        min-height: 0;
        padding-top: 4px;
    }

    .cal4j-eventcards-event-card--no-image .cal4j-eventcards-event-card__body {
        grid-column: 2;
        grid-row: 1;
    }
}

@container cal4j-eventcards (max-width: 480px) {
    .cal4j-eventcards-news-tile.cal4j-eventcards-event-card,
    .cal4j-eventcards-event-card--no-image {
        grid-template-columns: minmax(0, 1fr);
        min-height: var(--cal4j-eventcards-tile-min-height, 0);
        padding: var(--cal4j-eventcards-tile-padding, 18px);
    }

    .cal4j-eventcards-event-card__date-panel {
        display: grid;
        grid-column: 1;
        grid-row: auto;
        grid-template-columns: 40px 54px minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        text-align: left;
    }

    .cal4j-eventcards-event-card__date {
        align-items: flex-start;
        margin: 0;
    }

    .cal4j-eventcards-event-card__day {
        font-size: 29px;
    }

    .cal4j-eventcards-event-card__month,
    .cal4j-eventcards-event-card__year {
        margin-top: 2px;
        font-size: 12px;
    }

    .cal4j-eventcards-event-card__location,
    .cal4j-eventcards-event-card__location:visited {
        justify-self: end;
        width: auto;
        max-width: 150px;
        margin: 0;
        padding: 0;
    }

    .cal4j-eventcards-event-card__media,
    .cal4j-eventcards-event-card__body,
    .cal4j-eventcards-event-card--no-image .cal4j-eventcards-event-card__body {
        grid-column: 1;
        grid-row: auto;
    }

    .cal4j-eventcards-event-card__media {
        height: min(var(--cal4j-eventcards-preset-image-height, 160px), 56cqw);
        min-height: 150px;
    }

    .cal4j-eventcards-event-card__body {
        padding-top: 2px;
    }

    .cal4j-eventcards-event-card__footer {
        gap: 14px;
    }

    .cal4j-eventcards-event-card__button {
        width: 100%;
    }
}
