.portal-announcement {
    width: fit-content;
    max-width: min(56rem, calc(100% - 2rem));
    max-height: calc(100dvh - 2rem);
    margin: auto;
    padding: 0;
    border: 1px solid #a9abad;
    border-radius: 9px;
    color: #fff;
    background: transparent;
    overflow: auto;
}

.portal-announcement::backdrop {
    background: rgb(10 13 16 / 74%);
}

.announcement-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #e51d46;
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
}

.announcement-content {
    display: grid;
    justify-items: center;
}

.announcement-footer {
    width: 100%;
    padding: 6px;
    text-align: center;
    background: #303637;
}

.announcement-content img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100dvh - 6rem);
    object-fit: contain;
}

html:has(.portal-announcement[open]) {
    overflow: hidden;
}
