.lsl-location-events {
    display: grid;
    gap: 48px;
}

.lsl-location-events__community {
    display: grid;
    gap: 20px;
    container-type: inline-size;
    container-name: community-container;
}

.lsl-location-events__community-header h2 {
    margin: 0;
}

.lsl-location-events__grid {
    display: grid;
    gap: 50px;
    grid-template-columns: 1fr;

    @container community-container (width > 640px) {
        grid-template-columns: repeat(2, 1fr);
    }

    @container community-container (width > 980px) {
        grid-template-columns: repeat(3, 1fr);
    }
}

.lsl-location-events__event {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(17, 24, 39, 0.14);
    border-radius: 8px;
    background: #fff;
}

.lsl-location-events__image-link,
.lsl-location-events__image-link img {
    width: 100%;
    display: block;
}

.lsl-location-events__image-link img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.lsl-location-events__event-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
}

.lsl-location-events__date {
    margin: 0;
    font-weight: 700;
}

.lsl-location-events__title {
    margin: 0;
}

.lsl-location-events__title a {
    color: inherit;
    text-decoration: none;
}

.lsl-location-events__location p,
.lsl-location-events__empty p {
    margin: 0;
}

.lsl-location-events__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: auto;
}

.lsl-location-events__details {
    font-weight: 700;
}

.lsl-location-events__empty {
    padding: 20px;
    border: 1px solid rgba(17, 24, 39, 0.14);
    border-radius: 8px;
    background: rgba(17, 24, 39, 0.04);
}
