.tf-md-explorer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background: #000;
    color: #fff;
}
.tf-md-explorer-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
}
.tf-md-explorer-modal-loading,
.tf-md-explorer-modal-image,
.tf-md-explorer-modal video,
.tf-md-explorer-modal iframe {
    width: 100%;
    height: 100%;
}
.tf-md-explorer-modal-loading {
    position: absolute;
}
.tf-md-explorer-modal-image,
.tf-md-explorer-modal video,
.tf-md-explorer-modal iframe {
    display: none;
    position: relative;
}
.tf-md-explorer-modal-image {
    background-repeat: no-repeat;
    background-size: contain;
    background-position: 50% 50%;
}
.tf-md-explorer-modal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}
.tf-md-explorer-modal-loading .spinner-border {
    --bs-spinner-width: 20vh;
    --bs-spinner-height: 20vh;
}
.tf-md-explorer-modal-btn-group {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    text-align: center;
    z-index: 10;
}
.tf-md-explorer-modal-btn-group-wrap {
    display: inline-block;
    overflow: hidden;
    padding: 0 clamp(2px, 1vw, 8px);
    background: rgba(0, 0, 0, 0.6);
    border-radius: 0 0 12px 12px;
}
.tf-md-explorer-modal-btn-image,
.tf-md-explorer-modal-btn-hls,
.tf-md-explorer-modal-btn-up-hls,
.tf-md-explorer-modal-btn-prev,
.tf-md-explorer-modal-btn-next,
.tf-md-explorer-modal-btn-close {
    float: left;
    padding: clamp(4px, 1vw, 10px) clamp(2px, 0.5vw, 5px);
    font-size: clamp(20px, 6vw, 40px);
    line-height: 0;
    cursor: pointer;
}
.tf-md-explorer-modal-detail {
    position: absolute;
    top: 0;
    right: -50%;
    width: 50%;
    height: 100%;
    background: rgb(59 59 59);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: #fff;
}
.tf-md-explorer-modal-detail-handle {
    position: absolute;
    top: 0;
    left: -50px;
    z-index: 100;
    padding: 10px;
    display: inline-block;
    width: 50px;
    height: 50px;
    background: rgb(59 59 59);
    text-align: center;
    font-weight: bold;
    font-size: 30px;
    line-height: 30px;
    color: #fff;
    cursor: pointer;
}
.tf-md-explorer-modal-detail-handle::before {
    content: "‹";
}
.tf-md-explorer-modal-detail-loading {
    display: none;
    height: 100%;
    justify-content: center;
    align-items: center;
}
.tf-md-explorer-modal-detail-content {
    display: block;
    height: 100%;
    padding: 2px;
    overflow-y: scroll;
}
.tf-md-explorer-modal-detail-state-loading .tf-md-explorer-modal-detail-loading {
    display: flex !important;
}
.tf-md-explorer-modal-detail-state-loading .tf-md-explorer-modal-detail-content {
    display: none !important;
}
.tf-md-explorer-modal-detail-state-active .tf-md-explorer-modal-content {
    width: 50%;
}
.tf-md-explorer-modal-detail-state-active .tf-md-explorer-modal-detail {
    right: 0;
}
.tf-md-explorer-modal-detail-state-active .tf-md-explorer-modal-detail-handle::before {
    content: "›";
}

@media (max-width: 640px) {
    .tf-md-explorer-modal-detail {
        top: auto;
        bottom: -60%;
        right: 0;
        width: 100%;
        height: 60%;
    }
    .tf-md-explorer-modal-detail-handle {
        position: fixed;
        left: auto;
        right: 0;
    }
    .tf-md-explorer-modal-detail-state-active .tf-md-explorer-modal-content {
        width: 100%;
        height: 40%;
    }
    .tf-md-explorer-modal-detail-state-active .tf-md-explorer-modal-detail {
        bottom: 0;
    }
    .tf-md-explorer-modal-detail-state-active .tf-md-explorer-modal-detail-handle {
        position: absolute;
        left: auto;
        right: 0;
    }
    .tf-md-explorer-modal-detail-state-active .tf-md-explorer-modal-detail-handle::before {
        content: "˅";
    }
}
