/*! yBox - v8.2 - 08/07/2025
* 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,.5);
    display: flex;
    width: 100%;
    height: 100%;
    align-items: end;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    -khtml-opacity: 0;
    -webkit-transition: .5s;
    transition: .5s
}

.yBoxOverlay.active {
    visibility: visible;
    opacity: 1;
    -khtml-opacity: 1
}

.yBoxFrame {
    background-color: #fff;
    border-radius: 0;
    -webkit-box-shadow: rgba(0,0,0,.3) 0 0 14px 0;
    box-shadow: rgba(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;
    -webkit-transition: .5s;
    transition: .5s;
    -webkit-transform: translate(0,30px);
    transform: translate(0,30px);
    width: 100%;
    bottom: 0;
    top: auto;
    margin: 0;
    padding: 0;
}

.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
}

.closeYbox::after,.closeYbox::before {
    content: "";
    background-color: #000;
    width: 25px;
    height: 2px;
    position: absolute;
    left: 5px;
    top: 16px;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    -webkit-transition: .5s;
    transition: .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
}

#ybox-iframe-headline {
    margin: 10px 0 15px;
    text-align: center;
    font-size: 22px;
    font-weight: 400
}

.yBoxIframe {
    background: #171b1e;
    width: 100%;
    flex-grow: 1
}

.yBoxFrame.yBoxIframeWrap {
    width: 1200px;
    height: 750px
}

.yBoxFrame.yBoxIframeWrap .insertYboxAjaxHere {
    position: absolute;
    display: flex;
    max-height: 100%;
    flex-direction: column;
    left: 10px;
    top: 10px;
    right: 10px;
    bottom: 10px;
    padding: 0
}

.insertYboxAjaxHere {
    min-width: 150px;
    min-height: 100px;
    max-height: -webkit-calc(100vh - 100px);
    max-height: calc(100vh - 100px);
    overflow: auto;
    padding: 35px 19px 35px;
}

.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: 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30%;
    top: 10px;
    bottom: 10px;
    position: absolute;
    border: none;
    cursor: pointer;
    z-index: 2
}

.yBoxPrev {
    left: 10px
}

.yBoxNext {
    right: 10px
}

.yBoxRTL .yBoxPrev {
    right: 10px;
    left: auto
}

.yBoxRTL .yBoxNext {
    left: 10px;
    right: auto
}

.yBoxNext:focus,.yBoxPrev:focus {
    outline: 0!important
}

.ybox-focus .yBoxNext:focus,.ybox-focus .yBoxPrev:focus {
    background: rgba(0,0,0,.2)
}

.yBoxNext::after,.yBoxPrev::after {
    content: "";
    width: 20px;
    height: 20px;
    border-bottom: 3px solid rgba(255,255,255,.7);
    border-left: 3px solid rgba(255,255,255,.7)
}

.yBoxNext::after {
    -webkit-transform: rotate(-135deg);
    transform: rotate(-135deg);
    margin: 0 0 0 -10px
}

.yBoxPrev::after {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    margin: 0 -10px 0 0
}

.yBoxRTL .yBoxNext::after {
    left: 50px;
    right: auto;
    -webkit-transform: translate(0,-50%) rotate(45deg);
    transform: translate(0,-50%) rotate(45deg)
}

.yBoxRTL .yBoxPrev::after {
    right: 50px;
    left: auto;
    -webkit-transform: translate(0,-50%) rotate(-135deg);
    transform: translate(0,-50%) rotate(-135deg)
}

.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
}

.yBoxRTL .yBoxIframeWrap .yBoxNext {
    right: 15px;
    left: auto
}

.yBoxRTL .yBoxIframeWrap .yBoxPrev {
    left: 15px;
    right: auto
}

.yBoxRTL .yBoxIframeWrap .yBoxNext::after {
    right: 43%;
    left: auto
}

.yBoxRTL .yBoxIframeWrap .yBoxPrev::after {
    left: 41%;
    right: auto
}

.yBoxLoader {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    position: relative;
    animation: 1s linear infinite yBox-loader-circles;
    top: 50%;
    margin: -8px auto 0;
    zoom:0.5}

.closeYboxOnFocus {
    width: 0;
    height: 0;
    position: absolute;
    background: 0 0;
    padding: 0;
    margin: 0;
    border: none
}

.ybox-img-title {
    background: rgba(255,255,255,.7);
    padding: 7px 15px;
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    margin: 0;
    font-size: 18px;
    z-index: 3
}

@keyframes yBox-loader-circles {
    0%,100% {
        box-shadow: 0 -27px 0 0 rgba(0,0,0,.05),19px -19px 0 0 rgba(0,0,0,.1),27px 0 0 0 rgba(0,0,0,.2),19px 19px 0 0 rgba(0,0,0,.3),0 27px 0 0 rgba(0,0,0,.4),-19px 19px 0 0 rgba(0,0,0,.6),-27px 0 0 0 rgba(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,.05),27px 0 0 0 rgba(0,0,0,.1),19px 19px 0 0 rgba(0,0,0,.2),0 27px 0 0 rgba(0,0,0,.3),-19px 19px 0 0 rgba(0,0,0,.4),-27px 0 0 0 rgba(0,0,0,.6),-19px -19px 0 0 rgba(0,0,0,.8)
    }

    25% {
        box-shadow: 0 -27px 0 0 rgba(0,0,0,.8),19px -19px 0 0 #fff,27px 0 0 0 rgba(0,0,0,.05),19px 19px 0 0 rgba(0,0,0,.1),0 27px 0 0 rgba(0,0,0,.2),-19px 19px 0 0 rgba(0,0,0,.3),-27px 0 0 0 rgba(0,0,0,.4),-19px -19px 0 0 rgba(0,0,0,.6)
    }

    37.5% {
        box-shadow: 0 -27px 0 0 rgba(0,0,0,.6),19px -19px 0 0 rgba(0,0,0,.8),27px 0 0 0 #fff,19px 19px 0 0 rgba(0,0,0,.05),0 27px 0 0 rgba(0,0,0,.1),-19px 19px 0 0 rgba(0,0,0,.2),-27px 0 0 0 rgba(0,0,0,.3),-19px -19px 0 0 rgba(0,0,0,.4)
    }

    50% {
        box-shadow: 0 -27px 0 0 rgba(0,0,0,.4),19px -19px 0 0 rgba(0,0,0,.6),27px 0 0 0 rgba(0,0,0,.8),19px 19px 0 0 #fff,0 27px 0 0 rgba(0,0,0,.05),-19px 19px 0 0 rgba(0,0,0,.1),-27px 0 0 0 rgba(0,0,0,.2),-19px -19px 0 0 rgba(0,0,0,.3)
    }

    62.5% {
        box-shadow: 0 -27px 0 0 rgba(0,0,0,.3),19px -19px 0 0 rgba(0,0,0,.4),27px 0 0 0 rgba(0,0,0,.6),19px 19px 0 0 rgba(0,0,0,.8),0 27px 0 0 #fff,-19px 19px 0 0 rgba(0,0,0,.05),-27px 0 0 0 rgba(0,0,0,.1),-19px -19px 0 0 rgba(0,0,0,.2)
    }

    75% {
        box-shadow: 0 -27px 0 0 rgba(0,0,0,.2),19px -19px 0 0 rgba(0,0,0,.3),27px 0 0 0 rgba(0,0,0,.4),19px 19px 0 0 rgba(0,0,0,.6),0 27px 0 0 rgba(0,0,0,.8),-19px 19px 0 0 #fff,-27px 0 0 0 rgba(0,0,0,.05),-19px -19px 0 0 rgba(0,0,0,.1)
    }

    87.5% {
        box-shadow: 0 -27px 0 0 rgba(0,0,0,.1),19px -19px 0 0 rgba(0,0,0,.2),27px 0 0 0 rgba(0,0,0,.3),19px 19px 0 0 rgba(0,0,0,.4),0 27px 0 0 rgba(0,0,0,.6),-19px 19px 0 0 rgba(0,0,0,.8),-27px 0 0 0 #fff,-19px -19px 0 0 rgba(0,0,0,.05)
    }
}

.yBoxVideo {
    background-color: #171b1e;
    width: 100%;
    height: 100%;
    vertical-align: top
}

.btn-for-focus-only {
    width: 0;
    height: 0;
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
}

@media screen and (max-width: 767px) {
    .yBoxFrame.yBoxImgWrap .insertYboxAjaxHere {
        padding:5px
    }

    .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)
    }

    .yBoxFrame.yBoxIframeWrap .insertYboxAjaxHere {
        left: 5px;
        right: 5px;
        top: 5px;
        bottom: 5px
    }

    .ybox-img-title {
        left: 5px;
        bottom: 5px;
        right: 5px
    }

    .yBoxNext,.yBoxPrev {
        width: 20%;
        top: 5px;
        bottom: 5px
    }

    .yBoxPrev {
        left: 5px
    }

    .yBoxNext {
        right: 5px
    }

    .yBoxRTL .yBoxPrev {
        left: auto;
        right: 5px
    }

    .yBoxRTL .yBoxNext {
        right: auto;
        left: 5px
    }

    .yBoxNext::after,.yBoxPrev::after {
        width: 14px;
        height: 14px
    }

    .yBoxNext::after {
        right: 50%
    }

    .yBoxPrev::after {
        left: 50%
    }

    .yBoxRTL .yBoxNext::after {
        left: 50%;
        right: auto
    }

    .yBoxRTL .yBoxPrev::after {
        right: 50%;
        left: auto
    }

    .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 {
        max-height:-webkit-calc(100vh - 80px);
        max-height: calc(100vh - 80px)
    }

    .yBoxFrame.yBoxImgWrap img.yBoxImg,.yBoxIframe {
        max-height: -webkit-calc(100vh - 90px);
        max-height: calc(100vh - 90px)
    }
}
