/*
 * __ˍ__ˍ__ˍ__ˍ__ˍ__ˍ__ˍ__ˍ__ˍ
 * --------- General ---------
 * ‾‾¯‾‾¯‾‾¯‾‾¯‾‾¯‾‾¯‾‾¯‾‾¯‾‾¯
 */

.product-gallery-popup-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    display: none;
    width: 100%;
    height: 100%;
    padding: 20px;
    overflow: auto;
}

.product-gallery-popup-wrapper .close-button-wrapper {
    position: fixed;
    display: block;
    width: calc(100% - 308px);
    height: 48px;
    top: 24px;
    z-index: 10;
    left: 50%;
    transform: translateX(-50%);
}

.product-gallery-popup-wrapper .product-gallery-popup-close-button {
    position: fixed;
    width: 48px;
    height: 48px;
    right: 20px;
    background: #fff;
    border: 1px solid #CCCCCC;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    transition: 0.36s all;
    z-index: 50;
}

.product-gallery-popup-wrapper .product-gallery-popup-close-button:before {
    display: none;
}

.product-gallery-popup-wrapper .product-gallery-popup-close-button:after {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: url('/images/icons/icon-times-dark.svg');
    width: 24px;
    height: 24px;
}

.product-gallery-popup-wrapper .middle {
    position: fixed;
    opacity: 0;
    visibility: hidden;
    /* top: 50%; */
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    z-index: 10;
    transition: 0.36s all;
}

.product-gallery-popup-wrapper .middle.show {
    opacity: 1;
    visibility: visible;
}

.product-gallery-popup-wrapper .middle:before {
    content: '';
    position: absolute;
    width: 72px;
    height: 72px;
    background: #fff;
    border: 1px solid #CCCCCC;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    bottom: -17px;
    z-index: 5;
}

.product-gallery-popup-wrapper .mouse {
    display: block;
    position: relative;
    width: 24px;
    height: 40px;
    border: 1px solid #252324;
    border-radius: 60px;
    z-index: 10;
}

.product-gallery-popup-wrapper .mouse::before {
    content: '';
    width: 8px;
    height: 8px;
    position: absolute;
    top: 8px;
    background-color: #252324;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    opacity: 1;
    animation: mouse 2s infinite;
}

@keyframes mouse {
    from {
        opacity: 1;
        top: 7px;
    }
    to {
        opacity: 0;
        top: 30px;
    }
}

/* Button chevron up */
.product-gallery-popup-wrapper .navigation {
    position: fixed;
    display: block;
    width: calc(100% - 308px);
    left: 50%;
    transform: translateX(-50%);
    height: 101px;
    bottom: 40px;
    z-index: 5;
}

.product-gallery-popup-wrapper .navigation .wrapper {
    position: absolute;
    right: 20px;
}

.product-gallery-popup-wrapper .navigation .button-chevron-up {
    display: block;
    position: relative;
    width: 48px;
    height: 48px;
    background: #fff;
    margin-bottom: 5px;
    border: 1px solid #CCCCCC;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    cursor: pointer;
}

.product-gallery-popup-wrapper .navigation .button-chevron-up:after {
    content: '';
    display: block;
    position: absolute;
    width: 24px;
    height: 24px;
    left: 50%;
    top: 50%;
    background: url('/images/icons/icon-chevron-up-dark.svg');
    transform: translate(-50%, -50%);
}

.product-gallery-popup-wrapper .navigation .button-chevron-up:before {
    content: '';
    position: absolute;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    top: -1px;
    left: -1px;
    background: #fff;
    opacity: 0;
    z-index: 10;
    transition: opacity 0.36s;
}

.product-gallery-popup-wrapper .navigation .button-chevron-up.disabled{
    cursor: not-allowed;
}

.product-gallery-popup-wrapper .navigation .button-chevron-up.disabled:before {
    opacity: 0.6;
}

/* Button chevron down */
.product-gallery-popup-wrapper .navigation .button-chevron-down {
    display: block;
    position: relative;
    width: 48px;
    height: 48px;
    background: #fff;
    border: 1px solid #CCCCCC;
    border-radius: 50%;
    margin-bottom: 5px;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    transition: opacity 0.36s;
    cursor: pointer;
}

.product-gallery-popup-wrapper .navigation .button-chevron-down:after {
    content: '';
    display: block;
    position: absolute;
    width: 24px;
    height: 24px;
    left: 50%;
    top: 50%;
    background: url('/images/icons/icon-chevron-down-dark.svg');
    transform: translate(-50%, -50%);
}

.product-gallery-popup-wrapper .navigation .button-chevron-down:before {
    content: '';
    position: absolute;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    top: -1px;
    left: -1px;
    background: #fff;
    opacity: 0;
    z-index: 10;
    transition: opacity 0.36s;
}

.product-gallery-popup-wrapper .navigation .button-chevron-down.disabled{
    cursor: not-allowed;
}

.product-gallery-popup-wrapper .navigation .button-chevron-down.disabled:before {
    opacity: 0.6;
}

.product-gallery-popup {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.product-gallery-popup > div {
    position: relative;
}

.product-gallery-popup > div > .to-scroll {
    position: absolute;
    display: block;
    top: 63%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 1px;
    background: transparent;
    z-index: 50;
}

.product-gallery-popup > div:nth-child(3) .to-scroll,
.product-gallery-popup > div:nth-child(4) .to-scroll {
    top: 60%;
}

.product-gallery-popup > div:nth-child(5) .to-scroll,
.product-gallery-popup > div:nth-child(6) .to-scroll {
    top: 67%;
}


.product-gallery-popup > div > .close-space {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

.product-gallery-popup img {
    display: block;
    position: relative;
    width: calc(100% - 240px);
    height: 100%;
    margin: 0 auto 10px auto;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    z-index: 5;
}

@media only screen and (max-width: 1023px) {

    .product-gallery-popup-wrapper {
        padding: 30px 12px;
    }

    .product-gallery-popup img {
        width: 100%;
    }

    .product-gallery-popup-wrapper .close-button-wrapper {
        width: calc(100% - 40px);
    }
}

.product-gallery-fancybox .fancybox__backdrop {
    background: rgba(37, 35, 36, 0.9);
}

.product-gallery-fancybox .fancybox__toolbar {
    background: transparent;
}

.product-gallery-fancybox .fancybox__toolbar .fancybox__toolbar__items--center {
    display: none;
}

.product-gallery-fancybox .fancybox__toolbar .fancybox__button--close {
    position: fixed;
    background: #fff url('../../../images/icons/icon-times-dark.svg') no-repeat center;
    border-radius: 50%;
    border: 1px solid #E4E5E5;
    outline: none;
}

.product-gallery-fancybox .fancybox__toolbar .fancybox__button--close {
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
}

.product-gallery-fancybox .fancybox__toolbar .fancybox__button--close svg {
    display: none;
}

.product-gallery-fancybox .fancybox__carousel .fancybox__viewport .fancybox__slide {
    padding: 20px 0;
    cursor: auto;
}

.product-gallery-fancybox .fancybox__carousel .fancybox__nav .carousel__button.is-next {
    position: absolute;
    display: inline-block;
    background: #fff url('../../../images/icons/icon-chevron-right-dark.svg') no-repeat center;
    border: 1px solid #E4E5E5;
    border-radius: 50%;
    outline: none;
}

.product-gallery-fancybox .fancybox__carousel .fancybox__nav .carousel__button.is-next {
    top: 50%;
    right: 20px;
    width: 56px;
    height: 56px;
    transform: translateY(-50%);
}

.product-gallery-fancybox .fancybox__carousel .fancybox__nav .carousel__button.is-prev {
    position: absolute;
    display: inline-block;
    background: #fff url('../../../images/icons/icon-chevron-left-dark.svg') no-repeat center;
    border: 1px solid #E4E5E5;
    border-radius: 50%;
    outline: none;
}

.product-gallery-fancybox .fancybox__carousel .fancybox__nav .carousel__button.is-prev {
    top: 50%;
    left: 20px;
    width: 56px;
    height: 56px;
    transform: translateY(-50%);
}

.product-gallery-fancybox .fancybox__carousel .fancybox__nav .carousel__button svg {
    display: none;
}

@media only screen and (min-width: 1281px) {

    .product-gallery-fancybox .fancybox__carousel .fancybox__slide .fancybox__content {
        border-radius: 10px;
        overflow: hidden;
    }

    .product-gallery-fancybox .fancybox__carousel .fancybox__slide .fancybox__content img {
        position: relative;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) !important;
        /*transform: translate(-55%, -55%) scale(1.1) !important;*/
    }
}

@media only screen and (max-width: 1280px) {

    .product-gallery-fancybox .fancybox__backdrop {
        background: #FFFFFF;
    }

    .product-gallery-fancybox .fancybox__toolbar .fancybox__button--close {
        top: 50px;
        right: 15px;
        width: 45px;
        height: 45px;
    }

    .product-gallery-fancybox .fancybox__carousel .fancybox__viewport .fancybox__slide {
        padding: 65px 0 60px;
    }

    .product-gallery-fancybox .fancybox__carousel .fancybox__nav .carousel__button.is-next {
        top: initial;
        right: 25%;
        width: 50px;
        height: 50px;
        transform: translateY(-90px);
    }

    .product-gallery-fancybox .fancybox__carousel .fancybox__nav .carousel__button.is-prev {
        top: initial;
        left: 25%;
        width: 50px;
        height: 50px;
        transform: translateY(-90px);
    }
}

/*.mobile-gallery-fancybox .fancybox__carousel .fancybox__nav:after {*/
/*    content: 'Увеличете';*/
/*    position: absolute;*/
/*    top: 50%;*/
/*    left: 50%;*/
/*    display: block;*/
/*    width: 94px;*/
/*    height: 94px;*/
/*    background: rgba(37, 35, 36, 0.25) url('../../../images/icons/icon-pinch-white-x2large.svg') no-repeat center 15px;*/
/*    border-radius: 50%;*/
/*    color: #ffffff;*/
/*    font-family: 'Inter', sans-serif;*/
/*    font-size: 11px;*/
/*    font-weight: 400;*/
/*    letter-spacing: 0;*/
/*    line-height: 140px;*/
/*    text-align: center;*/
/*    transform: translate(-50%, -50%);*/
/*    pointer-events: none;*/
/*    -webkit-animation: cssAnimation 3s forwards;*/
/*    animation: cssAnimation 3s forwards;*/
/*}*/

/*@keyframes cssAnimation {*/
/*    0% {*/
/*        opacity: 1;*/
/*    }*/
/*    90% {*/
/*        opacity: 1;*/
/*    }*/
/*    100% {*/
/*        opacity: 0;*/
/*    }*/
/*}*/

/*@-webkit-keyframes cssAnimation {*/
/*    0% {*/
/*        opacity: 1;*/
/*    }*/
/*    90% {*/
/*        opacity: 1;*/
/*    }*/
/*    100% {*/
/*        opacity: 0;*/
/*    }*/
/*}*/

/*.product-gallery-main-image-wrapper {*/
/*	position: relative;*/
/*	height: 0;*/
/*	padding-top: 100%;*/
/*}*/
/*.product-gallery-main-image {*/
/*	position: absolute;*/
/*	top: 0;*/
/*	left: 0;*/
/*	width: 100%;*/
/*	image-rendering: -webkit-optimize-contrast;*/
/*	-ms-interpolation-mode: nearest-neighbor;*/
/*	-webkit-animation: fadeInFromNone 0.36s ease-in-out;*/
/*	-o-animation: fadeInFromNone 0.36s ease-in-out;*/
/*	animation: fadeInFromNone 0.36s ease-in-out;*/
/*	-webkit-animation-fill-mode: forwards;*/
/*	-moz-animation-fill-mode: forwards;*/
/*	-o-animation-fill-mode: forwards;*/
/*	animation-fill-mode: forwards;*/
/*}*/
/*.product-gallery-main-image-fancybox-link {*/
/*	position: absolute;*/
/*	display: block;*/
/*	top: 0;*/
/*	left: 0;*/
/*	height: 100%;*/
/*	width: 100%;*/
/*}*/
/*.product-gallery-main-image-zoom {*/
/*	position: absolute;*/
/*	overflow: hidden;*/
/*	display: none;*/
/*	top: 0;*/
/*	left: 0;*/
/*	width: 100%;*/
/*	height: 100%;*/
/*	-webkit-box-shadow: 0 0 10px -5px #000;*/
/*	-moz-box-shadow: 0 0 10px -5px #000;*/
/*	box-shadow: 0 0 10px -5px #000;*/
/*	cursor: -webkit-zoom-in;*/
/*	cursor: zoom-in;*/
/*	z-index: 1;*/
/*}*/
/*.product-gallery-thumbnails {*/
/*	display: inline-block;*/
/*	font-size: 0;*/
/*}*/
/*.product-gallery-thumbnail {*/
/*	width: 75px;*/
/*	height: 75px;*/
/*	margin-right: 5px;*/
/*	margin-bottom: 5px;*/
/*	padding: 2px;*/
/*	border: 1px solid #E6E6E6;*/
/*	cursor: pointer;*/
/*	opacity: 0.5;*/
/*	-webkit-border-radius: 4px;*/
/*	-moz-border-radius: 4px;*/
/*	border-radius: 4px;*/
/*	-webkit-transition: all 0.16s ease-in-out;*/
/*	-moz-transition: all 0.16s ease-in-out;*/
/*	-o-transition: all 0.16s ease-in-out;*/
/*	transition: all 0.16s ease-in-out;*/
/*	box-shadow: 0 0 0 1px transparent;*/
/*}*/

/*.product-gallery-thumbnail:hover,*/
/*.product-gallery-thumbnail.is-active {*/
/*	opacity: 1;*/
/*	image-rendering: -webkit-optimize-contrast;*/
/*	-ms-interpolation-mode: nearest-neighbor;*/
/*	border-color: #7F7F7F;*/
/*}*/
/*.product-gallery-thumbnail img {*/
/*	display: block;*/
/*	width: 100%;*/
/*	-webkit-border-radius: 4px;*/
/*	-moz-border-radius: 4px;*/
/*	border-radius: 4px;*/
/*	-webkit-animation: fadeInFromNone 0.36s ease-in-out;*/
/*	-o-animation: fadeInFromNone 0.36s ease-in-out;*/
/*	animation: fadeInFromNone 0.36s ease-in-out;*/
/*	-webkit-animation-fill-mode: forwards;*/
/*	-moz-animation-fill-mode: forwards;*/
/*	-o-animation-fill-mode: forwards;*/
/*	animation-fill-mode: forwards;*/
/*}*/
