/* ==========================================================================
   Memorials: the search (results grid) and a memorial's page.
   Ported by hand from TAL.Web Accelerator SCSS, 2026-11-23.
   Class names kept from the original so markup mirrors legion.org.

   Source root: C:\repos\TAL.Web\Accelerator\wwwroot\assets\src\scss\
     components/modules/_memorials-listing.scss -> section 1
     pages/_memorial-details.scss               -> section 2
   The filter bar, pagination and gallery reuse events.css and site.css.

   Load after site.css and events.css. Breakpoints inlined as px
   (bp-m 768px, bp-mw 960px, bp-l 1140px).

   Changes from legion.org (fixes, not redesigns):
   - Result pictures are <img> elements sized to the same 290 × 304 box
     (legion.org: CSS background images with role="presentation").
   - Visible keyboard focus on each result.
   - The gallery is the article gallery (scrolls sideways, no script), not a
     script carousel.
   ========================================================================== */


/* 1. components/modules/_memorials-listing.scss */

.memorials-listing {
    list-style: none;
    margin: 0;
    padding: 0;
}
@media (min-width: 768px) {
    .memorials-listing {
        margin: 0 -20px;
        display: flex;
        flex-wrap: wrap;
    }
}

.memorials-listing__item {
    margin: 0 0 40px;
    padding: 0;
}
.memorials-listing__item::before {
    content: none;
}
@media (min-width: 768px) {
    .memorials-listing__item { width: 50%; }
}
@media (min-width: 960px) {
    .memorials-listing__item { width: 33.33%; }
}
@media (min-width: 1140px) {
    .memorials-listing__item { width: 25%; }
}

.memorials-listing__item-inner {
    display: block;
    color: inherit;
    text-decoration: none;
}
@media (min-width: 768px) {
    .memorials-listing__item-inner { padding: 0 20px; }
}
.memorials-listing__item-inner:hover,
.memorials-listing__item-inner:active,
.memorials-listing__item-inner:focus {
    filter: brightness(.9);
}
.memorials-listing__item-inner:hover .memorials-listing__heading,
.memorials-listing__item-inner:focus .memorials-listing__heading {
    text-decoration: underline;
}
.memorials-listing__item-inner:focus-visible {
    outline: 3px solid var(--color-secondary);
    outline-offset: 4px;
}

.memorials-listing__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 290 / 304;
    object-fit: cover;
    border-radius: 6px 6px 0 0;
}

.memorials-listing__content {
    border-top: 4px solid var(--color-blue);
    padding-top: 16px;
}

.memorials-listing__heading {
    line-height: 1.1;
    font-size: 1.25rem;
    margin: 0 0 8px;
    color: var(--color-blue);
}

.memorials-listing__location {
    font-weight: 700;
    overflow-wrap: anywhere;
}

.memorials-listing__pagination .pagination__list {
    margin: auto;
}

.memorials-intro .fr-view ul {
    margin-bottom: 1em;
}


/* 2. pages/_memorial-details.scss */

.memorial-detail__featured-img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 40px;
    border-radius: 6px;
    overflow: hidden;
    padding: 4px;
    background-color: #fff;
    box-shadow: 0 0 10px 0 rgba(2, 18, 40, .2);
}

.memorial-detail__description {
    margin-bottom: 1em;
}

.memorial-detail__website a {
    overflow-wrap: anywhere;
}

/* The article gallery, narrowed to the rail. */
.memorial-gallery {
    max-width: none;
    margin: 0 0 30px;
}
