button.close {
    padding: 0;
    background-color: transparent;
    border: 0;
    -webkit-appearance: none;
}

button.close {
    float: right;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .5;
}

.modal-open {
    overflow: hidden;
}

.modal-open .header {
    z-index: 1;
}

.modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    display: none;
    overflow: hidden;
    outline: 0;
}

.modal-open .modal {
    overflow-x: hidden;
    overflow-y: auto;
    backdrop-filter: blur(20px);
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 0.5rem;
    pointer-events: none;
}

.modal.fade .modal-dialog {
    transition: -webkit-transform 0.3s ease-out;
    transition: transform 0.3s ease-out;
    transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out;
    -webkit-transform: translate(0, -25%);
    transform: translate(0, -25%);
}

.modal.show .modal-dialog {
    -webkit-transform: translate(0, 0);
    transform: translate(0, 0);
}

.modal-dialog-centered {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    min-height: calc(100% - (0.5rem * 2));
}

.modal-content {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.3rem;
    outline: 0;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    background-color: rgba(4, 63, 34, 1);
}

.modal-backdrop.fade {
    opacity: 0;
}

.modal-backdrop.show {
    opacity: 0.35;
}

.modal-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    border-top-left-radius: 0.3rem;
    border-top-right-radius: 0.3rem;
}

.modal-header .close {
    padding: 1rem;
    margin: -1rem -1rem -1rem auto;
}

.modal-title {
    margin-bottom: 0;
    line-height: 1.5;
}

.modal-body {
    position: relative;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 1rem;
}

.modal-footer {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    padding: 1rem;
    border-top: 1px solid #e9ecef;
}

.modal-footer > :not(:first-child) {
    margin-left: .25rem;
}

.modal-footer > :not(:last-child) {
    margin-right: .25rem;
}

.modal-scrollbar-measure {
    position: absolute;
    top: -9999px;
    width: 50px;
    height: 50px;
    overflow: scroll;
}

.modal-body__inner {
    background-color: #fff;
}

.modal-body__inner.\--full {
    background-color: transparent;
}

.eu-modal iframe {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    max-height: calc(100vh - 100px);
}

.eu-modal.modal {
    padding-right: 0px !important;
    padding-left: 0px;
}

.eu-modal .close {
    color: #fff;
    opacity: 1;
    font-size: 60px;
    font-weight: normal;
    position: absolute;
    right: 20px;
    z-index: 9;
}

.eu-modal .modal-dialog {
    max-width: 100%;
    margin: 0px;
}

.eu-modal .modal-body {
    padding: 50px 35px 50px 45px;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
}

.eu-modal .modal-body > * {
    width: 100%;
}

.eu-modal .modal-content {
    background-color: transparent;
    border: none;
}

.eu-modal__content-inner p,
.eu-modal__content-inner h3,
.eu-modal__content-inner h4 {
    margin: revert;
}

.eu-modal-content-auto-scroll {
    overflow-y: auto;
    max-height: calc(90vh - 400px);
    padding-right: 1rem;
    overflow-x: hidden;
}

.eu-modal-content-auto-scroll::-webkit-scrollbar {
    width: 25px;
    background-color: transparent;
}

.eu-modal-content-auto-scroll::-webkit-scrollbar-thumb {
    background: var(--eu-orange);
}

.modal-body__inner:not(.--full) {
    padding: 1rem 0px 1rem 1rem;
}

.modal-body__inner {
    max-height: calc(100vh - 100px);
}

/* EU Slider */
.eu-slide-pagination--modal {
    margin-left: 0px;
    height: auto !important;
}

.eu-slide-pagination--modal .bookmark {
    left: auto !important;
}

.eu-slider--modal__content__bottom .mejs-video .mejs-controls {
    display: none;
}

.has-pop-up-trigger .header.active .orange-toggle {
    background: var(--eu-orange);
    width: 32px;
    height: 32px;
    display: block;
    position: absolute;
    right: 1rem;
    bottom: -1rem;
    border-radius: 30px;
    cursor: pointer;
    z-index: 999;
}

.eu-slider--modal__container {
    max-height: calc(100vh - 100px);
}

@media (max-width: 1023px) {
    .eu-slide__content.\--modal {
        overflow: auto;
        min-height: 100%;
    }

    .eu-slider--modal__prev-next {
        width: 30px;
        padding: 40px 0px;
    }

    .eu-slide-pagination--modal {
        margin-top: -30px;
        border-radius: 0px 0px 30px 30px !important;
        min-width: 100%;
    }

    .eu-slide-pagination--modal .inner {
        flex-direction: row;
        justify-content: space-evenly;
        padding-bottom: 0px;
        padding-left: 30px;
        padding-right: 30px;
    }

    .eu-slide-pagination--modal .eu-slide-pagination__item {
        flex-grow: 1;
        padding-bottom: 30px;
        padding-top: 30px;
    }

    .eu-slide-pagination--modal .bookmark {
        top: auto !important;
        bottom: 0px;
        height: 20px !important;
        width: 100% !important;
    }
}

@media (max-width: 767px) {
    .simple-slider-modal .modal-body {
        padding: 50px 20px 50px 15px;
    }

    .eu-modal .eu-content-heading > span:first-child {
        font-size: 1.25rem;
    }

    .eu-modal .eu-content-heading > span:nth-child(2) {
        font-size: 1.85rem;
        text-indent: 0px;
    }
}

@media (min-width: 576px) {
    .modal-dialog {
        max-width: 500px;
        margin: 1.75rem auto;
    }

    .modal-dialog-centered {
        min-height: calc(100% - (1.75rem * 2));
    }

    .modal-sm {
        max-width: 300px;
    }
}

@media (min-width: 768px) {
    .eu-modal .close {
        font-size: 80px;
        right: 30px;
    }

    .eu-modal-content-auto-scroll {
        max-height: calc(100vh - 200px);
    }

    .eu-modal .modal-body {
        padding: 50px 100px 50px 45px;
    }

    .modal-body__inner:not(.--full) {
        padding: 2rem 0px 2rem 2rem;
    }
}

@media (min-width: 992px) {
    .modal-lg {
        max-width: 800px;
    }

    .eu-slider--modal__container {
        max-height: calc(100vh - 250px);
    }
}

@media (min-width: 1024px) {
    .eu-slide-pagination--modal {
        margin-left: -30px;
    }

    .modal-body__inner:not(.--full) {
        padding: 5rem 0px 5rem 5rem;
    }

    .modal-body__inner:not(.--full):has(.eu-modal-content-auto-scroll) {
        overflow: hidden;
    }

    .eu-slider--modal__container {
        max-height: calc(100vh - 100px);
    }
}

@media (min-width: 1920px) {
    .eu-modal iframe {
        aspect-ratio: 21 / 9;
    }

    .eu-slider--modal__container {
        max-height: calc(100vh - 200px);
    }
}
