/*! yBox - v5.6 - 31/12/2023
* By Yuval Ashkenazi
* https://github.com/yuvalAshkenaz/yBox */
.yBoxOverlay * {
    -webkit-box-sizing: border-box;
    box-sizing: border-box
}

.yBoxOverlay {
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    -khtml-opacity: 0;
    -webkit-transition: 0.5s;
    transition: 0.5s
}

.yBoxOverlay.active {
    visibility: visible;
    opacity: 1;
    -khtml-opacity: 1
}

.yBoxFrame {
    background-color: #fff;
    border-radius: 5px;
    -webkit-box-shadow: rgba(0, 0, 0, 0.3) 0 0 14px 0;
    box-shadow: rgba(0, 0, 0, 0.3) 0 0 14px 0;
    max-width: -webkit-calc(100% - 10px);
    max-width: calc(100% - 10px);
    max-height: -webkit-calc(100vh - 10px);
    max-height: calc(100vh - 10px);
    z-index: 10001;
    border: 1px solid #23779b;
    -webkit-transition: 0.5s;
    transition: 0.5s;
    -webkit-transform: translate(0, 30px);
    transform: translate(0, 30px)
}

.yBoxFrame.yBoxContentFrame {
    background-color: #fff;
    color: #171b1e
}

.yBoxOverlay.active .yBoxFrame {
    -webkit-transform: translate(0, 0);
    transform: translate(0, 0)
}

.closeYbox,
.closeYbox[type="button"] {
    background-color: #fff;
    width: 35px;
    height: 35px;
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 0;
    padding: 0;
    border: none;
    cursor: pointer;
    z-index: 3
}

.yBoxIframe,
.yBoxNext,
.yBoxPrev {
    height: 100%;
    top: 0;
    position: absolute
}

.closeYbox::after,
.closeYbox::before {
    content: "";
    background-color: #000;
    width: 25px;
    height: 2px;
    position: absolute;
    left: 13px;
    top: 6px;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    -webkit-transition: 0.5s;
    transition: 0.5s
}

.closeYbox::after {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg)
}

.closeYbox:hover::before {
    -webkit-transform: rotate(135deg);
    transform: rotate(135deg)
}

.closeYbox:hover::after {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg)
}

.yBoxFrame.yBoxContentFrame .closeYbox {
    background: #fff
}

.yBoxFrame.yBoxContentFrame .closeYbox::after,
.yBoxFrame.yBoxContentFrame .closeYbox::before {
    background-color: #171b1e
}

.yBoxIframe {
    background: #171b1e;
    width: 100%;
    left: 0
}

.yBoxFrame.yBoxIframeWrap {
    width: 1200px;
    height: 750px
}

.yBoxFrame.yBoxIframeWrap .insertYboxAjaxHere {
    position: absolute;
    max-height: 100%;
    left: 10px;
    top: 10px;
    right: 10px;
    bottom: 10px;
    padding: 0
}

.insertYboxAjaxHere {
    min-width: 150px;
    min-height: 150px;
    max-height: -webkit-calc(100vh - 100px);
    max-height: calc(100vh - 100px);
    overflow: auto;
    padding: 50px 19px 13px
}

.yBoxFrame.yBoxImgWrap .insertYboxAjaxHere {
    padding: 10px;
    max-height: -webkit-calc(100vh - 10px);
    max-height: calc(100vh - 10px)
}

.yBoxFrame.yBoxImgWrap img.yBoxImg {
    max-width: -webkit-calc(100vw - 50px);
    max-width: calc(100vw - 50px);
    max-height: -webkit-calc(100vh - 30px);
    max-height: calc(100vh - 30px);
    vertical-align: top
}

.yBoxNext,
.yBoxPrev {
    background: none;
    width: 30%;
    border: none;
    cursor: pointer;
    z-index: 2
}

.yBoxNext {
    left: 0
}

.yBoxPrev {
    right: 0
}

.yBoxNext::after,
.yBoxPrev::after {
    content: "";
    width: 20px;
    height: 20px;
    position: absolute;
    top: 50%;
    border-bottom: 3px solid rgba(255, 255, 255, 0.7);
    border-left: 3px solid rgba(255, 255, 255, 0.7)
}

.yBoxPrev::after {
    right: 50px;
    -webkit-transform: translate(0, -50%) rotate(-135deg);
    transform: translate(0, -50%) rotate(-135deg)
}

.yBoxNext::after {
    left: 50px;
    -webkit-transform: translate(0, -50%) rotate(45deg);
    transform: translate(0, -50%) rotate(45deg)
}

.yBoxNext:hover::after,
.yBoxPrev:hover::after {
    border-bottom-color: #fff;
    border-left-color: #fff
}

.yBoxIframeWrap .yBoxNext,
.yBoxIframeWrap .yBoxPrev {
    width: 60px;
    height: 60px;
    top: 50%;
    margin: -30px 0 0
}

.yBoxIframeWrap .yBoxNext {
    left: 15px
}

.yBoxIframeWrap .yBoxPrev {
    right: 15px
}

.yBoxIframeWrap .yBoxNext::after {
    left: 43%
}

.yBoxIframeWrap .yBoxPrev::after {
    right: 41%
}

.yBoxLoader {
    width: 10px;
  height: 10px;
  border-radius: 50%;
  position: relative;
  animation: 1.5s linear infinite yBox-loader-circles;
  top: 56%;
  margin: -8px auto 0;
  zoom: 0.5;
  left: -4px;
}

.closeYboxOnFocus {
    width: 0;
    height: 0;
    position: absolute;
    background: none;
    padding: 0;
    margin: 0;
    border: none
}

.ybox-img-title {
    background: rgba(255, 255, 255, 0.6);
    padding: 7px 15px;
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    margin: 0;
    font-size: 18px
}

@keyframes yBox-loader-circles {

    0%,
    100% {
        box-shadow: 0 -27px 0 0 rgba(0, 0, 0, 0.05), 19px -19px 0 0 rgba(0, 0, 0, 0.1), 27px 0 0 0 rgba(0, 0, 0, 0.2), 19px 19px 0 0 rgba(0, 0, 0, 0.3), 0 27px 0 0 rgba(0, 0, 0, 0.4), -19px 19px 0 0 rgba(0, 0, 0, 0.6), -27px 0 0 0 rgba(0, 0, 0, 0.8), -19px -19px 0 0 #fff
    }

    12.5% {
        box-shadow: 0 -27px 0 0 #fff, 19px -19px 0 0 rgba(0, 0, 0, 0.05), 27px 0 0 0 rgba(0, 0, 0, 0.1), 19px 19px 0 0 rgba(0, 0, 0, 0.2), 0 27px 0 0 rgba(0, 0, 0, 0.3), -19px 19px 0 0 rgba(0, 0, 0, 0.4), -27px 0 0 0 rgba(0, 0, 0, 0.6), -19px -19px 0 0 rgba(0, 0, 0, 0.8)
    }

    25% {
        box-shadow: 0 -27px 0 0 rgba(0, 0, 0, 0.8), 19px -19px 0 0 #fff, 27px 0 0 0 rgba(0, 0, 0, 0.05), 19px 19px 0 0 rgba(0, 0, 0, 0.1), 0 27px 0 0 rgba(0, 0, 0, 0.2), -19px 19px 0 0 rgba(0, 0, 0, 0.3), -27px 0 0 0 rgba(0, 0, 0, 0.4), -19px -19px 0 0 rgba(0, 0, 0, 0.6)
    }

    37.5% {
        box-shadow: 0 -27px 0 0 rgba(0, 0, 0, 0.6), 19px -19px 0 0 rgba(0, 0, 0, 0.8), 27px 0 0 0 #fff, 19px 19px 0 0 rgba(0, 0, 0, 0.05), 0 27px 0 0 rgba(0, 0, 0, 0.1), -19px 19px 0 0 rgba(0, 0, 0, 0.2), -27px 0 0 0 rgba(0, 0, 0, 0.3), -19px -19px 0 0 rgba(0, 0, 0, 0.4)
    }

    50% {
        box-shadow: 0 -27px 0 0 rgba(0, 0, 0, 0.4), 19px -19px 0 0 rgba(0, 0, 0, 0.6), 27px 0 0 0 rgba(0, 0, 0, 0.8), 19px 19px 0 0 #fff, 0 27px 0 0 rgba(0, 0, 0, 0.05), -19px 19px 0 0 rgba(0, 0, 0, 0.1), -27px 0 0 0 rgba(0, 0, 0, 0.2), -19px -19px 0 0 rgba(0, 0, 0, 0.3)
    }

    62.5% {
        box-shadow: 0 -27px 0 0 rgba(0, 0, 0, 0.3), 19px -19px 0 0 rgba(0, 0, 0, 0.4), 27px 0 0 0 rgba(0, 0, 0, 0.6), 19px 19px 0 0 rgba(0, 0, 0, 0.8), 0 27px 0 0 #fff, -19px 19px 0 0 rgba(0, 0, 0, 0.05), -27px 0 0 0 rgba(0, 0, 0, 0.1), -19px -19px 0 0 rgba(0, 0, 0, 0.2)
    }

    75% {
        box-shadow: 0 -27px 0 0 rgba(0, 0, 0, 0.2), 19px -19px 0 0 rgba(0, 0, 0, 0.3), 27px 0 0 0 rgba(0, 0, 0, 0.4), 19px 19px 0 0 rgba(0, 0, 0, 0.6), 0 27px 0 0 rgba(0, 0, 0, 0.8), -19px 19px 0 0 #fff, -27px 0 0 0 rgba(0, 0, 0, 0.05), -19px -19px 0 0 rgba(0, 0, 0, 0.1)
    }

    87.5% {
        box-shadow: 0 -27px 0 0 rgba(0, 0, 0, 0.1), 19px -19px 0 0 rgba(0, 0, 0, 0.2), 27px 0 0 0 rgba(0, 0, 0, 0.3), 19px 19px 0 0 rgba(0, 0, 0, 0.4), 0 27px 0 0 rgba(0, 0, 0, 0.6), -19px 19px 0 0 rgba(0, 0, 0, 0.8), -27px 0 0 0 #fff, -19px -19px 0 0 rgba(0, 0, 0, 0.05)
    }
}

.yBoxVideo {
    background-color: #171b1e;
    width: 100%;
    height: 100%;
    vertical-align: top
}

@media screen and (max-width:767px) {
    .yBoxFrame.yBoxImgWrap .insertYboxAjaxHere {
        padding: 5px;
        max-height: -webkit-calc(100vh - 10px);
        max-height: calc(100vh - 10px);
        height: -webkit-calc(100vh - 10px);
        height: calc(100vh - 10px)
    }

    .yBoxFrame.yBoxImgWrap img.yBoxImg {
        max-width: -webkit-calc(100vw - 20px);
        max-width: calc(100vw - 20px);
        max-height: -webkit-calc(100vh - 20px);
        max-height: calc(100vh - 20px)
    }

    .yBoxPrev::after {
        right: 50%;
        width: 14px;
        height: 14px
    }

    .yBoxNext::after {
        left: 50%;
        width: 14px;
        height: 14px
    }

    .yBoxFrame.yBoxIframeWrap .insertYboxAjaxHere {
        left: 5px;
        right: 5px;
        top: 5px;
        bottom: 5px
    }

    .yBoxNext,
    .yBoxPrev {
        width: 50px;
        max-width: 30%;
        height: 50%;
        top: 50%;
        -webkit-transform: translateY(-50%);
        transform: translateY(-50%)
    }

    .yBoxFrame.yBoxImgWrap {
        width: -webkit-calc(100vw - 10px);
        width: calc(100vw - 10px);
        height: -webkit-calc(100vh - 10px);
        height: calc(100vh - 10px)
    }

    .yBoxImgZoom {
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #171b1e;
        overflow: hidden
    }
}

@media screen and (max-width:479px) {

    .yBoxFrame.yBoxIframeWrap,
    .yBoxFrame.yBoxIframeWrap .insertYboxAjaxHere,
    .yBoxFrame.yBoxImgWrap,
    .yBoxFrame.yBoxImgWrap .insertYboxAjaxHere {
        height: -webkit-calc(100vh - 80px);
        height: calc(100vh - 80px)
    }

    .yBoxFrame.yBoxImgWrap img.yBoxImg,
    .yBoxIframe {
        max-height: -webkit-calc(100vh - 90px);
        max-height: calc(100vh - 90px)
    }
}