/* ARK Photography — gallery-wall theme: Cormorant Garamond + Figtree */
:root {
  --paper: #fbfaf8;
  --panel: #efede9;
  --ink: #23212b;
  --soft: #6d6a74;
  --hair: #e4e1dc;
  --deep: #141318;
  --bronze: #8c6d43;
  --serif: "Cormorant Garamond", Cormorant, Garamond, Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --head: 78px;
  --row: 320px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --head-bg: rgba(251, 250, 248, .92);
  --body2: #46434d;
  --field: #fff;
  color-scheme: light;
}
/* Dark mode: follows the device unless the visitor picks one with the toggle */
:root[data-theme="dark"] {
  --paper: #16151a;
  --panel: #23222a;
  --ink: #ece9e4;
  --soft: #9d99a5;
  --hair: #2e2c35;
  --bronze: #cfae7e;
  --head-bg: rgba(22, 21, 26, .9);
  --body2: #c9c5ce;
  --field: #1e1d24;
  color-scheme: dark;
}
.theme-toggle { width: 38px; height: 38px; border-radius: 50%; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center; opacity: .8; transition: opacity .25s, transform .5s var(--ease); flex: none; }
.theme-toggle:hover { opacity: 1; transform: rotate(20deg); }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
body, .masthead, .card-title, .feature-text, .foot { transition: background-color .4s var(--ease), color .4s var(--ease); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; padding-top: var(--head); }
.is-home main, .is-gallery main { padding-top: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--bronze); }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; }
.protect img { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
.meta { color: var(--soft); margin: .8rem 0 0; font-size: .95rem; }

/* ---------- Header ---------- */
.masthead {
  position: fixed; inset: 0 0 auto; z-index: 40; height: var(--head);
  display: flex; align-items: center; gap: 2.5rem; padding: 0 var(--pad);
  background: var(--head-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.is-home .masthead:not(.is-solid), .is-gallery .masthead:not(.is-solid) {
  background: linear-gradient(rgba(20, 19, 24, .45), transparent); border-color: transparent; color: #fff;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.wordmark { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; text-decoration: none; white-space: nowrap; letter-spacing: -.005em; }
.wordmark:hover { color: inherit; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2rem; font-size: .97rem; font-weight: 500; }
.nav a { text-decoration: none; padding: .3rem 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover { color: inherit; }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.nav-search input {
  width: 6.5rem; background: transparent; border: 0; border-bottom: 1px solid currentColor;
  color: inherit; font: inherit; font-weight: 400; padding: .25rem 0; opacity: .75; transition: width .3s var(--ease), opacity .3s;
}
.nav-search input:focus { width: 11rem; outline: none; opacity: 1; }
.nav-search input::placeholder { color: inherit; opacity: .8; }
.nav-toggle { display: none; }

@media (max-width: 880px) {
  :root { --head: 64px; }
  .theme-toggle { margin-left: auto; }
  .theme-toggle + .nav-toggle { margin-left: .4rem; }
  .wordmark { font-size: 1.45rem; }
  .nav-toggle {
    display: block; margin-left: auto; width: 44px; height: 44px; background: none; border: 0; color: inherit; cursor: pointer; position: relative;
  }
  .nav-toggle span:first-child, .nav-toggle span:first-child::before {
    position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; content: ""; transition: transform .25s;
  }
  .nav-toggle span:first-child { top: 18px; }
  .nav-toggle span:first-child::before { left: 0; right: 0; top: 7px; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:first-child::before { transform: translateY(-7px) rotate(-90deg); }
  .nav {
    position: fixed; inset: var(--head) 0 0 0; flex-direction: column; align-items: flex-start; gap: .2rem;
    padding: 1.5rem var(--pad); background: var(--paper); color: var(--ink);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s, transform .3s var(--ease), visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { font-family: var(--serif); font-size: 2.2rem; font-weight: 400; }
  .nav a::after { display: none; }
  .nav-search { width: 100%; margin-top: 1rem; }
  .nav-search input, .nav-search input:focus { width: 100%; font-size: 1.1rem; }
  .nav-open .masthead { background: var(--paper) !important; color: var(--ink) !important; }
}

/* ---------- Home: carousel ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; background: var(--deep); overflow: hidden; color: #fff; }
.slides, .slide { position: absolute; inset: 0; margin: 0; }
.slide { opacity: 0; transition: opacity 1.4s var(--ease); }
.slide.is-on { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.slide.is-on img { animation: drift 9s linear forwards; }
@keyframes drift { from { transform: scale(1.06) translate3d(0, 0, 0); } to { transform: scale(1.14) translate3d(-1.2%, -.8%, 0); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, transparent 45%, rgba(20, 19, 24, .62)); }
.slide figcaption {
  position: absolute; right: var(--pad); bottom: 6.2rem; z-index: 3; text-align: right;
  opacity: 0; transform: translateY(10px); transition: opacity .8s .5s, transform .8s .5s var(--ease);
}
.slide.is-on figcaption { opacity: 1; transform: none; }
.slide figcaption a { text-decoration: none; display: block; }
.slide-sec { display: block; font-size: .9rem; opacity: .85; }
.slide-title { display: block; font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 2rem); font-style: italic; }
.slide figcaption a:hover { color: #fff; }
.slide figcaption a:hover .slide-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.hero-intro { position: absolute; left: var(--pad); bottom: clamp(2.5rem, 9vh, 5.5rem); z-index: 3; max-width: 13ch; animation: rise 1.2s .2s var(--ease) both; }
.hero-intro h1 { font-size: clamp(3.4rem, 9vw, 8.5rem); line-height: .92; letter-spacing: -.02em; }
.hero-intro p { margin: 1.1rem 0 0; font-size: 1.1rem; opacity: .9; max-width: 30ch; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-ctrl { position: absolute; right: var(--pad); bottom: 2.6rem; z-index: 3; display: flex; align-items: center; gap: .9rem; }
.hc-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .3s, border-color .3s; }
.hc-btn:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.hc-btn svg, .lb-btn svg, .g-hero-down svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.bars { display: flex; gap: 6px; }
.bar { width: 34px; height: 20px; padding: 0; background: none; border: 0; cursor: pointer; display: flex; align-items: center; }
.bar span { display: block; width: 100%; height: 2px; background: rgba(255, 255, 255, .35); position: relative; overflow: hidden; }
.bar span::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.bar.is-done span::after { transform: scaleX(1); }
.bar.is-on span::after { animation: fill var(--dur, 7s) linear forwards; }
.hero.is-paused .bar.is-on span::after { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }
@media (max-width: 640px) {
  .slide figcaption { bottom: 5.4rem; }
  .hero-intro { bottom: 9rem; }
  .bars { display: none; }
}

/* ---------- Home: collections ---------- */
.features { padding: clamp(4rem, 10vw, 8rem) var(--pad) 2rem; display: grid; gap: clamp(4rem, 9vw, 8rem); }
.feature { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.feature:nth-child(even) { grid-template-columns: 1fr 1.55fr; }
.feature:nth-child(even) .feature-img { order: 2; }
.feature-img { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--panel); }
.feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.feature:hover .feature-img img { transform: scale(1.035); }
.feature-text h2 { font-size: clamp(2.8rem, 5.5vw, 4.8rem); }
.feature-text h2 a { text-decoration: none; }
.feature-desc { margin-top: 1.2rem; max-width: 34ch; }
.feature-list { list-style: none; padding: 0; margin: 1.6rem 0 0; border-top: 1px solid var(--hair); max-width: 22rem; }
.feature-list li { border-bottom: 1px solid var(--hair); }
.feature-list a { display: block; padding: .55rem 0; text-decoration: none; transition: padding .3s var(--ease); }
.feature-list a:hover { padding-left: .5rem; }
.more-n { padding: .55rem 0; color: var(--soft); font-size: .95rem; }
.link-line { display: inline-block; margin-top: 1.8rem; font-weight: 500; text-decoration: none; padding-bottom: .25rem; border-bottom: 1px solid currentColor; }
@media (max-width: 820px) {
  .feature, .feature:nth-child(even) { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-img { order: 0; }
}

/* ---------- Home: moving strip ---------- */
.strip-wrap { padding: clamp(4rem, 9vw, 7rem) 0 clamp(2rem, 5vw, 4rem); overflow: hidden; }
.strip-head { padding: 0 var(--pad); display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.strip-head h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.strip-head .meta { margin: 0; }
.strip { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.strip-track { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-start; gap: 1.2rem; width: max-content; }
.strip.is-moving .strip-track { animation: slide var(--strip-dur, 60s) linear infinite; }
.strip:hover .strip-track, .strip:focus-within .strip-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(calc(-50% - .6rem)); } }
.strip-track li { width: clamp(220px, 24vw, 340px); flex: none; }
.strip-track a { display: block; text-decoration: none; }
.strip-track img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--panel); transition: filter .5s; }
.strip-track a:hover img { filter: brightness(1.06) contrast(1.03); }
.strip-title { display: block; font-family: var(--serif); font-size: 1.45rem; margin-top: .7rem; line-height: 1.15; }
.strip-meta { display: block; color: var(--soft); font-size: .9rem; }
.strip:not(.is-moving) { overflow-x: auto; padding: 0 var(--pad); -webkit-mask-image: none; mask-image: none; }

/* ---------- Page heads ---------- */
.page-head { padding: clamp(3rem, 8vw, 6.5rem) var(--pad) clamp(2rem, 4vw, 3.5rem); max-width: 64rem; }
.page-head h1 { font-size: clamp(3rem, 7.5vw, 6.2rem); letter-spacing: -.02em; }
.lede { max-width: 40em; margin-top: 1.2rem; font-size: 1.15rem; color: var(--body2); }
.lede p { margin: 0 0 .8em; }
.crumb { display: inline-block; text-decoration: none; margin-bottom: .6rem; font-size: .95rem; opacity: .85; }
.crumb::before { content: "← "; }
.badge { display: inline-block; margin-left: .75rem; padding: .05rem .65rem; border: 1px solid currentColor; border-radius: 99px; font-size: .8rem; vertical-align: 1px; }

/* ---------- Section: gallery cards ---------- */
.cards { list-style: none; margin: 0; padding: 0 var(--pad) 5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.5rem 1.6rem; }
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; gap: 2.5rem; } }
.card { display: block; text-decoration: none; }
.card:hover { color: inherit; }
.card-img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--panel); margin-bottom: 1rem; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.card:hover .card-img img { transform: scale(1.045); }
.card-title { display: block; font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; }
.card-meta { color: var(--soft); font-size: .92rem; }

/* Optional: place-name index layout */
.atlas { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); padding: 0 var(--pad) 5rem; align-items: start; }
.atlas-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1em 1.1em; font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1.2; }
.atlas-list a { text-decoration: none; transition: color .25s; display: inline-flex; align-items: flex-start; }
.atlas-list:hover a, .atlas-list:focus-within a { color: #b9b5bd; }
.atlas-list a:hover, .atlas-list a:focus-visible, .atlas-list a.is-active { color: var(--ink); }
.atlas-list sup { font-family: var(--sans); font-size: .75rem; color: var(--soft); margin: .5em 0 0 .3em; line-height: 1; }
.atlas-thumb { display: none; }
.atlas-preview { position: sticky; top: calc(var(--head) + 1.5rem); aspect-ratio: 4 / 5; background: var(--panel); overflow: hidden; }
.atlas-preview figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .5s ease; }
.atlas-preview figure.is-on { opacity: 1; }
.atlas-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) {
  .atlas { grid-template-columns: 1fr; }
  .atlas-preview { display: none; }
  .atlas-list { flex-direction: column; gap: 0; font-size: 1.8rem; }
  .atlas-list li { border-top: 1px solid var(--hair); }
  .atlas-list a { padding: .7rem 0; align-items: center; width: 100%; color: inherit !important; }
  .atlas-thumb { display: block; width: 64px; height: 48px; object-fit: cover; margin-right: 1rem; flex: none; }
  .atlas-list sup { margin: 0 0 0 auto; }
}

/* ---------- Gallery: lead photo hero ---------- */
.g-hero { position: relative; height: 88vh; height: 88svh; min-height: 480px; background: var(--deep); color: #fff; overflow: hidden; display: flex; align-items: flex-end; }
.g-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: settle 2.4s var(--ease) both; }
@keyframes settle { from { transform: scale(1.08); opacity: .4; } to { transform: scale(1); opacity: 1; } }
.g-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 19, 24, .3) 0, transparent 22%, transparent 50%, rgba(20, 19, 24, .65)); }
.g-hero-text { position: relative; z-index: 2; padding: 0 var(--pad) clamp(2.5rem, 7vh, 4.5rem); max-width: 60rem; animation: rise 1.1s .3s var(--ease) both; }
.g-hero-text h1 { font-size: clamp(3.2rem, 8.5vw, 7.5rem); line-height: .95; letter-spacing: -.02em; }
.g-hero-text .meta { color: rgba(255, 255, 255, .88); }
.g-hero .crumb:hover { color: #fff; text-decoration: underline; }
.g-hero.no-img { height: auto; min-height: 0; background: var(--paper); color: var(--ink); padding-top: var(--head); }
.g-hero.no-img::after { display: none; }
.g-hero.no-img .meta { color: var(--soft); }
.g-hero-down { position: absolute; right: var(--pad); bottom: clamp(2.5rem, 7vh, 4.5rem); z-index: 2; width: 46px; height: 46px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; display: grid; place-items: center; color: #fff; animation: nudge 2.4s 2s ease-in-out infinite; }
.g-hero-down:hover { color: #fff; background: rgba(255, 255, 255, .14); }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateY(5px); } }
.g-desc { padding: clamp(2.5rem, 6vw, 4.5rem) var(--pad) 0; margin: 0; }
.is-gallery .masthead:not(.is-solid) { color: #fff; }
.is-gallery:has(.g-hero.no-img) .masthead { background: var(--head-bg) !important; color: var(--ink) !important; }

/* Scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease) var(--d, 0ms), transform 1s var(--ease) var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: var(--deep); color: #f3f1ee; display: grid; grid-template-rows: 1fr auto; animation: fadein .35s ease; }
.lightbox[hidden] { display: none; }
@keyframes fadein { from { opacity: 0; } }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 4rem 5rem .5rem; min-height: 0; touch-action: pan-y; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; transition: opacity .3s; }
.lb-img.is-loading { opacity: .2; }
.lb-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; padding: .8rem 1.6rem 1.3rem; min-height: 4.8rem; }
.lb-info p { margin: 0; }
.lb-title { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; }
.lb-caption { opacity: .85; max-width: 62ch; }
.lb-exif { color: #a9a6ae; font-size: .85rem; margin-top: .3rem !important; display: flex; flex-wrap: wrap; gap: .2rem 1.4rem; }
.lb-count { color: #a9a6ae; font-size: .9rem; margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lb-btn { position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(20, 19, 24, .4); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .25s, border-color .25s; }
.lb-btn:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.lb-btn svg { width: 20px; height: 20px; }
.lb-prev { left: 1.2rem; top: 45%; }
.lb-next { right: 1.2rem; top: 45%; }
.lb-close { right: 1.2rem; top: 1.2rem; }
.lb-full { right: 4.6rem; top: 1.2rem; }
@media (max-width: 640px) {
  .lb-stage { padding: 4rem 0 .5rem; }
  .lb-prev, .lb-next { display: none; }
  .lb-bar { padding: .6rem 1rem 1rem; }
}

/* ---------- About, search, locked, empty ---------- */
.prose { padding: 0 var(--pad) 5rem; max-width: 44rem; font-size: 1.15rem; }
.prose h2 { font-size: 2.2rem; margin: 3rem 0 1rem; }
.contact { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--hair); }
.contact li { padding: .7rem 0; border-bottom: 1px solid var(--hair); }
.search-big { display: flex; gap: .6rem; margin-top: 1.8rem; max-width: 38rem; }
.search-big input, .locked input {
  flex: 1; background: var(--field); border: 1px solid var(--hair); color: var(--ink);
  padding: .85rem 1rem; font: inherit; border-radius: 2px; width: 100%;
}
.search-big input:focus, .locked input:focus { outline: none; border-color: var(--ink); }
.search-big button, .locked button, .btn {
  background: var(--ink); color: var(--paper); border: 0; border-radius: 2px; padding: .85rem 1.5rem;
  font: 500 1rem var(--sans); cursor: pointer; text-decoration: none; display: inline-block; transition: background .25s;
}
.search-big button:hover, .locked button:hover, .btn:hover { opacity: .85; color: var(--paper); }
.search-grid { list-style: none; margin: 0; padding: 0 var(--pad) 5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 2rem 1.2rem; }
.search-grid a { text-decoration: none; }
.search-grid img { height: auto; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; margin-bottom: .6rem; background: var(--panel); }
.search-grid span { font-family: var(--serif); font-size: 1.3rem; }
.locked { max-width: 30rem; padding: clamp(3rem, 10vw, 7rem) var(--pad); }
.locked h1 { font-size: clamp(2.6rem, 6vw, 4rem); margin-bottom: 1rem; }
.locked p { color: var(--body2); }
.locked label { display: block; margin: 1.6rem 0 .4rem; color: var(--soft); font-size: .95rem; }
.locked button { margin-top: 1rem; }
.error { color: #a4372b !important; margin: .6rem 0 0; }
.empty-state { padding: 3rem var(--pad) 5rem; color: var(--soft); }
.empty-state h2 { color: var(--ink); font-size: 2.4rem; margin-bottom: .6rem; }

/* ---------- Footer ---------- */
.foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; padding: 3.5rem var(--pad) 3rem; border-top: 1px solid var(--hair); margin-top: 3rem; color: var(--soft); font-size: .9rem; }
.foot-name span { display: block; }
.foot-title { font-family: var(--serif); font-size: 1.9rem; color: var(--ink); margin-bottom: .2rem; line-height: 1.1; }
.foot-links { display: flex; gap: 1.8rem; font-weight: 500; }
.foot-links a { text-decoration: none; color: var(--ink); }
.foot-links a:hover { color: var(--bronze); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js .reveal { opacity: 1; transform: none; }
  .slide img { transform: none !important; }
}

/* Header order: name, menu, theme toggle (mobile: name, toggle, menu button) */
.nav { order: 2; }
.theme-toggle { order: 3; margin-left: -1rem; }
.nav-toggle { order: 4; }
@media (max-width: 880px) { .theme-toggle { margin-left: auto; } }
@media (max-width: 880px) { .masthead .nav-toggle { margin-left: .4rem; } }
@media (max-width: 880px) { .masthead { gap: .25rem; } }

/* ---------- Zoom levels (1 smallest – 4 largest) ---------- */
@media (max-width: 1200px) {
    }
@media (max-width: 640px) {
        /* largest on a phone: one photo per row, full width */
  }
.cards[data-zoom="1"] { grid-template-columns: repeat(6, 1fr); gap: 1.6rem .8rem; }
.cards[data-zoom="1"] .card-title { font-size: 1.15rem; }
.cards[data-zoom="1"] .card-meta { font-size: .78rem; }
.cards[data-zoom="2"] { grid-template-columns: repeat(4, 1fr); gap: 2.4rem 1.1rem; }
.cards[data-zoom="2"] .card-title { font-size: 1.5rem; }
.cards[data-zoom="4"] { grid-template-columns: repeat(2, 1fr); gap: 4rem 2rem; }
.cards[data-zoom="4"] .card-img { aspect-ratio: 3 / 2; }
.cards[data-zoom="4"] .card-title { font-size: 2.4rem; }
@media (max-width: 1100px) {
  .cards[data-zoom="1"] { grid-template-columns: repeat(4, 1fr); }
  .cards[data-zoom="2"] { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .cards[data-zoom="1"] { grid-template-columns: repeat(3, 1fr); gap: 1rem .5rem; }
  .cards[data-zoom="1"] .card-title { font-size: .95rem; }
  .cards[data-zoom="1"] .card-meta { display: none; }
  .cards[data-zoom="2"] { grid-template-columns: repeat(2, 1fr); gap: 1.6rem .8rem; }
  .cards[data-zoom="2"] .card-title { font-size: 1.2rem; }
  .cards[data-zoom="3"] { grid-template-columns: 1fr; }
  .cards[data-zoom="4"] { grid-template-columns: 1fr; }
  .cards[data-zoom="4"] .card-img { aspect-ratio: 4 / 5; }
}
.js .cards[data-zoom] .reveal, .cards[data-zoom] li { transition-delay: 0ms; }

/* Floating control */
.zoom {
  position: fixed; right: var(--pad); bottom: 1.4rem; z-index: 50;
  display: flex; align-items: center; gap: 2px; padding: 4px;
  background: var(--head-bg); color: var(--ink); border: 1px solid var(--hair); border-radius: 99px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px rgba(20, 19, 24, .12);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.zoom.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.zoom button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center; opacity: .55; transition: opacity .2s, background .2s; }
.zoom button:hover { opacity: 1; }
.zoom button[aria-pressed="true"] { opacity: 1; background: var(--ink); color: var(--paper); }
.zoom button:disabled { opacity: .2; cursor: default; }
.zoom svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.zoom .z-level svg { stroke-width: 1.2; }
@media (max-width: 640px) {
  .zoom { left: 50%; right: auto; transform: translate(-50%, 12px); bottom: 1rem; }
  .zoom.is-shown { transform: translate(-50%, 0); }
  .zoom button { width: 40px; height: 40px; }
  .zoom .z-step { display: none; }
}
::view-transition-group(*) { animation-duration: .45s; animation-timing-function: cubic-bezier(.22, .61, .36, 1); }
body:has(.zoom) .foot { padding-bottom: 6.5rem; }


/* ---------- Gallery: masonry wall (natural shapes, nothing cropped) ---------- */
.justified { --cols: 3; --gap: 28px; position: relative; margin: clamp(2.5rem, 6vw, 4.5rem) var(--pad) 5rem; scroll-margin-top: calc(var(--head) + 1rem); }
.justified[data-zoom="1"] { --cols: 6; --gap: 10px; }
.justified[data-zoom="2"] { --cols: 4; --gap: 18px; }
.justified[data-zoom="3"] { --cols: 3; --gap: 28px; }
.justified[data-zoom="4"] { --cols: 2; --gap: 36px; }
@media (max-width: 1100px) {
  .justified[data-zoom="1"] { --cols: 5; } .justified[data-zoom="2"] { --cols: 3; } .justified[data-zoom="3"] { --cols: 2; --gap: 22px; } .justified[data-zoom="4"] { --cols: 1; }
}
@media (max-width: 640px) {
  .justified { margin: 1.5rem 12px 4rem; }
  .justified[data-zoom="1"] { --cols: 3; --gap: 4px; } .justified[data-zoom="2"] { --cols: 2; --gap: 8px; }
  .justified[data-zoom="3"], .justified[data-zoom="4"] { --cols: 1; --gap: 14px; }
}
/* Without JavaScript: simple CSS columns */
.justified { column-count: var(--cols); column-gap: var(--gap); }
.j-item { display: block; margin: 0 0 var(--gap); break-inside: avoid; background: var(--panel); overflow: hidden; cursor: zoom-in; }
.j-item img { width: 100%; height: auto; transition: transform 1.2s var(--ease), opacity .8s var(--ease); }
.j-item:hover img { transform: scale(1.025); }
.js .j-item img { opacity: 0; }
.js .j-item img.is-loaded { opacity: 1; }
.j-fill { display: none; }
/* With JavaScript: true masonry, items keep their order left to right */
.justified.is-laid { column-count: auto; }
.justified.is-laid .j-item { position: absolute; top: 0; left: 0; margin: 0; will-change: transform; }
.justified.is-animating .j-item { transition: transform .55s var(--ease), width .55s var(--ease), height .55s var(--ease); }
.g-desc + .justified { margin-top: clamp(2rem, 5vw, 3.5rem); }

/* Rows layout: target row height per zoom level (gap like SmugMug's) */
.justified[data-wall="rows"] { --gap: 12px; --rowh: 300px; }
.justified[data-wall="rows"][data-zoom="1"] { --gap: 4px; --rowh: 130px; }
.justified[data-wall="rows"][data-zoom="2"] { --gap: 8px; --rowh: 210px; }
.justified[data-wall="rows"][data-zoom="4"] { --gap: 16px; --rowh: 480px; }
@media (max-width: 640px) {
  .justified[data-wall="rows"] { --gap: 4px; --rowh: 170px; }
  .justified[data-wall="rows"][data-zoom="1"] { --gap: 2px; --rowh: 70px; }
  .justified[data-wall="rows"][data-zoom="2"] { --gap: 3px; --rowh: 110px; }
  .justified[data-wall="rows"][data-zoom="4"] { --gap: 8px; --rowh: 900px; }
}
