.modal {
    padding: 24px;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, .48);
    display: none;
    justify-content: center;
    align-items: flex-start;
    z-index: 998;
}

.modal.show {
    display: flex;
}

.modal.center {
    align-items: center;
}

.modal .margin {
    margin-bottom: 40px;
}

.modal .inner-modal {
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    border-radius: 12px;
    transition: .2s;
}

.modal .inner-modal.no-scrolling {
    overflow-y: visible;
}

.modal .inner-modal.width-400 {
    max-width: 400px;
}

.modal .inner-modal.width-400 .btns {
    flex-direction: column;
    gap: 8px;
    margin-top: 32px;
}

/* .modal-delete .btns {
    flex-direction: row;
} */

.modal .inner-modal.width-680 {
    width: 680px;
    max-width: 100%;
}

.modal .inner-modal.width-496 {
    width: 496px;
    max-width: 100%;
}

@media (max-width: 767px) {
    .modal .inner-modal {
        width: 100% !important;
    }
}

.modal .inner-modal.editar-dados {
    min-width: 50%;
    max-width: 740px;
}

.modal .inner-modal.ativo {
    opacity: 1;
    transform: translateY(0);
}

.modal .inner-modal::-webkit-scrollbar {
    display: none;
}

.modal .inner-modal .box {
    background-color: var(--ui-color-neutral-0);
    padding: 24px;
    border-radius: 12px;
    width: inherit;
    position: relative;
}

.modal .inner-modal .box .center {
    text-align: center;
}

.modal .inner-modal .box .icone-head span {
    font-size: 56px;
    color: var(--ui-color-red-100);
}

.modal .inner-modal .box .icone-head.success span {
    color: var(--ui-color-green-100);
}

.modal .inner-modal .box .head-box {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--ui-color-neutral-40);
}

.modal .inner-modal .box .head-box.sticky {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 20;
    background-color: var(--ui-color-neutral-0);
    padding-top: 24px;
    margin-top: -24px;
    padding-right: 12px;
}

.modal .inner-modal .box .title {
    margin-bottom: 0;
}

.modal .inner-modal .box img {
    max-width: 100%;
}

.modal .inner-modal .box .titulo {
    font: var(--ui-text-font-g);
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ui-color-neutral-100);
}

.lightbox .imagem {
    max-height: 100%;
    max-width: 100%;
}

.lightbox .close {
    background-color: #fff;
}

.lightbox .close span {
    color: var(--ui-color-neutral-100);
}

.images-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(222px, auto));
    gap: 12px;
}

.images-content .image-preview {
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--ui-color-neutral-20);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-height: 196px;
}

.images-content .image-preview img {
    max-height: 100%;
    max-width: 100%;
}

.images-content .image-preview .delete {
    position: absolute;
    top: 8px;
    right: 8px;
}