/* LaLegion memorial portal */
.memorial-page {
    max-width: 1100px;
    margin: 0 auto 2rem;
}

/* Keep the Gedenken navbar button aligned like the other LaLegion buttons. */
#nav-main li.icon-memorial > a {
    box-sizing: content-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    text-align: center !important;
}
#nav-main li.icon-memorial > a > i {
    margin-right: 4px !important;
}
#nav-main li.icon-memorial > a > span {
    display: inline-block;
    text-align: center;
}

/* Overview: one memorial plaque containing every published member. */
.memorial-board-page {
    padding-top: .4rem;
}
.memorial-board-heading {
    margin: 0 auto 1rem;
    text-align: center;
    color: #5f241d;
}
.memorial-board-heading h2 {
    margin-bottom: .3rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
}
.memorial-board-heading p {
    margin: 0;
    font-size: 1.05rem;
}
.memorial-management-actions {
    margin: .8rem 0 1rem;
    text-align: right;
}
.memorial-board-heading .memorial-management-actions {
    text-align: center;
}
.memorial-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
    margin: 0;
    padding: 18px;
    list-style: none;
    border: 5px ridge #8c6a35;
    border-radius: 5px;
    background: linear-gradient(145deg, #3c3934, #191817 70%);
    box-shadow: 0 8px 18px rgba(47, 25, 17, .35), inset 0 0 28px rgba(0, 0, 0, .65);
}
.memorial-board-item {
    margin: 0;
    padding: 0;
}
.memorial-board-entry,
.memorial-board-entry:visited {
    display: flex;
    align-items: center;
    min-height: 76px;
    padding: 10px 14px;
    border: 1px solid rgba(211, 181, 111, .27);
    background: rgba(255, 255, 255, .025);
    color: #f4e7bf;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease;
}
.memorial-board-entry:hover,
.memorial-board-entry:focus {
    border-color: #d6b76f;
    background: rgba(143, 27, 24, .32);
    color: #fff6da;
    text-decoration: none;
}
.memorial-board-entry:focus-visible {
    outline: 3px solid #f4d88e;
    outline-offset: -4px;
}
.memorial-board-entry img {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    margin-right: 10px;
    border: 1px solid #b89b5b;
    border-radius: 2px;
    object-fit: cover;
    filter: sepia(.14);
}
.memorial-board-symbol {
    flex: 0 0 18px;
    margin-right: 8px;
    color: #d6b76f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    text-align: center;
}
.memorial-board-symbol-large {
    flex-basis: 52px;
    margin-right: 10px;
    font-size: 31px;
}
.memorial-board-person {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    text-align: center;
}
.memorial-board-person strong {
    overflow-wrap: anywhere;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.24rem;
    font-weight: normal;
    letter-spacing: .02em;
}
.memorial-board-person span {
    margin-top: 3px;
    color: #d7c79f;
    font-size: .95rem;
}

/* Individual memorial view. */
.memorial-hero {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}
.memorial-hero img {
    width: min(280px, 40vw);
    max-height: 360px;
    border-radius: 6px;
    object-fit: cover;
}
.memorial-biography-photo {
    margin: 1rem 0;
}
.memorial-biography-photo img {
    display: block;
    width: auto;
    max-width: min(100%, 720px);
    max-height: 780px;
    border-radius: 6px;
    object-fit: contain;
}
.memorial-condolence {
    margin: 1rem 0;
    padding: 1rem;
    border-left: 4px solid #8f1d1d;
    background: #f7f7f7;
}
.memorial-condolence footer {
    font-weight: 600;
}
.memorial-condolence > img {
    width: auto;
    max-width: min(100%, 360px);
    max-height: 280px;
    margin: .5rem .75rem .5rem 0;
    border-radius: 4px;
    object-fit: contain;
    vertical-align: top;
}
.memorial-page label {
    display: block;
    margin-top: .75rem;
    font-weight: 600;
}
.memorial-page button {
    margin-top: 1rem;
}

@media (max-width: 700px) {
    .memorial-board {
        grid-template-columns: 1fr;
        padding: 10px;
    }
}
@media (max-width: 600px) {
    .memorial-hero {
        align-items: flex-start;
        flex-direction: column;
    }
    .memorial-hero img {
        width: 100%;
        max-height: 420px;
    }
}
