* {
    box-sizing: border-box;
}

.rbox-overlay {
    text-align: center;
    background: #000;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    display: flex;
    align-items: center;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: -1;
    transition: opacity 0.25s ease;
    -webkit-transition: opacity 0.25s ease;
    -moz-transition: opacity 0.25s ease;
    -ms-transition: opacity 0.25s ease;
    -o-transition: opacity 0.25s ease;
}

.rbox-overlay--show {
    opacity: 1;
    z-index: 9999999;
}

.rbox-overlay--short {
    align-items: flex-start;
    position: absolute;
}

.rbox-wrap {
    margin: 2.5rem auto;
    max-width: 80%;
    position: relative;
    display: inline-block;
}

.rbox-wrap--inline,
.rbox-wrap--html,
.rbox-wrap--ajax {
    background: #fff;
    padding: 2rem;
}

.rbox {
    position: relative;
    padding: 0;
    background: #fff;
}

.rbox-next,
.rbox-prev,
.rbox-close {
    color: #777;
    text-decoration: none;
    padding: 1rem;
}

.rbox-next:hover,
.rbox-next:focus,
.rbox-prev:hover,
.rbox-prev:focus,
.rbox-close:hover,
.rbox-close:focus {
    color: #aaa;
}

.rbox-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    padding: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
}

@media(min-width:1800px) {
    .rbox-close {
        width: 3rem;
        height: 3rem;
    }
}

.rbox-next,
.rbox-prev {
    position: absolute;
    top: 44%;
    font-size: 2rem;
}

.rbox-next {
    right: -3rem;
}

.rbox-prev {
    left: -3rem;
}

.rbox-content image {
    height: 70vh;
}

.rbox-content iframe {
    max-width: 100%;
    width: 100vw;
    height: 70vh;
}

.rbox-content img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.rbox-content video {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.rbox-content iframe {
    border: 0;
}

.rbox-prev::before {
    transform: rotate(-180deg);
    left: -3rem;
}

@media(max-width:767px) {
    .rbox-caption {
        padding: 1.5rem;
    }
}


/*---767-css---end*/

@media(max-width:575px) {
    .rbox-wrap.rbox-wrap--video {
        max-width: 90% !important;
    }
    .rbox-prev::before {
        left: 0;
        right: inherit;
    }
    .rbox-next,
    .rbox-prev {

        justify-content: flex-end;
        display: flex;
    }
    .rbox-next::before,
    .rbox-prev::before {
        top: 1.5rem;
    }
    .rbox-next {
        right: 0;
        left: inherit;
        padding: 0;
    }
    .rbox-prev {
        left: inherit;
        padding: 0;
    }
}


/*---575-css---end*/