/*
Theme Name: FotoVDB Portfolio
Theme URI: https://fotovdb.be/
Author: Patrick Van Den Broucke
Description: A dark, minimal fine-art photography portfolio restored for FotoVDB. Includes four gallery series, prints, photographer, contact, links and a WordPress-powered guestbook.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: fotovdb
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
	color-scheme: dark;
	--ink: #f2f2f0;
	--muted: #a5a5a1;
	--line: rgba(255, 255, 255, 0.2);
	--line-strong: rgba(255, 255, 255, 0.5);
	--paper: #0b0b0b;
	--paper-soft: #131313;
	--accent: #d7d4cd;
	--content: 1480px;
	--header: 76px;
}

* { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header) + 28px);
}

body {
	margin: 0;
	min-width: 320px;
	background: var(--paper);
	color: var(--ink);
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.55;
	text-rendering: optimizeLegibility;
}

body.lightbox-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; height: auto; }

.skip-link {
	position: fixed;
	left: 1rem;
	top: -5rem;
	z-index: 1000;
	padding: 0.75rem 1rem;
	background: #fff;
	color: #000;
}

.skip-link:focus { top: 1rem; }

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	min-height: var(--header);
	border-bottom: 1px solid var(--line);
	background: rgba(8, 8, 8, 0.92);
	backdrop-filter: blur(14px);
}

.admin-bar .site-header { top: 32px; }

.header-inner {
	width: min(calc(100% - 48px), var(--content));
	min-height: var(--header);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}

.wordmark {
	display: inline-flex;
	flex-direction: column;
	gap: 0.08rem;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.23em;
	line-height: 1.25;
	text-transform: uppercase;
	white-space: nowrap;
}

.wordmark > span:last-child {
	color: var(--muted);
	font-size: 0.66rem;
	letter-spacing: 0.33em;
}

.custom-logo-link { display: block; }
.custom-logo { width: auto; max-height: 50px; }

.primary-nav .menu-list,
.footer-links .menu-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav .menu-list {
	display: flex;
	align-items: center;
	gap: clamp(1.15rem, 2.5vw, 2.4rem);
}

.primary-nav a {
	position: relative;
	display: block;
	padding: 0.65rem 0;
	color: var(--muted);
	font-size: 0.82rem;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	transition: color 180ms ease;
}

.primary-nav a::after {
	position: absolute;
	left: 0;
	right: 100%;
	bottom: 0.35rem;
	height: 1px;
	background: currentColor;
	content: "";
	transition: right 180ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a { color: var(--ink); }

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav .current-menu-item > a::after,
.primary-nav .current_page_item > a::after { right: 0; }

.menu-toggle {
	display: none;
	border: 1px solid var(--line);
	background: transparent;
	color: var(--ink);
	padding: 0.62rem 0.78rem;
	font-size: 0.76rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
}

.gallery-hero {
	width: min(calc(100% - 48px), var(--content));
	margin: 0 auto;
	padding: clamp(3.5rem, 8vw, 8.5rem) 0 clamp(3rem, 6vw, 6rem);
}

.hero-kicker,
.page-kicker,
.section-kicker,
.post-date {
	margin: 0 0 1rem;
	color: var(--muted);
	font-size: 0.72rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.gallery-hero h1,
.page-title {
	max-width: 12ch;
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(3.4rem, 9vw, 9.2rem);
	font-weight: 400;
	letter-spacing: -0.055em;
	line-height: 0.86;
}

.gallery-hero h1 span,
.page-title span {
	display: block;
	margin-left: clamp(1.5rem, 10vw, 10rem);
	color: var(--muted);
	font-style: italic;
}

.hero-meta {
	width: min(38rem, 100%);
	margin: clamp(2.5rem, 6vw, 5.5rem) 0 0 auto;
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: end;
	gap: 2rem;
	border-top: 1px solid var(--line);
	padding-top: 1.2rem;
}

.hero-meta p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.hero-meta strong { color: var(--ink); font-weight: 500; }

.series-grid {
	width: min(calc(100% - 48px), var(--content));
	margin: 0 auto clamp(6rem, 10vw, 11rem);
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	border-top: 1px solid var(--line);
	border-left: 1px solid var(--line);
}

.series-card {
	position: relative;
	min-height: clamp(19rem, 44vw, 39rem);
	overflow: hidden;
	border-right: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	background: #1a1a1a;
	isolation: isolate;
}

.series-card img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.72) contrast(1.04) brightness(0.78);
	transition: transform 600ms cubic-bezier(0.2, 0.7, 0, 1), filter 300ms ease;
	z-index: -2;
}

.series-card::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.7));
	content: "";
	z-index: -1;
}

.series-card:hover img,
.series-card:focus-visible img {
	transform: scale(1.025);
	filter: saturate(0.95) contrast(1.02) brightness(0.9);
}

.series-label {
	position: absolute;
	left: clamp(1.2rem, 3vw, 2.5rem);
	right: clamp(1.2rem, 3vw, 2.5rem);
	bottom: clamp(1.2rem, 3vw, 2.4rem);
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: 1rem;
}

.series-label .series-title {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2rem, 5vw, 4.7rem);
	font-weight: 400;
	letter-spacing: -0.035em;
	line-height: 0.95;
	text-transform: none;
}

.series-label > span:last-child {
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.7rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.gallery-section {
	width: min(calc(100% - 48px), var(--content));
	margin: 0 auto;
	padding: clamp(3.5rem, 7vw, 7rem) 0;
	border-top: 1px solid var(--line);
}

.section-heading {
	margin-bottom: clamp(2rem, 5vw, 4.5rem);
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(15rem, 34rem);
	align-items: end;
	gap: 2rem;
}

.section-heading h2,
.content-title {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(3.1rem, 7vw, 7.2rem);
	font-weight: 400;
	letter-spacing: -0.045em;
	line-height: 0.9;
}

.section-heading p { margin: 0; color: var(--muted); max-width: 48ch; }

.gallery-grid { columns: 3 300px; column-gap: 1rem; }

.gallery-item {
	position: relative;
	width: 100%;
	margin: 0 0 1rem;
	padding: 0;
	overflow: hidden;
	break-inside: avoid;
	border: 0;
	background: #181818;
	color: var(--ink);
	cursor: zoom-in;
}

.gallery-item img { width: 100%; transition: transform 420ms cubic-bezier(0.2, 0.7, 0, 1), opacity 220ms ease; }

.gallery-item span {
	position: absolute;
	inset: auto 0 0;
	padding: 3.5rem 1rem 0.9rem;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.72rem;
	letter-spacing: 0.13em;
	opacity: 0;
	text-align: left;
	text-transform: uppercase;
	transition: opacity 220ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img { transform: scale(1.018); opacity: 0.9; }
.gallery-item:hover span,
.gallery-item:focus-visible span { opacity: 1; }

.page-main {
	width: min(calc(100% - 48px), var(--content));
	margin: 0 auto;
	padding: clamp(4rem, 9vw, 9rem) 0;
}

.page-intro {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
	align-items: end;
	gap: clamp(2rem, 7vw, 8rem);
	margin-bottom: clamp(4rem, 8vw, 8rem);
}

.page-intro .lede {
	margin: 0;
	color: var(--muted);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.35rem, 2.6vw, 2.4rem);
	line-height: 1.35;
}

.portrait-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
	align-items: start;
	gap: clamp(2rem, 6vw, 6rem);
}

.portrait-layout figure { margin: 0; }
.portrait-layout figcaption { margin-top: 0.75rem; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.bio-copy { max-width: 42rem; }
.bio-copy p { margin: 0 0 1.4rem; color: #c7c7c3; font-size: clamp(1rem, 1.3vw, 1.16rem); }
.bio-copy blockquote { margin: clamp(3rem, 7vw, 6rem) 0 0; padding: 1.4rem 0 0; border-top: 1px solid var(--line); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.8rem, 3vw, 3.4rem); font-style: italic; line-height: 1.12; }

.page-copy { margin: 0 0 3rem; }

.prints-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
}

.print-card { background: var(--paper); padding: clamp(1rem, 2vw, 2rem); }
.print-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #eee; }
.print-card h2 { margin: 1.25rem 0 0.25rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.4rem; font-weight: 400; }
.print-card p { margin: 0; color: var(--muted); font-size: 0.86rem; }

.contact-panel,
.simple-panel {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.8fr);
	gap: clamp(2rem, 7vw, 8rem);
	padding-top: clamp(2.5rem, 5vw, 5rem);
	border-top: 1px solid var(--line);
}

.contact-list { margin: 0; }
.contact-list div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; }
.contact-list dd { margin: 0; overflow-wrap: anywhere; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.3rem, 2.4vw, 2.2rem); }
.contact-note,
.simple-panel p { margin: 0; color: var(--muted); max-width: 43ch; }

.text-link {
	display: inline-block;
	margin-top: 1.5rem;
	padding-bottom: 0.2rem;
	border-bottom: 1px solid var(--line-strong);
	font-size: 0.78rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.links-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.links-list a { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.links-list strong { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.3rem, 2vw, 2rem); font-weight: 400; }
.links-list span { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }

.content-header { max-width: 70rem; margin-bottom: clamp(3rem, 7vw, 6rem); }
.readable-content { max-width: 52rem; color: #cececa; font-size: clamp(1rem, 1.5vw, 1.15rem); }
.entry-content > *:first-child { margin-top: 0; }
.entry-content a { border-bottom: 1px solid var(--line-strong); }
.entry-content h2,
.entry-content h3 { margin: 2.5em 0 0.75em; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.12; }
.entry-content h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.entry-content h3 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
.entry-content blockquote { margin: 2.5rem 0; padding-left: 1.4rem; border-left: 1px solid var(--line-strong); font-family: Georgia, "Times New Roman", serif; font-size: 1.35em; font-style: italic; }
.entry-featured { margin: 0 0 3rem; }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.post-card { padding: clamp(1rem, 2vw, 2rem); background: var(--paper); }
.post-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 1.3rem; }
.post-card h2 { margin: 0.35rem 0 0.75rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.5rem, 2.5vw, 2.4rem); font-weight: 400; line-height: 1.05; }
.post-excerpt { color: var(--muted); }
.navigation.pagination,
.post-navigation { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.nav-links { display: flex; justify-content: space-between; gap: 1.5rem; }

.comments-area,
.guestbook-wrap { max-width: 58rem; }
.comments-area { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.comments-title,
.comment-reply-title { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 400; }
.comment-list { margin: 0 0 4rem; padding: 0; list-style: none; }
.comment-list .children { list-style: none; }
.comment-body { margin: 0 0 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.comment-meta { color: var(--muted); font-size: 0.8rem; }
.comment-author { display: flex; align-items: center; gap: 0.75rem; }
.comment-author .avatar { border-radius: 50%; }
.comment-content { margin-left: 4rem; color: #cececa; }
.comment-form label { display: block; margin-bottom: 0.4rem; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.comment-form input:not([type="checkbox"]),
.comment-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 0; background: var(--paper-soft); color: var(--ink); padding: 0.85rem; }
.comment-form textarea { min-height: 12rem; resize: vertical; }
.comment-form .form-submit input { border: 1px solid var(--line-strong); border-radius: 0; background: transparent; color: var(--ink); padding: 0.85rem 1.2rem; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }
.comment-notes,
.logged-in-as { color: var(--muted); }

.site-footer {
	width: min(calc(100% - 48px), var(--content));
	margin: clamp(3rem, 8vw, 8rem) auto 0;
	padding: 2rem 0 2.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 2rem;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.72rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.footer-links .menu-list { display: flex; gap: 1.5rem; }
.footer-links a:hover,
.footer-links a:focus-visible { color: var(--ink); }

.lightbox {
	width: 100vw;
	max-width: none;
	height: 100vh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(0, 0, 0, 0.96);
	color: #fff;
}

.lightbox::backdrop { background: #000; }
.lightbox-inner { width: 100%; height: 100%; display: grid; grid-template-rows: auto 1fr auto; }
.lightbox-toolbar { min-height: 64px; padding: 0 1.25rem; display: flex; align-items: center; justify-content: flex-end; border-bottom: 1px solid var(--line); }
.lightbox button { border: 1px solid var(--line); background: transparent; color: #fff; padding: 0.62rem 0.85rem; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }
.lightbox-stage { min-height: 0; display: grid; place-items: center; padding: 1.25rem; }
.lightbox-stage img { width: auto; max-width: 100%; height: auto; max-height: calc(100vh - 160px); object-fit: contain; }
.lightbox-controls { min-height: 84px; padding: 1rem 1.25rem; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.2rem; border-top: 1px solid var(--line); }
.lightbox-caption { margin: 0; color: #cfcfcb; font-size: 0.75rem; letter-spacing: 0.13em; text-align: center; text-transform: uppercase; }

.alignwide { width: min(1100px, 100%); max-width: none; }
.alignfull { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); }
.wp-caption,
.gallery-caption { color: var(--muted); font-size: 0.82rem; }
.screen-reader-text { position: absolute; 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 { position: fixed; top: 1rem; left: 1rem; z-index: 10000; width: auto; height: auto; padding: 0.75rem 1rem; clip: auto; background: #fff; color: #000; }

@media (max-width: 900px) {
	:root { --header: 66px; }
	.header-inner,
	.gallery-hero,
	.series-grid,
	.gallery-section,
	.page-main,
	.site-footer { width: min(calc(100% - 32px), var(--content)); }
	.menu-toggle { display: block; }
	.primary-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 0.75rem 1rem 1rem; border-bottom: 1px solid var(--line); background: #0a0a0a; }
	.primary-nav[data-open="true"] { display: block; }
	.primary-nav .menu-list { align-items: stretch; flex-direction: column; gap: 0; }
	.primary-nav a { padding: 0.9rem 0.25rem; border-bottom: 1px solid var(--line); }
	.primary-nav a::after { display: none; }
	.series-grid { grid-template-columns: 1fr; }
	.series-card { min-height: 65vh; }
	.section-heading,
	.page-intro,
	.portrait-layout,
	.contact-panel,
	.simple-panel { grid-template-columns: 1fr; }
	.section-heading { align-items: start; }
	.prints-grid,
	.post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}

@media (max-width: 580px) {
	.gallery-hero h1,
	.page-title { font-size: clamp(3rem, 18vw, 5.2rem); }
	.hero-meta { grid-template-columns: 1fr; gap: 1rem; }
	.series-card { min-height: 60vh; }
	.gallery-grid { columns: 1; }
	.prints-grid,
	.post-grid { grid-template-columns: 1fr; }
	.contact-list div { grid-template-columns: 1fr; gap: 0.45rem; }
	.site-footer { align-items: flex-start; flex-direction: column; }
	.lightbox-controls { grid-template-columns: 1fr 1fr; }
	.lightbox-caption { grid-column: 1 / -1; grid-row: 1; }
	.links-list a { grid-template-columns: 1fr; }
}

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

