.framebox-modal .d-none {
    display: none !important;
}
.framebox-modal .stop-scroll {
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}

.framebox-modal .framebox-navbar {
    position: absolute;
    display: flex;
    justify-content: flex-end;
    top: 0px;
    left: 0;
    background: rgba(35, 35, 35, 0.75);
    height: 40px;
    width: 100%;
    z-index: 1;
}

.framebox-modal .framebox-btn {
    background-color: rgba(12, 12, 12, 0.5);
    width: 40px;
    height: 40px;
    border: none;
    color: white;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.framebox-modal .framebox-controls-container {
    position: fixed;
}

.framebox-modal .framebox-controls {
    position: fixed;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%), rotate(90deg);
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    color: white;
    font-size: 1.3rem;
    line-height: 1;
    font-weight: bold;
    background-color: rgba(35, 35, 35, 0.65);
}

.framebox-modal {
    position: fixed;
    padding-top: 40px;
    display: block;
    inset: 0;
    box-sizing: border-box;
    width: 100%;
    height: 100vh;
    background-color: rgba(30, 30, 30, 0.9);
    opacity: 0;
    z-index: 9999;
}

.framebox-modal .framebox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    height: 100vh;
    width: fit-content;
    margin: 0 auto;
    max-width: 100%;

    overflow: auto;
    z-index: 0;
}

.framebox-modal .framebox-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    height: 70vh;
    position: relative;
    min-width: 200px;
}

.framebox-modal .framebox-image {
    height: fit-content;
    max-height: 100%;
    width: fit-content;
    max-width: 100%;
    object-fit: contain;
}
.framebox-modal .framebox-title {
    width: 100%;
    color: white;
    box-sizing: border-box;
    font-weight: bold;
    font-weight: 700;
    padding: 0 20px;
}
.framebox-modal .framebox-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 99999;
}
.framebox-loader {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}
.framebox-loader div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 8px solid #fff;
    border-radius: 50%;
    animation: framebox-loader 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #fff transparent transparent transparent;
}
.framebox-loader div:nth-child(1) {
    animation-delay: -0.45s;
}
.framebox-loader div:nth-child(2) {
    animation-delay: -0.3s;
}
.framebox-loader div:nth-child(3) {
    animation-delay: -0.15s;
}
@keyframes framebox-loader {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.framebox-modal .framebox-caption {
    box-sizing: border-box;
    color: white;
    /* background-color: rgba(35, 35, 35, 0.8); */
    padding: 20px;
    width: 100%;
    /* max-width: 200ch; */
    font-size: 0.9rem;
}

@media screen and (max-width: 767.5px) {
    .framebox-modal .framebox-image-container {
        height: unset;
    }

    @media only screen and (max-width: 600px) {
        .framebox-modal .framebox-controls {
            display: none;
        }
        .framebox-modal .framebox-caption {
            padding: 10px 5px;
        }
        .framebox-modal .framebox-title {
            padding: 10px 5px;
            font-size: 0.9rem;
        }
    }
}
