/* Custom category list styling */
.template_event {
    container-type: inline-size;
}
/* --------------------------------------------------------- */


.template_event .eventlist_pro {
    font-size: 0.8rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 500px));
    gap: 0.4rem;
    justify-content: center;
}

.template_event .tk_kategorie_title,
.template_event .tk_kategorie_title_dashicon {
    color: #dedede !important;
}

/* ------------------------------------------------------------ */
.template_event .eventlist_pro .list_two_rows {
    display: flex;
    background-color: #f1f1f1;
    border-radius: 0.3rem;
    position: relative;
    width: 100%;
}



.template_event .eventlist_pro .list_left_row {
    width: 40%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: transparent;
    border-radius: 0.3rem;
    padding: 0;
    margin: 0.5rem 0 0.5rem 0.5rem;
    box-sizing: border-box;
}


.template_event .eventlist_pro .list_left_row img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 0.3rem;
    object-fit: contain;
}
/* ------------------------------------------------------------ */
.template_event .eventlist_pro .list_right_row {
    width: 60%;
    padding: 0.8rem;
    margin: 0.5rem;
    border-radius: 0.3rem;
    word-break: break-all;
    overflow-wrap: break-word;
}
.template_event .eventlist_pro .list_right_row a {
    word-break: break-all;
    overflow-wrap: break-word;
}

.template_event .eventlist_pro h4 {
    font-weight: 800;
}
.template_event .eventlist_pro h2 {
    font-size: 0.9rem;
    font-weight: 600;
}

/* --------------------------------------------- */
@container (max-width: 768px) { /* tablet-like */ }
/* ter_kal_: Stack rows vertically on mobile-like screens */
@container (max-width: 400px) {
    .template_event .eventlist_pro .list_two_rows {
        flex-direction: column;
    }

    .template_event .eventlist_pro .list_left_row,
    .template_event .eventlist_pro .list_right_row {
        width: 96%;
        margin: 0.5rem;
    }

}
/* --------------------------------------------- */