.event-gallery-slider {
    margin-top: 28px;
}

.event-gallery-slider__header {
    margin-bottom: 14px;
}

.event-gallery-slider__deck {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #111827;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

.event-gallery-slider__slide {
    position: relative;
    min-height: 280px;
    aspect-ratio: 16 / 9;
    background: #111827;
}

.event-gallery-slider__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.015);
    transition:
        opacity 420ms ease,
        transform 520ms ease;
}

.event-gallery-slider__image.is-loaded {
    opacity: 1;
    transform: scale(1);
}

.event-gallery-slider__caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 56px 24px 22px;
    color: #fff;
    background: linear-gradient(
        180deg,
        rgba(17, 24, 39, 0) 0%,
        rgba(17, 24, 39, 0.82) 68%,
        rgba(17, 24, 39, 0.94) 100%
    );
    pointer-events: none;
}

.event-gallery-slider__caption p {
    max-width: 92%;
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.event-gallery-slider__loading {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: 42px;
    height: 42px;
    margin-top: -21px;
    margin-left: -21px;
    border: 4px solid rgba(255, 255, 255, 0.22);
    border-top-color: #fff;
    border-radius: 50%;
    animation: event-gallery-spin 850ms linear infinite;
}

.event-gallery-slider__loading.is-hidden {
    display: none;
}

.event-gallery-slider .splide__arrow {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.92);
    opacity: 1;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.event-gallery-slider .splide__arrow:hover,
.event-gallery-slider .splide__arrow:focus {
    background: #fff;
}

.event-gallery-slider .splide__pagination {
    bottom: 14px;
    gap: 6px;
}

.event-gallery-slider .splide__pagination__page {
    width: 9px;
    height: 9px;
    margin: 0;
    background: rgba(255, 255, 255, 0.65);
    opacity: 1;
}

.event-gallery-slider .splide__pagination__page.is-active {
    width: 22px;
    border-radius: 999px;
    background: #fff;
    transform: none;
}

.event-gallery-slider.is-single-slide .splide__arrows,
.event-gallery-slider.is-single-slide .splide__pagination {
    display: none;
}

@keyframes event-gallery-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 767.98px) {
    .event-gallery-slider {
        margin-top: 22px;
    }

    .event-gallery-slider__deck {
        border-radius: 12px;
    }

    .event-gallery-slider__slide {
        min-height: 220px;
    }

    .event-gallery-slider__caption {
        padding: 46px 16px 18px;
    }

    .event-gallery-slider__caption p {
        max-width: 100%;
        font-size: 14px;
    }

    .event-gallery-slider .splide__arrow {
        width: 36px;
        height: 36px;
    }
}
