:root {
    --scrollbar-size: .375rem;
    --scrollbar-minlength: 1.5rem;
    --scrollbar-ff-width: thin;
    --scrollbar-track-color: transparent;
    --scrollbar-color: #dadada;
    --scrollbar-color-hover: #c5c5c5;
    --scrollbar-color-active: #000;
}

.popup-gallery .gpb-preview {
    width: 50px;
    padding: 20px 0 0 30px;
    box-sizing: content-box;
}
.gpb-preview-block {
    width: 50px;
    display: inline-block;
    vertical-align: top;
    margin: 0;
    padding: 0;
    list-style: none;
}
.gpb-preview-block li {
    list-style: none;
}

.gpb-preview-block a.active {
    cursor: default;
}

.gpb-preview-block img {
    max-width: 100%;
    height: auto;
    max-height: 100%;
    margin-left: auto;
    margin-right: auto;
    display: block;
}
.gpb-preview-block li {
    width: 70px;
    height: 60px;
    display: block;
    text-align: center;
    border: 2px solid transparent;
    border-radius: 3px;
    padding: 0;
    margin: 0;
}

.gpb-preview-block .active, .gpb-preview-block .active:hover {
    border-color: #cccccc;
}

.gpb-preview-scroll {
    max-height: 680px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 20px;
    width: 90px;
    overscroll-behavior: none;
    scrollbar-width: var(--scrollbar-ff-width);
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar;
    scrollbar-color: var(--scrollbar-color) var(--scrollbar-track-color);
}

.gpb-preview-scroll::-webkit-scrollbar {
    height: var(--scrollbar-size);
    width: var(--scrollbar-size);
}

.gpb-preview-scroll::-webkit-scrollbar-track {
    background-color: var(--scrollbar-track-color);
}
.gpb-preview-scroll::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-color);
    border-radius: 3px;
}
.gpb-preview-scroll::-webkit-scrollbar-thumb:hover {
    background-color: var(--scrollbar-color-hover);
}
.gpb-preview-scroll::-webkit-scrollbar-thumb:active {
    background-color: var(--scrollbar-color-active);
}
.gpb-preview-scroll::-webkit-scrollbar-thumb:vertical {
    min-height: var(--scrollbar-minlength);
}
.gpb-preview-scroll::-webkit-scrollbar-thumb:horizontal {
    min-width: var(--scrollbar-minlength);
}
.gpb-preview-scroll:hover {
    scrollbar-color: var(--scrollbar-color-hover) var(--scrollbar-track-color);
}

.gpb-preview-scroll::-webkit-scrollbar-thumb {
    background-color: #dadada;
}

.gpb-preview-scroll:hover::-webkit-scrollbar-thumb {
    background-color: #c5c5c5;
}

.gpb-body-row {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: table;
}
.gpb-body-block {
    width: 100%;
    text-align: center;
    display: table-cell;
    vertical-align: middle;
}
.gpb-body.clickable:not(.disabled) {
    cursor: pointer;
}
.gpb-body-block img {
    height: auto;
    max-height: 99%;
    max-width: 100%;
}

.gpb-left {
    position: absolute;
    box-sizing: border-box;
    display: block;
    z-index: 100;
    color: #ccc;
    font-size: 34px;
    text-align: center;
    width: 50px;
    top: 0;
    left: 0;
    height: 100%;
}

.gpb-right {
    position: absolute;
    box-sizing: border-box;
    display: block;
    z-index: 100;
    color: #ccc;
    font-size: 34px;
    text-align: center;
    width: calc(100% - 50px);
    top: 0;
    right: 0;
    height: 100%;
}

.gpb-body {
    position: relative;
}
.gpb-left svg.icon {
    position: absolute;
    top: 50%;
    left: 18px;
}

.gpb-right svg.icon {
    position: absolute;
    top: 50%;
    right: 18px;
}



.rating-small a:not([href]) {
    cursor: default;
}

.gpb-left.disabled, .gpb-right.disabled {
    cursor: default;
}

.gpb-right:hover [class*=icon-] {
    background-position: 0px -3750px;
}
.gpb-left:hover [class*=icon-] {
    background-position: 0px -3800px;
}
.gpb-right.disabled [class*=icon-] {
    background-position: -150px -3750px;
}
.gpb-left.disabled [class*=icon-] {
    background-position: -150px -3800px;
}
.preview-img-wrapper {
    width: 50px;
    height: 50px;
    padding: 3px 8px;
    box-sizing: content-box;
    display: table-cell;
    vertical-align: middle;
    text-align: center;
}

.popup-gallery .popup-content-text {
    border-radius: 2px;
    border: none;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.26);
    overflow: hidden;
    padding: 16px 12px 16px 16px;
    position: relative;
}
.popup-gallery .table-popup-block {
    margin: -16px;
}

.gallery-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding-right: 110px;
}

.gallery-header .popup-title {
    line-height: 42px;
    font-size: 16px;
    color: #333333;
    text-align: center;
}

.gallery-header .popup-close {
    position: absolute;
    display: inline-block;
    width: 42px;
    height: 42px;
    padding: 13px;
    right: 0;
    top: 0;
}

.gallery-header .popup-close svg.icon-40 {
    width: 15px;
    height: 15px;
}

.popup-gallery .popup-block {
    padding-top: 24px;
}

.popup-block .gallery-popup-block {
    margin: 0;
}

.popup-gallery.gallery-single-image .gpb-preview,
.popup-gallery.gallery-single-image .gpb-left,
.popup-gallery.gallery-single-image .gpb-right {
    display: none;
}

.gallery-single-image .gallery-header {
    padding-left: 42px;
    padding-right: 42px;
}