
/* Block 'Events' (event-list)
------------------------------------------------------------------------------------------ */

.wp-block-wx-events .filter-container {
    max-width: 640px;
    margin: calc((5em + 40px) * -1) auto 50px;
}
.wp-block-wx-events .filter-container .filters {
    flex-direction: row;
    flex-wrap: wrap;
}
.wp-block-wx-events .card-container {
    /*
    display: grid;
    gap: 0.5em;
    grid-template-columns: repeat(auto-fit, minmax(381px, 1fr));
    */
    display: flex;
    flex-wrap: wrap;
    max-width: 77.5rem;
    width: calc(100% - 4rem);
    margin: 0 auto;
}

.wp-block-wx-events .card-container.future-events .event-item {
    --integration-item-h-spacing: 0.75em;
    --integration-item-v-spacing: 1.5em;

    margin: 0 var(--integration-item-h-spacing) var(--integration-item-v-spacing);
    padding: 0;
    position: relative;
    flex: 1 1 auto;
    border-radius: 8px;
    overflow: hidden;
    transition: margin 0.2s ease-in-out;
}
.wp-block-wx-events .card-container.future-events .event-item .event-info {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    transform: translateY(100%);
    transition: transform 0.2s ease-in-out;
    background: -moz-linear-gradient(top, rgba(255,255,255,0.8) 0%, rgba(255,255,255,1) 40%, rgba(255,255,255,1) 100%);
    background: -webkit-linear-gradient(top, rgba(255,255,255,0.8) 0%,rgba(255,255,255,1) 40%,rgba(255,255,255,1) 100%);
    background: linear-gradient(to bottom, rgba(255,255,255,0.8) 0%,rgba(255,255,255,1) 40%,rgba(255,255,255,1) 100%);
}
.wp-block-wx-events .card-container.future-events .event-item .event-info__header {
    transform: translateY(-100%);
    transition: transform 0.2s ease-in-out, background 0.1s ease-in-out;
    background: rgba(255,255,255,1);
}
.wp-block-wx-events .card-container.future-events .event-item .event-img {
    padding-bottom: min(15vw, 45%);
}
.wp-block-wx-events .card-container.future-events .event-item .event-date {
    right: 1.5em;
    top: 0;
    transform: translateY(-75%);
}
.wp-block-wx-events .card-container.future-events .event-item .event-img img {
    height: min(24vh, 212px);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.wp-block-wx-events .card-container.future-events .event-item .event-info__header {
    position: relative;
    padding: 2em 1.5em 1.5em;
}
.wp-block-wx-events .card-container.future-events .event-item .event-info__description {
    font-size: 0.875rem;
    padding: 0 1.5em 1.5em;
    background: var(--c-white);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}


.wp-block-wx-events .card-container .event-item .event-info__footer {
    margin-top: 1em;

}
.wp-block-wx-events .card-container.future-events .event-item .event-info__footer {
    padding: 0 1.5em;
}
.wp-block-wx-events .card-container.past-events .event-item .event-info__footer {
    width: auto;
}


.wp-block-wx-events .card-container.past-events {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
}
.wp-block-wx-events .card-container.past-events .event-item {
    display: flex;
    padding: 0;
    overflow: hidden;
    margin-left: 1em;
    margin-right: 1em;
    margin-bottom: 1em;
    min-height: 186px;
}
.wp-block-wx-events .card-container.past-events .event-item .event-date {
    top: 2em;
    left: 2em;
}
.wp-block-wx-events .card-container.past-events .event-item .event-date__day {
    font-size: clamp( 1.25rem, 2vw, 1.75rem );
}
.wp-block-wx-events .card-container.past-events .event-item .event-img {
    max-width: min(45%, 200px);
}
.wp-block-wx-events .card-container.past-events .event-item .event-img :where(img, picture) {
    height: 100%;
}
.wp-block-wx-events .card-container.past-events .event-item .event-info {
    padding: 2.5em 1.5em;
}


.wp-block-wx-events .event-img {
    margin: 0;
}
.wp-block-wx-events .event-img img {
    object-fit: cover;
    width: 100%;
}


.wp-block-wx-events .event-date {
    position: absolute;
    background: var(--c-secondary);
    padding: 1em 0.5em 0.75em;
    min-width: 90px;
    border-radius: 8px;
    color: var(--c-white);
    text-align: center;
    font-weight: 500;
    box-shadow: 0px 4px 16px rgba(0, 78, 144, 0.2);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}
.wp-block-wx-events .event-date .event-date__day {
    font-size: 1.75rem;
}
.wp-block-wx-events .event-date .event-date__month {
    font-size: 1rem;
    text-transform: uppercase;
}


.wp-block-wx-events .event-info__categories {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--c-grey-dark-2);
    margin-bottom: 0.5rem;
}
.wp-block-wx-events .event-info__title {
    font-size: clamp( 1rem, 2vw, 1.25rem );
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.wp-block-wx-events .event-info__location,
.wp-block-wx-events .event-info__link,
.wp-block-wx-events .wp-block-button__link {
    font-size: 0.875rem;
}

.wp-block-wx-events .icon {
    display: inline-block;
    width: 18px;
    text-align: center;
    margin-right: 0.5em;
}

.wp-block-wx-events [id*="MixItUp"] {
    padding: 2em 1.5em;
}


@media (max-width: 848px) {
    .wp-block-wx-events .card-container {
        flex-direction: column;
    }
}

@media (min-width: 690px) {
    .wp-block-wx-events .card-container.past-events .event-item .event-date {
        left: initial;
        right: 2em;
    }
    .wp-block-wx-events .card-container.past-events .event-item {
        padding-right: calc(90px + 4em);
    }
}
@media (min-width: 864px) {
    .wp-block-wx-events .card-container.future-events .event-item:where(:hover, :focus-within) {
        margin-top: -1em;
        margin-bottom: 0.5em;
    }
    .wp-block-wx-events .card-container.future-events .event-item:where(:hover, :focus-within) .event-info, 
    .wp-block-wx-events .card-container.future-events .event-item:where(:hover, :focus-within) .event-info__header {
        border-radius: inherit;
        transform: translateY(0);
    }
    .wp-block-wx-events .card-container.future-events .event-item:where(:hover, :focus-within) .event-info__header {
        background: rgba(255,255,255,0);
    }
    .wp-block-wx-events .card-container.future-events .event-item:where(:hover, :focus-within) .event-date {
        opacity: 0;
        visibility: hidden;
    }
}
@media (min-width: 849px) and (max-width: 1237px) {
    .wp-block-wx-events .card-container.future-events .event-item {
        max-width: 43vw;
        flex-basis: 45%;
    }
}
@media (min-width: 1238px) {
    .wp-block-wx-events .card-container.future-events .event-item {
        max-width: 352px;
        flex-basis: 33%;
    }
    .wp-block-wx-events .card-container.future-events .event-item .event-info__header {
        min-height: 191px;
    }
}
