.event-card {
    box-shadow: none;
    text-align: center;
    flex-direction: column;
    width: 100%;
    justify-content: space-between;
    display: flex;
    gap: calc(var(--wp--preset--spacing--40)/2);
}

.event-card img {
    width: 6rem;
    aspect-ratio: 1/1;
    border-radius: calc(var(--wp--preset--spacing--40)/2);
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.event-header {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: start;
    gap: calc(var(--wp--preset--spacing--40)/2);
    text-align: left;
}

.event-title {
    align-self: center;
}

.event-content {
    display: flex;
    gap: calc(var(--wp--preset--spacing--40)/2);
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.event-card h4,
.event-card h5,
.event-card p {
    margin: 0;
    padding: 0;
}

.event-description {
    flex-grow: 1;
}

.event-buttons {
    display: flex;
    width: 100%;
    margin-top: auto;
    gap: calc(var(--wp--preset--spacing--40)/2);
}

.event-card .wp-block-button__link {
    padding-left: calc(var(--wp--preset--spacing--40)/2) !important;
    padding-right: calc(var(--wp--preset--spacing--40)/2) !important;
}

.event-card .wp-block-button.is-style-outline .wp-block-button__link {
    border: 1px solid currentColor;
    background: transparent;
    color: inherit;
}

.event-card .wp-block-button.is-style-outline.is-style-outline--2 .wp-block-button__link {
    border-width: 3px;
}

.event-card .wp-block-buttons {
    align-items: stretch;
}

.event-card .wp-block-button {
    display: inline-flex;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}

.event-card .wp-block-button__link,
.event-card .wp-element-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: normal;
    height: auto;
    box-sizing: border-box;
    width: 100%;
}

/* Compact variant used by [next-on-card]. */
.event-card--compact {
    margin: 0 auto;
    width: fit-content;
    max-width: min(100%, var(--kcg-next-on-max-width, 28rem));
}

.event-card--compact .event-header {
    padding-right: 1rem;
}

.event-card--compact img {
    width: 4rem;
    margin: 0;
}

.event-card--compact .event-content {
    height: auto;
}
