/*
Theme Name: Ole Martin Gallery V4
Theme URI: https://olemartin.dk/
Author: Ole Martin
Description: Selvstændigt fotografisk portfoliotema med fem serier, 71 værker og indbygget billedviser.
Version: 4.1.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: ole-martin-gallery
*/

:root {
  --ink: #1e201e;
  --muted: #65665f;
  --paper: #f4f1ea;
  --paper-deep: #e8e2d7;
  --white: #fbfaf6;
  --teal: #204448;
  --line: rgba(30, 32, 30, 0.17);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Baskerville, Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
::selection { background: #afc4c1; color: #142c2f; }
.skip-link { position: fixed; z-index: 1000; top: .75rem; left: .75rem; padding: .75rem 1rem; background: var(--ink); color: white; transform: translateY(-180%); transition: transform .2s; }
.skip-link:focus { transform: translateY(0); }

.site-header { min-height: 118px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 20px clamp(24px, 5vw, 80px); background: rgba(248, 246, 240, .93); border-bottom: 1px solid rgba(0,0,0,.04); position: relative; z-index: 50; }
.site-logo { width: clamp(190px, 21vw, 320px); flex: 0 0 auto; }
.site-logo img { width: 100%; height: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(19px, 2.25vw, 40px); }
.site-nav ul { display: flex; align-items: center; gap: inherit; margin: 0; padding: 0; list-style: none; }
.site-nav li { margin: 0; }
.site-nav a { position: relative; padding: 12px 0 10px; font-size: 11px; line-height: 1.2; text-transform: uppercase; letter-spacing: .17em; white-space: nowrap; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 4px; height: 1px; background: var(--ink); transition: right .25s ease; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { right: 0; }
.menu-toggle { display: none; background: transparent; border: 0; color: var(--ink); padding: 8px 0; text-transform: uppercase; letter-spacing: .14em; font-size: 11px; }

.hero-carousel { position: relative; min-height: min(760px, calc(100vh - 118px)); overflow: hidden; outline: none; background: #d9cab9; }
.hero-slide { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(350px, 40%) 1fr; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .75s ease, visibility .75s; background: var(--slide-tone); }
.hero-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; z-index: 1; }
.hero-copy { padding: clamp(55px, 8vw, 125px) clamp(30px, 5vw, 80px) 110px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.eyebrow { margin: 0 0 24px; font-size: 11px; font-weight: 600; line-height: 1.3; text-transform: uppercase; letter-spacing: .22em; }
.hero-copy h1, .hero-copy h2 { max-width: 570px; margin: 0; font-family: var(--serif); font-size: clamp(48px, 5vw, 82px); font-weight: 400; line-height: .98; letter-spacing: -.042em; }
.hero-text { max-width: 470px; margin: 30px 0 28px; font-size: clamp(16px, 1.25vw, 20px); line-height: 1.65; }
.hero-slide.is-dark { color: #f4f1ea; }
.hero-slide.is-dark .arrow-link::after { background: #f4f1ea; }
.hero-media { position: relative; margin: 0; min-height: min(760px, calc(100vh - 118px)); overflow: hidden; background: #b9aa99; }
.hero-art { width: 100%; height: 100%; object-fit: cover; }
.hero-media figcaption { position: absolute; z-index: 2; right: 30px; bottom: 24px; padding: 8px 10px; background: rgba(15,15,15,.62); color: #fff; font-family: var(--serif); font-size: 15px; letter-spacing: .04em; }
.image-mark { position: absolute; z-index: 2; right: 22px; top: 22px; width: 106px; opacity: .55; pointer-events: none; }
.arrow-link { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 5px 0 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .15em; }
.arrow-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform-origin: left; transition: transform .25s ease; }
.arrow-link:hover::after { transform: scaleX(.35); }
.arrow-link span { font-size: 16px; transition: transform .25s ease; }
.arrow-link:hover span { transform: translate(2px, -2px); }
.hero-controls { position: absolute; z-index: 5; left: clamp(30px, 5vw, 80px); bottom: 34px; display: flex; align-items: center; gap: 26px; }
.hero-dots { display: flex; gap: 10px; }
.hero-dots button { width: 24px; height: 13px; padding: 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; opacity: .35; cursor: pointer; }
.hero-dots button.is-active { opacity: 1; border-bottom-width: 2px; }
.pause-button { border: 0; border-bottom: 1px solid currentColor; padding: 0 0 3px; background: transparent; color: inherit; text-transform: uppercase; font-size: 10px; letter-spacing: .14em; cursor: pointer; }

.content-section { width: min(1400px, calc(100% - 80px)); margin: 0 auto; padding: clamp(90px, 10vw, 160px) 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 62px; }
.section-heading .eyebrow { margin-bottom: 16px; color: var(--teal); }
.section-heading h2, .focus-inner h2, .home-about h2 { margin: 0; font-family: var(--serif); font-size: clamp(44px, 5.2vw, 76px); line-height: 1.03; font-weight: 400; letter-spacing: -.035em; }
.section-intro { max-width: 480px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.series-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 34px 22px; }
.series-card { grid-column: span 4; }
.series-card:nth-child(1), .series-card:nth-child(2) { grid-column: span 6; }
.series-card figure { margin: 0 0 23px; overflow: hidden; aspect-ratio: 4 / 3; background: #ddd6ca; }
.series-card:nth-child(4) figure, .series-card:nth-child(5) figure { aspect-ratio: 4 / 4.65; }
.series-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.65,.35,1); }
.series-card:hover img { transform: scale(1.025); }
.series-card > div { position: relative; padding-right: 34px; }
.series-card h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 29px; font-weight: 400; }
.series-card p { margin: 0; color: var(--muted); font-size: 14px; }
.series-card > div > span { position: absolute; top: 4px; right: 2px; font-size: 18px; transition: transform .2s; }
.series-card:hover > div > span { transform: translate(3px, -3px); }

.manifesto { padding: clamp(100px, 12vw, 180px) 30px; background: var(--teal); color: #eff1eb; text-align: center; }
.manifesto blockquote { max-width: 1000px; margin: 0 auto; }
.manifesto p { margin: 0; font-family: var(--serif); font-size: clamp(42px, 5vw, 76px); line-height: 1.11; letter-spacing: -.03em; }
.manifesto span { display: block; max-width: 720px; margin: 38px auto 0; font-family: var(--serif); font-size: clamp(20px, 2vw, 29px); line-height: 1.5; font-style: italic; opacity: .84; }
.manifesto cite { display: block; margin-top: 30px; font-size: 11px; font-style: normal; text-transform: uppercase; letter-spacing: .22em; }

.align-end { align-items: flex-end; }
.curated-grid { display: grid; grid-template-columns: repeat(12, 1fr); align-items: start; gap: 70px 26px; }
.curated-work figure { margin: 0 0 20px; overflow: hidden; background: #ddd7ce; }
.curated-work img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.curated-work:hover img { transform: scale(1.018); }
.curated-work h3 { margin: 0 0 5px; font-family: var(--serif); font-size: 27px; font-weight: 400; }
.curated-work p { margin: 0; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .13em; }
.work-tide { grid-column: 1 / span 7; }
.work-tide figure { aspect-ratio: 3 / 1.65; }
.work-marsh { grid-column: 9 / span 4; margin-top: 110px; }
.work-marsh figure { aspect-ratio: 4 / 5; }
.work-diagonal { grid-column: 2 / span 4; }
.work-diagonal figure { aspect-ratio: 1 / 1; }
.work-giants { grid-column: 7 / span 6; margin-top: -20px; }
.work-giants figure { aspect-ratio: 3 / 2; }

.focus-band { background: #dbe4e1; padding: clamp(80px, 9vw, 145px) 0; }
.focus-inner { width: min(1260px, calc(100% - 80px)); margin: 0 auto; display: grid; grid-template-columns: 1.22fr .78fr; align-items: center; gap: clamp(50px, 8vw, 130px); }
.focus-inner figure { margin: 0; aspect-ratio: 4 / 4.6; overflow: hidden; }
.focus-inner figure img { width: 100%; height: 100%; object-fit: cover; }
.focus-inner .eyebrow { color: var(--teal); }
.focus-inner > div > p:not(.eyebrow) { max-width: 480px; margin: 28px 0 30px; color: #465652; font-size: 17px; line-height: 1.8; }

.home-about { display: grid; grid-template-columns: minmax(280px, .76fr) 1.24fr; align-items: center; gap: clamp(50px, 10vw, 155px); }
.home-about figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.home-about figure img { width: 100%; height: 100%; object-fit: cover; }
.home-about .eyebrow { color: var(--teal); }
.home-about > div > p:not(.eyebrow) { max-width: 650px; margin: 30px 0 16px; color: var(--muted); font-size: 17px; line-height: 1.85; }
.signature { display: block; margin: 0 0 34px; font-family: var(--serif); font-size: 19px; font-style: italic; }
.closing-note { padding: 85px 30px; background: #252725; color: #eeeae2; text-align: center; }
.closing-note p { margin: 0; font-family: var(--serif); font-size: clamp(34px, 4vw, 56px); }
.closing-note span { display: block; margin-top: 18px; font-size: 11px; text-transform: uppercase; letter-spacing: .2em; }

.site-footer { min-height: 150px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; padding: 32px clamp(24px, 5vw, 80px); background: #f6f3ed; border-top: 1px solid var(--line); }
.footer-copy { font-size: 11px; color: var(--muted); }
.footer-mark { width: 112px; filter: invert(1); opacity: .72; }
.footer-links { display: flex; justify-content: flex-end; gap: 28px; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; }
.footer-links a { border-bottom: 1px solid transparent; }
.footer-links a:hover { border-bottom-color: currentColor; }
.protected-media, .protected-media img { user-select: none; -webkit-user-drag: none; }

@media (max-width: 1080px) {
  .site-header { min-height: 98px; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 9.5px; }
  .hero-carousel, .hero-media { min-height: 690px; }
  .hero-slide { grid-template-columns: 43% 57%; }
  .series-card { grid-column: span 6; }
  .series-card:nth-child(5) { grid-column: 4 / span 6; }
}

@media (max-width: 820px) {
  .site-header { min-height: 84px; padding-top: 12px; padding-bottom: 12px; }
  .site-logo { width: 190px; }
  .menu-toggle { display: block; }
  .menu-toggle i, .menu-toggle i::before { content: ""; display: inline-block; width: 18px; height: 1px; margin-left: 10px; vertical-align: middle; background: currentColor; transition: transform .2s; }
  .menu-toggle i::before { transform: translate(-10px, -5px); }
  .menu-toggle[aria-expanded="true"] i { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] i::before { transform: translate(-10px, 0) rotate(90deg); }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 18px 26px 28px; background: #f8f6f0; border-top: 1px solid var(--line); box-shadow: 0 18px 32px rgba(0,0,0,.1); }
  .site-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; font-size: 11px; border-bottom: none; }
  .site-nav a::after { display: none; }
  .hero-carousel { min-height: 790px; }
  .hero-slide { grid-template-columns: 1fr; grid-template-rows: 340px 450px; }
  .hero-copy { grid-row: 2; padding: 42px 28px 88px; justify-content: flex-start; }
  .hero-copy h1, .hero-copy h2 { font-size: clamp(43px, 10vw, 65px); }
  .hero-text { margin: 22px 0 20px; }
  .hero-media { grid-row: 1; min-height: 340px; }
  .hero-controls { left: 28px; bottom: 24px; }
  .image-mark { width: 82px; }
  .content-section, .focus-inner { width: min(100% - 44px, 680px); }
  .section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 42px; }
  .series-grid { grid-template-columns: 1fr 1fr; }
  .series-card, .series-card:nth-child(1), .series-card:nth-child(2), .series-card:nth-child(5) { grid-column: auto; }
  .series-card:nth-child(5) { grid-column: 1 / -1; width: calc(50% - 11px); justify-self: center; }
  .manifesto br { display: none; }
  .curated-grid { gap: 48px 18px; }
  .work-tide { grid-column: 1 / span 8; }
  .work-marsh { grid-column: 9 / span 4; margin-top: 80px; }
  .work-diagonal { grid-column: 1 / span 5; }
  .work-giants { grid-column: 6 / span 7; margin-top: 0; }
  .focus-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .home-about { grid-template-columns: .8fr 1.2fr; gap: 45px; }
  .site-footer { grid-template-columns: 1fr auto; }
  .footer-mark { display: none; }
}

@media (max-width: 580px) {
  .site-logo { width: 162px; }
  .hero-carousel { min-height: 760px; }
  .hero-slide { grid-template-rows: 300px 460px; }
  .hero-media { min-height: 300px; }
  .hero-copy { padding-top: 35px; }
  .eyebrow { margin-bottom: 16px; }
  .series-grid { grid-template-columns: 1fr; gap: 42px; }
  .series-card:nth-child(5) { grid-column: auto; width: 100%; }
  .series-card:nth-child(4) figure, .series-card:nth-child(5) figure { aspect-ratio: 4 / 3; }
  .curated-grid { display: block; }
  .curated-work { display: block; margin: 0 0 48px; }
  .curated-work figure { aspect-ratio: auto; }
  .curated-work img { height: auto; }
  .focus-inner, .home-about { grid-template-columns: 1fr; }
  .focus-inner figure { aspect-ratio: 4 / 3.7; }
  .home-about figure { max-height: 570px; }
  .site-footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Shared editorial pages */
.page-intro { width: min(1120px, calc(100% - 80px)); margin: 0 auto; padding: clamp(100px, 11vw, 170px) 0 clamp(75px, 8vw, 120px); text-align: center; }
.page-intro .eyebrow, .story-hero .eyebrow, .about-hero .eyebrow, .words-hero .eyebrow, .focus-hero .eyebrow, .contact-copy .eyebrow { color: var(--teal); }
.page-intro h1, .story-hero h1, .about-hero h1, .words-hero h1, .focus-hero h1, .contact-copy h1 { margin: 0; font-family: var(--serif); font-size: clamp(66px, 10vw, 142px); font-weight: 400; line-height: .9; letter-spacing: -.055em; }
.page-intro > p:last-child { max-width: 700px; margin: 38px auto 0; color: var(--muted); font-family: var(--serif); font-size: clamp(20px, 2vw, 28px); line-height: 1.6; }

/* Series overview */
.series-page { background: #f4f1ea; }
.series-index { width: min(1400px, calc(100% - 80px)); margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.series-index a { display: flex; gap: 12px; padding: 20px 15px; border-right: 1px solid var(--line); font-family: var(--serif); font-size: 17px; }
.series-index a:last-child { border-right: 0; }
.series-index span { color: var(--teal); font-family: var(--font-geist); font-size: 9px; letter-spacing: .12em; }
.series-list { padding: 70px 0 140px; }
.series-entry { width: min(1400px, calc(100% - 80px)); margin: 0 auto; padding: clamp(70px, 8vw, 125px) 0; display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(60px, 9vw, 140px); align-items: center; border-bottom: 1px solid var(--line); scroll-margin-top: 30px; }
.series-entry.reverse { grid-template-columns: .75fr 1.25fr; }
.series-entry.reverse figure { order: 2; }
.series-entry figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.series-entry:nth-child(3) figure, .series-entry:nth-child(4) figure { aspect-ratio: 4 / 4.6; max-width: 700px; }
.series-entry figure img { width: 100%; height: 100%; object-fit: cover; }
.series-entry-copy .eyebrow { color: var(--teal); }
.series-entry-copy h2 { margin: 0; font-family: var(--serif); font-size: clamp(48px, 5vw, 76px); font-weight: 400; line-height: 1; letter-spacing: -.04em; }
.series-entry-copy .series-line { margin: 20px 0 25px; font-family: var(--serif); font-size: 23px; font-style: italic; line-height: 1.45; }
.series-entry-copy > p:not(.eyebrow):not(.series-line) { color: var(--muted); font-size: 16px; line-height: 1.8; }
.series-entry-copy .arrow-link { margin-top: 20px; }

/* Long-form series pages */
.story-hero { min-height: calc(100vh - 118px); display: grid; grid-template-columns: 42% 58%; background: #d9d2c6; }
.story-hero-copy { padding: clamp(70px, 8vw, 125px) clamp(34px, 6vw, 95px); align-self: center; }
.story-hero h1 { font-size: clamp(68px, 8.5vw, 128px); }
.story-line { margin: 25px 0; font-family: var(--serif); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.35; font-style: italic; }
.story-hero-copy > p:not(.eyebrow):not(.story-line) { max-width: 600px; color: #53534e; font-size: 16px; line-height: 1.8; }
.story-hero-copy .arrow-link { margin-top: 22px; }
.story-hero-media { position: relative; margin: 0; min-height: calc(100vh - 118px); overflow: hidden; }
.story-hero-media > img:first-child { width: 100%; height: 100%; object-fit: cover; }
.story-hero-media figcaption { position: absolute; right: 28px; bottom: 25px; padding: 8px 11px; background: rgba(0,0,0,.65); color: white; font-family: var(--serif); }
.artwork-feature { width: min(1400px, calc(100% - 80px)); margin: 0 auto; padding: clamp(100px, 11vw, 175px) 0; display: grid; gap: clamp(55px, 8vw, 125px); align-items: center; }
.artwork-feature.horizontal { grid-template-columns: 1.3fr .7fr; }
.artwork-feature.portrait-pair { grid-template-columns: .7fr 1.3fr; }
.artwork-feature figure { margin: 0; }
.artwork-feature img { width: 100%; height: auto; }
.artwork-copy .eyebrow { color: var(--teal); }
.artwork-copy h2 { margin: 0; font-family: var(--serif); font-size: clamp(46px, 5vw, 74px); font-weight: 400; line-height: 1; letter-spacing: -.04em; }
.artwork-copy > p:last-child { margin: 25px 0 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.story-quote { padding: clamp(100px, 11vw, 165px) 30px; background: #cddcd9; text-align: center; }
.story-quote blockquote { max-width: 980px; margin: 0 auto; }
.story-quote p { margin: 0; font-family: var(--serif); font-size: clamp(42px, 5.3vw, 76px); line-height: 1.08; letter-spacing: -.035em; }
.story-quote span { display: block; margin-top: 25px; font-family: var(--serif); font-size: clamp(21px, 2.2vw, 31px); font-style: italic; }
.story-quote cite { display: block; margin-top: 28px; font-size: 10px; font-style: normal; text-transform: uppercase; letter-spacing: .2em; }
.dark-artwork { padding: clamp(100px, 11vw, 175px) 0; background: #242624; color: #f2eee6; }
.dark-artwork-inner { width: min(1400px, calc(100% - 80px)); margin: 0 auto; display: grid; grid-template-columns: .65fr 1.35fr; gap: clamp(55px, 8vw, 120px); align-items: center; }
.dark-artwork .eyebrow { color: #a9c6c2; }
.dark-artwork .artwork-copy > p:last-child { color: #c9c7c0; }
.dark-artwork figure { margin: 0; }
.dark-artwork img { width: 100%; }
.story-closing { padding: clamp(110px, 13vw, 190px) max(30px, calc((100% - 960px) / 2)); text-align: center; background: #ece6dc; }
.story-closing .eyebrow { color: var(--teal); }
.story-closing h2 { margin: 0; font-family: var(--serif); font-size: clamp(48px, 6vw, 86px); font-weight: 400; line-height: 1.03; letter-spacing: -.04em; }
.story-closing > p:not(.eyebrow) { max-width: 700px; margin: 30px auto; color: var(--muted); font-size: 17px; line-height: 1.8; }
.closing-links { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }

/* Monochrome chapters */
.mono-page { background: #efeee9; }
.mono-hero { background: #202120; color: #f0eee8; }
.mono-hero .eyebrow { color: #b7cac8; }
.mono-hero .story-hero-copy > p:not(.eyebrow):not(.story-line) { color: #c9c8c1; }
.mono-hero .arrow-link::after { background: #f0eee8; }
.chapter-section { width: min(1400px, calc(100% - 80px)); margin: 0 auto; padding: clamp(100px, 11vw, 170px) 0; }
.chapter-heading { display: grid; grid-template-columns: 1.05fr .95fr; gap: 80px; align-items: end; margin-bottom: 65px; }
.chapter-heading .eyebrow { color: var(--teal); }
.chapter-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(48px, 6vw, 84px); font-weight: 400; line-height: 1; letter-spacing: -.04em; }
.chapter-heading > p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.chapter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; align-items: start; }
.chapter-grid figure { margin: 0; }
.chapter-grid figure:nth-child(2) { margin-top: 85px; }
.chapter-grid figure:nth-child(3) { margin-top: 25px; }
.chapter-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.chapter-grid .square img { aspect-ratio: 1 / 1; }
.chapter-grid figcaption { padding: 18px 0; }
.chapter-grid strong { display: block; font-family: var(--serif); font-size: 25px; font-weight: 400; }
.chapter-grid span { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.mono-quote { background: #171817; color: #f0eee8; }
.human-grid figure:nth-child(1), .human-grid figure:nth-child(3) { margin-top: 75px; }
.human-grid figure:nth-child(2) { margin-top: 0; }
.human-grid img { aspect-ratio: 4 / 5; }
.mono-finale { padding: clamp(110px, 12vw, 180px) max(40px, calc((100% - 1200px) / 2)); display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(60px, 9vw, 130px); align-items: center; background: #303230; color: #f3efe8; }
.mono-finale figure { margin: 0; }
.mono-finale figure img { width: 100%; }
.mono-finale .eyebrow { color: #afc8c4; }
.mono-finale h2 { margin: 0; font-family: var(--serif); font-size: clamp(50px, 6vw, 84px); font-weight: 400; line-height: 1; }
.mono-finale p:not(.eyebrow) { max-width: 520px; color: #ccc9c1; font-size: 16px; line-height: 1.8; }
.mono-finale .arrow-link::after { background: #f3efe8; }

/* About */
.about-hero { min-height: calc(100vh - 118px); display: grid; grid-template-columns: 52% 48%; background: #ded8cc; }
.about-hero > div { padding: clamp(70px, 8vw, 125px) clamp(35px, 6vw, 95px); align-self: center; }
.about-hero h1 { font-size: clamp(66px, 8vw, 122px); max-width: 740px; }
.about-lead { max-width: 690px; margin: 35px 0; font-family: var(--serif); font-size: clamp(22px, 2.3vw, 32px); line-height: 1.5; }
.about-hero figure { position: relative; margin: 0; min-height: calc(100vh - 118px); overflow: hidden; }
.about-hero figure > img:first-child { width: 100%; height: 100%; object-fit: cover; }
.about-story { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(60px, 9vw, 140px); }
.about-story .eyebrow, .worlds-section .eyebrow, .values-section .eyebrow { color: var(--teal); }
.about-story h2, .process-grid h2 { margin: 0; font-family: var(--serif); font-size: clamp(48px, 5.5vw, 78px); font-weight: 400; line-height: 1.03; letter-spacing: -.04em; }
.about-story > div:last-child p, .process-grid > div:last-child p { margin-top: 0; color: var(--muted); font-size: 17px; line-height: 1.85; }
.about-quote { background: #204448; color: #f1efe8; }
.worlds-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.worlds-grid a:nth-child(2) { margin-top: 80px; }
.worlds-grid figure { margin: 0 0 25px; aspect-ratio: 4 / 5; overflow: hidden; }
.worlds-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.worlds-grid a:hover img { transform: scale(1.02); }
.worlds-grid .eyebrow { margin-bottom: 10px; }
.worlds-grid h3 { margin: 0; font-family: var(--serif); font-size: 31px; font-weight: 400; }
.worlds-grid a > p:last-child { color: var(--muted); font-size: 14px; line-height: 1.7; }
.process-band { background: #dce5e2; }
.process-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(60px, 9vw, 140px); }
.process-grid .eyebrow { color: var(--teal); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.values-grid article { text-align: center; }
.value-circle { width: min(100%, 350px); margin: 0 auto 30px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(0,0,0,.07), 0 22px 60px rgba(36,39,36,.1); }
.value-circle.light { background: radial-gradient(circle at 35% 30%, #fff8db 0, #e7cfa7 45%, #aa9a7b 100%); }
.value-circle.still { background: radial-gradient(circle at 40% 35%, #dbe9e7 0, #9cb5b1 55%, #496563 100%); }
.value-circle.presence { background: radial-gradient(circle at 38% 30%, #ddd7d1 0, #9b8f87 52%, #514c4a 100%); color: white; }
.value-circle h3 { margin: 0; font-family: var(--serif); font-size: clamp(36px, 4vw, 52px); font-weight: 400; }
.values-grid article > p { color: var(--muted); font-size: 14px; line-height: 1.7; }

/* Photographer's words */
.words-hero { min-height: calc(100vh - 118px); display: grid; grid-template-columns: 1.05fr .95fr; background: #d9dfdc; }
.words-hero > div { align-self: center; padding: clamp(70px, 8vw, 125px) clamp(35px, 7vw, 110px); }
.words-hero h1 { font-size: clamp(68px, 8vw, 120px); }
.words-hero > div > p:last-child { max-width: 600px; margin-top: 32px; font-family: var(--serif); font-size: clamp(22px, 2.3vw, 31px); line-height: 1.5; }
.words-hero figure { position: relative; margin: 0; overflow: hidden; }
.words-hero figure img { width: 100%; height: 100%; object-fit: cover; }
.words-hero figcaption, .contact-layout figcaption { position: absolute; right: 25px; bottom: 24px; padding: 8px 10px; background: rgba(0,0,0,.65); color: white; font-family: var(--serif); }
.words-essay { width: min(780px, calc(100% - 50px)); margin: 0 auto; padding: clamp(100px, 12vw, 180px) 0; }
.words-essay > p { margin: 0 0 28px; color: #4e504c; font-family: var(--serif); font-size: 20px; line-height: 1.85; }
.words-essay .essay-lead { color: var(--ink); font-size: clamp(27px, 3vw, 40px); line-height: 1.55; }
.words-essay h2 { margin: 80px 0 25px; font-family: var(--serif); font-size: clamp(42px, 5vw, 66px); font-weight: 400; }
.essay-image { width: min(540px, 82%); margin: 75px auto; }
.essay-image img { width: 100%; }
.essay-image figcaption { margin-top: 12px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .15em; }
.words-essay blockquote { margin: 80px -120px; padding: 60px 80px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--teal); text-align: center; font-family: var(--serif); font-size: clamp(30px, 3.5vw, 47px); line-height: 1.45; }
.essay-signoff { margin-top: 80px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.essay-signoff img { width: 220px; }

/* Focus */
.focus-hero { min-height: calc(100vh - 118px); display: grid; grid-template-columns: 60% 40%; background: #202a29; color: #f2efe7; }
.focus-hero figure { margin: 0; min-height: inherit; overflow: hidden; }
.focus-hero figure img { width: 100%; height: 100%; object-fit: cover; }
.focus-hero > div { align-self: center; padding: clamp(60px, 7vw, 100px); }
.focus-hero .eyebrow { color: #b6cbc7; }
.focus-hero h1 { font-size: clamp(67px, 8vw, 124px); }
.focus-hero > div > p:not(.eyebrow) { margin: 30px 0; color: #ccd2ce; font-size: 17px; line-height: 1.8; }
.focus-hero .arrow-link::after { background: white; }
.focus-editorial { display: grid; grid-template-columns: auto 1fr 1fr; gap: clamp(35px, 7vw, 100px); align-items: start; }
.focus-number { color: #a5b9b5; font-family: var(--serif); font-size: 54px; }
.focus-editorial .eyebrow { color: var(--teal); }
.focus-editorial h2 { margin: 0; font-family: var(--serif); font-size: clamp(46px, 5vw, 74px); font-weight: 400; line-height: 1; }
.focus-editorial > div:last-child p { margin-top: 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.focus-triptych { padding: 0 clamp(25px, 5vw, 80px) clamp(100px, 12vw, 175px); display: grid; grid-template-columns: 1.1fr .8fr 1.1fr; gap: 22px; align-items: center; }
.focus-triptych figure { margin: 0; }
.focus-triptych figure:nth-child(2) { padding: 0 25px; }
.focus-triptych img { width: 100%; }
.focus-triptych figcaption { margin-top: 12px; font-family: var(--serif); font-size: 20px; }

/* Contact */
.contact-layout { min-height: calc(100vh - 118px); display: grid; grid-template-columns: 52% 48%; background: #dfe5e1; }
.contact-copy { align-self: center; padding: clamp(70px, 8vw, 125px) clamp(35px, 7vw, 110px); }
.contact-copy h1 { max-width: 760px; font-size: clamp(64px, 7.5vw, 112px); }
.contact-copy > p:not(.eyebrow):not(.contact-note) { max-width: 650px; margin: 30px 0; color: #465552; font-size: 17px; line-height: 1.8; }
.contact-options { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-top: 45px; padding-top: 28px; border-top: 1px solid rgba(32,68,72,.25); }
.contact-options span { display: block; margin-bottom: 10px; color: #58706c; font-size: 9px; text-transform: uppercase; letter-spacing: .2em; }
.contact-options a { font-family: var(--serif); font-size: 21px; border-bottom: 1px solid currentColor; }
.contact-note { max-width: 580px; margin-top: 45px; color: #667875; font-size: 12px; line-height: 1.7; }
.contact-layout > figure { position: relative; margin: 0; overflow: hidden; }
.contact-layout > figure img { width: 100%; height: 100%; object-fit: cover; }
.contact-bottom { padding: clamp(90px, 11vw, 150px) 30px; background: #242624; color: #f0ede5; text-align: center; }
.contact-bottom p { margin: 0; font-family: var(--serif); font-size: clamp(43px, 5vw, 72px); }
.contact-bottom img { width: 150px; margin: 32px auto 0; }

@media (max-width: 900px) {
  .series-index { grid-template-columns: 1fr; }
  .series-index a { border-right: 0; border-bottom: 1px solid var(--line); }
  .series-index a:last-child { border-bottom: 0; }
  .series-entry, .series-entry.reverse { grid-template-columns: 1fr 1fr; gap: 45px; }
  .story-hero, .about-hero, .words-hero, .focus-hero, .contact-layout { min-height: auto; grid-template-columns: 1fr; }
  .story-hero-media, .about-hero figure, .words-hero figure, .focus-hero figure, .contact-layout > figure { min-height: 590px; }
  .story-hero-media { grid-row: 1; }
  .story-hero-copy { grid-row: 2; }
  .artwork-feature.horizontal, .artwork-feature.portrait-pair, .dark-artwork-inner, .about-story, .process-grid { grid-template-columns: 1fr 1fr; gap: 50px; }
  .chapter-heading { grid-template-columns: 1fr; gap: 30px; }
  .chapter-grid { gap: 16px; }
  .worlds-grid, .values-grid { gap: 18px; }
  .words-essay blockquote { margin-left: -20px; margin-right: -20px; padding: 50px 25px; }
  .focus-editorial { grid-template-columns: auto 1fr; }
  .focus-editorial > div:last-child { grid-column: 2; }
  .focus-triptych { grid-template-columns: 1fr 1fr; }
  .focus-triptych figure:nth-child(2) { padding: 0; }
  .focus-triptych figure:nth-child(3) { grid-column: 1 / -1; width: 65%; justify-self: center; }
}

@media (max-width: 620px) {
  .page-intro, .series-index, .series-entry, .artwork-feature, .dark-artwork-inner, .chapter-section { width: calc(100% - 44px); }
  .series-entry, .series-entry.reverse { grid-template-columns: 1fr; }
  .series-entry.reverse figure { order: 0; }
  .story-hero-media, .about-hero figure, .words-hero figure, .focus-hero figure, .contact-layout > figure { min-height: 420px; }
  .artwork-feature.horizontal, .artwork-feature.portrait-pair, .dark-artwork-inner, .about-story, .process-grid { grid-template-columns: 1fr; }
  .artwork-feature.portrait-pair figure { grid-row: 1; }
  .chapter-grid, .human-grid { grid-template-columns: 1fr; }
  .chapter-grid figure, .chapter-grid figure:nth-child(2), .chapter-grid figure:nth-child(3), .human-grid figure:nth-child(1), .human-grid figure:nth-child(3) { margin-top: 0; margin-bottom: 35px; }
  .mono-finale { grid-template-columns: 1fr; padding-left: 22px; padding-right: 22px; }
  .worlds-grid, .values-grid { grid-template-columns: 1fr; gap: 45px; }
  .worlds-grid a:nth-child(2) { margin-top: 0; }
  .value-circle { max-width: 290px; }
  .essay-signoff { align-items: flex-start; flex-direction: column; }
  .focus-editorial { grid-template-columns: 1fr; }
  .focus-number { font-size: 34px; }
  .focus-editorial > div:last-child { grid-column: auto; }
  .focus-triptych { grid-template-columns: 1fr; }
  .focus-triptych figure:nth-child(3) { grid-column: auto; width: 100%; }
  .contact-options { grid-template-columns: 1fr; }
  .contact-options a { font-size: 18px; }
}

/* Complete portfolio collections and image viewer */
.collection-hero { min-height: calc(100vh - 118px); display: grid; grid-template-columns: minmax(350px, 42%) 1fr; background: #dfe5e1; }
.collection-hero-copy { align-self: center; padding: clamp(60px, 7vw, 110px) clamp(30px, 6vw, 95px); }
.collection-hero-copy h1 { margin: 0; font-family: var(--serif); font-size: clamp(62px, 8vw, 126px); font-weight: 400; line-height: .88; letter-spacing: -.055em; }
.collection-line { max-width: 520px; margin: 34px 0 15px; font-family: var(--serif); font-size: clamp(25px, 3vw, 42px); line-height: 1.12; }
.collection-hero-copy > p:not(.eyebrow):not(.collection-line) { max-width: 580px; margin: 0 0 32px; color: #4c5d59; font-size: 16px; line-height: 1.8; }
.collection-hero-media { position: relative; min-height: inherit; margin: 0; overflow: hidden; background: #b9c1bc; }
.collection-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.collection-hero-media figcaption { position: absolute; right: 24px; bottom: 22px; padding: 8px 11px; background: rgba(16,18,17,.66); color: white; font-family: var(--serif); font-size: 15px; }
.collection-gallery-section { width: min(1500px, calc(100% - 80px)); margin: 0 auto; padding: clamp(90px, 10vw, 160px) 0; scroll-margin-top: 35px; }
.collection-gallery-section > header { display: grid; grid-template-columns: minmax(240px,.7fr) 1fr; gap: 30px 70px; align-items: end; margin-bottom: 65px; }
.collection-gallery-section > header .eyebrow { grid-column: 1 / -1; margin-bottom: 0; color: var(--teal); }
.collection-gallery-section > header h2 { margin: 0; font-family: var(--serif); font-size: clamp(42px, 5vw, 72px); font-weight: 400; line-height: 1; }
.collection-gallery-section > header > p:last-child { max-width: 520px; margin: 0; color: var(--muted); line-height: 1.75; }
.portfolio-gallery { columns: 3 310px; column-gap: clamp(18px, 2.2vw, 34px); }
.gallery-work { display: inline-block; width: 100%; margin: 0 0 clamp(30px, 4vw, 58px); break-inside: avoid; }
.gallery-work button { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 0; background: #ded8ce; color: white; cursor: zoom-in; }
.gallery-work img { width: 100%; height: auto; transition: transform .65s cubic-bezier(.2,.65,.35,1), filter .35s ease; }
.gallery-work button > span { position: absolute; right: 13px; bottom: 13px; padding: 7px 9px; background: rgba(15,17,16,.68); font-size: 9px; text-transform: uppercase; letter-spacing: .16em; opacity: 0; transform: translateY(5px); transition: opacity .25s, transform .25s; }
.gallery-work button:hover img, .gallery-work button:focus-visible img { transform: scale(1.018); filter: brightness(.93); }
.gallery-work button:hover > span, .gallery-work button:focus-visible > span { opacity: 1; transform: none; }
.gallery-work figcaption { margin-top: 13px; font-family: var(--serif); font-size: clamp(18px, 1.6vw, 24px); }
body.lightbox-open { overflow: hidden; }
.lightbox[hidden] { display: none !important; }
.lightbox { position: fixed; z-index: 500; inset: 0; display: grid; grid-template-columns: 72px minmax(0,1fr) 72px; align-items: center; padding: 70px 24px 24px; background: rgba(235,232,224,.97); color: var(--ink); backdrop-filter: blur(12px); }
.lightbox figure { display: flex; min-width: 0; height: calc(100vh - 100px); margin: 0; flex-direction: column; align-items: center; justify-content: center; }
.lightbox figure img { max-width: 100%; max-height: calc(100vh - 175px); width: auto; height: auto; object-fit: contain; box-shadow: 0 18px 70px rgba(28,31,29,.2); }
.lightbox figure figcaption { width: min(100%, 1100px); display: flex; justify-content: space-between; gap: 25px; margin-top: 16px; font-family: var(--serif); font-size: 19px; }
.lightbox figure figcaption span { color: var(--muted); font-family: Arial, sans-serif; font-size: 11px; letter-spacing: .14em; }
.lightbox button { border: 0; background: transparent; color: inherit; cursor: pointer; }
.lightbox-prev, .lightbox-next { width: 50px; height: 50px; border: 1px solid rgba(30,32,30,.3) !important; border-radius: 50% !important; font-size: 24px; }
.lightbox-close { position: absolute; top: 19px; right: 25px; padding: 8px 0; border-bottom: 1px solid rgba(30,32,30,.55) !important; font-size: 10px; text-transform: uppercase; letter-spacing: .18em; }
.lightbox-play { position: absolute; top: 19px; left: 25px; padding: 8px 0 !important; border-bottom: 1px solid rgba(30,32,30,.55) !important; font-size: 10px; text-transform: uppercase; letter-spacing: .18em; }
.lightbox-progress { position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: rgba(30,32,30,.12); }
.lightbox-progress span { display: block; width: 0; height: 100%; background: var(--teal); }
.lightbox.is-playing .lightbox-progress span { animation: om-progress 5s linear forwards; }
@keyframes om-progress { from { width: 0; } to { width: 100%; } }

@media (max-width: 900px) {
  .collection-hero { min-height: auto; grid-template-columns: 1fr; }
  .collection-hero-media { min-height: 68vh; grid-row: 1; }
  .collection-hero-copy { grid-row: 2; }
  .collection-gallery-section > header { grid-template-columns: 1fr; }
  .collection-gallery-section > header .eyebrow { grid-column: auto; }
  .portfolio-gallery { columns: 2 250px; }
}

@media (max-width: 620px) {
  .collection-hero-media { min-height: 54vh; }
  .collection-hero-copy { padding: 55px 22px 65px; }
  .collection-hero-copy h1 { font-size: clamp(54px, 18vw, 82px); }
  .collection-gallery-section { width: calc(100% - 44px); }
  .portfolio-gallery { columns: 1; }
  .gallery-work button > span { display: none; }
  .lightbox { grid-template-columns: 45px minmax(0,1fr) 45px; padding: 62px 5px 12px; }
  .lightbox figure { height: calc(100vh - 70px); }
  .lightbox figure img { max-height: calc(100vh - 135px); }
  .lightbox-prev, .lightbox-next { width: 39px; height: 39px; }
  .lightbox figure figcaption { padding: 0 10px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-work img, .gallery-work button > span { transition: none; }
}

/* WordPress integration */
.admin-bar .site-header { top: 32px; }
.site-logo .custom-logo { width: 100%; height: auto; }
.current-menu-item > a::after, .current-menu-ancestor > a::after { right: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { top: 5px; left: 5px; z-index: 100000; display: block; width: auto; height: auto; padding: 15px 23px 14px; clip: auto !important; background: #fff; color: #222; }
.generic-page { width: min(900px, calc(100% - 44px)); margin: 0 auto; padding: 90px 0 140px; }
.generic-page h1 { font-family: var(--serif); font-size: clamp(48px, 7vw, 88px); font-weight: 400; }
.generic-page .entry-content { font-family: var(--serif); font-size: 20px; line-height: 1.75; }
.empty-gallery { padding: 50px; border: 1px solid var(--line); text-align: center; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
