.horizontal-slider {
    --czterysklepy-background: #ffbf00;
    --czterysklepy-background-dark: #d99c00;
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.horizontal-slider--full-bleed {
    left: 50%;
    width: 100vw;
    max-width: 1920px;
    margin-left: 0;
    margin-right: 0;
    transform: translateX(-50%);
}

.horizontal-slider__viewport {
    width: 100%;
    overflow: hidden;
}

.horizontal-slider__track {
    display: flex;
    flex-direction: row;
    width: 100%;
    transform: translate3d(0, 0, 0);
    transition-property: transform;
    transition-timing-function: ease;
    will-change: transform;
}

.horizontal-slider__slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    overflow: hidden;
}

.horizontal-slider__slide-inner {
    position: relative;
    display: block;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

.horizontal-slider__slide-inner[data-cs-popup-id] {
    cursor: pointer;
}

.horizontal-slider__media-picture,
.horizontal-slider__media-img {
    display: block;
    width: 100%;
}

.horizontal-slider__media-img {
    height: auto;
    max-width: 100%;
}

.horizontal-slider__content {
    position: absolute;
    top: 32px;
    left: 32px;
    right: 32px;
    z-index: 2;
    pointer-events: none;
}

/* .horizontal-slider__title {
    max-width: 720px;
    margin: 0;
    color: var(--czterysklepy-background);
    font-size: 2rem;
    line-height: 1.15;
} */

.horizontal-slider__indicator {
    position: absolute;
    left: 20%;
    bottom: 15px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 8px;
}

.horizontal-slider__dot {
    position: relative;
    display: block;
    width: 12px;
    height: 12px;
    padding: 0;
    border: 2px solid #ffbf00;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
}

.horizontal-slider__dot::before {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: inherit;
    background: #ffbf00;
    opacity: 0;
    transform: scale(0.3);
    transition: opacity 180ms ease, transform 180ms ease;
}

.horizontal-slider__dot.is-active::before {
    opacity: 1;
    transform: scale(1);
}

.horizontal-slider.is-moving-next .horizontal-slider__dot.is-active::before {
    animation: horizontal-slider-dot-next 260ms ease;
}

.horizontal-slider.is-moving-prev .horizontal-slider__dot.is-active::before {
    animation: horizontal-slider-dot-prev 260ms ease;
}

.horizontal-slider .variant-navy {
    --czterysklepy-background: #10233f;
    --czterysklepy-background-dark: #071529;
}

.horizontal-slider .variant-blue {
    --czterysklepy-background: #0069c8;
    --czterysklepy-background-dark: #004b94;
}

.horizontal-slider .variant-lightblue {
    --czterysklepy-background: #68b9e8;
    --czterysklepy-background-dark: #2a87bd;
}

@keyframes horizontal-slider-dot-next {
    0% {
        transform: translateX(-6px) scale(0.3);
    }
    100% {
        transform: translateX(0) scale(1);
    }
}

@keyframes horizontal-slider-dot-prev {
    0% {
        transform: translateX(6px) scale(0.3);
    }
    100% {
        transform: translateX(0) scale(1);
    }
}

@media (max-width: 767px) {
    .horizontal-slider__content {
        top: 18px;
        left: 18px;
        right: 18px;
    }

    /* .horizontal-slider__title {
        max-width: 70%;
        font-size: 1.25rem;
    } */

    .horizontal-slider__indicator {
        left: 18px;
        bottom: 12px;
    }
}
