/* The web header can load Bootstrap 4 or 5; keep the notice layout consistent. */
#announcementModal .modal-dialog {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: calc(100% - 2rem);
    max-width: 600px;
    height: calc(100% - 2rem);
    min-height: 0;
    margin: 1rem auto;
}

#announcementModal .modal-dialog::before {
    content: none;
}

#announcementModal .modal-content {
    display: flex;
    flex: 0 1 auto;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    color: #333;
    background: #fff;
    box-sizing: border-box;
}

#announcementModal .modal-header,
#announcementModal .modal-footer {
    flex: 0 0 auto;
    width: 100%;
    box-sizing: border-box;
}

#announcementModal .modal-header {
    padding: 1rem;
}

#announcementModal .modal-body {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    padding: 1rem;
    overflow-x: hidden;
    overflow-y: auto;
    line-height: 1.75;
    text-align: left;
    overflow-wrap: anywhere;
    overscroll-behavior: contain;
}

#announcementModal .announcement-content img {
    max-width: 100%;
    height: auto;
}

#announcementModal .announcement-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

#announcementModal .announcement-content pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

#announcementModal .announcement-content > :last-child {
    margin-bottom: 0;
}

#announcementModal .modal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    padding: .75rem;
    border-top: 1px solid #dee2e6;
}

#announcementModal .modal-footer .btn {
    flex: 0 0 auto;
    margin: .25rem;
}
