dialog.eep-popup {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(var(--eep-width, 950px), calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 32px);
    overflow: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: var(--eep-radius, 0px);
    padding: 0;
    background: #fff;
    color: #1d2327;
    box-shadow: 0 12px 48px rgb(0 0 0 / .25);
}
dialog.eep-popup:not([open]):not(:popover-open) { display: none; }
dialog.eep-popup::backdrop { background: rgb(0 0 0 / var(--eep-dim, .5)); }
html:has(dialog.eep-popup:modal) { overflow: hidden; }
.eep-popup .eep-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: #fff;
    z-index: 1;
    color: inherit;
    font: 32px/1 sans-serif;
    cursor: pointer;
}
.eep-popup .eep-close:focus-visible { outline: 3px solid #2271b1; outline-offset: -3px; }
.eep-popup-content > :first-child { margin-top: 0; }
.eep-popup-content > :last-child { margin-bottom: 0; }
.eep-popup-content img { max-width: 100%; height: auto; }
