/* Ketaki — iPhone Photography
   Minimal photographer-portfolio style. */

:root {
  --ink: #1a1a1a;
  --ink-soft: #555;
  --paper: #ffffff;
  --paper-dim: #f6f6f4;
  --line: #e3e3e0;
  --accent: #1a1a1a;
  --nav-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

/* ---------- Header / nav ---------- */
header.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

nav.main-nav { display: flex; gap: 34px; }

nav.main-nav a {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}

nav.main-nav a:hover { color: var(--ink); }
nav.main-nav a.active { color: var(--ink); border-color: var(--ink); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  background-size: cover;
  background-position: center 65%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(10, 14, 18, 0.34);
}

.hero-content {
  position: relative;
  color: #fff;
  padding: 0 24px;
}

.hero-content h1 {
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.15;
}

.hero-content .tagline {
  margin-top: 14px;
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.92;
}

.hero-cta {
  display: inline-block;
  margin-top: 40px;
  padding: 13px 42px;
  border: 1px solid rgba(255,255,255,0.85);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: background .25s, color .25s;
}

.hero-cta:hover { background: #fff; color: var(--ink); }

/* ---------- Shared page scaffolding ---------- */
main { min-height: calc(100vh - 220px); }

.page { padding: calc(var(--nav-h) + 56px) 24px 72px; }

.page-inner { max-width: 1200px; margin: 0 auto; }

.page-title {
  font-size: 30px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 8px;
}

.page-sub {
  text-align: center;
  color: var(--ink-soft);
  font-weight: 300;
  margin-bottom: 48px;
  font-size: 15px;
}

.album-note {
  max-width: 560px;
  margin: -28px auto 48px;
  text-align: center;
  color: var(--ink-soft);
  font-weight: 300;
  font-style: italic;
  font-size: 14px;
  line-height: 1.7;
}

.section-title {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  margin: 56px 0 24px;
}

/* ---------- Browse (album cards) ---------- */
.browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}

.album-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.album-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: opacity .25s ease;
}

.album-card:hover img { opacity: .85; }

.album-name {
  display: block;
  text-align: center;
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 300;
  margin-top: 12px;
}

/* ---------- Category hero rows ---------- */
.category-row { margin-bottom: 56px; }

.category-name {
  display: block;
  font-size: 17px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 300;
  color: inherit;
  text-decoration: none;
  margin-bottom: 14px;
}

.category-name:hover { opacity: .7; }

.hero-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hero-tile { display: block; }

.hero-tile img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: opacity .25s ease;
}

.hero-tile:hover img { opacity: .85; }

@media (max-width: 700px) {
  .hero-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hero-tile img { height: 110px; }
}

/* ---------- Portfolio grid ---------- */
.gallery {
  columns: 3;
  column-gap: 14px;
}

@media (max-width: 900px) { .gallery { columns: 2; } }
@media (max-width: 560px) { .gallery { columns: 1; } }

.gallery figure {
  break-inside: avoid;
  margin: 0 0 14px;
  position: relative;
  cursor: zoom-in;
  overflow: hidden;
}

.gallery img {
  width: 100%;
  height: auto;
  transition: transform .5s ease;
}

.gallery figure:hover img { transform: scale(1.03); }

.gallery figcaption { display: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  z-index: 100;
  background: rgba(8, 8, 8, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox { touch-action: none; overflow: hidden; }
.lightbox img { -webkit-user-select: none; user-select: none; will-change: transform; }

.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  box-shadow: 0 8px 60px rgba(0,0,0,0.5);
}

.lightbox button {
  position: absolute;
  background: none;
  border: none;
  color: #ddd;
  font-size: 30px;
  cursor: pointer;
  padding: 18px;
  line-height: 1;
  transition: color .2s;
}

.lightbox button:hover { color: #fff; }
.lightbox .close  { top: 10px; right: 14px; font-size: 36px; }
.lightbox .prev   { left: 8px;  top: 50%; transform: translateY(-50%); }
.lightbox .next   { right: 8px; top: 50%; transform: translateY(-50%); }

.lightbox .caption {
  position: absolute;
  bottom: 40px; left: 0; right: 0;
  text-align: center;
  color: #eee;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 300;
}

.lightbox .counter {
  position: absolute;
  bottom: 18px; left: 0; right: 0;
  text-align: center;
  color: #999;
  font-size: 12px;
  letter-spacing: 0.2em;
}

/* ---------- Home "latest" strip ---------- */
.latest { max-width: 1200px; margin: 0 auto; padding: 72px 24px; }
.latest h2 {
  font-size: 16px; font-weight: 400; letter-spacing: 0.24em;
  text-transform: uppercase; text-align: center; margin-bottom: 36px;
}
.latest-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.latest-row a { overflow: hidden; }
.latest-row img { width: 100%; height: auto; transition: transform .5s ease; }
.latest-row a:hover img { transform: scale(1.03); }
.latest-more { text-align: center; margin-top: 40px; }
.latest-more a {
  display: inline-block;
  padding: 12px 38px;
  border: 1px solid var(--ink);
  font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  transition: background .25s, color .25s;
}
.latest-more a:hover { background: var(--ink); color: #fff; }

/* ---------- About ---------- */
.about-wrap {
  max-width: 860px; margin: 0 auto;
  display: grid; gap: 44px;
  grid-template-columns: minmax(220px, 320px) 1fr;
  align-items: start;
}
@media (max-width: 700px) { .about-wrap { grid-template-columns: 1fr; } }

.about-wrap img { width: 100%; }
.about-text p { margin-bottom: 18px; color: #333; font-weight: 300; font-size: 16px; }
.about-text h3 {
  font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase;
  margin: 28px 0 10px; color: var(--ink);
}

/* ---------- Contact ---------- */
.contact-wrap { max-width: 620px; margin: 0 auto; text-align: center; }
.contact-wrap p { color: #333; font-weight: 300; margin-bottom: 22px; }
.contact-list {
  margin-top: 36px;
  display: flex; flex-direction: column; gap: 14px;
  font-size: 14px; letter-spacing: 0.12em;
}
.contact-list a { border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: border-color .2s; }
.contact-list a:hover { border-color: var(--ink); }

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 24px 36px;
  text-align: center;
}

footer .social {
  display: flex; justify-content: center; gap: 26px;
  margin-bottom: 16px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-soft);
}
footer .social a:hover { color: var(--ink); }

footer .copy {
  font-size: 11px; letter-spacing: 0.14em; color: #999;
  text-transform: uppercase;
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  :root { --nav-h: 48px; }
  body { padding-top: var(--nav-h); }
  .nav-inner { height: var(--nav-h); padding: 0 14px; gap: 12px; }
  .brand { font-size: 12px; letter-spacing: 0.16em; white-space: nowrap; }
  nav.main-nav { gap: 14px; }
  nav.main-nav a { font-size: 10px; letter-spacing: 0.12em; padding: 10px 0; }
  .hero {
    height: calc(100vh - var(--nav-h));
    height: calc(100dvh - var(--nav-h));
    min-height: 420px;
  }
  .page { padding-top: calc(var(--nav-h) + 24px); }
  .latest { padding: 48px 16px; }
}

/* Phone: two-column gallery, tap-friendly lightbox */
@media (max-width: 560px) {
  .gallery { columns: 2; column-gap: 10px; }
  .gallery figure { margin-bottom: 10px; }
  .latest-row { grid-template-columns: repeat(2, 1fr); }
  .lightbox img { max-width: 96vw; max-height: 78dvh; }
  .lightbox .close { font-size: 40px; padding: 20px; }
  .lightbox .prev, .lightbox .next { font-size: 40px; padding: 26px 18px; }
  .lightbox .caption { bottom: 64px; padding: 0 16px; }
  .lightbox .counter { bottom: 38px; }
}

/* Touch devices: captions only in the lightbox, not on the grid */
@media (hover: none) {
  .gallery figcaption { display: none; }
}