.custom-close-modal,
.custom-close-modal:focus-visible {
    border-radius: 50%;
    width: 2.75rem;
    height: 2.75rem;
    background-color: rgba(212, 212, 212, 0.3);
    transition: background 0.3s ease 0s, color 0.3s ease 0s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: unset;
    outline: unset;
}
.custom-close-modal::after {
    content: "";
    width: 14px;
    height: 14px;
    display: block;
    background: url('../img/close.svg');
}
.custom-close-modal:hover {
    background-color: rgb(243 243 243 / 0.5);
}


.modal__overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(33, 33, 33, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}
.modal__container {
    background-color: var(--white);
    padding: 30px;
    max-width: 740px;
    height: 100%;
    width: 50%;
    border-radius: 10px;
    overflow-y: auto;
    box-sizing: border-box;
}
@supports (display: flex) {
    .modal__container {
        height: initial;
        max-height: 80vh;
    }
}

.modal__header {
    position: relative;
    display: block;
    height: 30px;
    margin-bottom: 20px;
}

@supports (display: flex) {
    .modal__header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: initial;
        margin-bottom: 0px;
    }
}


.modal__close {
    position: absolute;
    top: 0;
    right: 0;
    border: 0;
    cursor: pointer;
    margin: 0px;
    padding: 0px;
}
.modal__content {
    margin-top: 10px;
    margin-bottom: 10px;
    color: var(--black);
}

@supports (display: flex) {
    .modal__content {
        margin-top: 2rem;
        margin-bottom: 2rem;
        line-height: 1.5;
    }
}


/**************************
Demo Animation Style
**************************/

@keyframes mmfadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes mmfadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}
@keyframes mmslideIn {
    from {
        transform: translateY(15%);
    }
    to {
        transform: translateY(0);
    }
}
@keyframes mmslideOut {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-10%);
    }
}

.micromodal-slide {
    display: none;
}
.micromodal-slide.is-open {
    display: block;
}
.micromodal-slide[aria-hidden="false"] .modal__overlay {
    animation: mmfadeIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}
.micromodal-slide[aria-hidden="false"] .modal__container {
    animation: mmslideIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}
.micromodal-slide[aria-hidden="true"] .modal__overlay {
    animation: mmfadeOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}
.micromodal-slide[aria-hidden="true"] .modal__container {
    animation: mmslideOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}
.micromodal-slide .modal__container,
.micromodal-slide .modal__overlay {
    will-change: transform;
}
/**************************
  Custom styles for individual modals
**************************/
.modal__header {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal__content {
    margin-top: 2rem;
    margin-bottom: 2rem;
    color: var(--black);
}

/**************************
Mobile custom styles for individual modals
**************************/

@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
    .modal__container {
        width: 90% !important;
        min-width: 90% !important;
    }

    @supports (display: flex) {
        .modal__container {
            width: 90% !important;
            min-width: 90% !important;
        }
    }
}

@media only screen and (min-width: 320px) {
    .custom-close-modal,
    .custom-close-modal:focus-visible {
        width: 36px;
        height: 36px;
    }
    .modal__close {
        position: absolute;
        top: -15px;
        right: -15px;
    }
}
@media only screen and (min-width: 540px) {
    .custom-close-modal,
    .custom-close-modal:focus-visible {
        width: 36px;
        height: 36px;
    }
}
@media only screen and (min-width: 1280px) {
    .custom-close-modal,
    .custom-close-modal:focus-visible {
        width: 2.75rem;
        height: 2.75rem;
    } 
    .modal__close {
        position: absolute;
        top: 0;
        right: 0;
    }
}