.yBoxFrame.yBoxImgWrap .insertYboxAjaxHere {
    display: flex;
    align-items: center;
    min-height: 100px;
    justify-content: center;
}

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

.yBoxFrame.yBoxImgWrap .yBoxNextImg, .yBoxFrame.yBoxImgWrap .yBoxPrevImg {
    width: 100px;
    height: 100px;
    background-color: whitesmoke;
    opacity: 0.2;
    top: auto;
}


.yBoxFrame.yBoxImgWrap .yBoxNextImg::after, .yBoxFrame.yBoxImgWrap .yBoxPrevImg::after {
    border-bottom-color: black;
    border-left-color: black;
}

.yBoxFrame.yBoxImgWrap .yBoxNextImg:hover, .yBoxFrame.yBoxImgWrap .yBoxPrevImg:hover {
    opacity: .6;
}

.yBoxFrame.yBoxImgWrap .yBoxNextImg:hover::after, .yBoxFrame.yBoxImgWrap .yBoxPrevImg:hover::after {
    border-bottom-color: black;
    border-left-color: black;
}

@media screen and (max-width:767px) {
	.yBoxImgZoom {
        background: initial;
    }

    .yBoxFrame.yBoxImgWrap {
        width: auto;
        height: auto;
    }

    .yBoxFrame.yBoxImgWrap .insertYboxAjaxHere {
        height: auto;
    }

    .yBoxFrame.yBoxImgWrap .yBoxNextImg, .yBoxFrame.yBoxImgWrap .yBoxPrevImg {
        transform: inherit;
        width: 50px;
        height: 50px;
    }
}

@media screen and (max-width: 479px) {
    .yBoxFrame.yBoxImgWrap img.yBoxImg, .yBoxIframe {
        max-height: -webkit-calc(100vh - 90px);
        max-height: calc(100vh - 90px);
    }

    .yBoxFrame.yBoxImgWrap .yBoxNextImg, .yBoxFrame.yBoxImgWrap .yBoxPrevImg {
        width: 25px;
        height: 25px;
    }

    .yBoxFrame.yBoxImgWrap .yBoxNextImg::after {
        left: 35%;
        width: 10px;
        height: 10px;
    }

    .yBoxFrame.yBoxImgWrap .yBoxPrevImg::after {
        right: 35%;
        width: 10px;
        height: 10px;
    }

    .closeYbox {
        width: 25px;
        height: 25px;
    }
}
