.home-page > .cms-obituary-section .cms-obituary-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    align-items: stretch;
}

.home-page > .cms-obituary-section .cms-obituary-card {
    min-width: 0;
    border: 0;
}

.home-page > .cms-obituary-section .cms-obituary-list .cms-obituary-card > a {
    display: flex;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    padding: 0;
    border: 1px solid #dedbd5;
    border-radius: 8px;
    background: #ffffff;
    color: inherit;
    flex-direction: column;
    gap: 0;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(37, 31, 24, 0.055);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.home-page > .cms-obituary-section .cms-obituary-list .cms-obituary-card > a:hover,
.home-page > .cms-obituary-section .cms-obituary-list .cms-obituary-card > a:focus-visible {
    border-color: #b8aa99;
    color: inherit;
    outline: 0;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(37, 31, 24, 0.1);
}

.home-page > .cms-obituary-section .cms-obituary-list .cms-obituary-card__media {
    display: grid;
    width: 100%;
    overflow: hidden;
    border: 0;
    border-bottom: 1px solid #e3dfd8;
    border-radius: 0;
    aspect-ratio: 4 / 5;
    background: #eee8df;
    line-height: 0;
    place-items: center;
}

.home-page > .cms-obituary-section .cms-obituary-list .cms-obituary-card__media > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.28s ease;
}

.home-page > .cms-obituary-section .cms-obituary-list .cms-obituary-card > a:hover .cms-obituary-card__media > img,
.home-page > .cms-obituary-section .cms-obituary-list .cms-obituary-card > a:focus-visible .cms-obituary-card__media > img {
    transform: scale(1.025);
}

.home-page > .cms-obituary-section .cms-obituary-list .cms-obituary-card__fallback-image {
    object-position: center;
}

.home-page > .cms-obituary-section .cms-obituary-list .cms-obituary-card--memorial .cms-obituary-card__media {
    height: auto;
    min-height: 0;
    padding: 0;
    aspect-ratio: 4 / 5;
    background: #eee9e1;
}

.home-page > .cms-obituary-section .cms-obituary-list .cms-obituary-card__media .obituary-notice {
    width: auto;
    height: 100%;
    max-width: 100%;
    min-height: 0;
    margin: 0;
    border-radius: 0;
    aspect-ratio: 2 / 3;
}

.home-page > .cms-obituary-section .cms-obituary-list .cms-obituary-card__media .obituary-notice__canvas {
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: 0;
}

.home-page > .cms-obituary-section .cms-obituary-list .cms-obituary-card--memorial .obituary-notice--boxed-text [data-obituary-box] {
    --obituary-fit-scale: 0.62;
}

.home-page > .cms-obituary-section .cms-obituary-list .cms-obituary-card__content {
    display: flex;
    min-width: 0;
    min-height: 5.25rem;
    padding: 0.78rem 0.75rem 0.82rem;
    color: var(--portal-ink);
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.35rem;
}

.home-page > .cms-obituary-section .cms-obituary-list .cms-obituary-card__person {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #1f252b;
    font-size: 0.92rem;
    font-weight: 850;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-page > .cms-obituary-section .cms-obituary-list .cms-obituary-card__date {
    color: #8a5f3d;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.3;
}

.home-page > .cms-obituary-section .cms-obituary-list .cms-obituary-card__ceremony {
    display: -webkit-box;
    margin-top: auto;
    overflow: hidden;
    padding-top: 0.48rem;
    border-top: 1px solid #ebe7e1;
    color: #66707c;
    font-size: 0.7rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-page > .cms-obituary-section .cms-obituary-list .cms-obituary-card__ceremony strong {
    display: inline;
    color: #8a5f3d;
    font-size: inherit;
    line-height: inherit;
}

.home-page > .cms-obituary-section .cms-obituary-section__footer-link svg {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

@media (min-width: 768px) {
    .home-page > .cms-obituary-section .cms-home-section__inner {
        position: relative;
        height: 100%;
        padding: 1.35rem !important;
        overflow: hidden;
        border: 1px solid #dedbd5;
        border-radius: var(--portal-radius);
        background: linear-gradient(180deg, #ffffff 0%, #fcfbf9 100%);
        box-shadow: 0 12px 32px rgba(37, 31, 24, 0.055);
    }

    .home-page > .cms-obituary-section .cms-home-section__header {
        margin: 0 0 1.1rem;
        padding: 0 0 0.9rem;
        border-bottom: 1px solid #e8e4de;
    }

    .home-page > .cms-obituary-section .cms-home-section__header > div {
        padding-left: 0.85rem;
        border-left: 3px solid #9a7458;
    }

    .home-page > .cms-obituary-section .cms-home-section__header h2 {
        margin: 0;
        color: #22272d;
        font-family: "Newsreader", Georgia, serif;
        font-size: 1.65rem;
        font-weight: 700;
        line-height: 1.05;
        letter-spacing: -0.01em;
        text-transform: none;
    }

    .home-page > .cms-obituary-section .cms-home-section__header p {
        margin: 0.35rem 0 0;
        color: #69727d;
        font-size: 0.8rem;
        line-height: 1.45;
    }

    .home-page > .cms-obituary-section .cms-obituary-section__footer {
        display: flex;
        margin-top: 1.1rem;
        padding-top: 0;
        justify-content: flex-end;
    }

    .home-page > .cms-obituary-section .cms-obituary-section__footer-link {
        display: inline-flex;
        min-height: 2.5rem;
        padding: 0.58rem 0.85rem 0.58rem 0.95rem;
        border: 1px solid #cbbbaa;
        border-radius: 8px;
        background: #ffffff;
        color: #65462f;
        font-size: 0.72rem;
        font-weight: 850;
        gap: 0.5rem;
        align-items: center;
        text-decoration: none;
        text-transform: uppercase;
    }

    .home-page > .cms-obituary-section .cms-obituary-section__footer-link:hover,
    .home-page > .cms-obituary-section .cms-obituary-section__footer-link:focus-visible {
        border-color: #a98c73;
        background: #f8f4ef;
        color: #513521;
        outline: 0;
        transform: translateY(-1px);
    }
}

@media (max-width: 767.98px) {
    .home-page > .cms-obituary-section:not(.cms-obituary-section--mobile-scroll) .cms-obituary-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .home-page > .cms-obituary-section:not(.cms-obituary-section--mobile-scroll) .cms-home-section__inner {
        padding: 1rem !important;
    }

    .home-page > .cms-obituary-section .cms-obituary-list .cms-obituary-card__content {
        min-height: 5.25rem;
        padding: 0.7rem;
    }

    .home-page > .cms-obituary-section--mobile-scroll .cms-obituary-list {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page > .cms-obituary-section .cms-obituary-list .cms-obituary-card > a,
    .home-page > .cms-obituary-section .cms-obituary-list .cms-obituary-card__media > img {
        transition: none;
    }
}
