.a11y-slider-container {
    position: relative;
    direction: ltr;
}

.a11y-slider {
    position: relative;
    overflow: hidden;
    -webkit-scroll-snap-type: x mandatory;
    -ms-scroll-snap-type: x mandatory;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.a11y-slider::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.a11y-slider>* {
    scroll-snap-align: start;
    -webkit-box-sizing: inherit;
    -moz-box-sizing: inherit;
    box-sizing: inherit;
}

.a11y-slider-sr-only,
.a11y-slider-status {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    text-align: center;
    font-family: inherit;
    font-size: 1em;
}

.a11y-slider-sr-only:focus {
    position: static;
    background: #000;
    color: #fff;
    width: 100%;
    height: auto;
    margin: 0;
    clip: auto;
    padding: 10px;
}

.a11y-slider-hide {
    display: none;
}

.a11y-slider-scrolling {
    cursor: -webkit-grabbing;
    cursor: grabbing;
    -webkit-scroll-snap-type: none;
    -ms-scroll-snap-type: none;
    scroll-snap-type: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    scroll-behavior: auto;
}

.slider {
    display: flex;
    padding: 0;
    overflow: hidden;
}

.slider>* {
    width: 100%;
    flex: 0 0 auto;
}

@media (min-width: 768px) {
    .slider>* {
        width: 50%;
    }
}

@media (min-width: 960px) {
    .slider>* {
        width: 33.3333%;
    }
}

@media (min-width: 1280px) {
    .slider>* {
        width: 25%;
    }
}

.slider>* {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.slider div {
    margin-inline: auto;
    font-size: var(--fs-500);
    text-align: center;
    max-width: 750px;
}

/* Style the buttons to hide text and position arrows */
.a11y-slider-next,
.a11y-slider-prev {
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    width: 40px;
    /* Standard width for arrows */
    height: 40px;
    /* Standard height for arrows */
    text-indent: -9999px;
    /* Visually hide the text */
    overflow: hidden;
    /* Ensure text doesn’t overflow */
}

@media (max-width: 768px) {

    .a11y-slider-next,
    .a11y-slider-prev {
        inset: auto auto -4rem auto;
    }
}

/* Ensure buttons are focusable and visible for keyboard users */
:is(.a11y-slider-next, .a11y-slider-prev):focus {
    outline: none;
    /* Visible focus outline */
}

/* Use background images for Next arrow */
.a11y-slider-next {
    right: 10px;
    background-image: url('/assets/icons/arrow-right.svg');
    /* Replace with your right arrow image */
    background-size: contain;
    /* Scales the image to fit while maintaining aspect ratio */
    background-repeat: no-repeat;
    /* Prevents tiling */
    background-position: center;
    /* Centers the arrow in the button */
}

/* Use background images for Previous arrow */
.a11y-slider-prev {
    left: 10px;
    background-image: url('/assets/icons/arrow-left.svg');
    /* Replace with your left arrow image */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Optional: Add hover effect for interactivity */
:is(.a11y-slider-next, .a11y-slider-prev):hover {
    opacity: 0.5;
    background-color: transparent;
    /* Slight fade for hover feedback */
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .a11y-slider-next,
    .a11y-slider-prev {
        width: 30px;
        /* Smaller on mobile */
        height: 30px;
        padding: 5px;
    }
}

/* Right arrow Unicode */
.a11y-slider-dots li button.active {
    background: var(--clr-primary-blush);
}

.a11y-slider-dots {
    display: flex;
    justify-content: center;
    margin-block: 1.5rem;
    gap: 1.5rem;
    padding: 0;
}

.a11y-slider-dots li {
    display: block;
    width: 16px;
    height: 16px;
}

.a11y-slider-dots li button {
    display: block;
    font-size: 0;
    text-indent: -9999px;
    background: transparent;
    border: 1px solid var(--clr-primary-blush);
    width: 100%;
    height: 100%;
    border-radius: 100%;
    padding: 0;
}

.a11y-slider-dots li button.active {
    background: var(--clr-primary-blush);
}

.a11y-slider-autoplay {
    display: none;
}