
.zoom-window {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999999;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.zoom-window__bg {
    position: absolute;
    top: 0;
    left: 0;
    background: #00000088;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.zoom-window__container {
    width: 100%;
    height: calc(100% - 200px);
    overflow: hidden;
    z-index: 2;
}
.zoomist-wrapper {
    background-color: transparent;
    cursor: default;
    text-align: center;
}
.zoomist-video {
    height: 99%;
    margin-top: 0.2%;
    display: inline-block;
}
.zoomist-video video {
    height: 100%;
    width: auto;
}
@media (max-width: 450px) {
    .zoomist-wrapper-video {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .zoomist-video {
        height: auto;
        width: 99%;
    }
}
.zoomist-image {
    pointer-events: auto;
    cursor: grab;
}
.zoomist-image img {
    height: 100%;
    width: auto;
}
.zoomist-image.dragging {
    cursor: grabbing;
    transition: none !important;
}
.zoom-window__image {
    user-select: none;
    height: 100%;
    padding: 0 !important;
}
.zoom-window__prev,
.zoom-window__next {
    width: 80px;
    height: 100%;
    background: rgba(0,0,0,0);
    z-index: 2;
    position: relative;
    transition: 0.2s;
    cursor: pointer;
}
.zoom-window__prev {
    left: 0;
}
.zoom-window__prev::before {
    content: '<';
}
.zoom-window__next {
    right: 0;
}
.zoom-window__next::before {
    content: '>';
}
.zoom-window__prev::before,
.zoom-window__next::before {
    color: #fff;
    font-size: 48px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.zoom-window__prev:hover,
.zoom-window__next:hover {
    background: rgba(0,0,0,0.1);
}
.zoomist-in-zoomer, .zoomist-out-zoomer {
    background-color: rgba(255,255,255,0.92);
}
.zoomist-zoomer-disable {
    opacity: 0.85;
}
.zoom-window__close {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    border-radius: 0 0 0 5px;
    overflow: hidden;
    width: 50px;
    height: 50px;
    cursor: pointer;
    background-color: rgba(255,255,255,0.92);
    transition: background-color .3s;
    display: flex;
    justify-content: center;
    align-items: center;
}
.zoom-window__close::after {
    content: '';
    background: url('/local/templates/adaptive/sprite.svg');
    background-position: -475px -139px;
    display: block;
    width: 15px;
    height: 15px;
    opacity: 0.5;
}
.zoom-window__close:hover {
    background-color: rgba(255,255,255,1);
}
.zoom-window__nav {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 10px;
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: center;
    gap: 10px;
    user-select: none;
    background: rgba(0,0,0,0.2);
    z-index: 2;
}
.zoom-window__nav-container {
    height: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.zoom-window__nav img {
    height: 100%;
    width: auto;
    opacity: 0.75;
    z-index: 1;
    cursor: pointer;
}
.zoom-window__nav img:hover {
    opacity: 1;
}
.zoom-window__nav img.active {
    border: 1px solid #fff;
    padding: 2px;
    margin: -3px;
    height: calc(100% + 6px);
    cursor: default;
    opacity: 1;
}
.zoomist-zoomer {
    right: unset;
    left: 0;
    border-radius: 0 0 5px 0;
}

@media (min-width: 1025px) {
    .zoom-window {
        justify-content: flex-end;
    }
    .zoom-window__container {
        height: 100%;
        width: calc(100% - 72px);
    }
    .zoom-window__nav {
        top: 0;
        left: 0;
        flex-direction: column;
        height: 100%;
        width: 72px;
        padding: 4px;
        justify-content: space-between;
    }
    .zoom-window__nav-container {
        width: 100%;
        height: fit-content;
        flex-direction: column;
        gap: 4px;
        max-height: calc(100% - 100px);
        overflow-y: auto;
        justify-content: flex-start;
        padding: 5px 0;
    }
    .zoom-window__nav-container::-webkit-scrollbar {
        width: 0;
    }
    .zoom-window__prev,
    .zoom-window__next {
        width: 64px;
        height: 64px;
        transform: rotate(90deg);
    }
    .zoom-window__prev.disabled,
    .zoom-window__next.disabled {
        opacity: 0.6;
        cursor: default;
    }
    .zoom-window__nav img {
        height: auto;
        width: 64px;
    }
    .zoom-window__nav img.active {
        padding: 2px;
        margin: -2px 0;
        height: auto;
        width: 64px;
    }
    .zoomist-zoomer {
        left: 72px;
    }
}
@media (max-width: 1024px) {
    .zoom-window__container {
        height: calc(100% - 100px);
    }
    .zoom-window__nav {
        height: 100px;
        padding: 4px 10px;
    }
    .zoom-window__nav-container {
        gap: 6px;
        max-width: calc(100% - 40px);
        overflow: hidden;
        overflow-x: auto;
        padding: 3px 3px;
        justify-content: flex-start;
    }

}
@media (max-width: 768px) {
    .zoom-window {
        padding: 0;
        align-items: flex-start;
    }
    .zoom-window__container {
        height: calc(100% - 140px);
    }
    .zoom-window__nav {
        height: 140px;
    }
}
@media (max-width: 450px) {
    .zoom-window__container {
        height: calc(100% - 65px);
    }
    .zoom-window__prev::before,
    .zoom-window__next::before {
        top: -5px;
    }
    .zoom-window__nav {
        height: 65px;
    }
}





