.images-wrap {
    position: relative;
    margin-bottom: 25px;
}

.event-block {
    flex: 1 1 20%;
    transition: all 0.3s ease;
    padding: 0 20px;
    position: relative;
    cursor: pointer; /* Ukazatel, že lze kliknout */
}

.event-block img {
    width: auto;
    height: 500px;
    object-fit: cover;
    transition: all 0.3s ease;
    filter: grayscale(100%); /* Monochromatický efekt */
}

.event-block:hover img,
.event-block.openElement img {
    filter: grayscale(0%); /* Zrušení grayscale po kliknutí */
}

.logo-category {
    position: absolute;
    bottom: -25px;
    left: calc(50% - 25px);
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-category img {
    width: 100%;
    height: auto;
    filter: grayscale(0%);
}

.event-block h3 {
    margin-top: 10px;
    font-size: 18px;
}

.event-block .event-date-time {
    font-size: 14px;
    color: #666;
}

.readmore-btn {
    display: block;
    margin-top: 10px;
    background-color: #000;
    color: #fff;
    padding: 5px 10px;
    text-decoration: none;
}

.event-block-left .place {
    font-weight: 600;
    font-size: 14px;
}

.event-block-left .title {
    font-weight: 600;
    font-size: 20px;
}

.event-block-left .dateTime {
    font-weight: 600;
    font-size: 12px;
}

.event-block-left .event-all {
    font-size: 80%;
}

.event-block.shrinkElement .place,
.event-block.shrinkElement .title,
.event-block.shrinkElement .dateTime,
.event-block.shrinkElement .event-all {
    display: none;
}

.event-block.openElement .event-block-left {
    flex: 0 0 50%;
}

.event-title-element {
    margin-top: 20px;
}

/* Nové třídy pro chování po kliknutí */
.event-block.openElement {
    flex: 0 0 calc(890px);
    display: flex;
    max-width: 890px;
}

.event-block.shrinkElement {
    flex: 0 0 100px;
}

/* Styly pro zobrazení a skrytí detailů */
.event-details {
    display: none;
    transition: all 0.3s ease;
    padding: 0px 20px;
    background-color: white;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.openElement .event-details {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: space-between;
    position: relative;
}

.closeElement .event-details {
    display: none; /* Skryje detail */
}

.close-btn {
    background-color: transparent;
    border: none;
    font-size: 24px;
    position: absolute;
    top: 10px;
    left: 10px;
    cursor: pointer;
}

/* carousel */
.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden; /* Skrýváme obsah mimo viewport */
    width: 100%;
}

.carousel-container .sppb-row {
    display: flex;
    position: relative;
    left: 0;
    transition: left 0.5s ease-in-out;
    width: calc(100% * 5);
    flex-direction: row;
    flex-wrap: nowrap;
}

.event-block {
    flex: 0 0 20%; /* Pokud chcete zobrazit 5 akcí najednou, pak každá akce zabírá 20% */
    padding: 0 20px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 258px;
}
 
.arrow-left,
.arrow-right {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 30px;
    padding: 10px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.arrow-left {
    left: 10px;
}

.arrow-right {
    right: 10px;
}

.typeName {
    position: absolute;
    z-index: 1;
    color: white;
    padding: 5px 8.5px;
    background: #008bd5;
    font-size: 12px;
}
.middle-block,
.top-blok {
    flex: 1 1 100%;
}

@media (min-width: 1199px) {
    button.arrow-left {
        left: -50px;
    }
    button.arrow-right {
        right: -50px;
    }
 
}
@media (max-width: 1399px) {
    .event-block {
        max-width: 222px;
    }
    .event-block.openElement {
        flex: 0 0 calc(710px);
    }    
}
@media (max-width: 1199px) {
    .event-block {
        max-width: 310px;
    }
    .event-block.openElement {
        flex: 0 0 calc(730px);
    }     
}
/* Zobrazení 3 akcí na tabletu */
@media (max-width: 991px) {
    .event-block {
        flex: 0 0 33.33%;
        max-width: 230px;
    }
    .carousel-container .sppb-row {
        width: calc(100%);
    }    
    .event-block.openElement {
        flex: 0 0 calc(490px);
    }      
}

/* Zobrazení 2 akcí na mobilu */
@media (max-width: 768px) {
    .event-block {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .carousel-container .sppb-row {
        width: calc(100%);
        margin-left: 0px;
    }     
    /* Nové třídy pro chování po kliknutí */
    .event-block.openElement {
        flex: 0 0 calc(345px);
    }   
    .event-block.shrinkElement {
        flex: 0 0 0px;
    }    
}

