[data-media-preview="true"] img{
    user-select: none;
    cursor: pointer;
}

[data-media-preview="true"] img[data-previewable="false"]{
     cursor: default;
}
.oranbyte-media-preview.preview-modal.hide {
    display: none !important;
}

.oranbyte-media-preview.preview-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
}

.oranbyte-media-preview.preview-modal.blackish {
    background-color: rgba(0, 0, 0, 0.8);
}

.oranbyte-media-preview.preview-modal.blur {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.oranbyte-media-preview.preview-modal.none {
    background-color: transparent;
}

.oranbyte-media-preview.preview-modal .hide {
    display: none !important;
}

.oranbyte-media-preview .media-with-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
    background-color: #1d2024;
    color: #333;
}

.oranbyte-media-preview .media-box {
    width: 100%;
    height: auto !important;
    display: flex;
    justify-content: center;
    align-items: center;

}

.oranbyte-media-preview .media-box img,
.oranbyte-media-preview .media-box video {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    user-select: none;
}

.oranbyte-media-preview .media-with-title .media-title {
    width: 100%;
    padding: 1rem 1.5rem;
    text-align: center;
    background-color: #f8f8f8;
    color: #555;
    font-size: 0.9rem;
}

.oranbyte-media-preview .action-buttons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.oranbyte-media-preview .action-buttons .lib-btn {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    pointer-events: all;
    position: absolute;
    user-select: none;
    font-weight: 700;
}

.oranbyte-media-preview .action-buttons .lib-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.oranbyte-media-preview .action-buttons .left-btn {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.oranbyte-media-preview .action-buttons .right-btn {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.oranbyte-media-preview .action-buttons .left-btn::after {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='%23000' d='M7.94 13.06a1.5 1.5 0 0 1 0-2.12l5.656-5.658a1.5 1.5 0 1 1 2.121 2.122L11.122 12l4.596 4.596a1.5 1.5 0 1 1-2.12 2.122l-5.66-5.658Z'/%3E%3C/g%3E%3C/svg%3E");
    background-color: currentColor;
    -webkit-mask-image: var(--svg);
    mask-image: var(--svg);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;

}

.oranbyte-media-preview .action-buttons .right-btn::after {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='%23000' d='M16.06 10.94a1.5 1.5 0 0 1 0 2.12l-5.656 5.658a1.5 1.5 0 1 1-2.121-2.122L12.879 12L8.283 7.404a1.5 1.5 0 0 1 2.12-2.122l5.658 5.657Z'/%3E%3C/g%3E%3C/svg%3E");
    background-color: currentColor;
    -webkit-mask-image: var(--svg);
    mask-image: var(--svg);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.oranbyte-media-preview .action-buttons .close-btn {
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
}

.oranbyte-media-preview .action-buttons .close-btn::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' d='m7 7l10 10M7 17L17 7'/%3E%3C/svg%3E");
    background-color: currentColor;
    -webkit-mask-image: var(--svg);
    mask-image: var(--svg);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;

}

.oranbyte-media-preview .action-buttons .download-btn {
    top: 20px;
    right: 68px;
    font-size: 1.1rem;

}

.oranbyte-media-preview .action-buttons .download-btn::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M16.59 9H15V4c0-.55-.45-1-1-1h-4c-.55 0-1 .45-1 1v5H7.41c-.89 0-1.34 1.08-.71 1.71l4.59 4.59c.39.39 1.02.39 1.41 0l4.59-4.59c.63-.63.19-1.71-.7-1.71M5 19c0 .55.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1H6c-.55 0-1 .45-1 1'/%3E%3C/svg%3E");
    background-color: currentColor;
    -webkit-mask-image: var(--svg);
    mask-image: var(--svg);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;

}

.oranbyte-media-preview .action-buttons .download-btn {
    display: none;
}

.oranbyte-media-preview.downloadable .action-buttons .download-btn {
    display: flex;
}


@media (max-width: 600px) {
    .oranbyte-media-preview .media-with-title {
        max-width: 95%;
        max-height: 95%;
    }

    .oranbyte-media-preview .media-box img,
    .oranbyte-media-preview .media-box video {
        max-height: 60vh;
    }

    .oranbyte-media-preview .media-with-title .media-title {
        padding: 1rem;
        font-size: 0.85rem;
    }

    .oranbyte-media-preview .action-buttons .lib-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .oranbyte-media-preview .action-buttons .close-btn {
        font-size: 1.3rem;
    }
}

@media (min-width: 601px) and (max-width: 992px) {
    .oranbyte-media-preview .media-box img .oranbyte-media-preview .media-box video {
        max-height: 80vh;
    }
}

.oranbyte-media-preview .lib-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.oranbyte-media-preview .hide {
    display: none;
}


@keyframes zoomIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes zoomOut {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(0.8);
        opacity: 0;
    }
}

.oranbyte-media-preview.zoom-in {
    animation: zoomIn 0.3s ease forwards;
}

.oranbyte-media-preview.zoom-out {
    animation: zoomOut 0.3s ease forwards;
}