/* Shared styles for the photography gallery pages (portraits, light, misc).
   Same palette and type as the homepage so the site reads as one piece. */
:root {
  --cream:       #faf7f1;
  --parchment:   #f2ebe0;
  --white:       #ffffff;
  --ink:         #1a1714;
  --warm-mid:    #7a6f64;
  --rule:        #e4ddd3;
  --amber:       #c49a4a;
  --amber-light: #dbb96a;
  --amber-deep:  #a07a30;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Jost', sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
}

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

/* ── TOP BAR ── */
.site-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 2rem;
  padding: 0.9rem 3rem;
  background: rgba(20,17,14,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-brand {
  font-family: 'Cormorant', serif;
  font-size: 1rem;
  font-style: italic;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.92);
  text-decoration: none;
}

.site-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-links a {
  font-size: 0.64rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  transition: color 0.25s;
}

.site-links a:hover,
.site-links a[aria-current="page"] { color: var(--amber-light); }

/* ── GALLERY HERO ── */
.gallery-hero {
  position: relative;
  height: min(62vh, 620px);
  min-height: 320px;
  overflow: hidden;
  background: var(--ink);
  display: flex;
  align-items: flex-end;
}

.gallery-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,17,14,0.05) 30%, rgba(20,17,14,0.55) 60%, rgba(20,17,14,0.9) 100%);
}

.gallery-hero-text {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0,0,0,0.6);
}

.section-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: 0.9rem;
}

.gallery-title {
  font-family: 'Cormorant', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 1;
  margin: 0;
  text-shadow: 0 2px 30px rgba(20,14,4,0.35);
}

/* ── INTRO ── */
.gallery-intro {
  max-width: 640px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3rem;
  text-align: center;
}

.gallery-intro p {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.95;
  color: var(--warm-mid);
  margin: 0;
}

.amber-rule { width: 36px; height: 2px; background: var(--amber); margin: 0 auto 2rem; }

/* ── GRID ──
   CSS columns give a simple masonry layout: photos keep their own
   aspect ratio (portrait or landscape) instead of being cropped. */
.gallery-grid {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem 6rem;
  columns: 3 300px;
  column-gap: 1.5rem;
}

.gallery-item {
  break-inside: avoid;
  margin: 0 0 1.5rem;
  background: var(--white);
  border-top: 2px solid var(--rule);
  transition: border-top-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.gallery-item:hover,
.gallery-item:focus-within {
  border-top-color: var(--amber);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(20,17,14,0.08);
}

.gallery-item a { display: block; cursor: zoom-in; }
.gallery-item a:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.gallery-item img { width: 100%; height: auto; }

.gallery-item figcaption {
  padding: 0.9rem 1.1rem 1rem;
  font-family: 'Cormorant', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--ink);
}

/* ── PREV / NEXT GALLERY ── */
.gallery-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--rule);
  background: var(--white);
}

.gallery-pager a {
  padding: 2.4rem 3rem;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.25s;
}

.gallery-pager a + a { border-left: 1px solid var(--rule); text-align: right; }
.gallery-pager a:hover { background: var(--parchment); }

.gallery-pager small {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 0.4rem;
}

.gallery-pager span {
  font-family: 'Cormorant', serif;
  font-size: 1.8rem;
  font-style: italic;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--ink);
  padding: 2.6rem 1.5rem 2.2rem;
  text-align: center;
}

.site-footer a {
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover { color: var(--amber-light); }

.site-footer p {
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.22);
  margin: 1.2rem 0 0;
}

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 4.5rem;
  background: rgba(20,17,14,0.96);
}

.lightbox.is-open { display: flex; }

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

.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 9rem);
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox figcaption {
  margin-top: 1rem;
  font-family: 'Cormorant', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: rgba(255,255,255,0.75);
}

.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: rgba(255,255,255,0.7);
  font-size: 2rem;
  line-height: 1;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  transition: color 0.2s;
}

.lightbox button:hover,
.lightbox button:focus-visible { color: var(--amber-light); outline: none; }

.lightbox .lb-close { top: 0.8rem; right: 1rem; }
.lightbox .lb-prev  { left: 0.8rem;  top: 50%; transform: translateY(-50%); }
.lightbox .lb-next  { right: 0.8rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 767.98px) {
  .site-bar { padding: 0.9rem 1.2rem; }
  .gallery-pager a { padding: 1.8rem 1.2rem; }
  .gallery-pager span { font-size: 1.4rem; }
  .lightbox { padding: 3.5rem 0.75rem; }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 0.6rem; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery-item, .gallery-pager a { transition: none; }
}
