#omt-announcement-popup {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    width: min(1000px, calc(100vw - 32px), calc((100vh - 32px) / .67));
    width: min(1000px, calc(100vw - 32px), calc((100dvh - 32px) / .67));
    max-width: none;
    max-height: none;
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 60px #0008;
    overflow: hidden;
}

#omt-announcement-popup:not([open]) {
    display: none;
}

#omt-announcement-popup::backdrop {
    background: rgb(0 0 0 / 72%);
}

#omt-announcement-popup img {
    display: block;
    width: 100%;
    height: auto;
}

#omt-announcement-popup button {
    position: absolute;
    inset-block-start: 8px;
    inset-inline-end: 8px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #fff;
    border-radius: 50%;
    background: #151515;
    color: #fff;
    font: 28px/1 Arial, sans-serif;
    cursor: pointer;
}

#omt-announcement-popup button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

html:has(#omt-announcement-popup[open]) {
    overflow: hidden;
}
