dialog {
    border: none;
    border-radius: var(--border-radius-big);
    padding: 3rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 500px;
    background-color: var(--background-card);
    box-shadow: var(--box-shadow-modal);
    text-align: center;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease-out;
    color: var(--shade900);
    @media screen and (max-width: 768px) {
        margin: auto 0;
        margin-bottom: 0;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    h2 {
        font-size: 1.2rem;
        margin-bottom: 0;
        + p {
            margin-top: 0;
        }
    }

    small {
        font-size: .8rem;
    }

    .closeModal {
        margin-top: 2rem;
    }
}

dialog[open] {
    animation: ghostBounceIn  0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    opacity: 1;
    transform: translateY(0);
}

@keyframes ghostBounceIn {
    0% {
        opacity: 0;
        transform: translateY(100%) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#modalImagePreview {
    img {
        max-width: 100%;
        width: 100%;
    }
}
