.event__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: clamp(2rem, 1.588rem + 1.57vw, 3rem);
    padding: 0 clamp(1.25rem, 0.893rem + 1.79vw, 2.5rem);
}

.event__sort_button {
    align-self: flex-end;
}

.event__sort_button input {
    display: none;
}

.event__card {
    display: flex;
    height: 470px;
    flex-direction: column;
    border-radius: 24px;
    background: #F3E0FF;
    justify-content: space-between;
    flex-shrink: 0;
}

.event__card .card__title {
    color: var(--Brand-Dark-blue, #1E1753);
    font-family: "Inter Variable";
    font-size: clamp(1.25rem, 0.909rem + 1.21vw, 2rem);
    font-style: normal;
    font-weight: 500;
    line-height: 1.1;
}

.event__card .card__text {
    font-weight: 500;
}

.event__card__header {
    padding: 24px 24px 0 24px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: clamp(1.25rem, 0.909rem + 1.21vw, 2rem);
}

.event__card__button {
    display: flex;
    width: var(--icon-size-16, 16px);
    height: var(--icon-size-16, 16px);
    padding: 11px;
    box-sizing: content-box;
    border-radius: var(--button-small, 14px);
    background: var(--controls-bg-neutralInverted-default, #FFF);
}

.event__card__content {
    padding: 24px;
    justify-self: flex-start;
    align-self: flex-start;

}

.event__card__footer {
    display: flex;
    width: 100%;
    height: 149px;
    padding: 24px;
    flex-direction: column;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
    border-radius: 24px;
    background: #E2B1FF;

    font-weight: 500;
}


.event__card__date {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event__card__tags {
    display: flex;
    align-items: center;
    gap: 0 15px;
    flex-wrap: wrap;


    color: var(--Brand-Dark-blue, #1E1753);
    font-family: "JetBrains Mono";
    font-size: var(--Font-Size-action, 17px);
    font-style: normal;
    font-weight: 400;
    line-height: var(--Font-Line-height-action, 20px);
}

.event__card .card__title {
    display: -webkit-box;
    
    /* number of lines to show */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

@media (max-width:1200px) {
    .event__cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:800px) {
    .event__cards {
        display: flex;
        overflow-x: scroll;
        align-items: stretch;
        gap: 8px;
        position: relative;
        left: 0;
    }

    .event__cards::-webkit-scrollbar {
        display: none;
    }

    .event__card {
        width: 100%;
    }

    .event__card__tags {
        font-weight: 400;
    }
}