:root {
  color-scheme: light;
  --ink: #20302e;
  --muted: #65726f;
  --teal: #285d5b;
  --teal-dark: #183c3d;
  --coral: #bd6848;
  --paper: #fbf8f2;
  --line: #e8e1d6;
  --white: #fff;
  font-family: "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

a { color: inherit; }

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 0 max(5vw, calc((100vw - 1260px) / 2));
  color: var(--white);
  background: var(--teal-dark);
  box-shadow: 0 4px 18px #183c3d20;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid #e8c89f;
  border-radius: 50%;
  color: #e8c89f;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
}

.brand-copy { display: grid; line-height: 1.35; }
.brand-copy strong { font-size: 12px; letter-spacing: .14em; }
.brand-copy small { color: #d7dfd9; font-size: 11px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.site-nav a, .side-nav a {
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}

.site-nav a {
  padding: 9px 11px;
  border-radius: 6px;
  color: #edf2ef;
  font-size: 12px;
  font-weight: 600;
}

.site-nav a:hover, .site-nav a[aria-current="page"] { background: #ffffff1a; color: #f0c997; }
.menu-toggle { display: none; }

.page-shell { width: min(1190px, 90vw); margin: 48px auto 80px; }

.page-heading {
  position: relative;
  display: flex;
  min-height: 206px;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 36px clamp(24px, 5vw, 64px);
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(110deg, #173b3b 0%, #285d5b 63%, #447571 100%);
  box-shadow: 0 14px 36px #183c3d1c;
}

.page-heading::after {
  position: absolute;
  right: -24px;
  bottom: -132px;
  width: 360px;
  height: 360px;
  border: 1px solid #ffffff24;
  border-radius: 50%;
  box-shadow: 0 0 0 34px #ffffff0b, 0 0 0 72px #ffffff08;
  content: "";
}

.eyebrow {
  margin: 0 0 10px;
  color: #e9c79d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.page-heading h1 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(32px, 5vw, 50px);
  font-weight: 600;
  line-height: 1.15;
}

.page-heading p:last-child {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 14px 0 0;
  color: #e2eae6;
  font-size: 15px;
}

.page-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  margin-top: 30px;
}

.sidebar { display: grid; gap: 16px; }
.side-card, .content-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 7px 22px #3a32240a;
}

.side-card { padding: 20px; }
.side-label {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.side-nav { display: grid; gap: 3px; }
.side-nav a {
  padding: 8px 10px;
  border-radius: 6px;
  color: #495652;
  font-size: 12px;
  font-weight: 600;
}
.side-nav a:hover { background: #f5f2eb; }
.side-nav a[aria-current="page"] { color: var(--teal-dark); background: #eaf1ed; }

.side-note { background: #f4ede2; }
.note-icon { color: var(--coral); font-size: 20px; }
.side-note p { margin: 7px 0 12px; font-family: "Playfair Display", Georgia, serif; font-size: 17px; line-height: 1.4; }
.side-note a { color: var(--teal); font-size: 14px; font-weight: 700; text-decoration: none; }
.side-note a:hover { text-decoration: underline; }

.page-content { min-width: 0; }
.content-card { margin-bottom: 20px; padding: clamp(20px, 3vw, 32px); }
.content-card h2 {
  margin: 0 0 16px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 23px;
  font-weight: 600;
}

.story-copy { display: grid; gap: 13px; }
.story-copy p { margin: 0; color: #4d5a56; font-size: 14px; }
.story-copy a { color: var(--teal); }
.story-copy a.connect-link { font-size: 16px; font-weight: 700; text-decoration: underline; }
.story-copy a.connect-link:hover { color: #0f2c2d; }
.more-copy { margin-top: 16px; border-top: 1px solid var(--line); }
.more-copy summary { padding-top: 13px; color: var(--teal); cursor: pointer; font-size: 12px; font-weight: 700; }
.more-copy .memory-list { margin-bottom: 0; }

.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.gallery-toolbar h2 { margin: 0; }
.gallery-count { color: var(--muted); font-size: 12px; }
.gallery-search {
  width: min(220px, 44%);
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: none;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 12px;
}
.gallery-search:focus { border-color: var(--teal); box-shadow: 0 0 0 3px #285d5b18; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.photo-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f1e8;
}

.photo-button {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #e8e1d6;
  cursor: zoom-in;
}
.photo-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.photo-button:hover img { transform: scale(1.045); }
.photo-media { display: block; width: 100%; height: 100%; }
.photo-protected {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform .3s ease;
}
.photo-button:hover .photo-protected { transform: scale(1.045); }
.protected-photo { -webkit-user-select: none; user-select: none; }
.photo-card figcaption { min-height: 39px; padding: 9px 10px; color: #58635f; font-size: 11px; line-height: 1.4; }
.photo-card.no-caption figcaption { display: none; }

.memory-list { padding: 0; list-style: none; }
.memory-list li { padding: 10px 0; border-top: 1px solid var(--line); color: #4d5a56; font-size: 13px; }
.memory-list li:first-child { border-top: 0; }
.memory-list a { font-size: 16px; font-weight: 600; }

.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.video-card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #f5f2eb; }
.video-intro { margin: 0 0 14px; color: #58635f; font-size: 13px; }
.video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #162322;
  text-decoration: none;
}
.video-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.video-thumb:hover img { transform: scale(1.045); }
.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 34px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .6);
  background: rgba(16, 32, 31, .22);
  transition: background .3s ease;
}
.video-thumb:hover .video-play { background: rgba(16, 32, 31, .38); }
.video-card p { margin: 0; padding: 12px; color: #495652; font-size: 12px; }
.video-hint { display: block; margin-top: 5px; color: #8a6a3d; font-size: 11px; }

.site-footer {
  padding: 30px 20px 34px;
  color: #d8e0dc;
  background: #183c3d;
  text-align: center;
}
.footer-brand { color: #f1d0a6; font-family: "Playfair Display", Georgia, serif; font-size: 18px; text-decoration: none; }
.site-footer p { margin: 4px 0 10px; font-size: 12px; }
.site-footer span { color: #aab8b2; font-size: 10px; }

.lightbox {
  position: fixed;
  width: min(94vw, 1100px);
  max-width: none;
  max-height: 94vh;
  padding: 18px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #10201f;
  box-shadow: 0 24px 80px #0009;
}
.lightbox::backdrop { background: #091312d9; }
.lightbox img { display: block; max-width: 100%; max-height: calc(94vh - 80px); margin: auto; object-fit: contain; }
.lightbox-protected {
  width: min(90vw, 1040px);
  height: calc(94vh - 80px);
  margin: auto;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  -webkit-user-select: none;
  user-select: none;
}
.lightbox p { margin: 10px 0 0; color: #e4e9e6; text-align: center; font-size: 13px; }
.lightbox-close {
  position: absolute;
  top: 6px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #ffffff22;
  font-size: 25px;
  cursor: pointer;
}
.empty-state { color: var(--muted); font-size: 13px; }

@media (max-width: 1050px) {
  .site-header { padding-right: 5vw; padding-left: 5vw; }
  .site-nav a { padding: 8px 7px; font-size: 10px; }
}

@media (max-width: 780px) {
  .site-header { min-height: 70px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 11px;
    border: 1px solid #ffffff3d;
    border-radius: 6px;
    color: #fff;
    background: transparent;
    font: inherit;
    font-size: 12px;
  }
  .site-nav { display: none; width: 100%; flex-wrap: wrap; padding-top: 10px; }
  .site-nav.is-open { display: flex; }
  .site-nav a { font-size: 11px; }
  .page-shell { width: min(94vw, 640px); margin-top: 24px; }
  .page-heading { min-height: 174px; padding: 28px 25px; }
  .page-layout { grid-template-columns: 1fr; gap: 18px; margin-top: 18px; }
  .sidebar { display: block; }
  .sidebar .side-card:first-child { padding: 14px; }
  .side-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side-note { display: none; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .video-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .brand-copy strong { font-size: 10px; }
  .brand-copy small { font-size: 10px; }
  .page-shell { width: 92vw; }
  .content-card { padding: 18px 14px; }
  .gallery-toolbar { align-items: flex-start; flex-direction: column; }
  .gallery-search { width: 100%; }
  .photo-grid { grid-template-columns: 1fr; }
  .side-nav { grid-template-columns: 1fr; }
}
