
.swiper-button-next,
.swiper-button-prev {
    &:focus {
        outline: solid 2px var(--ita-colors-black);
        outline-offset: 1px;
    }
}
#vehicle_thumbs__prev_btn:focus,
#vehicle_thumbs__next_btn:focus,
#vehicle_carousel__prev_btn:focus,
#vehicle_carousel__next_btn:focus {
    outline: solid 2px var(--ita-colors-black);
    outline-offset: -2px;
    border-radius: 0.2em;
}

#vehicle_carousel_commands {
    right: 0px;
    bottom: -5px;
    width: 100%;
    z-index: 1;
}
#vehicle_medias:has(#vehicle_carousel.expanded) #vehicle_carousel_commands {
    bottom: 18px;
    right: 0px;
    z-index: 99999999;
    position: fixed;
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
}
#vehicle_carousel {
    --swiper-navigation-size: 52px;
    transition: all 300ms;
    &.swiper-horizontal {
        & .swiper-button-next,
        & .swiper-button-prev,
        & ~ .swiper-button-next,
        & ~ .swiper-button-prev {
            top: calc(100% - 22px);
            color: var(--ita-colors-macif--1);
            & svg {
                display: none;
            }
        }
    }
    & > .swiper-pagination-bullets,
    & .swiper-pagination-bullets.swiper-pagination-horizontal,
    & .swiper-pagination-custom,
    & .swiper-pagination-fraction {
        top: calc(100% - 44px);
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        padding: 0px 100px;
        height: 44px;
    }
    & .swiper-pagination-bullet {
        width: 9px;
        height: 9px;
        border: 1px solid var(--ita-colors-macif--1);
        background: white;
        opacity: 1;
    }
    & .swiper-pagination-bullet-active {
        background: var(--ita-colors-macif--1);
    }
    
    &.expanded {
        position: fixed;
        top: 0px;
        left: 0px;
        width: 100%;
        height: 100%;
        z-index: 999999;
        & .swiper-slide,
        & picture {
            height: calc(100% - 100px);
        }
        & .overlay {
            height: calc(100% - 100px);
            border: none;
        }
        & #vehicle_carousel__index {
            bottom: 1.5em;
        }
    }
}

#vehicle_thumbs {
    &.swiper-vertical {
        & .swiper-button-next,
        & .swiper-button-prev,
        & ~ .swiper-button-next,
        & ~ .swiper-button-prev {
            color: var(--ita-colors-macif--1);
            & svg {
                display: none;
            }
        }
        & .swiper-button-disabled {
            opacity: 0;
            pointer-events: none;
        }
    }
}
@media (min-width: 900px) {
    #vehicle_carousel {
        & .swiper-slide {
            height: 462px;
        }
    }
    #vehicle_carousel_commands {
        right: -20px;
        bottom: -5px;
        width: calc(100% - 34px);
        z-index: 1;
    }
}
@media (min-width: 600px) and (max-width: 899px) {
    #vehicle_carousel {
        & .swiper-slide {
            height: 344px;
        }
    }
}
@media (max-width: 599px) {
    #vehicle_carousel {
        & .swiper-slide {
            height: 322px;
        }
    }
}

/* Featured cards */
[data-ui-swiper="featured-cards"] {
    --swiper-navigation-size: 52px;
    transition: all 300ms;
    & .swiper-slide {
        width: fit-content;
        & > div {
            width: 270px;
            max-width: 270px;
        }
    }
    & .swiper-button-next,
    & .swiper-button-prev {
        color: var(--ita-colors-macif--1);
        top: calc(100% - 74px);
        border: none;
        background-color: transparent;
        & svg {
            display: none;
        }
        & [data-ui-icon] {
            width: 100%;
            height: 100%;
        }
    }
    & .swiper-button-prev {
        transform: translateX(4px);
    }
    & .swiper-button-next {
        transform: translateX(-4px);
    }
    & .swiper-pagination-bullets,
    & .swiper-pagination-custom,
    & .swiper-pagination-fraction {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        padding: 0px 100px;
        height: 44px;
    }
    & .swiper-pagination {
        pointer-events: none;
        transform: translateY(-100%);
        gap: var(--ita-spacings-6);
    }
    & .swiper-pagination-bullet {
        pointer-events: auto;
        width: 9px;
        height: 9px;
        border: 1px solid var(--ita-colors-macif--1);
        background: white;
        opacity: 1;
    }
    & .swiper-pagination-bullet-active {
        background: var(--ita-colors-macif--1);
    }
}
@media (max-width: 899px) {
    [data-ui-swiper="featured-cards"] {
        & .swiper-slide > div {
            width: 250px;
            max-width: 250px;
        }
    }
}