#listLastEvents{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
}
.lastEvents{
    width: calc((100% - 100px)/3);
    display: flex;
    flex-direction: column;
}
.lastEvents .card-img{
    height: 250px;
    width: 100%;
}
#listLastEvents .lastEvents .card-img img.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;

}
.lastEvents .card-body{
    padding: 15px;
    flex-grow: 2;
    display: flex;
    flex-direction: column;
}
    .lastEvents .card-body .card-text{
        flex-grow: 2;
    }
.lastEvents .card-title {
    font-family: var(--fontfamily2);
    text-transform: uppercase !important;
    font-size: 18px;
}

/********************/

#listLastEvents {
    width: 100%;
    margin: auto;
}  

/* Media query for screen widths from 980px to 768px */
@media (max-width: 980px) and (min-width: 768px) {
    #listLastEvents {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto;
        gap: 50px;
        box-sizing: border-box;
    }

    .lastEvents:nth-child(1),
    .lastEvents:nth-child(2) {
        grid-column: span 1;
        width:100%!important;        
    }

    .lastEvents:nth-child(3) {
        grid-column: 1 / -1;
        justify-self: center;
        width:47%!important; 
    }
}

@media only screen and (max-width: 768px) {
    #listLastEvents {
        display: flex;
        flex-direction: column;
    }
    .lastEvents {
        width: 100%!important; 
        margin-bottom: 30px;
    }
}  