/* ─────────────────────────────────────────────────────────────────────
   In Loving Memory of Stanisław Andrzej Grzymała-Siedlecki IV
   Memorial site — September 28, 1932 to April 28, 2026

   Design notes
   • Larger-than-typical base font (20px) and generous line-height (1.75)
     so older readers and friends of Stan can read comfortably.
   • Cormorant Garamond for headings — close cousin of the Garamond used
     in the printed obituary; preserves the dignified family feel.
   • Lora for body — readable serif at any size, no orphan letters.
   • Warm ivory background, deep burgundy headings, muted gold rules.
   ───────────────────────────────────────────────────────────────────── */

:root {
  --ivory:        #FAF7F2;
  --ivory-deep:   #F2EDDF;
  --ink:          #2A2424;
  --ink-soft:     #4D4540;
  --burgundy:     #5B2233;
  --burgundy-dim: #7A4554;
  --gold:         #8B7050;
  --gold-light:   #BDA876;
  --rule:         #D9D2C2;

  --max-width:    720px;
  --base-fs:      20px;
  --hero-fs:      clamp(2.2rem, 6vw, 3.8rem);
  --section-fs:   clamp(1.55rem, 3.2vw, 2.05rem);

  --serif-display: 'Cormorant Garamond', 'Garamond', 'Times New Roman', serif;
  --serif-body:    'Lora', 'Cormorant Garamond', 'Garamond', 'Georgia', serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #2A1820; /* deep burgundy — what shows in the page-frame outer border */
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: var(--base-fs);
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Page frame: substantial outer border around entire content ── */
.page-frame {
  position: relative;
  background: var(--ivory);
  margin: 1.6rem;
  /* Layered border: thin gold outline, then breathing room, then ivory body */
  border: 4px solid var(--gold);
  outline: 1px solid var(--burgundy-dim);
  outline-offset: 6px;
  box-shadow:
    0 0 0 1px var(--gold-light) inset,
    0 0 0 14px var(--ivory) inset,
    0 0 0 15px var(--gold-light) inset,
    0 0 0 16px var(--ivory) inset,
    0 12px 60px rgba(20, 10, 14, 0.5);
}

/* Decorative corner ornaments on the page frame */
.page-frame::before,
.page-frame::after {
  content: '';
  position: absolute;
  width: 56px;
  height: 56px;
  pointer-events: none;
  background-image:
    linear-gradient(var(--gold), var(--gold)),
    linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
}

.page-frame::before {
  top: 22px;
  left: 22px;
  background-size: 56px 1px, 1px 56px;
  background-position: 0 0, 0 0;
}

.page-frame::after {
  top: 22px;
  right: 22px;
  background-size: 56px 1px, 1px 56px;
  background-position: 100% 0, 100% 0;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 1.4rem 1.5rem 2.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(189, 168, 118, 0.08), transparent 60%),
    linear-gradient(to bottom, var(--ivory) 0%, var(--ivory-deep) 100%);
  background-attachment: local;
}

/* Three-column top row: COA — title — flag */
.hero__top-row {
  display: grid;
  grid-template-columns: 200px 1fr 280px;
  align-items: center;
  gap: 2rem;
  max-width: 920px;
  margin: 0 auto 1.6rem;
}

.hero__crest {
  margin: 0;
  text-align: center;
}

.hero__crest img {
  display: block;
  margin: 0 auto;
  width: 200px;
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(40, 20, 25, 0.18));
}

.hero__crest figcaption {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
  margin-top: 0.45rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.hero__title-stack {
  text-align: center;
}

/* ── Polish flag — proportional to the COA ── */
.hero__flag {
  margin: 0;
  text-align: center;
  justify-self: end;
  margin-right: -1.5rem;
}

.hero__flag-img {
  display: flex;
  flex-direction: column;
  width: 280px;
  height: 175px;
  margin: 0 auto;
  border: 1px solid rgba(0, 0, 0, 0.18);
  box-shadow: 0 4px 14px rgba(40, 20, 25, 0.18);
  border-radius: 1px;
  overflow: hidden;
}

.hero__flag-white { flex: 1; background: #FFFFFF; }
.hero__flag-red   { flex: 1; background: #DC143C; }

.hero__flag figcaption {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
  margin-top: 0.45rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero__memory {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
  text-transform: lowercase;
  margin: 0 0 1.2rem;
}

.hero__name {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: var(--hero-fs);
  color: var(--burgundy);
  line-height: 1.05;
  margin: 0 0 0.6rem;
  letter-spacing: 0.005em;
}

.hero__name-line1,
.hero__name-line2 {
  display: block;
}

.hero__name-line1 {
  font-style: italic;
  font-weight: 400;
  font-size: 0.78em;
  color: var(--burgundy-dim);
  margin-bottom: 0.15em;
  letter-spacing: 0.02em;
}

.hero__name-line2 {
  font-weight: 600;
  letter-spacing: 0.005em;
}

.hero__numeral {
  display: block;
  margin-top: 0.35em;
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 400;
  font-size: 0.42em;
  color: var(--gold);
  letter-spacing: 0.5em;
  text-indent: 0.5em;
}

.hero__nickname {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1.55rem;
  color: var(--ink-soft);
  margin: 1.2rem 0 1.4rem;
  letter-spacing: 0.02em;
}

.hero__ornament {
  margin: 0 auto 2.4rem;
  color: var(--gold);
  opacity: 0.85;
  display: flex;
  justify-content: center;
}

.hero__photo {
  margin: 0 auto 1.4rem;
  max-width: 560px;
}

.hero__photo-frame {
  position: relative;
  padding: 8px;
  background: linear-gradient(135deg, #C9B884, #8B7050 50%, #C9B884);
  box-shadow:
    0 12px 40px rgba(40, 30, 25, 0.18),
    0 2px 8px rgba(40, 30, 25, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.hero__photo-frame::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.hero__photo-frame img {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
}

.hero__photo figcaption {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin: 1.2rem 0 0;
  letter-spacing: 0.04em;
}

.rule {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg,
              transparent,
              var(--gold-light) 20%,
              var(--gold-light) 80%,
              transparent);
  margin: 2.2rem auto;
  width: 60%;
  position: relative;
}

.rule::after {
  content: '\25C6';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--ivory);
  color: var(--gold);
  padding: 0 0.6em;
  font-size: 0.75rem;
}

.hero__dates {
  margin: 0 0 1.8rem;
  font-family: var(--serif-display);
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.hero__dates > div {
  display: block;
  margin: 0.4rem 0;
}

.hero__dates dt,
.hero__dates dd {
  display: inline;
  margin: 0;
}

.hero__dates dt {
  font-weight: 500;
  color: var(--burgundy);
}

.hero__dates dt::after {
  content: ' \00B7 ';
  color: var(--gold);
  font-weight: 400;
  margin: 0 0.3em;
}

.hero__farewell {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--burgundy);
  margin: 1.8rem 0 0.3rem;
  letter-spacing: 0.01em;
}

.hero__farewell-translation {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ── Main / obituary body ─────────────────────────────────── */
main {
  padding: 1.5rem 1.5rem 4rem;
}

.obit {
  max-width: var(--max-width);
  margin: 0 auto;
}

.obit section {
  margin: 0 0 2.4rem;
}

.obit h2 {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: var(--section-fs);
  color: var(--burgundy);
  letter-spacing: 0.005em;
  line-height: 1.25;
  margin: 0 0 1rem;
}

.obit p {
  margin: 0 0 1.1rem;
  font-size: var(--base-fs);
  line-height: 1.75;
  color: var(--ink);
}

.obit em {
  font-style: italic;
  color: var(--ink);
}

.prelude p {
  font-size: 1.1em;
  font-style: italic;
  color: var(--ink-soft);
  border-left: 3px solid var(--gold-light);
  padding: 0 0 0 1.2rem;
  margin-left: 0;
}

/* ── Service panel ────────────────────────────────────────── */
.service__panel {
  background: var(--ivory-deep);
  border: 1px solid var(--gold-light);
  padding: 1.8rem 1.6rem;
  margin: 2rem 0 1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(80, 60, 40, 0.05);
}

.service__panel h2 {
  margin-top: 0;
  font-size: 1.5rem;
  color: var(--burgundy);
}

.service__when {
  font-family: var(--serif-display);
  font-size: 1.5rem;
  color: var(--ink);
  margin: 0.4rem 0;
}

.service__when strong { font-weight: 600; }

.service__where {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin: 0.6rem 0 0;
  line-height: 1.5;
}

/* ── Memorial donations ──────────────────────────────────── */
.memorial ul {
  font-size: 1.1rem;
  line-height: 1.9;
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.memorial ul li {
  position: relative;
  padding-left: 1.4em;
  margin: 0.4rem 0;
}

.memorial ul li::before {
  content: '\25C6';
  color: var(--gold);
  position: absolute;
  left: 0;
  top: 0.05em;
  font-size: 0.7em;
}

a {
  color: var(--burgundy);
  text-decoration: underline;
  text-decoration-color: var(--gold-light);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover, a:focus {
  color: var(--burgundy-dim);
  text-decoration-color: var(--burgundy);
}

/* ── Closing ──────────────────────────────────────────────── */
.closing {
  max-width: var(--max-width);
  margin: 4rem auto 2rem;
  text-align: center;
  padding: 0 1.5rem;
}

.closing__line {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1.45rem;
  color: var(--burgundy);
  margin: 1.2rem 0;
  letter-spacing: 0.01em;
}

/* ── Footer ──────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  color: var(--ink-soft);
  font-family: var(--serif-display);
  font-size: 1rem;
  background: var(--ivory);
}

.footer__flags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  margin: 0 auto 1.6rem;
  flex-wrap: wrap;
}

.footer__flag {
  margin: 0;
}

.footer__flag-img {
  display: block;
  width: 200px;
  height: 125px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  box-shadow: 0 4px 14px rgba(40, 20, 25, 0.18);
  border-radius: 1px;
  overflow: hidden;
}

.footer__flag-img--pl {
  display: flex;
  flex-direction: column;
}

.footer__flag-pl-white { flex: 1; background: #FFFFFF; }
.footer__flag-pl-red   { flex: 1; background: #DC143C; }

.footer__flag-img--us {
  /* True US flag ratio is 1.9:1 (10:19). Match the Polish flag's 125px
     height and let width follow the spec → 237.5px. No background fill,
     so the SVG fully covers the box (no letterbox bars). */
  width: 238px;
  height: 125px;
  background: transparent;
}

.footer__flags-line {
  margin: 0;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--burgundy);
  max-width: 24ch;
  line-height: 1.45;
}

@media (max-width: 600px) {
  .footer__flags { gap: 1rem; }
  .footer__flag-img { width: 150px; height: 94px; }
  .footer__flags-line { font-size: 0.95rem; }
}

.footer__name {
  margin: 0;
  font-size: 1.05rem;
  color: var(--burgundy);
}

.footer__sig {
  margin: 0.4rem 0 0;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Bigger, fully-clickable signature block linking to Mark's site */
.footer__about-block {
  display: block;
  margin: 1.4rem auto 0;
  padding: 1rem 1.5rem;
  max-width: 520px;
  text-align: center;
  text-decoration: none;
  color: var(--ink-soft);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.footer__about-block:hover,
.footer__about-block:focus {
  background: rgba(154, 27, 51, 0.04);
  color: var(--burgundy);
  border-color: var(--burgundy);
  outline: none;
}
.footer__about-line1 {
  display: block;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}
.footer__about-name {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--burgundy);
  letter-spacing: 0.01em;
  margin-bottom: 0.2rem;
}
.footer__about-url {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
  text-transform: lowercase;
  font-style: italic;
}
.footer__about-block:hover .footer__about-name,
.footer__about-block:focus .footer__about-name { color: var(--burgundy); }
.footer__about-block:hover .footer__about-url,
.footer__about-block:focus .footer__about-url { color: var(--burgundy); }

@media (max-width: 600px) {
  .footer__about-block { padding: 0.8rem 1rem; }
  .footer__about-name  { font-size: 1.25rem; }
}

/* ── Responsive — tablets ────────────────────────────────── */
@media (max-width: 880px) {
  .hero__top-row {
    grid-template-columns: 130px 1fr 130px;
    gap: 1.2rem;
  }

  .hero__crest img,
  .hero__flag-img {
    width: 130px;
  }

  .hero__flag-img {
    height: 81px;
  }
}

/* ── Responsive — phones ─────────────────────────────────── */
@media (max-width: 600px) {
  :root {
    --base-fs: 19px;
  }

  .hero {
    padding: 1.2rem 1rem 2rem;
  }

  .hero__top-row {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin-bottom: 1rem;
  }

  .hero__crest { order: 1; }
  .hero__title-stack { order: 2; }
  .hero__flag { order: 3; }

  .hero__crest img,
  .hero__flag-img {
    width: 120px;
  }

  .hero__flag-img {
    height: 75px;
  }

  .hero__memory      { font-size: 1.2rem; }
  .hero__nickname    { font-size: 1.3rem; margin-bottom: 1.4rem; }
  .hero__dates       { font-size: 1.1rem; }
  .hero__farewell    { font-size: 1.25rem; }

  .obit h2 {
    font-size: 1.55rem;
  }

  .service__panel {
    padding: 1.4rem 1.1rem;
  }

  .service__when {
    font-size: 1.25rem;
  }

  .closing__line {
    font-size: 1.2rem;
  }

  .page-frame {
    margin: 0.8rem;
    box-shadow:
      0 0 0 1px var(--gold-light) inset,
      0 0 0 8px var(--ivory) inset,
      0 0 0 9px var(--gold-light) inset,
      0 0 0 10px var(--ivory) inset,
      0 8px 32px rgba(20, 10, 14, 0.4);
  }

  .page-frame::before { top: 14px; left: 14px; width: 32px; height: 32px; background-size: 32px 1px, 1px 32px; }
  .page-frame::after  { top: 14px; right: 14px; width: 32px; height: 32px; background-size: 32px 1px, 1px 32px; }
}

/* ── Print stylesheet (for those who want to print and keep) ─── */
@media print {
  body {
    background: white;
    color: black;
    font-size: 12pt;
    line-height: 1.5;
  }

  .hero,
  .hero__photo img {
    box-shadow: none;
  }

  .service__panel {
    border: 1px solid #888;
    background: #f7f4ed;
  }

  a { color: black; }
}

/* ── Language switcher (top-right of page-frame) ─────────────────── */
/* Make page-frame the positioning context for the switcher */
.page-frame { position: relative; }

.lang-switch {
  position: absolute;
  top: 1.6rem;
  right: 1.6rem;
  z-index: 999; /* above page-frame corner ornaments */
}

/* The whole pill/block IS the link — anywhere inside it is clickable */
.lang-switch__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.1rem 2.2rem;       /* WIDER clickable area */
  min-width: 130px;              /* guaranteed minimum width */
  background: rgba(255, 255, 255, 0.95);
  color: var(--burgundy, #5B2233);
  border: 1.5px solid var(--rule, #D9D2C2);
  border-radius: 12px;
  text-decoration: none;
  font-family: 'Lora', serif;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.12s ease, box-shadow 0.2s ease;
  pointer-events: auto;
  user-select: none;
}
.lang-switch__link:hover,
.lang-switch__link:focus {
  background: #fff;
  color: var(--burgundy, #5B2233);
  border-color: var(--burgundy, #5B2233);
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(91, 34, 51, 0.18);
}

/* Polish flag — a real little flag, white-over-red, ~62×38 ratio */
.lang-switch__flag-pl {
  display: flex;
  flex-direction: column;
  width: 62px;
  height: 38px;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  pointer-events: none; /* clicks pass through to the parent <a> */
}
.lang-switch__pl-white { flex: 1; background: #FFFFFF; }
.lang-switch__pl-red   { flex: 1; background: #DC143C; }

/* US flag — simplified for the Polish-page switcher */
.lang-switch__flag-us {
  display: block;
  width: 62px;
  height: 38px;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  background:
    /* 13 stripes, alternating red + white, drawn with repeating gradient */
    repeating-linear-gradient(
      to bottom,
      #B22234 0px,
      #B22234 2.92px,
      #FFFFFF 2.92px,
      #FFFFFF 5.84px
    );
}
.lang-switch__flag-us::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 26px;
  height: 21px;
  background:
    radial-gradient(circle, #fff 0.6px, transparent 1.2px) 0 0/5.2px 5.2px,
    #3C3B6E;
}

.lang-switch__label {
  font-size: 1.05rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.01em;
  color: var(--burgundy, #5B2233);
  text-align: center;
  pointer-events: none;
}

/* Mobile shrink */
@media (max-width: 600px) {
  .lang-switch { top: 0.8rem; right: 0.8rem; }
  .lang-switch__link { padding: 0.6rem 0.85rem; gap: 0.4rem; border-radius: 10px; }
  .lang-switch__flag-pl,
  .lang-switch__flag-us { width: 48px; height: 30px; }
  .lang-switch__label { font-size: 0.85rem; }
}

/* ============================================================
   Gallery — added 2026-05-03 (atomic-hamming session)
   "A Life in Pictures" section + lightbox modal
   ============================================================ */

.gallery {
  padding: 1.5rem 0 0.5rem;
}
.gallery h2 {
  text-align: center;
  margin-bottom: 0.25em;
}
.gallery__intro {
  text-align: center;
  color: var(--burgundy-dim);
  font-style: italic;
  margin-bottom: 1.5em;
  font-size: 1rem;
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}
.gallery__item {
  margin: 0;
  cursor: zoom-in;
  overflow: hidden;
  border: 1px solid var(--gold-light);
  background: #fff;
  box-shadow: 0 1px 4px rgba(91, 34, 51, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
              border-color 0.18s ease;
  aspect-ratio: 1 / 1;
}
.gallery__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(91, 34, 51, 0.18);
  border-color: var(--gold);
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 8, 12, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
  cursor: zoom-out;
}
.lightbox.show { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 92vh;
  object-fit: contain;
  border: 4px solid var(--gold);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  cursor: default;
}
.lightbox__counter {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold-light);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: none;
  border: 1px solid var(--gold-light);
  color: var(--gold-light);
  font-size: 1.6rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.lightbox__close:hover,
.lightbox__nav:hover {
  background: var(--gold-light);
  color: var(--burgundy);
  border-color: var(--gold-light);
}
.lightbox__close { top: 16px; right: 20px; }
.lightbox__nav--prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 20px; top: 50%; transform: translateY(-50%); }

@media (max-width: 600px) {
  .gallery__grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
  }
  .lightbox__nav { width: 40px; height: 40px; font-size: 1.3rem; }
}

/* ============================================================
   Memories page header (siedlecki.com/memories.html)
   Lighter than the full obit hero — just name + dates + back link
   ============================================================ */
.page-memories__header {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
  border-bottom: 1px solid var(--gold-light);
  margin-bottom: 1.5rem;
}
.page-memories__eyebrow {
  font-style: italic;
  color: var(--burgundy-dim);
  font-size: 1rem;
  margin: 0 0 0.4rem;
  letter-spacing: 0.04em;
}
.page-memories__name {
  font-family: var(--serif-display);
  color: var(--burgundy);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 600;
  margin: 0 0 0.3rem;
  letter-spacing: 0.005em;
}
.page-memories__dates {
  font-family: var(--serif-display);
  color: var(--ink);
  font-size: 1.05rem;
  margin: 0 0 0.8rem;
  letter-spacing: 0.04em;
}
.page-memories__back {
  margin: 0;
  font-size: 0.95rem;
}
.page-memories__back a {
  color: var(--burgundy);
  text-decoration: none;
  border-bottom: 1px dotted var(--gold);
  padding-bottom: 1px;
}
.page-memories__back a:hover { color: var(--burgundy-dim); border-bottom-color: var(--burgundy-dim); }

/* ============================================================
   Homepage CTA → memories page
   Mirrors .service__panel aesthetic, smaller, link-styled
   ============================================================ */
.photos-cta {
  text-align: center;
  margin: 1.5rem 0 0.5rem;
}
.photos-cta__link {
  display: inline-block;
  background: var(--ivory-deep);
  border: 1px solid var(--gold-light);
  color: var(--burgundy);
  text-decoration: none;
  padding: 0.9rem 1.6rem;
  font-family: var(--serif-display);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(80, 60, 40, 0.05);
  transition: background 0.15s ease, border-color 0.15s ease,
              color 0.15s ease;
}
.photos-cta__link:hover,
.photos-cta__link:focus {
  background: var(--burgundy);
  color: var(--ivory-deep);
  border-color: var(--burgundy);
}
.photos-cta__arrow {
  color: var(--gold);
  margin-left: 0.4rem;
  transition: color 0.15s;
}
.photos-cta__link:hover .photos-cta__arrow,
.photos-cta__link:focus .photos-cta__arrow { color: var(--gold-light); }

/* ============================================================
   Hero CTA — link to /memories.html, sits inside the hero
   immediately after the farewell translation
   ============================================================ */
.hero__photos-link {
  text-align: center;
  margin: 1.8rem 0 0.6rem;
  font-family: var(--serif-display);
  font-size: 1.45rem;
  letter-spacing: 0.05em;
}
.hero__photos-link a {
  display: inline-block;
  color: var(--ivory-deep);
  text-decoration: none;
  background: var(--burgundy);
  border: 2px solid var(--gold);
  padding: 0.95rem 2.2rem;
  font-weight: 500;
  box-shadow:
    0 0 0 4px var(--ivory-deep),
    0 0 0 5px var(--gold-light),
    0 6px 18px rgba(91, 34, 51, 0.25);
  transition: background 0.2s ease, color 0.2s ease,
              border-color 0.2s ease, transform 0.15s ease,
              box-shadow 0.2s ease;
}
.hero__photos-link a:hover,
.hero__photos-link a:focus {
  background: var(--ivory-deep);
  color: var(--burgundy);
  border-color: var(--burgundy);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 4px var(--ivory-deep),
    0 0 0 5px var(--gold),
    0 10px 24px rgba(91, 34, 51, 0.35);
}
.hero__photos-link span {
  color: var(--gold-light);
  margin-left: 0.6rem;
  transition: color 0.2s ease;
}
.hero__photos-link a:hover span,
.hero__photos-link a:focus span { color: var(--gold); }

@media (max-width: 600px) {
  .hero__photos-link { font-size: 1.2rem; }
  .hero__photos-link a { padding: 0.8rem 1.6rem; }
}
