:root {
  --paper: #f8f4ec;
  --soft: #f1ece2;
  --ink: #171311;
  --muted: #756d64;
  --rose: #b76b72;
  --rose-dark: #814d50;
  --moss: #5f6f5d;
  --gold: #a8793d;
  --line: #d7cbb9;
  --white: #ffffff;
  --accent: #b76b72;
  --shadow: 0 16px 42px rgba(70, 55, 39, .14);
  --content-wide: 1040px;
  --content-medium: 900px;
  --content-reading: 720px;
  --content-form: 780px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.memorial-nav {
  background: rgba(248, 244, 236, .94);
  border-bottom: 1px solid rgba(164, 142, 112, .38);
  backdrop-filter: blur(10px);
}

.navbar-brand {
  color: var(--ink);
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: 0;
}

.navbar-nav .nav-link {
  color: var(--muted);
  font-size: .82rem;
  padding: .72rem .7rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--rose-dark);
}

.navbar-toggler {
  border: 1px solid var(--line);
  border-radius: 6px;
}

.memorial-hero {
  display: flex;
  align-items: center;
  min-height: 430px;
  color: var(--ink);
  padding: 6.3rem 0 3.4rem;
  border-bottom: 1px solid rgba(164, 142, 112, .22);
  background:
    radial-gradient(circle at 34% 35%, rgba(255, 255, 255, .72), rgba(255, 255, 255, 0) 26rem),
    linear-gradient(180deg, #fbf8f0 0%, #f3ecdf 100%);
}

.hero-inner {
  max-width: var(--content-wide);
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: center;
  gap: 5rem;
}

.hero-portrait {
  width: 240px;
  margin: 0;
  padding: .35rem;
  border: 1px solid rgba(143, 120, 86, .42);
  border-radius: 4px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 18px 36px rgba(63, 50, 36, .18);
}

.hero-portrait img {
  width: 100%;
  aspect-ratio: 1 / 1.16;
  display: block;
  object-fit: cover;
  border-radius: 2px;
}

.hero-copy {
  min-width: 0;
}

.hero-kicker,
.section-kicker {
  margin: 0 0 .55rem;
  color: var(--gold);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.memorial-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: 2.55rem;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0;
}

.hero-date {
  margin: .7rem 0 0;
  color: var(--gold);
  font-size: .9rem;
  font-weight: 700;
}

.hero-quote {
  max-width: 560px;
  margin: .8rem 0 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.4rem;
}

.btn {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-right: 1rem;
  padding-left: 1rem;
  font-size: .88rem;
}

.btn-memorial-primary {
  background: var(--rose);
  border-color: var(--rose);
  color: var(--white);
}

.btn-memorial-primary:hover,
.btn-memorial-primary:focus {
  background: var(--rose-dark);
  border-color: var(--rose-dark);
  color: var(--white);
}

.btn-memorial-light {
  background: rgba(255, 255, 255, .42);
  border-color: rgba(164, 142, 112, .45);
  color: var(--ink);
}

.btn-memorial-light:hover,
.btn-memorial-light:focus {
  background: var(--soft);
  border-color: var(--soft);
  color: var(--ink);
}

.btn-memorial-ghost {
  background: transparent;
  border-color: rgba(164, 142, 112, .55);
  color: var(--ink);
}

.btn-memorial-ghost:hover,
.btn-memorial-ghost:focus {
  background: rgba(255, 255, 255, .38);
  color: var(--ink);
}

.btn-memorial-share {
  background: #fffdf8;
  border-color: var(--gold);
  color: #5d4425;
}

.btn-memorial-share:hover,
.btn-memorial-share:focus {
  background: rgba(168, 121, 61, .12);
  border-color: var(--gold);
  color: #5d4425;
}

.section-band {
  padding: 3.7rem 0;
}

.notice-band {
  padding: 1rem 0 0;
  background: var(--paper);
}

.memorial-notice {
  padding: .85rem 1rem;
  border: 1px solid rgba(180, 135, 69, .35);
  border-radius: 4px;
  background: rgba(255, 251, 243, .76);
  color: var(--ink);
  line-height: 1.7;
}

.memorial-notice-danger {
  border-color: rgba(185, 111, 118, .42);
  background: rgba(185, 111, 118, .12);
}

.story-band,
.messages-band {
  background: var(--paper);
}

.announcement-band {
  padding-top: 3.7rem;
  padding-bottom: 3.7rem;
  background: var(--paper);
}

.timeline-band {
  background: var(--paper);
}

.memories-band {
  background: var(--paper);
}

.page-intro-band {
  padding: 6rem 0 2.6rem;
  border-bottom: 1px solid rgba(164, 142, 112, .28);
  background: linear-gradient(180deg, #fbf8f0 0%, var(--paper) 100%);
}

.page-intro-band h1 {
  margin: .25rem 0 .55rem;
  color: var(--ink);
  font-size: 2.25rem;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: 0;
}

.page-intro-band p {
  max-width: var(--content-reading);
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-heading {
  max-width: var(--content-reading);
  margin: 0 auto 1.85rem;
  text-align: center;
}

.section-heading.with-action {
  max-width: var(--content-medium);
  margin-right: auto;
  margin-left: auto;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
}

.section-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .75rem;
}

.section-heading h2,
.story-band h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.72rem;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0;
}

.lead-text {
  color: var(--muted);
  font-size: .96rem;
  line-height: 2.05;
}

.section-band > .container,
.page-intro-band > .container,
.notice-band > .container {
  max-width: var(--content-wide);
}

.section-band > .container::before {
  content: "";
  display: block;
  width: min(100%, 680px);
  height: 1px;
  margin: 0 auto 2.6rem;
  background: rgba(126, 107, 78, .34);
}

.portrait-frame {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: var(--line);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-notes {
  display: grid;
  gap: 0;
  max-width: var(--content-reading);
  margin: 2rem auto 0;
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(126, 107, 78, .4);
  border-radius: 8px;
  background: rgba(255, 253, 248, .5);
}

.story-notes div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 1rem;
  padding: .78rem 0;
  border-top: 1px solid var(--line);
}

.story-notes div:first-child {
  border-top: 0;
}

.story-notes span {
  color: var(--gold);
  font-size: .82rem;
  font-weight: 700;
}

.story-notes strong {
  color: var(--ink);
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.7;
}

.story-band .row {
  justify-content: center;
}

.story-band .col-lg-5 {
  display: none;
}

.story-band .col-lg-7 {
  width: 100%;
  max-width: var(--content-reading);
  text-align: center;
}

.announcement-list {
  display: grid;
  gap: 0;
  max-width: var(--content-medium);
  margin: 0 auto;
  border-top: 1px solid rgba(126, 107, 78, .28);
}

.announcement-item {
  display: grid;
  grid-template-columns: minmax(110px, 145px) minmax(0, 1fr);
  gap: 1.1rem;
  padding: 1.15rem 0;
  border: 0;
  border-bottom: 1px solid rgba(126, 107, 78, .28);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.announcement-item.is-pinned {
  border-left-color: var(--rose);
}

.announcement-meta {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 700;
}

.announcement-meta time,
.announcement-meta span,
.announcement-meta strong {
  width: fit-content;
  min-height: auto;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.announcement-meta strong {
  background: rgba(185, 111, 118, .12);
  color: var(--rose-dark);
}

.announcement-copy {
  min-width: 0;
}

.announcement-copy h3 {
  margin: 0 0 .4rem;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.45;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.announcement-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.memory-timeline {
  display: grid;
  gap: 0;
  max-width: var(--content-medium);
  margin: 0 auto;
}

.timeline-item {
  display: grid;
  position: relative;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  padding: .95rem 0 1.1rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(126, 107, 78, .22);
  border-radius: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 118px;
  top: 1.15rem;
  bottom: -1px;
  width: 1px;
  background: rgba(126, 107, 78, .35);
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: 113px;
  top: 1.28rem;
  width: 11px;
  height: 11px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: var(--paper);
}

.timeline-item time {
  display: block;
  align-items: center;
  width: auto;
  min-height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}

.timeline-copy {
  min-width: 0;
}

.timeline-item h3,
.media-copy h3,
.message-entry h3 {
  margin: 0 0 .35rem;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.45;
  letter-spacing: 0;
}

.timeline-item p,
.media-copy p,
.message-card p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.85;
}

.timeline-media-grid {
  grid-column: 2;
  display: flex;
  flex-wrap: nowrap;
  gap: .55rem;
  align-items: stretch;
  overflow-x: auto;
  margin-top: .75rem;
  padding-bottom: .15rem;
}

.timeline-media {
  margin: 0;
  flex: 1 1 0;
  min-width: 160px;
  max-width: 260px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--line);
}

.timeline-media img {
  width: 100%;
  height: auto;
  display: block;
}

.timeline-video {
  background: #111;
}

.timeline-video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #111;
}

.timeline-youtube {
  background: #111;
}

.timeline-youtube iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
  background: #111;
}

.timeline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 0;
  padding: .35rem .9rem;
  border: 1px solid rgba(126, 107, 78, .42);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.timeline-link:hover,
.timeline-link:focus {
  color: var(--white);
  background: var(--rose-dark);
  border-color: var(--rose-dark);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.album-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
  margin: -1rem 0 1.5rem;
}

.filter-btn {
  min-height: 32px;
  padding: .25rem .72rem;
  border: 1px solid rgba(126, 107, 78, .34);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}

.filter-btn:hover,
.filter-btn:focus,
.filter-btn.active {
  background: var(--moss);
  border-color: var(--moss);
  color: var(--white);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
  max-width: var(--content-medium);
  margin: 0 auto;
}

.media-tile {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: hidden;
}

.media-open {
  position: relative;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(126, 107, 78, .2);
  background: #f3ede2;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.media-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(126, 107, 78, .2);
}

.media-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #111;
}

.media-embed span {
  position: absolute;
  left: .45rem;
  bottom: .45rem;
  min-height: 24px;
  padding: .18rem .48rem;
  border-radius: 3px;
  background: rgba(23, 19, 17, .7);
  color: var(--white);
  font-size: .74rem;
  font-weight: 700;
  pointer-events: none;
}

.media-open img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .25s ease;
}

.media-open:hover img,
.media-open:focus img {
  transform: scale(1.04);
}

.media-open span {
  position: absolute;
  left: .45rem;
  bottom: .45rem;
  min-height: 24px;
  padding: .18rem .48rem;
  border-radius: 3px;
  background: rgba(23, 19, 17, .7);
  color: var(--white);
  font-size: .74rem;
  font-weight: 700;
}

.media-open[data-media-type="video"]::after,
.media-open[data-media-type="youtube"]::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(23, 19, 17, .72);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

.media-open[data-media-type="video"]::before,
.media-open[data-media-type="youtube"]::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform: translate(-35%, -50%);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid var(--white);
}

.media-copy {
  padding: .55rem 0 0;
}

.message-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  max-width: var(--content-medium);
  margin: 0 auto;
}

.message-card {
  min-height: 145px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem 1.05rem;
  background: rgba(255, 253, 248, .54);
  border: 1px solid rgba(126, 107, 78, .3);
  border-radius: 4px;
  box-shadow: none;
}

.memorial-alert {
  max-width: var(--content-form);
  margin-right: auto;
  margin-left: auto;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.message-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  margin-bottom: 1rem;
  border-radius: 3px;
  background: var(--line);
}

.message-card footer {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  margin-top: .9rem;
  padding-top: .6rem;
  border-top: 1px solid rgba(126, 107, 78, .2);
}

.message-card strong {
  color: var(--ink);
}

.message-card span {
  color: var(--rose-dark);
  font-size: .84rem;
}

.message-card time {
  color: var(--muted);
  font-size: .8rem;
}

.message-entry {
  background: rgba(255, 253, 248, .66);
}

.message-form-card {
  max-width: var(--content-form);
  margin-right: auto;
  margin-left: auto;
  grid-column: span 2;
  justify-content: start;
}

.message-form {
  display: grid;
  gap: .9rem;
}

.message-form .form-label {
  margin-bottom: .35rem;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 700;
}

.message-form .form-control {
  min-height: 42px;
  border-color: var(--line);
  border-radius: 4px;
  background-color: rgba(255, 255, 255, .68);
}

.form-note {
  margin: .45rem 0 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.6;
}

.memorial-public-switch {
  display: flex;
  align-items: center;
  gap: .8rem;
  width: 100%;
  margin-top: .35rem;
  padding: .85rem 1rem;
  border: 1px solid rgba(188, 100, 110, .42);
  border-radius: 4px;
  background: rgba(255, 248, 246, .96);
  box-shadow: none;
  cursor: pointer;
}

.memorial-public-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.memorial-public-toggle {
  position: relative;
  flex: 0 0 3.75rem;
  width: 3.75rem;
  height: 2rem;
  border: 2px solid #bc646e;
  border-radius: 999px;
  background-color: #f3c3c8;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .75), 0 2px 8px rgba(54, 42, 38, .18);
  transition: background-color .18s ease, border-color .18s ease;
}

.memorial-public-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: .2rem;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: #bc646e;
  box-shadow: 0 2px 8px rgba(54, 42, 38, .28);
  transform: translateY(-50%);
  transition: transform .18s ease, background-color .18s ease;
}

.memorial-public-input:checked + .memorial-public-toggle {
  background-color: var(--accent);
  border-color: var(--accent);
}

.memorial-public-input:checked + .memorial-public-toggle::after {
  background: #ffffff;
  transform: translate(1.72rem, -50%);
}

.memorial-public-input:focus-visible + .memorial-public-toggle {
  outline: 3px solid rgba(188, 100, 110, .28);
  outline-offset: 3px;
}

.memorial-public-label {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}

.memorial-public-title {
  margin-bottom: .35rem;
  color: var(--accent);
  font-size: .95rem;
  font-weight: 800;
}

.memorial-footer {
  padding: 2rem 0 2.4rem;
  border-top: 1px solid rgba(126, 107, 78, .28);
  background: var(--paper);
  color: var(--muted);
  font-size: .82rem;
}

.memorial-footer .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: var(--content-medium);
  text-align: center;
}

.memorial-modal {
  border: 0;
  border-radius: 4px;
  overflow: hidden;
}

.memorial-modal .modal-title {
  font-size: 1.25rem;
  letter-spacing: 0;
}

.modal-media {
  width: 100%;
  border-radius: 4px;
  background: var(--line);
}

.modal-empty {
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 2rem;
  color: var(--muted);
  text-align: center;
  background: var(--soft);
  border-radius: 4px;
}

.share-dialog {
  max-width: 520px;
}

.share-modal {
  position: relative;
  padding: 2rem;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #fffdf8 0%, #f6efe4 100%);
  box-shadow: 0 24px 70px rgba(57, 45, 34, .24);
  overflow: hidden;
}

.share-modal::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--rose), var(--gold), var(--moss));
}

.share-close {
  position: absolute;
  top: .85rem;
  right: .85rem;
  z-index: 2;
}

.share-modal .section-kicker {
  margin-bottom: .35rem;
}

.share-modal .modal-title {
  margin: 0;
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1.4;
}

.share-modal-text {
  margin: .65rem 0 1.2rem;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.75;
}

.share-preview {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: .85rem;
  padding: .9rem 0 1rem;
  border-top: 1px solid rgba(164, 142, 112, .28);
  border-bottom: 1px solid rgba(164, 142, 112, .28);
}

.share-preview img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(164, 142, 112, .35);
}

.share-preview strong,
.share-preview span {
  display: block;
}

.share-preview strong {
  color: var(--ink);
  font-size: 1rem;
}

.share-preview span {
  margin-top: .2rem;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.55;
}

.share-link-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .55rem;
  margin-top: 1rem;
}

.share-link-input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 .85rem;
  border: 1px solid rgba(164, 142, 112, .48);
  border-radius: 6px;
  background: rgba(255, 255, 255, .72);
  color: var(--muted);
  font-size: .86rem;
}

.share-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .6rem;
  margin-top: 1rem;
}

.share-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: .55rem .65rem;
  border: 1px solid rgba(164, 142, 112, .38);
  border-radius: 6px;
  background: rgba(255, 255, 255, .58);
  color: var(--ink);
  font-size: .86rem;
  font-weight: 800;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.share-action:hover,
.share-action:focus {
  transform: translateY(-1px);
  color: var(--ink);
}

.share-action.is-line {
  border-color: rgba(6, 199, 85, .42);
  background: rgba(6, 199, 85, .12);
  color: #086b34;
}

.share-action.is-facebook {
  border-color: rgba(24, 119, 242, .36);
  background: rgba(24, 119, 242, .1);
  color: #174f9d;
}

.share-action.is-instagram {
  border-color: rgba(193, 53, 132, .34);
  background: linear-gradient(135deg, rgba(252, 175, 69, .16), rgba(193, 53, 132, .13), rgba(64, 93, 230, .12));
  color: #833a74;
}

.share-action.is-more {
  border-color: rgba(95, 111, 93, .38);
  background: rgba(95, 111, 93, .12);
  color: #465545;
}

.share-copy-status {
  min-height: 1.35rem;
  margin: .8rem 0 0;
  color: var(--moss);
  font-size: .85rem;
  font-weight: 700;
  text-align: center;
}

.message-notice-dialog {
  max-width: 430px;
}

.message-notice-modal {
  position: relative;
  align-items: center;
  padding: 2rem 2rem 1.75rem;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #fffdf8 0%, #f8f1e7 100%);
  box-shadow: 0 24px 70px rgba(57, 45, 34, .24);
  text-align: center;
  overflow: hidden;
}

.message-notice-modal::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--moss);
}

.message-notice-modal.is-error::before {
  background: var(--rose);
}

.message-notice-close {
  position: absolute;
  top: .8rem;
  right: .8rem;
  z-index: 2;
}

.message-notice-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: .45rem auto 1rem;
  border-radius: 50%;
  background: rgba(95, 111, 93, .12);
  color: var(--moss);
  font-size: 1.65rem;
  font-weight: 900;
}

.message-notice-modal.is-error .message-notice-icon {
  background: rgba(183, 107, 114, .12);
  color: var(--rose-dark);
}

.message-notice-modal .section-kicker {
  margin-bottom: .35rem;
}

.message-notice-modal .modal-title {
  margin: 0;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.45;
}

.message-notice-text {
  margin: .65rem 0 1.35rem;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.75;
}

.message-notice-subtext {
  margin: -.65rem 0 1.35rem;
  color: var(--ink);
  font-size: .92rem;
  line-height: 1.65;
}

.message-notice-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .65rem;
}

.message-notice-modal .btn {
  min-width: 112px;
}

.memorial-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .45rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.memorial-pagination a,
.memorial-pagination span {
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .35rem .75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.memorial-pagination a:hover,
.memorial-pagination a:focus,
.memorial-pagination .active span {
  border-color: var(--rose);
  background: var(--rose);
  color: var(--white);
}

.empty-state {
  max-width: var(--content-form);
  margin: 0 auto;
  padding: 1.5rem;
  border: 1px solid rgba(126, 107, 78, .28);
  border-radius: 4px;
  background: rgba(255, 253, 248, .5);
  color: var(--muted);
  line-height: 1.8;
}

@media (max-width: 991.98px) {
  .memorial-nav {
    position: sticky;
  }

  .hero-inner {
    max-width: 680px;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 3rem;
  }

  .hero-portrait {
    width: 180px;
  }

  .memorial-hero {
    min-height: auto;
    padding: 4.7rem 0 3rem;
  }

  .memorial-hero h1 {
    font-size: 2.25rem;
  }

  .hero-quote {
    font-size: .92rem;
  }

  .section-band {
    padding: 3.2rem 0;
  }

  .section-heading.with-action {
    align-items: start;
    flex-direction: column;
  }

  .section-tools {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .timeline-item {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .timeline-item::before {
    left: 108px;
  }

  .timeline-item::after {
    left: 103px;
  }

  .announcement-item {
    grid-template-columns: minmax(100px, 130px) minmax(0, 1fr);
  }

  .timeline-item.has-media .timeline-media-grid {
    grid-column: 2;
  }

  .media-grid,
  .message-grid {
    grid-template-columns: 1fr 1fr;
  }

  .message-form-card {
    grid-column: span 2;
  }
}

@media (max-width: 767.98px) {
  .navbar-nav .nav-link {
    padding: .45rem 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    text-align: center;
  }

  .memorial-hero {
    padding: 4.2rem 0 2.7rem;
  }

  .hero-portrait {
    width: min(68vw, 210px);
    margin: 0 auto;
  }

  .memorial-hero h1 {
    font-size: 2.05rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-actions .btn {
    width: auto;
  }

  .section-heading h2,
  .story-band h2 {
    font-size: 1.42rem;
  }

  .page-intro-band {
    padding: 4.8rem 0 2.2rem;
  }

  .page-intro-band h1 {
    font-size: 1.75rem;
  }

  .story-notes div,
  .announcement-item,
  .timeline-item {
    grid-template-columns: 1fr;
    gap: .45rem;
  }

  .timeline-item {
    padding-left: 1.25rem;
  }

  .timeline-item::before {
    left: 0;
  }

  .timeline-item::after {
    left: -5px;
  }

  .timeline-item.has-media .timeline-media-grid {
    grid-column: auto;
  }

  .timeline-media-grid {
    gap: .65rem;
    margin-top: .35rem;
  }

  .timeline-media {
    min-width: 180px;
  }

  .media-grid,
  .message-grid {
    grid-template-columns: 1fr;
  }

  .message-card {
    min-height: 190px;
  }

  .message-form-card {
    grid-column: span 1;
  }

  .share-modal {
    padding: 1.65rem 1.25rem 1.35rem;
  }

  .share-preview {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .share-preview img {
    width: 54px;
    height: 54px;
  }

  .share-link-box {
    grid-template-columns: 1fr;
  }

  .share-actions {
    grid-template-columns: 1fr 1fr;
  }

  .memorial-footer .container {
    align-items: center;
    flex-direction: column;
  }
}
