.vfbpop-wrap {
    --vfbpop-btn-bg: rgba(0, 0, 0, .22);
    --vfbpop-btn-bg-hover: rgba(0, 0, 0, .45);
    --vfbpop-thumb-w: 60px;
    --vfbpop-thumb-h: 40px;
    --vfbpop-thumbs-h: 90px;
}
.vfbpop-wrap .fancybox-bg {
    background: var(--colorff);
}
.vfbpop-wrap.fancybox-is-open .fancybox-bg {
    opacity: 1;
}
.vfbpop-wrap.fancybox-show-thumbs .fancybox-inner {
    right: 0;
    bottom: var(--vfbpop-thumbs-h);
}
.vfbpop-wrap .fancybox-slide--image {
    padding: 70px 120px 20px;
}
.vfbpop-wrap .fancybox-slide--image .fancybox-content {
    background: transparent;
}
.vfbpop-wrap .fancybox-loading {
    border-color: rgba(0, 0, 0, .12);
    border-top-color: var(--colorwm);
}
.vfbpop-wrap .vfbpop-btn {
    align-items: center;
    background: var(--vfbpop-btn-bg);
    border: 0;
    border-radius: 50%;
    color: var(--colorff);
    cursor: pointer;
    display: flex;
    justify-content: center;
    padding: 0;
    transition: background-color .2s ease;
}
.vfbpop-wrap .vfbpop-btn:hover {
    background: var(--vfbpop-btn-bg-hover);
    color: var(--colorff);
}
.vfbpop-wrap .vfbpop-btn svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    height: 50%;
    width: 50%;
    filter: none;
    overflow: visible;
}
.vfbpop-wrap .vfbpop-btn svg path {
    fill: none;
    stroke-width: 1.6;
}
.vfbpop-wrap .vfbpop-btn[disabled] {
    cursor: default;
    opacity: .3;
}
.vfbpop-wrap .fancybox-toolbar {
    right: 18px;
    top: 20px;
}
.vfbpop-wrap .fancybox-toolbar .vfbpop-close {
    height: 44px;
    width: 44px;
}
.vfbpop-wrap .fancybox-navigation .vfbpop-arrow {
    height: 50px;
    margin-top: -25px;
    padding: 0;
    top: 50%;
    width: 50px;
}
.vfbpop-wrap .fancybox-navigation .vfbpop-arrow--prev {
    left: 20px;
}
.vfbpop-wrap .fancybox-navigation .vfbpop-arrow--next {
    right: 20px;
}
.vfbpop-wrap .fancybox-thumbs {
    background: transparent;
    bottom: 0;
    height: var(--vfbpop-thumbs-h);
    left: 0;
    padding: 0 10px;
    right: 0;
    top: auto;
    width: auto;
    scrollbar-width: none;
}
.vfbpop-wrap .fancybox-thumbs::-webkit-scrollbar {
    display: none;
}
.vfbpop-wrap .fancybox-thumbs__list {
    margin: 0 auto;
    padding-top: calc(var(--vfbpop-thumbs-h) - var(--vfbpop-thumb-h) - 18px);
}
.vfbpop-wrap .fancybox-thumbs__list a {
    background-color: var(--coloree);
    height: var(--vfbpop-thumb-h);
    margin: 0 5px;
    max-height: none;
    max-width: none;
    opacity: .4;
    transition: opacity .2s ease;
    width: var(--vfbpop-thumb-w);
}
.vfbpop-wrap .fancybox-thumbs__list a:hover,
.vfbpop-wrap .fancybox-thumbs__list a.fancybox-thumbs-active {
    opacity: 1;
}
.vfbpop-wrap .fancybox-thumbs__list a::before {
    border: 2px solid var(--colorwm);
}
.vfbpop-wrap .fancybox-thumbs__list a:focus::before {
    opacity: 0;
}
.vfbpop-wrap .fancybox-thumbs__list a.fancybox-thumbs-active::before {
    opacity: 1;
}
.vfbpop-wrap .fancybox-caption {
    background: none;
    color: var(--color33);
    padding: 10px 44px;
    text-align: center;
}
@media (max-width: 1023px) {
    .vfbpop-wrap .fancybox-slide--image {
        padding: 70px 80px 20px;
    }
    .vfbpop-wrap .fancybox-navigation .vfbpop-arrow {
        height: 42px;
        margin-top: -21px;
        width: 42px;
    }
    .vfbpop-wrap .fancybox-navigation .vfbpop-arrow--prev {
        left: 12px;
    }
    .vfbpop-wrap .fancybox-navigation .vfbpop-arrow--next {
        right: 12px;
    }
}
@media (max-width: 767px) {
    .vfbpop-wrap {
        --vfbpop-thumb-w: 46px;
        --vfbpop-thumb-h: 32px;
        --vfbpop-thumbs-h: 64px;
    }
    .vfbpop-wrap .fancybox-slide--image {
        padding: 60px 0 10px;
    }
    .vfbpop-wrap .fancybox-toolbar {
        right: 10px;
        top: 10px;
    }
    .vfbpop-wrap .fancybox-toolbar .vfbpop-close {
        height: 34px;
        width: 34px;
    }
    .vfbpop-wrap .fancybox-navigation {
        display: none;
    }
    .vfbpop-wrap .fancybox-thumbs {
        padding: 0 4px;
    }
    .vfbpop-wrap .fancybox-thumbs__list a {
        margin: 0 4px;
    }
}
