/* A quiet memorial, distinct from the site's blue action buttons. */
.memorial-notice {
    position: relative;
    display: block;
    grid-column: 1 / -1;
    width: 100%;
    max-width: 42rem;
    padding: 0;
    overflow: hidden;
    border: 1px solid #d8d1c6;
    border-radius: 10px;
    background: #f7f4ee;
    color: #514a41;
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(48, 40, 30, 0.06);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.memorial-notice:hover {
    border-color: #a69a88;
    box-shadow: 0 4px 16px rgba(48, 40, 30, 0.1);
}

.memorial-notice:focus-visible,
.memorial-modal__close:focus-visible {
    outline: 3px solid #82725d;
    outline-offset: 4px;
}

.memorial-notice__image {
    display: block;
    width: 100%;
    height: auto;
}

.memorial-notice__caption {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem 1rem;
    padding: 0.875rem 1.125rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(39, 35, 30, 0.7);
    color: #fffaf2;
}

.memorial-notice__label {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.125rem;
}

.memorial-notice__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.memorial-modal {
    background: rgba(29, 27, 24, 0.7);
}

.memorial-modal .memorial-modal__panel {
    width: min(780px, 100%);
    max-height: 90vh;
    max-height: 90dvh;
    padding: 2.5rem 2.75rem;
    gap: 1.5rem;
    border: 1px solid #ded6ca;
    border-radius: 16px;
    background: #fbf8f2;
    color: #403b34;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

.memorial-modal__header {
    flex-shrink: 0;
    padding-right: 3rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #ded6ca;
}

.memorial-modal__eyebrow {
    margin: 0 0 0.5rem;
    color: #786a57;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.memorial-modal__title {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 400;
    line-height: 1.2;
}

.memorial-modal .memorial-modal__close {
    top: 1.5rem;
    right: 1.5rem;
    border-color: #ded6ca;
    background: #f3eee5;
    color: #514a41;
    font-family: inherit;
    font-size: 1.625rem;
    line-height: 1;
}

.memorial-modal .memorial-modal__close:hover {
    background: #e9e1d5;
    color: #302b24;
    box-shadow: none;
}

.memorial-modal__body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: #b2a592 #f3eee5;
    scrollbar-width: thin;
    padding-right: 1rem;
    font-size: 1.0625rem;
    line-height: 1.85;
}

.memorial-modal__body:focus-visible {
    outline: 2px solid #a3947e;
    outline-offset: -2px;
}

.memorial-modal__body p {
    margin: 0 0 1.25rem;
}

.memorial-modal__quote {
    margin: 0 0 1.75rem;
    padding: 0.25rem 0 0.25rem 1.25rem;
    border-left: 2px solid #baab94;
    color: #534938;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.375rem, 3vw, 1.75rem);
    line-height: 1.5;
}

.memorial-modal__farewell {
    padding-top: 0.5rem;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.25rem;
}

.memorial-modal__body .memorial-modal__signature {
    margin: 1.75rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid #ded6ca;
    color: #6a5e4e;
}

@media (max-width: 600px) {
    .memorial-notice__caption {
        padding: 0.75rem 1rem;
    }

    .memorial-notice__label {
        font-size: 1rem;
    }

    .memorial-notice__link {
        font-size: 0.8125rem;
    }

    .memorial-modal {
        padding: 0.75rem;
    }

    .memorial-modal .memorial-modal__panel {
        max-height: calc(100vh - 1.5rem);
        max-height: calc(100dvh - 1.5rem);
        padding: 1.5rem 1.25rem;
        gap: 1.125rem;
        border-radius: 12px;
    }

    .memorial-modal .memorial-modal__close {
        top: 1rem;
        right: 1rem;
    }

    .memorial-modal__body {
        padding-right: 0.5rem;
        font-size: 1rem;
        line-height: 1.75;
    }

    .memorial-modal__quote {
        padding-left: 0.875rem;
    }
}
