.fxpo-entity-slider {
    --fxpo-active-columns: var(--fxpo-columns);
    --fxpo-active-gap: var(--fxpo-gap);
    position: relative;
}

.fxpo-entity-slider__viewport {
    overflow: hidden;
    outline: none;
}

.fxpo-entity-slider__viewport:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.fxpo-entity-slider__track {
    display: flex;
    gap: var(--fxpo-active-gap);
    transition: transform 360ms ease;
    will-change: transform;
}

.fxpo-entity-slider__slide {
    box-sizing: border-box;
    flex: 0 0 calc((100% - (var(--fxpo-active-columns) - 1) * var(--fxpo-active-gap)) / var(--fxpo-active-columns));
    min-width: 0;
}

.fxpo-entity-slider__card {
    box-sizing: border-box;
    height: 100%;
    overflow: hidden;
}

.fxpo-entity-slider__image {
    display: block;
    overflow: hidden;
}

.fxpo-entity-slider__image-element {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fxpo-entity-slider__title {
    margin: 16px 0 0;
}

.fxpo-entity-slider__title a {
    color: inherit;
    text-decoration: none;
}

.fxpo-entity-slider__arrow {
    align-items: center;
    background: #fff;
    border: 1px solid currentColor;
    border-radius: 50%;
    color: #1d1d1d;
    cursor: pointer;
    display: inline-flex;
    height: 44px;
    justify-content: center;
    padding: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    z-index: 2;
}

.fxpo-entity-slider__arrow--previous { left: 12px; }
.fxpo-entity-slider__arrow--next { right: 12px; }

.fxpo-entity-slider__arrow:disabled {
    cursor: not-allowed;
    opacity: .4;
}

.fxpo-entity-slider__dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
}

.fxpo-entity-slider__dot {
    background: #b9b9b9;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    height: 8px;
    padding: 0;
    transition: transform 180ms ease, background-color 180ms ease;
    width: 8px;
}

.fxpo-entity-slider__dot[aria-current="true"] {
    background: #333;
    transform: scale(1.35);
}

.fxpo-entity-slider__empty {
    border: 1px dashed #9b9b9b;
    padding: 20px;
    text-align: center;
}

@media (max-width: 1024px) {
    .fxpo-entity-slider {
        --fxpo-active-columns: var(--fxpo-columns-tablet);
        --fxpo-active-gap: var(--fxpo-gap-tablet);
    }
}

@media (max-width: 767px) {
    .fxpo-entity-slider {
        --fxpo-active-columns: var(--fxpo-columns-mobile);
        --fxpo-active-gap: var(--fxpo-gap-mobile);
    }

    .fxpo-entity-slider__arrow--previous { left: 6px; }
    .fxpo-entity-slider__arrow--next { right: 6px; }
}

@media (prefers-reduced-motion: reduce) {
    .fxpo-entity-slider__track,
    .fxpo-entity-slider__dot {
        transition: none;
    }
}
