/* Clementino Photography — production stylesheet */

:root {
  --bg: #101114;
  --surface: #1b1d22;
  --border: #26282e;
  --border-soft: #1e2025;
  --hairline: #3a3c42;
  --text-primary: #eceded;
  --text-link: #d8d9dc;
  --text-body: #b9bbc0;
  --text-muted: #8a8c92;
  --text-faint: #5a5c62;
  --text-faint-2: #6a6c72;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  font-family: 'Montserrat', sans-serif;
  color: var(--text-body);
}

a {
  color: var(--text-link);
  transition: color .15s ease;
}
a:hover { color: var(--white); }

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

[hidden] { display: none !important; }

/* ---------- Placeholder image slots ---------- */
.ph {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ph .ph-icon {
  width: 26px;
  height: 26px;
  stroke: var(--hairline);
  opacity: .8;
}
.ph .ph-num {
  position: absolute;
  bottom: 6px;
  right: 8px;
  color: var(--text-faint);
  font-size: 10px;
  letter-spacing: .05em;
}
.gallery-cell { cursor: default; }
.gallery-cell:has(img) { cursor: zoom-in; }

/* ---------- Cover page ---------- */
.cover {
  position: relative;
  min-height: 100vh;
}
.cover .ph { position: absolute; inset: 0; border: none; border-radius: 0; }
.cover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 40px 32px 44px;
  background: linear-gradient(180deg, rgba(16,17,20,0.55) 0%, rgba(16,17,20,0) 35%, rgba(16,17,20,0) 55%, rgba(16,17,20,0.35) 88%, rgba(16,17,20,0) 100%);
  pointer-events: none;
}
.cover-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.cover-logo { width: min(280px, 60vw); height: auto; }
.cover-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 34px;
  pointer-events: auto;
}
.cover-nav a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}
.cover-tagline {
  margin: 0;
  color: var(--text-link);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

/* ---------- Inner-page chrome ---------- */
.site-main {
  min-height: 100vh;
  padding: 40px clamp(20px, 5vw, 64px) 72px;
}
.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 44px;
}
.site-header .logo-link { line-height: 0; }
.site-header .logo { width: 170px; height: auto; }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}
.site-nav a {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-decoration: none;
  white-space: nowrap;
  color: var(--text-muted);
}
.site-nav a.active { color: var(--white); }
.site-nav a .num {
  color: var(--text-faint);
  font-size: 9px;
  vertical-align: super;
}
.content { max-width: 1060px; margin: 0 auto; }

/* ---------- Section title row ---------- */
.section-title {
  display: flex;
  align-items: baseline;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 28px;
}
.section-title .idx { color: var(--text-faint); font-size: 13px; font-weight: 300; }
.section-title h1 {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 200;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.section-title .side {
  margin-left: auto;
  color: var(--text-faint);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}
.subnav { margin-left: auto; display: flex; gap: 22px; }
.subnav a {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  color: var(--text-faint);
}
.subnav a.active { color: var(--white); }

/* ---------- Masonry grids ---------- */
.masonry { columns: 3; column-gap: 16px; }
@media (max-width: 760px) { .masonry { columns: 1; } }
@media (min-width: 761px) and (max-width: 1000px) { .masonry { columns: 2; } }
.masonry figure { break-inside: avoid; margin: 0 0 16px; }
.masonry figcaption {
  margin-top: 8px;
  color: var(--text-faint-2);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.masonry figcaption.with-link {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.masonry figcaption.with-link a {
  margin-left: auto;
  color: var(--text-faint);
  font-size: 9px;
  white-space: nowrap;
  text-decoration: none;
}

/* ---------- Article (travel-post / blog post) ---------- */
.article { max-width: 680px; margin: 0 auto; }
.article .back {
  display: inline-block;
  margin-bottom: 26px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
}
.article .eyebrow {
  margin: 0 0 10px;
  color: var(--text-faint);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.article h1 {
  margin: 0 0 30px;
  color: var(--text-primary);
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 200;
  letter-spacing: 0.08em;
  line-height: 1.2;
}
.article p {
  margin: 0 0 24px;
  color: var(--text-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
}
.article p.shout {
  margin: 0 0 36px;
  color: var(--text-link);
  font-weight: 400;
  letter-spacing: 0.02em;
}
.article .caption {
  margin: 0 0 40px;
  color: var(--text-faint-2);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.article .hero { height: 400px; margin-bottom: 12px; }
.article .duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.article .duo .ph, .article .duo .cell { height: 260px; }
.article .closer { height: 420px; margin-bottom: 12px; }
.article .grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}
.article .grid-3 .cell { height: 150px; }
.article .grid-many {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 40px;
}
.article .grid-many .cell { height: 110px; }
@media (max-width: 640px) {
  .article .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .article .grid-many { grid-template-columns: repeat(3, 1fr); }
}
.article .foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--border);
  margin-top: 44px;
  padding-top: 18px;
}
.article .foot a {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
}

/* ---------- Blog list ---------- */
.blog-list { display: flex; flex-direction: column; }
.blog-list a {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border-soft);
  text-decoration: none;
}
.blog-list .date {
  color: var(--text-faint);
  font-size: 11px;
  letter-spacing: 0.1em;
  min-width: 86px;
  white-space: nowrap;
}
.blog-list .title { color: var(--text-link); font-size: 16px; font-weight: 300; }
.blog-list .read {
  margin-left: auto;
  color: var(--text-faint);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- Contact ---------- */
.contact-wrap { max-width: 720px; margin: 0 auto; }
.contact-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.contact-intro {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px;
  align-items: center;
}
.contact-portrait { flex: none; width: 150px; height: 190px; }
.contact-text {
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-text p {
  margin: 0;
  color: var(--text-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
}
.contact-rule { width: 44px; border-top: 1px solid var(--hairline); }
.contact-qr { width: 170px; height: 170px; border-radius: 6px; }
.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.contact-links a {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-decoration: none;
}
.contact-links .ig {
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 4px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(16,17,20,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
  overflow: auto;
}
.lightbox img {
  max-width: 1600px;
  max-height: 1600px;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  cursor: default;
}
.lightbox .lb-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: rgba(16,17,20,0.6);
  color: var(--text-primary);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.lightbox .lb-prev { left: 24px; }
.lightbox .lb-next { right: 24px; }
.lightbox .lb-pos {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.2em;
}
.lightbox .lb-close {
  position: absolute;
  top: 22px;
  right: 30px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}
