.message-post {
    width: 100%;
    background: #fff;
    border: 1px solid #dce5ed;
    border-top: 3px solid #2797bd;
    border-radius: 1rem;
    box-shadow: 0 3px 12px rgb(24 57 79 / 5%);
    overflow: hidden;
}

.message-post-urgent {
    border-top-color: #c43b35;
}

.message-post-body {
    padding: 1rem 1.25rem;
    overflow-wrap: anywhere;
}

.message-post-text {
    white-space: pre-wrap;
    line-height: 1.6;
    max-height: 16rem;
    overflow-y: auto;
    margin-bottom: 0;
}

.message-post-photo {
    display: block;
    background: #edf3f6;
}

.message-post-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    max-height: 20rem;
}

.announcement-swiper {
    padding: 0.15rem 0.15rem 2rem;
}

.announcement-swiper .swiper-slide {
    height: auto;
}

.announcement-swiper .swiper-pagination {
    bottom: 0;
}

.message-editor-preview {
    max-width: 32rem;
}

[data-message-list] > article {
    max-width: 55rem;
}

.message-photo-dialog {
    width: min(42rem, calc(100vw - 2rem));
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    border: 1px solid #dce5ed;
    border-radius: 1rem;
    padding: 1.25rem;
}

.message-photo-dialog::backdrop {
    background: rgb(15 35 50 / 60%);
}

.message-photo-dialog canvas {
    display: block;
    width: 100%;
    height: auto;
    background: #edf3f6;
    border-radius: 0.5rem;
}

.announcement-carousel {
    position: relative;
}

.announcement-carousel.has-multiple-posts {
    padding-inline: 2.5rem;
}

.announcement-navigation {
    position: absolute;
    inset: 0 0 2rem;
    pointer-events: none;
}

.announcement-navigation[hidden] {
    display: none;
}

.announcement-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid #dce5ed;
    box-shadow: 0 2px 6px rgb(24 57 79 / 10%);
    pointer-events: auto;
}

.announcement-arrow[data-announcement-prev] {
    left: 0;
}

.announcement-arrow[data-announcement-next] {
    right: 0;
}

.announcement-arrow.swiper-button-disabled {
    opacity: 0.4;
    cursor: default;
}

#event-announcements {
    scroll-margin-top: 1rem;
}

.event-message-notification {
    flex: 0 0 auto;
    margin-left: auto;
}

.event-message-notification[hidden] {
    display: none;
}

.event-message-notification .announcement-notification-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid #dce5ed;
    background: #fff;
    color: #194e66;
    font-size: 1.2rem;
}

.announcement-notification-count {
    position: absolute;
    top: -0.25rem;
    right: -0.35rem;
    padding: 0.2rem 0.35rem;
    border-radius: 1rem;
    background: #194e66;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
}

.announcement-notification-link.has-urgent-message {
    color: #b52c26;
    border-color: #b52c26;
}

.has-urgent-message .announcement-notification-count {
    background: #b52c26;
}

.event-header-compact .event-social-heading {
    flex: 1 1 0;
}

@media (max-width: 767px) {
    .map-page .map-toolbar > .form-control {
        min-width: 0;
    }
}
