.modal-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(36 45 82 / 95%);
    backdrop-filter: blur(4px);
}

.modal-sidebar .modal-overlay {
    justify-content: flex-end;
    background: rgb(255,255,255,.5);
}

.modal-container {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    max-width: 47rem;
    position: relative;
    width: 96%;
}

.modal-scroll {
    scrollbar-width: thin;
    scrollbar-color: var(--color--blue-4) transparent;
    overflow-y: overlay;
    overflow-x: hidden;
    padding: 2rem 3rem;
    max-height: 80vh;
}

.modal-background {
    background: #ffffff;
    border-radius: 5px;
}

.modal-background:has(+.modal-background-2) {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.modal-background-2 {
    background: rgb(238 238 238 / 95%);
    border-radius: 5px;
}

.modal-background + .modal-background-2 {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.modal-sidebar .modal-container {
    left: auto;
    max-width: 26rem;
    width: 96%;
    min-height: 100%;
    overflow-y: overlay;
    color: #fff;
    border-left: 6px solid var(--color--orange);
}

.modal-iframe {
    z-index: 9999;
    position: relative;
}

.modal-iframe .page-headline {
    margin-top: 1rem;
}

.modal-iframe .modal-container {
    max-width: 80rem;
    background: #fff;
    padding: 0;
}

.modal-iframe .modal-container p {
    padding: 0 2rem;
}

.modal-iframe-content.loading {
    min-height: 33vh;
    overflow: hidden;
}

.modal-title {
    font-size: 2rem;
    margin: 0 0 2rem 0;
    color: var(--color--blue);
    font-weight: bold;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(.999);
    color: var(--color--white);
    padding: 1em;
    font-size: 110%;
}

.modal:not(.modal-sidebar) .modal-container .modal-close {
    top: -1rem;
    right: -1rem;+;
}

.modal-sidebar .close:hover {
    color: var(--color--orange);
}

.modal-next,
.modal-prev {
    position: absolute;
    top: 50%;
    right: 1rem;
    border: 1px solid var(--color--blue);
    width: 2.222rem;
    height: 2.222rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .2rem;
    z-index: 9999999;
    background: #fff;
}

.modal-prev {
    left: 1rem;
    right: auto;
}

.modal-close svg,
.modal-next svg,
.modal-prev svg {
    fill: var(--color--blue);
    width: .7rem;
    height: .7rem;
    pointer-events: none;
}

.modal-close:hover,
.modal-next:hover,
.modal-prev:hover {
    border-color: var(--color--blue);
    transform: scale(.9);
    color: var(--color--orange);
}

.modal-close:hover svg,
.modal-next:hover svg,
.modal-prev:hover svg {
    fill: var(--color--blue);
    transform: scale(1.4);
}

.modal {
    display: none;
}

.modal.is-open {
    display: block
}

@keyframes slideDownScale {
    0% {
        opacity: 0;
        transform: scale(.5) translateY(-50%);
    }
    40% {
        transform: scale(1) translateY(0%);
    }
    100% {
        opacity: 1;
    }
}

@keyframes slideUpScale {
    0% {
        transform: scale(1) translateY(0%);
        opacity: 1;
    }
    60% {
        opacity: 0;
    }
    100% {
        opacity: 0;
        transform: scale(.5) translateY(-50%);
    }
}

@keyframes slideDown {
    0% {
        transform: translateY(-2rem);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes slideLeft {
    0% {
        transform: translateX(100%) scale(.9);
    }
    100% {
        transform: translateX(0) scale(1);
    }
}

@keyframes slideRight {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(100%);
    }
}

.modal[aria-hidden=false] .modal-overlay {
    animation: slideDownScale .5s ease;
}

.modal[aria-hidden=true] .modal-overlay {
    animation: slideUpScale .3s ease;
}

.modal[aria-hidden=false] .modal-effect {
    animation: slideDown .5s ease-out;
}

.modal-sidebar[aria-hidden=false] .modal-overlay {
    animation: fadeIn .5s ease;
    z-index: 1001;
}

.modal-sidebar[aria-hidden=true] .modal-overlay {
    animation: fadeOut .5s ease;
}

.modal-sidebar[aria-hidden=false] .modal-effect {
    animation: slideLeft .2s ease-out;
}

.modal-sidebar[aria-hidden=true] .modal-effect {
    animation: slideRight .2s ease-out;
}

.modal-sidebar[aria-hidden=false] .modal-effect-secondary {
    animation: slideLeft .35s cubic-bezier(0.11, 0.74, 0.58, 1);
}