/* In-memory montage (in-memory-bill-frecknall.html) and the gallery remembrance card. */
.mem-hero .wrap{display:flex;align-items:center;gap:36px}
.mem-portrait{flex:0 0 240px;margin:0}
.mem-portrait img{width:240px;height:240px;object-fit:cover;object-position:center 18%;border-radius:50%;border:4px solid var(--gold);box-shadow:0 8px 28px rgba(0,0,0,.35);background:var(--navy-2)}
.mem-hero-copy{flex:1;min-width:0}
.mem-hero-copy h1{margin:0}
.mem-hero-copy p{color:#d8d5cb;max-width:640px;margin:.7em 0 0;font-size:1.08rem}
.mem-back{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin:0 0 14px;color:var(--gold-light);font-weight:600;text-decoration:none}
.mem-back:hover,.mem-back:focus-visible{color:#fff;text-decoration:underline}

.mem-grid{list-style:none;margin:8px 0 28px;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:16px;align-items:start}
.mem-item{margin:0;padding:0;list-style:none}
.mem-thumb{display:block;width:100%;padding:0;border:0;border-radius:12px;overflow:hidden;cursor:zoom-in;background:var(--navy-2);box-shadow:var(--shadow)}
.mem-thumb img{display:block;width:100%;height:auto;transition:transform .25s}
.mem-thumb:hover img,.mem-thumb:focus-visible img{transform:scale(1.03)}
.mem-thumb:focus-visible{outline:3px solid var(--gold);outline-offset:3px}

.mem-card{margin:0 0 32px;padding:0;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
.mem-card a{display:flex;align-items:center;gap:20px;text-decoration:none;color:var(--ink);min-height:44px}
.mem-card a:hover,.mem-card a:focus-visible{background:var(--cream)}
.mem-card a:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
.mem-card img{width:140px;height:140px;object-fit:cover;object-position:center 18%;flex:0 0 140px;background:var(--navy-2)}
.mem-card-body{padding:16px 20px 16px 0;border-top:0}
.mem-card .eyebrow{color:var(--gold-dark)}
.mem-card h2{margin:0 0 .25em;font-size:1.45rem}
.mem-card p{margin:0;color:var(--muted)}

@media (max-width:820px){
  .mem-hero .wrap{flex-direction:column;text-align:center;gap:22px}
  .mem-portrait{flex-basis:auto}
  .mem-portrait img{width:200px;height:200px}
  .mem-hero-copy p{margin-left:auto;margin-right:auto}
  .mem-grid{grid-template-columns:repeat(2,1fr);gap:12px}
  .mem-card img{width:110px;height:110px;flex-basis:110px}
}
@media (max-width:520px){
  .mem-grid{grid-template-columns:repeat(2,1fr);gap:10px}
  .mem-card a{flex-direction:column;align-items:stretch;text-align:center}
  .mem-card img{width:100%;height:180px;flex-basis:auto}
  .mem-card-body{padding:14px 16px 18px}
}
@media (prefers-reduced-motion:reduce){.mem-thumb img{transition:none}}
