@keyframes imgbox-fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.img-box-container {
    height: 100%;
    left: 0;
    position: fixed;
    -webkit-tap-highlight-color: transparent;
    top: 0;
    --webkit-transform: translateZ(0);
    transform: translateZ(0);
    width: 100%;
    z-index: 99992;
    backdrop-filter: blur(30px);
    animation: 1s linear imgbox-fadein;
}

.img-box-container .stage {
    margin: 0;
    height: 100%;
    width: auto;
    background-color: transparent;
    /*background-image: url("/assets/img/loading.png");*/
    background-repeat: no-repeat;
    background-position: center;
}

.img-box-container .stage .content {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    @media only screen and (min-width: 1024px) {
        width: calc(100% - 40px);
        height: calc(100% - 40px);
        margin: 20px;
    }
}

.img-box-container .stage .content figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    right: 0;
    padding: 5px 0;
    text-align: center;
    color: var(--img-box-figcaption-color);
    background: var(--img-box-figcaption-background);
}
.img-box-container .stage .content .close-button,
.img-box-container .stage .content .prev-button,
.img-box-container .stage .content .next-button {
    position: absolute;
    width: 80px;
    height: 120px;
    text-decoration: none;
    text-align: center;
}

.img-box-container .stage .content .close-button span,
.img-box-container .stage .content .prev-button span,
.img-box-container .stage .content .next-button span {
    display: block;
    line-height: 25px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, .5);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    text-align: center;
    font-weight: 800;
    font-size: 20px;
    color: #fff;
}

.img-box-container .stage .content .prev-button span {
    margin: 45px 45px 45px auto;
}

.img-box-container .stage .content .close-button span,
.img-box-container .stage .content .next-button span {
    margin: 45px auto 45px 45px;
}

.img-box-container .stage .content .close-button {
    display: block;
    top: 0;
    right: 0;
}

.img-box-container .stage .content .prev-button {
    display: none;
    left: 0;
    top: calc(50% - 60px);
}

.img-box-container .stage .content .next-button {
    display: none;
    right: 0;
    top: calc(50% - 60px);
}

.img-box-container .stage .content .loading-spinner {
    display: none;
    position: absolute;
    top: calc(50% - 15px);
    left: calc(50% - 100px);
    width: 200px;
    height: 30px;
    text-align: center;
    font-size: 30px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 6px;
    background: transparent;
    color: #fff;
    text-shadow: 0 0 5px #000;
}

#img-box-image {
    position: absolute;
    width: auto;
    height: auto;
    max-height: 100%;
    max-width: 100%;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    cursor: zoom-in;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    transition: opacity .7s;
    opacity: 1;
}

#img-box-image.hide {
    opacity: 0;
}

