/* =====================================================================
   pages.css — Page-specific layouts
   ---------------------------------------------------------------------
   Styles unique to a single page or section:
     • Home: the split hero + numbered "Photos / Videos" rows
     • Detail: the big image + thumbnail strip + description panel
     • About: the two-column profile layout
   ===================================================================== */

/* =============================== HOME ============================== */

/* ---- Split hero: identity on the left, tall image on the right ---- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
  padding: 60px 0 72px;
}
.hero__title {
  font-size: clamp(40px, 11vw, 78px);
  line-height: 1.04;
  margin: 18px 0 0;
}
.hero__title em { font-style: italic; color: var(--clay-ink); }
.hero__lead { font-size: 18px; color: var(--ink-soft); margin: 26px 0 0; max-width: 480px; }

.hero__contact {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px 30px;
  align-items: center;
  font-size: 14px;
  color: var(--ink-soft);
}
.hero__contact b { color: var(--ink); font-weight: 700; }

.hero__media {
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

@media (max-width: 860px) {
  /* stack to one column and lead with the TEXT (headline first), then the
     image — so a phone visitor reads who you are before scrolling past art. */
  .hero { grid-template-columns: 1fr; gap: 30px; padding: 32px 0 48px; }
  .hero__media { aspect-ratio: 16 / 11; }
}

/* ---- Numbered section rows (Photos / Videos teasers) ---- */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: 96px 1fr 360px;
  align-items: center;
  gap: 36px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.row__num { font-family: var(--font-serif); font-size: 34px; color: var(--clay); }
.row__title { font-size: clamp(32px, 4vw, 46px); }
.row__desc { color: var(--ink-soft); margin: 10px 0 20px; max-width: 520px; }
.row__media {
  aspect-ratio: 16 / 10;
  border-radius: 5px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.row__media video { background: #000; }
/* The Videos row holds a PORTRAIT clip — give just that row a tall box and
   show the whole video (letterboxed) instead of cropping it landscape. */
.row__media:has(video) { aspect-ratio: 4 / 5; }
.row__media:has(video) > video { object-fit: contain; }

@media (max-width: 820px) {
  .row { grid-template-columns: 1fr; gap: 18px; }
  .row__num { font-size: 26px; }
  .row__media { aspect-ratio: 16 / 9; }
}

/* ====================== PHOTO DETAIL PAGE ========================= */
.detail { display: grid; grid-template-columns: 1.9fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 880px) { .detail { grid-template-columns: 1fr; } }

/* main (large) image */
.detail__main {
  aspect-ratio: 3 / 2;
  border-radius: 6px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  cursor: zoom-in;           /* hints that clicking opens the lightbox */
}
.detail__main > img { object-fit: contain; background: #11100e; }

/* thumbnail strip under the main image */
.thumbs {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.thumb {
  flex: 0 0 auto;
  width: 84px; height: 84px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.62;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.thumb:hover { opacity: 1; }
.thumb.is-active { opacity: 1; border-color: var(--clay); }

/* "About this location" description panel */
.detail__about {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px 26px;
  box-shadow: var(--shadow);
}
.detail__about h2 {
  font-size: 26px;
  text-align: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.detail__about p { color: var(--ink-soft); }
.detail__count { margin-top: 18px; font-size: 13px; color: var(--clay-ink); font-weight: 700; letter-spacing: 0.04em; }

/* back link above the title */
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
  margin-bottom: 18px;
  transition: gap 0.2s ease, color 0.2s ease;
}
.back-link:hover { gap: 14px; color: var(--clay-ink); }

/* =============================== ABOUT ============================= */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; padding-bottom: 30px; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; gap: 32px; } }
.about__media { aspect-ratio: 4 / 5; border-radius: 6px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.about__lead { font-size: 19px; }
.about__lead + .about__lead { margin-top: 18px; color: var(--ink-soft); font-size: 17px; }
.about__contact {
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line);
  display: grid; gap: 10px; font-size: 15px;
}
.about__contact b { font-weight: 700; }
