.egm-event-grid {
    display: grid;
    gap: 34px;
    width: 100%;
    max-width: 100%;
    align-items: stretch;
}

.egm-elementor-grid-feed,
.egm-elementor-grid-feed > .elementor-widget-container,
.egm-event-grid-items {
    display: contents;
}

.egm-event-grid--cols-1 {
    grid-template-columns: minmax(0, 1fr);
}

.egm-event-grid--cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.egm-event-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #3c403b;
    color: #fff;
    box-shadow: none;
}

.egm-event-card__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #2f332f;
    color: inherit;
    text-decoration: none;
}

.egm-event-card__media > img:not(.egm-event-card__sold-out) {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 1.2s ease;
}

.egm-event-card:hover .egm-event-card__media > img:not(.egm-event-card__sold-out),
.egm-event-card:focus-within .egm-event-card__media > img:not(.egm-event-card__sold-out) {
    transform: scale(1.08);
}

.egm-event-card__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    font-weight: 700;
    color: #fff;
}

.egm-event-card__sold-out {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: min(78%, 420px);
    height: auto;
    display: block;
    object-fit: contain;
    transform: translate(-50%, -50%) rotate(-10deg);
    transition: none;
    pointer-events: none;
}

.egm-event-card__content {
    display: grid;
    grid-template-rows: auto 1fr auto;
    flex: 1 1 auto;
    min-height: 430px;
    gap: 22px;
    padding: 32px 28px 28px;
}

.egm-event-card__date,
.egm-event-card__time,
.egm-event-card__location-meta,
.egm-event-card__location,
.egm-event-card__excerpt,
.egm-event-card__excerpt p {
    margin: 0;
}

.egm-event-card__date {
    color: #fff;
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
}

.egm-event-card__time,
.egm-event-card__location-meta {
    margin-top: 10px;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
}

.egm-event-card__title {
    margin: 0;
    color: #fff;
    font-size: 34px;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: 0;
    text-transform: uppercase;
}

.egm-event-card__title a {
    color: inherit;
    text-decoration: none;
}

.egm-event-card__title a:hover,
.egm-event-card__title a:focus {
    text-decoration: underline;
}

.egm-event-card__location {
    color: #fff;
    font-weight: 600;
}

.egm-event-card__excerpt {
    color: #fff;
    overflow-wrap: anywhere;
    font-size: 17px;
    line-height: 1.62;
}

.egm-event-card__excerpt p + p {
    margin-top: 20px;
}

.egm-event-card__footer {
    display: grid;
    gap: 30px;
    margin-top: auto;
}

.egm-event-card__meta {
    display: grid;
    align-content: end;
}

.egm-event-card__button {
    justify-self: start;
    min-width: 220px;
    min-height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 30px;
    border-radius: 0;
    background: #ffe43b;
    color: #151515;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
    text-decoration: none;
}

.egm-event-card__button:hover,
.egm-event-card__button:focus {
    background: #fff06a;
    color: #151515;
}

.egm-event-card__button--disabled {
    background: #98a2b3;
    cursor: not-allowed;
}

.egm-empty {
    margin: 0;
    color: #475467;
}

@media (max-width: 880px) {
    .egm-event-grid--cols-2 {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 680px) {
    .egm-event-grid,
    .egm-event-grid--cols-2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .egm-event-card__content {
        min-height: 380px;
        gap: 20px;
        padding: 28px 22px;
    }

    .egm-event-card__title {
        font-size: 34px;
    }

    .egm-event-card__excerpt {
        font-size: 18px;
        line-height: 1.55;
    }

    .egm-event-card__date {
        font-size: 36px;
    }

    .egm-event-card__time {
        font-size: 18px;
    }

    .egm-event-card__location-meta {
        font-size: 18px;
    }

    .egm-event-card__meta {
        min-height: 0;
    }

    .egm-event-card__button {
        width: 100%;
        min-width: 0;
        font-size: 19px;
    }
}
