.resident-listing-page .browse-post-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    width: min(1120px, calc(100% - 48px));
    margin: 22px auto 26px;
    padding: 20px 0;
    border-top: 1px solid rgba(101, 22, 36, .12);
    border-bottom: 1px solid rgba(101, 22, 36, .12);
}

.resident-listing-page .browse-post-item h2 {
    margin: 0;
    color: #71091d;
    font-size: 1.25rem;
    line-height: 1.3;
}

.resident-listing-page .browse-post-item-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.resident-listing-page .browse-post-item-actions .resident-button {
    width: 100%;
    min-width: 0;
    text-align: center;
}

.resident-listing-page .browse-post-item-actions .resident-button-positive {
    background: #fff;
    color: #8b001b;
    border-color: #8b001b;
}

.resident-listing-page .browse-post-item-actions .resident-button-primary,
.resident-listing-page #browseResults .FoundPosted > button {
    background: #8b001b;
    color: #fff;
}

.resident-listing-page .browse-tabs {
    background: #fff;
    border-color: #d8dee7;
}

.resident-listing-page .browse-tab {
    background: #fff;
    color: #53535d;
}

.resident-listing-page #lostItemsTab.is-active,
.resident-listing-page #foundItemsTab.is-active {
    background: #f6e9ed;
    color: #8b001b;
    box-shadow: inset 0 -2px 0 #8b001b;
}

@media (max-width: 900px) {
    .resident-listing-page .browse-post-item {
        width: calc(100% - 24px);
    }
}

.resident-listing-page #browseResults .browse-column-list > .browse-column-empty:only-child {
    grid-column: 1 / -1;
}

.resident-listing-page #browseResults .browse-photo-open {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: inherit;
    background: transparent;
    box-shadow: none;
    transform: none;
    cursor: zoom-in;
}

.resident-listing-page #browseResults .browse-photo-open:focus-visible {
    outline: 3px solid #8b001b;
    outline-offset: -4px;
}

.resident-listing-page #browseResults .browse-landmark {
    overflow-wrap: anywhere;
}

.resident-listing-page.browse-photo-viewing {
    overflow: hidden;
}

.resident-listing-page .browse-photo-viewer {
    box-sizing: border-box;
    width: min(960px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    margin: auto;
    padding: 12px;
    border: 1px solid #d8dee7;
    border-radius: 14px;
    background: #fff;
    color: #71091d;
    overflow: auto;
}

.resident-listing-page .browse-photo-viewer::backdrop {
    background: rgba(0, 0, 0, .7);
}

.resident-listing-page .browse-photo-close {
    display: block;
    min-height: 44px;
    margin: 0 0 12px auto;
    padding: 10px 16px;
}

.resident-listing-page .browse-photo-viewer .browse-full-photo {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 160px);
    max-height: calc(100dvh - 160px);
    margin: 0;
    object-fit: contain;
    transform: none;
}

.resident-listing-page .browse-photo-viewer p {
    margin: 12px 0 0;
    text-align: center;
    font-size: .85rem;
}
