.car-slider-wrapper {
    width: 100%;
    height: fit-content;
}

.car-photo-slider {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    text-align: center;
    overflow: hidden;
}

.car-photo-slide > img {
    width: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.car-photo-slides {
    position: relative;
    display: flex;

    width: 100%;
    height: auto;
    justify-content: center;

    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.car-photo-slides::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.car-photo-slides::-webkit-scrollbar-thumb {
    background: black;
    border-radius: 10px;
}

.car-photo-slides::-webkit-scrollbar-track {
    background: transparent;
}

.car-photo-slide {
    position: relative;
    width: 100%;
    scroll-snap-align: start;
    flex-shrink: 0;
    border-radius: 10px 10px 0 0;
    background: #eee;
    transform-origin: center center;
    transform: scale(1);
    transition: transform 0.5s;
    display: flex;
    justify-content: center;
    font-size: 100px;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.car-photo-slides > div:target {
    /*   transform: scale(0.8); */
}

.car-photo-slider > a {
    display: inline-flex;
    width: 1.5rem;
    height: 1.5rem;
    background: white;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 0 0.5rem 0;
    position: relative;
}

.car-photo-slider > a:active {
    top: 1px;
}

.car-photo-slider > a:focus {
    background: #000;
}

.images {
    display: flex;
    position: relative;
    width: 290px;
    height: 217px;
}

.link {
    position: absolute;
    z-index: 2;
    width: 20%;
    height: 100%;
}
.bullet-1 {
    left: 0%;
}
.bullet-2 {
    left: 20%;
}
.bullet-3 {
    left: 40%;
}
.bullet-4 {
    left: 60%;
}
.bullet-5 {
    left: 80%;
}
a:hover.link + .image {
    z-index: 1;
}

.image {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.nav__slide:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0, 0);
    width: 100%;
    height: 100%;
    background-color: var(--white);
    transition: 300ms;
}

.nav__slide {
    pointer-events: none;
    position: absolute;
    bottom: 5px;
    display: inline-block;
    transform:translate(-50%, -50%);
    cursor: pointer;
    width: 90%;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.5);
}

.nav-active:after {
    transform: translate(-50%, -50%) scale(1, 1);
    opacity: 1;
}
