/* A compact entry below the three main collections. */
.memory-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 22px 18px 8px;
  padding: 10px clamp(16px, 2vw, 30px);
  border-block: 1px solid #d9d4cd;
  background: #f9f7f3;
}
.memory-strip-entry,
.memory-strip-actions,
.memory-view,
.memory-contact {
  display: flex;
  align-items: center;
}
.memory-strip-entry { gap: clamp(12px, 1.6vw, 24px); min-width: 0; }
.memory-strip-entry img {
  display: block;
  width: clamp(100px, 11vw, 156px);
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: center 83%;
}
.memory-strip-copy h2 {
  margin: 0;
  font-size: clamp(18px, 1.65vw, 23px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.035em;
}
.memory-strip-copy p {
  margin: 5px 0 0;
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.45;
  word-break: keep-all;
}
.memory-strip-actions { gap: clamp(14px, 2.4vw, 38px); flex-shrink: 0; }
.memory-view, .memory-contact {
  justify-content: center;
  min-height: 44px;
  white-space: nowrap;
  font-size: clamp(15px, 1.15vw, 17px);
  font-weight: 650;
}
.memory-view { gap: 10px; }
.memory-view span { font-weight: 400; font-size: 1.3em; }
.memory-contact { border: 1px solid currentColor; padding: 7px 19px; }
.memory-strip-entry:hover h2, .memory-view:hover { text-decoration: underline; text-underline-offset: 4px; }
.memory-contact:hover { color: #fff; background: #242322; border-color: #242322; }

/* The collection lives on its own page; category links also work without JS. */
.memory-page { --memory-accent: #634b38; }
.memory-page.is-remembrance { --memory-accent: #425451; }
.memory-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: clamp(18px, 3.7vw, 56px) 0 32px;
}
.memory-header h1 { margin: 0; font-size: clamp(36px, 4.5vw, 58px); line-height: 1.18; letter-spacing: -.055em; }
.memory-header p, .memory-works-intro, .memory-inquiry p { word-break: keep-all; }
.memory-header p { margin: 14px 0 0; font-size: clamp(16px, 1.5vw, 20px); color: #54534e; }
.memory-header img { width: min(31%, 285px); height: clamp(104px, 11vw, 150px); object-fit: cover; object-position: 50% 78%; }
.memory-choices {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  border-block: 1px solid var(--line);
}
.memory-choices a { display: grid; gap: 3px; padding: 16px 12px; text-decoration: none; border-bottom: 2px solid transparent; }
.memory-choices a strong { font-size: 17px; font-weight: 670; }
.memory-choices a small { font-size: 13px; color: #64645e; }
.memory-choices a:hover, .memory-choices a[aria-current="page"] { background: #f2efea; border-bottom-color: var(--memory-accent); }
.is-remembrance .memory-choices a[aria-current="page"] { background: #eef1ee; }
.memory-works { margin: 32px 0 38px; }
.memory-works-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.memory-works-heading h2, .memory-inquiry h2 { font-size: 22px; letter-spacing: -.03em; line-height: 1.35; margin: 0; }
.memory-works-heading a { font-size: 14px; color: var(--memory-accent); min-height: 44px; display: inline-flex; align-items: center; }
.memory-works-intro { color: #50534e; margin: 9px 0 0; max-width: 54em; }
.memory-works .work-grid { margin-top: 23px; }
.memory-works-status { margin: 22px 0 0; padding: 12px 16px; background: #f0efeb; color: #535550; font-size: 15px; }
.memory-inquiry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}
.memory-inquiry p { margin: 7px 0 0; font-size: 15px; color: #555852; }
.memory-inquiry a {
  flex-shrink: 0;
  border: 1px solid var(--memory-accent);
  padding: 9px 17px;
  min-height: 44px;
  color: var(--memory-accent);
  font-weight: 650;
  text-decoration: none;
}
.memory-inquiry a:hover { color: white; background: var(--memory-accent); }
.memory-inquiry-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.memory-inquiry .memory-guide-link { padding-inline: 0; border-color: transparent; text-decoration: underline; text-underline-offset: .25em; }
.memory-inquiry .memory-guide-link:hover { color: var(--memory-accent); background: transparent; text-decoration-thickness: 2px; }
@media (max-width: 720px) {
  #site-nav.is-open { flex-wrap: wrap; justify-content: flex-start; gap: 4px 18px; }
  .memory-strip { margin-inline: 14px; padding: 8px 12px; gap: 12px; }
  .memory-strip-entry img { width: 80px; }
  .memory-contact { padding-inline: 13px; }
  .memory-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .memory-choices a:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
  .memory-header { padding: 12px 0 24px; }
  .memory-inquiry { flex-wrap: wrap; gap: 14px; }
}
@media (max-width: 550px) {
  .memory-strip { flex-wrap: wrap; row-gap: 2px; padding-block: 9px 6px; }
  .memory-strip-entry { width: 100%; gap: 12px; }
  .memory-strip-actions { justify-content: flex-end; margin-left: auto; gap: 20px; }
  .memory-contact { min-height: 40px; }
  .memory-header img { width: 86px; height: 74px; }
  .memory-header { gap: 12px; }
  .memory-header p { font-size: 15px; line-height: 1.55; }
  .memory-choices a { padding: 11px 8px; }
  .memory-works { margin: 23px 0 28px; }
}
