:root {
  --bg-page: #f2f5f2;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-subtle: rgba(248, 250, 248, 0.88);
  --ink-primary: #1e2a24;
  --ink-secondary: #485a50;
  --ink-muted: #65766d;
  --accent: #2d4a3e;
  --accent-hover: #21372e;
  --frame-border: #3c4d44;
  --border-subtle: rgba(30, 42, 36, 0.13);
  --shadow-soft: 0 12px 34px rgba(24, 36, 30, 0.08);
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Lora", Georgia, "Times New Roman", serif;
  --font-ui: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --radius-card: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg-page);
  color: var(--ink-primary);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #ffffff;
  padding: 0.6rem 1rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(980px, calc(100% - 2.25rem));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.45rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-secondary);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 3.25rem;
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      to bottom,
      rgba(242, 245, 242, 0.72) 0%,
      rgba(242, 245, 242, 0.84) 55%,
      rgba(242, 245, 242, 0.98) 100%
    ),
    url("/obituaries/david-eaton/images/mountain-lake-bg.jpg");
  background-image: linear-gradient(
      to bottom,
      rgba(242, 245, 242, 0.72) 0%,
      rgba(242, 245, 242, 0.84) 55%,
      rgba(242, 245, 242, 0.98) 100%
    ),
    image-set(
      url("/obituaries/david-eaton/images/mountain-lake-bg.webp") type("image/webp"),
      url("/obituaries/david-eaton/images/mountain-lake-bg.jpg") type("image/jpeg")
    );
  background-size: cover;
  background-position: center 40%;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: var(--ink-primary);
}

.hero-dates {
  margin: 0.65rem 0 2rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  color: var(--ink-secondary);
}

.hero-portrait-frame {
  width: min(330px, 84vw);
  margin: 0 auto 1.35rem;
  padding: 5px;
  background: #ffffff;
  border: 1px solid var(--frame-border);
  box-shadow: 0 14px 36px rgba(24, 36, 30, 0.14);
}

.hero-portrait-frame img {
  width: 100%;
  aspect-ratio: 957 / 1200;
  object-fit: cover;
}

.hero-subtitle {
  margin: 0 0 1.75rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.38rem);
  color: var(--ink-primary);
}

.section-nav {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.55rem 0.9rem;
  padding: 0.55rem 1.25rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.875rem;
}

.section-nav a {
  text-decoration: none;
  font-weight: 500;
  color: var(--accent);
}

.section-nav a:hover {
  text-decoration: underline;
}

/* ---------- Sections & Cards ---------- */
.main-content {
  padding-block: 2.25rem 3rem;
}

.section {
  margin-bottom: 2.5rem;
}

.paper-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.6rem, 4vw, 3.25rem);
}

.section-heading {
  text-align: center;
  margin-bottom: 1.75rem;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.8vw, 2.5rem);
  font-weight: 600;
  color: var(--ink-primary);
}

.section-lead {
  max-width: 60ch;
  margin: 0.75rem auto 0;
  color: var(--ink-secondary);
  font-size: 1rem;
}

/* ---------- Scripture ---------- */
.scripture-card {
  max-width: 680px;
  margin-inline: auto;
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.scripture-quote {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.8vw, 1.65rem);
  line-height: 1.5;
  color: var(--ink-primary);
}

.scripture-ref {
  margin: 0.85rem 0 0.25rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink-primary);
}

.scripture-tagline {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.12rem;
  color: var(--ink-secondary);
}

/* ---------- Obituary ---------- */
.obituary-header {
  text-align: center;
  margin-bottom: 2rem;
}

.obituary-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 4vw, 2.65rem);
  font-weight: 700;
}

.obituary-dates {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-secondary);
}

.obituary-body {
  max-width: 64ch;
  margin-inline: auto;
}

.obituary-body p {
  margin: 0 0 1.25rem;
}

.obituary-body p:last-child {
  margin-bottom: 0;
}

.ornament {
  text-align: center;
  color: var(--ink-muted);
  letter-spacing: 0.2em;
  margin: 2rem 0 0.5rem;
  font-size: 0.95rem;
}

.obituary-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.gallery-card {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.gallery-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #e6ebe7;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.gallery-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-trigger:hover img,
.gallery-trigger:focus-visible img {
  transform: scale(1.03);
}

.gallery-caption {
  padding: 0.95rem 1.1rem;
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--ink-secondary);
}

/* ---------- Charities ---------- */
.charities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.charity-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.35rem 1.35rem 1.45rem;
  display: flex;
  flex-direction: column;
}

.charity-card h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
}

.charity-card p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--ink-secondary);
  flex: 1;
}

.charity-link {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.charity-link:hover {
  text-decoration: underline;
}

.print-only-url {
  display: none;
}

/* ---------- Buttons ---------- */
.btn-primary,
.btn-secondary {
  font-family: var(--font-ui);
  font-size: 0.94rem;
  font-weight: 500;
  border-radius: 6px;
  padding: 0.7rem 1.35rem;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent);
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-secondary {
  background: #ffffff;
  color: var(--accent);
  border: 1px solid rgba(45, 74, 62, 0.35);
}

.btn-secondary:hover:not(:disabled) {
  background: #eef3ef;
  border-color: var(--accent);
}

/* ---------- Guestbook / Memory Wall ---------- */
.memory-form {
  max-width: 720px;
  margin-inline: auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  margin-bottom: 1.1rem;
}

.field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-primary);
}

.field-optional {
  font-weight: 400;
  color: var(--ink-muted);
}

.char-counter {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.68rem 0.82rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink-primary);
  background: #ffffff;
  border: 1px solid rgba(30, 42, 36, 0.24);
  border-radius: 6px;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.4rem;
}

.turnstile-container {
  min-height: 65px;
}

.turnstile-notice {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.84rem;
  color: var(--ink-secondary);
}

.form-status {
  margin-top: 0.9rem;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  min-height: 1.4em;
}

.form-status.is-success {
  color: #1f5c3a;
}

.form-status.is-error {
  color: #8f2323;
}

.subtle-divider {
  border: 0;
  border-top: 1px solid var(--border-subtle);
  margin: 2.25rem 0 1.75rem;
}

.memories-header h3 {
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
}

.memories-list {
  display: grid;
  gap: 1rem;
}

.memories-empty {
  margin: 0;
  padding: 1.5rem;
  text-align: center;
  background: var(--bg-card-subtle);
  border: 1px dashed var(--border-subtle);
  border-radius: 8px;
  color: var(--ink-secondary);
  font-style: italic;
}

.memory-entry {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.25rem 1.4rem;
}

.memory-entry-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.35rem 1rem;
  margin-bottom: 0.6rem;
}

.memory-author {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.memory-relationship {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--ink-secondary);
  margin-left: 0.4rem;
}

.memory-date {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.memory-text p {
  margin: 0 0 0.7rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.memory-text p:last-child {
  margin-bottom: 0;
}

.memories-pagination {
  display: flex;
  justify-content: center;
  margin-top: 1.4rem;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 0 0 3.25rem;
  text-align: center;
}

.footer-name {
  margin: 0.75rem 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink-primary);
}

.footer-note {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-secondary);
}

/* ---------- Lightbox ---------- */
.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 25, 21, 0.86);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  width: min(940px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #f5f7f5;
}

.lightbox-close {
  align-self: flex-end;
  background: transparent;
  border: 0;
  color: #ffffff;
  font-size: 2.25rem;
  line-height: 1;
  padding: 0.15rem 0.55rem;
  cursor: pointer;
}

.lightbox-stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.lightbox-nav {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.26);
}

.lightbox-figure {
  margin: 0;
  text-align: center;
}

.lightbox-figure img {
  margin-inline: auto;
  max-height: 70vh;
  width: auto;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

.lightbox-figure figcaption {
  margin-top: 0.85rem;
  font-size: 0.98rem;
  color: #e4eae6;
}

.lightbox-counter {
  margin: 0.45rem 0 0;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: #c2ccc6;
}

/* ---------- Landing Page (eatonhub.com/) ---------- */
.landing-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background-image: linear-gradient(
      rgba(242, 245, 242, 0.84),
      rgba(242, 245, 242, 0.92)
    ),
    url("/obituaries/david-eaton/images/mountain-lake-bg.jpg");
  background-size: cover;
  background-position: center;
  padding: 1.5rem;
}

.landing-main {
  width: min(640px, 100%);
}

.landing-card {
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  text-align: center;
}

.landing-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
}

.landing-subtitle {
  margin: 0.5rem 0 1.85rem;
  color: var(--ink-secondary);
}

.memorial-link-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 1.25rem;
  align-items: center;
  text-align: left;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.memorial-link-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.memorial-link-thumb {
  border: 1px solid var(--frame-border);
  padding: 2px;
  background: #ffffff;
}

.memorial-link-thumb img {
  width: 100%;
  aspect-ratio: 478 / 600;
  object-fit: cover;
}

.memorial-link-body h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
}

.dates-inline {
  margin: 0.2rem 0 0.55rem;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-secondary);
}

.memorial-link-cta {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent);
}

/* ---------- Responsive & Reduced Motion ---------- */
@media (max-width: 680px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .memorial-link-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .memorial-link-thumb {
    width: 140px;
    margin-inline: auto;
  }

  .lightbox-stage {
    grid-template-columns: 1fr;
  }

  .lightbox-nav {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .gallery-trigger img,
  .btn-primary,
  .btn-secondary,
  .memorial-link-card {
    transition: none;
  }
}

/* ---------- Print Keepsake Stylesheet ---------- */
@media print {
  @page {
    margin: 0.65in;
  }

  body {
    background: #ffffff;
    color: #000000;
    font-size: 10.5pt;
    line-height: 1.55;
  }

  .no-print,
  .section-nav,
  .skip-link,
  #gallery,
  .lightbox {
    display: none !important;
  }

  .hero {
    padding: 0 0 1.25rem;
    border-bottom: 1px solid #cccccc;
  }

  .hero-backdrop {
    display: none;
  }

  .hero-portrait-frame {
    width: 180px;
    box-shadow: none;
  }

  .paper-card {
    background: #ffffff;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .section {
    margin-bottom: 1.5rem;
  }

  .charities-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .charity-card {
    background: #ffffff;
    border: 1px solid #cccccc;
    padding: 0.75rem;
    break-inside: avoid;
  }

  .print-only-url {
    display: block;
    font-family: var(--font-ui);
    font-size: 8.5pt;
    color: #333333;
    margin: 0;
  }
}

/* ---------- Moderation Admin Dashboard ---------- */
.admin-page {
  min-height: 100vh;
  padding-block: 2.5rem;
}

.admin-shell {
  padding: clamp(1.35rem, 3vw, 2.25rem);
}

.admin-topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.admin-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.35rem);
  font-weight: 700;
}

.admin-identity {
  margin: 0.35rem 0 0;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--ink-secondary);
}

.admin-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.admin-link-btn {
  display: inline-block;
  text-decoration: none;
}

.admin-auth-panel {
  max-width: 480px;
  margin: 1rem auto;
}

.admin-auth-note {
  margin: 0 0 1.25rem;
  font-size: 0.96rem;
  color: var(--ink-secondary);
}

.admin-auth-note code {
  font-size: 0.86rem;
  background: rgba(30, 42, 36, 0.07);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.admin-status-banner {
  margin: 0 0 1rem;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--ink-secondary);
  cursor: pointer;
}

.admin-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.tab-count {
  font-size: 0.78rem;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  background: rgba(30, 42, 36, 0.08);
}

.admin-tab.is-active .tab-count {
  background: rgba(255, 255, 255, 0.22);
}

.admin-meta-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.status-pill {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-pill.is-approved {
  background: #e3efe7;
  color: #1f5c3a;
}

.status-pill.is-pending {
  background: #fdf3dc;
  color: #825608;
}

.status-pill.is-hidden {
  background: #ecefed;
  color: #55615b;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
}

.btn-compact {
  padding: 0.42rem 0.88rem;
  font-size: 0.84rem;
}

.btn-danger {
  font-family: var(--font-ui);
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  background: #ffffff;
  color: #8f2323;
  border: 1px solid rgba(143, 35, 35, 0.35);
}

.btn-danger:hover:not(:disabled) {
  background: #fdf2f2;
  border-color: #8f2323;
}

.btn-danger-solid {
  font-family: var(--font-ui);
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  background: #8f2323;
  color: #ffffff;
  border: 1px solid #8f2323;
}

.btn-danger-solid:hover:not(:disabled) {
  background: #731b1b;
}

.confirm-delete-group {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
}

/* ---------- Memory Photo Upload & Previews ---------- */
.photo-upload-help {
  margin: 0.4rem 0 0;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--ink-muted);
}

.photo-preview-box[hidden] {
  display: none;
}

.photo-preview-box {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.photo-preview-box img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--frame-border);
}

.photo-preview-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.photo-preview-meta {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--ink-secondary);
}

.memory-photo-wrap {
  margin-top: 0.9rem;
}

.memory-photo-trigger {
  display: inline-block;
  padding: 4px;
  background: #ffffff;
  border: 1px solid var(--frame-border);
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.memory-photo-trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(24, 36, 30, 0.14);
}

.memory-photo-trigger img {
  max-width: min(320px, 100%);
  max-height: 260px;
  width: auto;
  height: auto;
  object-fit: cover;
}

.admin-photo-preview {
  margin-top: 0.85rem;
}

.admin-photo-preview img {
  max-width: min(360px, 100%);
  max-height: 280px;
  width: auto;
  height: auto;
  padding: 4px;
  background: #ffffff;
  border: 1px solid var(--frame-border);
  border-radius: 4px;
}

