/*
|--------------------------------------------------------------------------
| MINIATURA
|--------------------------------------------------------------------------
*/

.preview-protegido {
    display: inline-block;
}


.preview-protegido-miniatura {
    display: block;

    max-width: 100%;
    height: auto;

    cursor: pointer;

    user-select: none;
    -webkit-user-select: none;

    -webkit-user-drag: none;

    transition:
        transform .2s ease,
        opacity .2s ease;
}


.preview-protegido-miniatura:hover {
    transform: scale(1.02);
    opacity: .92;
}


/*
|--------------------------------------------------------------------------
| MODAL
|--------------------------------------------------------------------------
*/

.preview-protegido-modal .modal-dialog {
    max-width: 95vw;
    width: 95vw;
}


.preview-protegido-modal .modal-content {
    background: rgba(0, 0, 0, .92);

    border: 0;
    border-radius: 10px;

    overflow: hidden;
}


.preview-protegido-body {
    position: relative;

    width: 100%;
    height: 90vh;

    padding: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #000;
}


/*
|--------------------------------------------------------------------------
| BOTÃO FECHAR
|--------------------------------------------------------------------------
*/

.preview-protegido-fechar {
    position: absolute;

    top: 12px;
    right: 18px;

    width: 42px;
    height: 42px;

    z-index: 100000;

    border: 0;
    border-radius: 50%;

    background: rgba(0, 0, 0, .65);

    color: #fff;

    font-size: 32px;
    line-height: 38px;

    cursor: pointer;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;
}


.preview-protegido-fechar:hover {
    background: rgba(0, 0, 0, .85);
}


/*
|--------------------------------------------------------------------------
| CONTAINER DA PROTEÇÃO
|--------------------------------------------------------------------------
*/

.preview-protegido-container {
    position: relative;

    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: visible;

    touch-action: none;

    user-select: none;
    -webkit-user-select: none;
}


/*
|--------------------------------------------------------------------------
| IMAGEM NORMAL
|--------------------------------------------------------------------------
*/

.preview-protegido-normal {
    display: block;

    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    object-fit: contain;

    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}


/*
|--------------------------------------------------------------------------
| IMAGEM DESFOCADA
|--------------------------------------------------------------------------
*/

.preview-protegido-blur {
    position: absolute;

    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    display: block;

    margin: 0 auto;

    object-fit: contain;
    object-position: center;

    z-index: 1;

    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}


/*
|--------------------------------------------------------------------------
| LUPA
|--------------------------------------------------------------------------
*/

.preview-protegido-lupa {
    position: absolute;

    overflow: hidden;

    border-radius: 50%;

    z-index: 20;

    touch-action: none;

    user-select: none;
    -webkit-user-select: none;

    border: 3px solid var(--primary-color);

    box-shadow:
        0 2px 10px rgba(0, 0, 0, .35);

    cursor: grab;
}


.preview-protegido-lupa:active {
    cursor: grabbing;
}


/*
|--------------------------------------------------------------------------
| IMAGEM DENTRO DA LUPA
|--------------------------------------------------------------------------
*/

.preview-protegido-lupa-img {
    position: absolute;

    display: block;

    max-width: none !important;
    max-height: none !important;

    width: auto;

    margin: 0 !important;
    padding: 0 !important;

    pointer-events: none;

    object-fit: contain !important;
    object-position: center !important;

    user-select: none;
    -webkit-user-select: none;

    -webkit-user-drag: none;
}


/*
|--------------------------------------------------------------------------
| TARJA
|--------------------------------------------------------------------------
*/

.preview-protegido-tarja {
    position: absolute;

    width: 60%;

    left: 50%;

    z-index: 10000;

    box-sizing: border-box;

    pointer-events: none;

    overflow: hidden;

    transform: translateX(-50%);
}


.preview-protegido-tarja img {
    display: block;

    width: 100%;
    height: auto;

    margin: 0;
    padding: 0;

    max-width: none;

    user-select: none;
    -webkit-user-select: none;

    -webkit-user-drag: none;
}


/*
|--------------------------------------------------------------------------
| VÍDEO
|--------------------------------------------------------------------------
*/

.preview-protegido-video {
    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    display: block;
}