.car-detail-preview {
    position: relative;
}

.car-detail-main-button {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.car-detail-arrow {
    position: absolute;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    color: var(--main-font-color);
    background-color: rgba(255, 255, 255, .85);
    cursor: pointer;
    transform: translateY(-50%);
}

.car-detail-arrow--prev {
    left: 14px;
}

.car-detail-arrow--next {
    right: 14px;
}

.car-detail-arrow-icon {
    width: 8px;
    height: 13px;
}

.car-detail-arrow--prev .car-detail-arrow-icon {
    transform: rotate(180deg);
}

.car-detail-mini-item {
    position: relative;
    padding: 0;
    border: 0;
    background-color: transparent;
    cursor: pointer;
}

.car-detail-mini-item--active::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid var(--font-color-hover);
    border-radius: inherit;
    box-sizing: border-box;
    pointer-events: none;
}

.gallery-lightbox {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 60px;
    background-color: rgba(0, 0, 0, .86);
}

.gallery-lightbox[hidden] {
    display: none;
}

.gallery-lightbox-img {
    display: block;
    max-width: min(1100px, calc(100vw - 180px));
    max-height: calc(100vh - 100px);
    object-fit: contain;
}

.gallery-lightbox-close,
.gallery-lightbox-arrow {
    border: 0;
    color: #ffffff;
    background: transparent;
    cursor: pointer;
}

.gallery-lightbox-close {
    position: absolute;
    top: 22px;
    right: 28px;
    font-size: 28px;
}

.gallery-lightbox-close-icon {
    width: 24px;
    height: 24px;
}

.gallery-lightbox-arrow {
    font-size: 34px;
}

.gallery-lightbox-arrow-icon {
    width: 18px;
    height: 28px;
}

.gallery-lightbox-arrow--prev .gallery-lightbox-arrow-icon {
    transform: rotate(180deg);
}
