/* KHODROBID FULLSCREEN VEHICLE GALLERY V1 */

.kb-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: #050505;
    color: white;
    display: none;
    flex-direction: column;
    font-family: Arial, Tahoma, sans-serif;
    direction: ltr;
}

.kb-lightbox.kb-open {
    display: flex;
}

.kb-lightbox * {
    box-sizing: border-box;
}

.kb-lightbox-top {
    height: 58px;
    min-height: 58px;
    padding: 0 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kb-lightbox-counter {
    font-size: 15px;
    color: #eee;
    direction: ltr;
}

.kb-lightbox-actions {
    display: flex;
    gap: 8px;
}

.kb-lightbox button {
    border: 0;
    background: transparent;
    color: white;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.kb-lightbox-actions button {
    width: 43px;
    height: 43px;
    border-radius: 9px;
    font-size: 27px;
}

.kb-lightbox button:hover {
    background: rgba(255,255,255,.14);
}

.kb-lightbox-stage {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    touch-action: pan-y;
}

.kb-lightbox-photo {
    display: block;
    max-width: calc(100% - 110px);
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transform-origin: center;
    transition: transform .16s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.kb-lightbox-photo.kb-zoomed {
    cursor: grab;
}

.kb-lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 70px;
    font-size: 35px;
    z-index: 2;
}

.kb-lightbox-prev { left: 8px; }
.kb-lightbox-next { right: 8px; }

.kb-lightbox-thumbs {
    height: 124px;
    min-height: 124px;
    display: flex;
    gap: 9px;
    align-items: center;
    justify-content: safe center;
    overflow-x: auto;
    padding: 12px 20px;
    scrollbar-width: thin;
}

.kb-lightbox-thumb {
    flex: 0 0 110px;
    width: 110px;
    height: 82px;
    border: 2px solid transparent !important;
    border-radius: 7px;
    overflow: hidden;
    padding: 0;
    opacity: .55;
}

.kb-lightbox-thumb.kb-active {
    border-color: #ff9233 !important;
    opacity: 1;
}

.kb-lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.kb-lightbox-active {
    overflow: hidden !important;
}

.kb-photo img,
.hero-img img,
.kb-thumbs img,
.thumbs img {
    cursor: zoom-in;
}

@media(max-width:700px) {
    .kb-lightbox-top {
        height: 52px;
        min-height: 52px;
        padding: 0 9px;
    }
    .kb-lightbox-actions button {
        width: 36px;
        height: 40px;
        font-size: 23px;
    }
    .kb-lightbox-photo {
        max-width: 100%;
        max-height: 100%;
    }
    .kb-lightbox-arrow {
        width: 34px;
        height: 55px;
        font-size: 29px;
        background: rgba(0,0,0,.35) !important;
    }
    .kb-lightbox-prev { left: 0; }
    .kb-lightbox-next { right: 0; }
    .kb-lightbox-thumbs {
        height: 94px;
        min-height: 94px;
        justify-content: safe start;
        gap: 6px;
        padding: 9px;
    }
    .kb-lightbox-thumb {
        flex-basis: 80px;
        width: 80px;
        height: 65px;
    }
}
