.afg-small-events-wrapper.grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
}

.event-post-small {
    position: relative;
    background: #fff;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f7f7f7;
    height: 100%;
}

.event-post-small:hover {
    background: #fafafa;
}

.event-post-small a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: stretch;
    gap: 0;
    height: 100%;
    padding: 0;
}

.event-post-small svg {
    height: 14px;
    width: 14px;
}

.event-post-small__thumbnail-wrapper {
    position: relative;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 60px;
    margin: 0;
    overflow: hidden;
    background: #f5f5f5;
    transition: all .3s ease-in;
}

.event-post-small__thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.event-post-small:hover .event-post-small__thumbnail-wrapper img {
    filter: grayscale(1);
}

.event-post-small__no-image {
    width: 100%;
    height: 100%;
    background: #dedede;
}

 .event-post-small__date-badge {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--second-color);
    color: white;
    text-align: center;
    padding: 4px 6px;
    width: 45px;
    z-index: 2;
    font-size: 10px;
    overflow: hidden;
}

.event-post-small__date-badge.passed {
    background: #6c757d;
    opacity: 0.8;
}

.event-post-small__date-month {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all .3s ease-in;
}

.event-post-small__date-day {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    transition: all .3s ease-in;
}

.event-post-small__title-wrapper {
    flex: 1;
    background: transparent;
    padding: 12px;
}

.event-post-small__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 6px;
}

.event-post-small__types {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.event-type {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #666;
    background: #f0f0f0;
    padding: 2px 8px;
    margin: 0;
}

.event-post-small__date-range {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #888;
}

.event-post-small__date-range svg {
    flex-shrink: 0;
}

.event-post-small__title {
    font-family: 'Archivo Black', sans-serif;
    font-size: 15px;
    font-weight: 500;
    margin: 4px 0 0;
    line-height: 1.3;
    color: #333;
    display: block;
    position: relative;
    overflow: hidden;
    max-width: 550px;
    transition: all .3s ease;
    width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-post-small:hover .event-post-small__title {
    opacity: 0.7;
}

.event-post-small.passed-event {
    opacity: 0.7;
    background: #f9f9f9;
}

.event-post-small.passed-event .event-post-small__title {
    color: #999;
}

.event-post-small.passed-event .event-type {
    background: #e5e5e5;
    color: #999;
}

.afg-label {
    position: absolute;
    top: 8px;
    right: 10px;
    padding: 2px 6px;
    font-size: 11px;
    letter-spacing: .3px;
    font-weight: 400;
    z-index: 2;
}

@media (max-width: 880px) {
   
    .event-post-small__date-badge .event-post-small__date-month {
        font-size: 12px;
    }

    .event-post-small__date-badge .event-post-small__date-day {
        font-size: 14px;
    }

    .event-post-small__date-badge .event-post-small__date-month:nth-child(3) {
        margin-top: 5px;
    }
 
    .event-post-small__title {
        font-size: 13px;
        max-width: 100%;
        white-space: wrap;
    }

    .event-type {
        font-size: 10px;
        padding: 1px 6px;
    }
    
    .event-post-small__date-range {
        font-size: 10px;
    }
    
    .event-post-small__meta {
        gap: 8px;
    }

    .has-sub-event .event-post-small__title-wrapper {
        padding-top:24px;
    }

    .afg-label {
        top: 0;
        right: 0;
        align-self: flex-start;
    }

}


