/* =========================
   CONTAINER LEFT - FULL RIGHT
========================= */
.magenest-event-slider:not(.grid_card_info) {
    overflow: visible;
}

/* =========================
   SLIDE STYLE
========================= */
.magenest-event-slider:not(.grid_card_info) .swiper-slide {
    border-radius: 8px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -o-border-radius: 8px;
    overflow: hidden;
    transition: transform .3s ease;
    -webkit-transition: transform .3s ease;
    -moz-transition: transform .3s ease;
    -o-transition: transform .3s ease;
}

.magenest-event-slider:not(.grid_card_info) img {
    width: 100%;
    /* Cap the height so tall images line up; short images keep their natural
       height. object-fit keeps aspect ratio and centers square/placeholder
       images instead of stretching them. */
    max-height: 275px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .4s ease;
    -webkit-transition: transform .4s ease;
    -moz-transition: transform .4s ease;
    -o-transition: transform .4s ease;
}

.magenest-event-slider:not(.grid_card_info) .swiper-slide:hover img {
    transform: scale(1.05);
    -webkit-transform: scale(1.05);
    -moz-transform: scale(1.05);
    -o-transform: scale(1.05);
}

.magenest-event-slider .swiper-pagination-bullet {
    background-color: #ddd;
    opacity: 1;
}

.magenest-event-slider .swiper-pagination-bullet-active {
    background-color: #ff3ca6;
}

.event-swiper-pagination {
    max-width: 1360px;
    bottom: -40px !important;
}

.event-swiper-pagination,
.event-swiper-pagination .swiper-pagination-bullet {
    border-radius: 999px;
    -webkit-border-radius: 999px;
    -moz-border-radius: 999px;
    -o-border-radius: 999px;
}

.event-swiper-pagination .swiper-pagination-bullet {
    margin: 0 !important;
    background-color: #FCF3F9;
    opacity: 1;
    height: 4px;
    min-width: 320px;
}

.event-swiper-pagination .swiper-pagination-bullet-active {
    background-color: #D33791;
}

.magenest-event-slider.grid_card_info .swiper-slide {
    height: auto;
    display: flex;
}

/* =========================
   GRID CARD PAGINATION + ARROWS
   Own style, independent from the image-only slider bars above.
   Rendered in normal flow so swiper's overflow:hidden does not clip it.
========================= */
.magenest-event-slider.grid_card_info .event-grid-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.magenest-event-slider.grid_card_info .event-grid-pagination {
    position: static;
    width: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.magenest-event-slider.grid_card_info .event-grid-pagination .swiper-pagination-bullet {
    width: 8px;
    min-width: 0;
    height: 8px;
    margin: 0;
    border-radius: 50%;
    background-color: rgba(176, 176, 176, 1);
    opacity: 1;
    transition: width .3s ease;
    -webkit-transition: width .3s ease;
    -moz-transition: width .3s ease;
    -o-transition: width .3s ease;
}

.magenest-event-slider.grid_card_info .event-grid-pagination .swiper-pagination-bullet-active {
    border-radius: 999px;
    background-color: #D33791;
}

.magenest-event-slider.grid_card_info .event-grid-arrow {
    position: static;
    margin: 0;
    width: 24px;
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: transparent;
    cursor: pointer;
}

.magenest-event-slider.grid_card_info .event-grid-arrow:after {
    display: none;
}

.magenest-event-slider.grid_card_info .event-grid-arrow.swiper-button-disabled {
    opacity: .35;
}

.event-card-item {
    background-color:  #FFFFFF;
    border: 1px solid #D9D9D9;
    border-radius: 16px;
    -webkit-border-radius: 16px;
    -moz-border-radius: 16px;
    -o-border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.event-card-item .event-card-thumbnail img {
    width: 100%;
    object-fit: cover;
    overflow: hidden;
    aspect-ratio: 3 / 1.67;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.event-card-item .event-card-info {
    padding: 16px 16px 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-card-item .event-card-info .event-card-title,
.event-card-item .event-card-info .event-card-title a {
    margin: 0;
    font-size: 20px;
    line-height: 28px;
    letter-spacing: 0%;
    color: rgba(16, 16, 16, 1);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-meta {
    color: rgba(89, 89, 89, 1);
    font-size: 20px;
    line-height: 28px;
    letter-spacing: 0%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.event-meta img {
    position: relative;
    bottom: 2px;
}

/* =========================
   RESPONSIVE FIX
========================= */
@media (max-width: 1440px) {
    .magenest-event-slider {
        width: 100%;
    }

    .event-swiper-pagination {
        bottom: -25px !important;
    }

    .event-swiper-pagination .swiper-pagination-bullet {
        min-width: 50px;
    }
}

@media (max-width: 768px) {
    .magenest-event-slider:not(.grid_card_info) .swiper-slide {
        min-width: 300px;
    }

    .event-swiper-pagination .swiper-pagination-bullet {
        min-width: 30px;
    }
}