/*=================================== car gallery =================================== */
.car-gallery {
    display: grid;
    grid-auto-columns: 252px;
    gap: 8px;
    border-radius: 16px;
    transition: transform 0.5s ease-in-out;
    scroll-snap-type: x mandatory;
    overflow: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.car--images {
    scroll-snap-align: start;
}

.car--images img {
    width: 100%;
    height: 100%;
    object-position: center center;
    background-color: rgb(247, 246, 245);
    border-radius: 10px;
}

.car--images:first-child {
    grid-area: 1 / 1 / span 2 / span 2;
}

.car--images:not(:first-child):nth-child(2n) {
    grid-row: 1;
}

.car--images:not(:first-child):nth-child(2n + 1) {
    grid-row: 2;
}

.gallery-wrapper {
    position: relative;
    min-height: 381px;
}

.gallery-wrapper .car--gallery-count {
    position: absolute;
    bottom: 22px;
    left: 16px;
    background-color: #4c5260;
    color: #ffffff;
    padding: 10px;
    border-radius: 0px;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
}

.gallery-wrapper .see--all {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: #ffffff;
    color: #154f74;
    padding: 12px 22px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.gallery-wrapper .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    user-select: none;
    color: #5d6370;
}

.gallery-wrapper .gallery--prev {
    left: 15px;
}

.gallery-wrapper .gallery--next {
    right: 15px;
}

.car--images:first-child img {
    max-height: 386px;
}

.car--images img {
    will-change: transform;
    min-height: 189px;
    max-height: 189px;
}

.car--images img {
    filter: blur(10px);
    transition: filter 0.3s ease;
}

.car--images img[src] {
    filter: blur(0);
}

.fotorama--hidden-cs {
    position: fixed;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

/* for three images */

.tri-img .car--images:nth-child(2) {
    grid-area: 1 / 3 / span 2 / span 2;
}

.tri-img .car--images:nth-child(2) img {
    max-height: 386px;
}

.tri-img .car--images:nth-child(3) {
    grid-area: 1 / 5 / span 2 / span 2;
}

.tri-img .car--images:nth-child(3) img {
    max-height: 386px;
}

/* for three images */
/* status wrapper */
.car--status {
    z-index: 100;
    position: absolute;
    top: 0px;
    background-color: rgba(255, 255, 255, 0.263);
    color: #ffffffe0;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status--wrapper {
    background-color: #0c1529a6;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    user-select: none;
    margin-right: 0.2%;
}

.status--wrapper .dots--status {
    font-size: 50px;
}

.status--wrapper .title--status {
    font-weight: 600;
    font-size: 90px;
    line-height: 130px;
}

/* status wrapper */
@media screen and (min-width: 1024px) and (max-width: 1199px) {
    .car-gallery {
        grid-auto-columns: 226px;
    }

    .status--wrapper .title--status {
        font-weight: 600;
        font-size: 65px;
        line-height: 130px;
    }

    .status--wrapper .dots--status {
        font-size: 35px;
    }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
    .car-gallery {
        grid-auto-columns: 226px;
    }

    .status--wrapper .title--status {
        font-weight: 600;
        font-size: 55px;
        line-height: 130px;
    }
}

/*=================================== car gallery ===================================*/