/* Beyond the Desk: page-only layout. Shared header, footer, type and colors come from /v2/v2.css. */
.life-page .page-hero { border-bottom: 0; }
.life-page .page-intro { max-width: 43rem; }

/* Sections alternate surfaces like Travel and Things I've Built. No divider lines. */
.life-page .life {
  background: var(--night);
  padding: clamp(3rem, 6vw, 5rem) 0;
  scroll-margin-top: 80px;
}
.life-page main > section:nth-child(even) { background: #1c1c1c; }

.life-page .life-inner {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.life-page .life-flip .life-photos { order: 2; }

.life-page .life-photos { display: grid; gap: clamp(.5rem, 1.2vw, 1rem); }
.life-page .life-photos-2 { grid-template-columns: 1fr 1fr; }
.life-page .life-photos-3 { grid-template-columns: 1fr 1fr; }
.life-page .life-photos-3 .life-photo:first-child { grid-column: 1 / -1; }

.life-page .life-photo { margin: 0; }
.life-page .life-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 0 12px 26px rgba(0,0,0,.45);
}
.life-page .life-photos-1 .life-photo img { aspect-ratio: 4 / 3; }
.life-page .life-photos-2 .life-photo img { aspect-ratio: 4 / 5; }
.life-page .life-photos-3 .life-photo:first-child img { aspect-ratio: 16 / 9; }
.life-page .life-photos-3 .life-photo img { aspect-ratio: 1 / 1; }

.life-page .life-kicker {
  margin: 0 0 .5rem;
  font-family: var(--f-label);
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.life-page .life-text h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  color: var(--text);
  text-wrap: balance;
  margin: 0 0 1.25rem;
}
.life-page .life-text p:not(.life-kicker):not(.life-link) {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--text-soft);
  margin: 0 0 1rem;
}
.life-page .life-text p a:not(.more) {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--silver);
  text-underline-offset: 3px;
}
.life-page .life-text p a:not(.more):hover { color: var(--silver); }
.life-page .life-link { margin: 1rem 0 0; }
.life-page .life-link + .life-link { margin-top: .5rem; }

@media (max-width: 900px) {
  .life-page .life-inner { grid-template-columns: minmax(0, 1fr); }
  .life-page .life-flip .life-photos { order: 0; }
}

/* Garden: full-width section with a 12-photo grid (same gallery tiles and lightbox as Travel) */
.life-page .life-wide .life-text { max-width: 46rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.life-page .life-gallery {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(.5rem, 1.2vw, 1rem);
}
@media (max-width: 900px) { .life-page .life-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .life-page .life-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Photo viewer: same treatment as Travel */
.life-page .lb {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 5rem 4.5rem;
  border: 0;
  color: var(--text);
}
.life-page .lb[open] {
  display: flex;
}
.life-page .lb::backdrop {
  background: rgba(8,8,8, .94);
}
.life-page .lb img {
  max-width: 100%;
  max-height: calc(100dvh - 10rem);
  object-fit: contain;
}
.life-page .lb .lb-count {
  width: calc(100% - 10rem);
  margin: 0;
  text-align: center;
  letter-spacing: .03em;
  color: var(--text-soft);
}
  .life-page .lb {
    padding: 5rem 1rem;
  }

  .life-page .lb .lb-count {
  .life-page .lb .lb-count {
    bottom: 20px;
    bottom: 20px;
    font-size: .75rem;
    font-size: .75rem;
    line-height: 1.4;
    line-height: 1.4;
  }
  }
}
}
@media (max-width: 560px) {
  .life-page .lb { padding: 5rem 1rem; }
  .life-page .lb .lb-count { bottom: 20px; font-size: .75rem; line-height: 1.4; }
}

/* Four photos: a 2 x 2 grid of squares */
.life-page .life-photos-4 { grid-template-columns: 1fr 1fr; }
.life-page .life-photos-4 .life-photo img { aspect-ratio: 1 / 1; }

/* Wide sections: optional photo beside the text, above the grid */
.life-page .life-top.has-feature {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.life-page .life-top.has-feature .life-text { margin-bottom: 0; }
@media (max-width: 900px) {
  .life-page .life-top.has-feature { grid-template-columns: minmax(0, 1fr); }
}

/* v3: each section opens with a paragraph that stands on its own */
.life-page .life-text h2 + p {
  font-size: 1.2rem !important;
  line-height: 1.6 !important;
  color: var(--text) !important;
}
/* v3: show a smaller selection; the rest opens in the photo viewer */
.life-page .life-gallery li.is-more { display: none; }
.life-page .life-all { margin: 1.25rem 0 0; }
.life-page .gallery-open {
  padding: .55rem 1rem;
  background: transparent;
  border: 1px solid rgba(238,238,238,.15);
  color: var(--text);
  font-family: var(--f-label);
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
.life-page .gallery-open:hover { border-color: var(--silver); }
.life-page .gallery-open:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
