dialog.sl_container {
    place-content: space-between center;
    border: none;
    gap: 1em;
    min-width: 20em;
    min-height: 20em;
}

dialog.sl_container.sl_loading::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 4em;
    aspect-ratio: 1/1;
    border-radius: 50%;
    border: solid .6em;
    border-color: rgba(0, 0, 0, 0.5) transparent transparent transparent;
    animation: sl_loading 500ms linear infinite;
}

dialog.sl_container[open] {
    animation: sl_fadein 500ms ease;
    display: grid;
}

dialog.sl_container::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

dialog.sl_container>.sl_header {
    min-width: 20em;
    width: 100%;
    display: flex;
    justify-content: end;
}

.sl_image {
    max-width: 80vw;
    max-height: 70vh;
    display: none;
}

.sl_title {
    min-width: 20em;
    width: 100%;
    text-align: center;
    font-size: 1rem;
}

.sl-open {
    cursor: pointer;
}

@keyframes sl_loading {
    from {
        rotate: 0deg;
    }

    to {
        rotate: 360deg
    }

}

@keyframes sl_fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}