dialog {
    opacity: 0;
    transform: scale(0.5);
    z-index: 1001;
}

dialog[open] {
    background: transparent;
    backdrop-filter: blur(25px);
    width: 700px;
    padding: 2em;
    border: none;
    border-radius: 30px;
    line-height: 1.5;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 1;
    transform: scale(1);
}

dialog {
    opacity: 0;
    transform: scale(0.5);
}

dialog[open] {
    background: transparent;
    backdrop-filter: blur(25px);
    width: 700px;
    padding: 2em;
    border: none;
    border-radius: 30px;
    line-height: 1.5;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 1;
    transform: scale(1);
}

dialog::backdrop {
    display: none;
}

.custom-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: all;
}

.custom-backdrop.show {
    opacity: 1;
}

dialog[open] {
    z-index: 999;
}

dialog.opening {
    opacity: 0;
    transform: scale(0.5);
    animation: dialogOpen 0.3s forwards;
}

dialog.closing {
    opacity: 1;
    transform: scale(1);
    animation: dialogClose 0.3s forwards;
}

@keyframes dialogOpen {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes dialogClose {
    to {
        opacity: 0;
        transform: scale(0.5);
    }
}

dialog img {
    background-size: cover;
    align-self: center;
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1em;
    border-radius: 16px;
}

dialog h3 {
    margin-top: 0;
    margin-bottom: 1em;
}

dialog p {
    margin: 0;
    font-weight: 400;
}

dialog button {
    background: transparent;
    border: none;
    position: fixed;
    top: 2em;
    right: 2em;
}

dialog button i {
    margin: 0;
    font-size: 24px;
    transition: all 0.3s ease;
}

dialog button:hover i {
    color: red;
    cursor: pointer;
}