/* ==========================================================================
   Simple Gray — theme styles
   Colours/fonts come from theme.json presets; layout options from
   Appearance → Simple Gray (CSS variables --zp-*).
   ========================================================================== */

:root {
	--zp-ink: var(--wp--preset--color--ink, #1E1C1A);
	--zp-paper: var(--wp--preset--color--paper, #FFFFFF);
	--zp-cream: var(--wp--preset--color--cream, #FFFFFF);
	--zp-muted: var(--wp--preset--color--muted, #7A756F);
	--zp-slate: var(--wp--preset--color--motion, #4A4643);
	--zp-photo: var(--wp--preset--color--photography, #4A4643);
	--zp-ideas: var(--wp--preset--color--ideas, #4A4643);
	--zp-pine: var(--wp--preset--color--about, #4A4643);
	--zp-accent: var(--wp--preset--color--accent, #ABA59E); /* light grey: dotted lines, dividers, underlines */
	--zp-red: var(--wp--preset--color--red, #D7261E);     /* only on the "&" */
	--zp-mono: var(--wp--preset--font-family--courier, 'Courier Prime', monospace);
	--zp-sans: var(--wp--preset--font-family--roboto, Roboto, sans-serif);
	--zp-ease: cubic-bezier(.2, .8, .2, 1);
	--zp-sheet-cols: 4;
	--zp-sheet-gap: 6px;
	--zp-ideas-cols: 6;
	--zp-video-gap: 72px;
}

.zp-mono,
.zp-back,
.zp-more,
.zp-sub { font-family: var(--zp-mono); }

/* No rounded corners anywhere. */
.wp-site-blocks img,
.wp-site-blocks .wp-block-image img,
.wp-site-blocks .wp-block-button__link,
.wp-site-blocks .wp-block-search__input,
.wp-site-blocks .wp-block-search__button,
.wp-site-blocks .wp-block-group,
.wp-site-blocks .wp-block-cover,
.wp-site-blocks .wp-block-embed,
.wp-site-blocks .wp-block-code,
.wp-site-blocks pre { border-radius: 0 !important; }

/* ---------- Header & menu ---------- */
.zp-header { padding-top: 24px; padding-bottom: 24px; }
.zp-header__bar { gap: 16px; }
.zp-site-title {
	margin: 0;
	font-family: var(--zp-sans);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.zp-site-title a { text-decoration: none; color: var(--zp-ink); }
.zp-nav { gap: 4px !important; margin-right: -14px; }
.zp-nav .wp-block-navigation-item__content {
	display: inline-block;
	padding: 12px 14px;
	text-decoration: none;
	color: var(--zp-ink);
	transition: background .2s ease, color .2s ease;
}
.zp-nav .wp-block-navigation-item__content { font-weight: 400; }
.zp-nav .wp-block-navigation-item__content:hover { background: rgba(30, 28, 26, .07); }

/* Active section: warm grey with white text for every section (matched by link
   address, so it also works on single posts and photo topic pages). */
.zp-section-motion .zp-nav a[href*="/multimedia"],
.zp-section-motion .zp-nav a[href*="/motion"],
.zp-section-photography .zp-nav a[href*="/photography"],
.zp-section-ideas .zp-nav a[href*="/floating-ideas"],
.zp-section-about .zp-nav a[href*="/about-me"] { background: var(--zp-slate); color: #FFFFFF; }

/* ---------- Footer (not on the home page) ---------- */
.zp-footer { margin-top: 96px; }
.zp-footer__bar {
	gap: 24px;
	align-items: center;
	padding: 48px 0;
	font-family: var(--zp-mono);
	font-size: 14px;
	font-weight: 400;
	color: var(--zp-ink);
}
.zp-footer__bar p { margin: 0; color: var(--zp-muted); }
.zp-footer__nav { display: flex; flex-wrap: wrap; gap: 24px; margin: 0; padding: 0; list-style: none; }
.zp-footer__nav a { color: var(--zp-ink); text-decoration: none; }
.zp-footer__nav a:hover { text-decoration: underline; text-decoration-color: var(--zp-accent); text-underline-offset: 5px; }

/* ---------- Shared page head ---------- */
.zp-main h1 { margin-top: 24px; margin-bottom: 0; }
.zp-page-head { gap: 16px; margin-top: 24px; margin-bottom: 48px; }
.zp-page-head h1,
.zp-about__title { font-size: calc(min(100vw - 80px, 1200px) * .0787) !important; line-height: .92 !important; letter-spacing: -.035em !important; }
.zp-page-head h1 { margin: 0; }
.zp-intro,
.zp-page-head .wp-block-post-excerpt {
	max-width: 380px;
	margin: 0;
	font-family: var(--zp-sans);
	font-size: 17px;
	line-height: 1.5;
}
.zp-page-head .wp-block-post-excerpt__excerpt { margin: 0; }
.zp-back { margin-top: 16px; margin-bottom: 0; font-size: 14px; font-weight: 400; }
.zp-back a { color: var(--zp-ink); text-decoration-color: var(--zp-accent); }
.zp-back a:hover { color: var(--zp-muted); }
.zp-more { margin: 0; font-size: 15px; font-weight: 400; }
.zp-more a { text-decoration: underline; text-decoration-color: var(--zp-accent); text-decoration-thickness: 3px; text-underline-offset: 5px; }

/* ---------- Home ---------- */
.zp-headline {
	margin-top: 24px !important;
	margin-bottom: 48px !important;
	font-size: calc(min(100vw - 80px, 1200px) * .0787) !important; /* zoran.js fine-tunes to the exact width */
	font-weight: 900;
	line-height: .92;
	letter-spacing: -.035em;
}
.zp-headline strong { font-weight: 900; }
.zp-headline.is-fitted { white-space: nowrap; }
.zp-headline .zp-amp { color: var(--zp-red); }
.zp-tiles { gap: 16px !important; }
.zp-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-sizing: border-box;
	overflow: hidden;
	isolation: isolate; /* hover photo sits behind the text, the whole tile stays clickable */
	min-height: clamp(180px, 19.8vw, 252px);
	margin: 0 !important;
	padding: clamp(16px, 2.4vw, 24px);
}
.zp-tile__title {
	margin: 0;
	font-size: clamp(19px, 4.75vw, 61px) !important;
	letter-spacing: -.04em;
	line-height: 1;
}
.zp-tile__title a { color: inherit; text-decoration: none; }

/* Hover photo, tinted by the tile colour (multiply). Only on devices with a
   mouse: phones and tablets keep the plain colours and never download them. */
@media (hover: hover) {
	.zp-tile::before {
		content: "";
		position: absolute;
		inset: 0;
		z-index: -1;
		background-size: cover;
		background-repeat: no-repeat;
		mix-blend-mode: multiply;
		opacity: 0;
		transform: scale(1.04);
		transition: opacity .5s ease, transform .8s var(--zp-ease);
	}
	.zp-tile--motion::before { background-image: var(--zp-img-motion); background-position: 62% 50%; }
	.zp-tile--photography::before { background-image: var(--zp-img-photography); background-position: 55% 50%; }
	.zp-tile--ideas::before { background-image: var(--zp-img-ideas); background-position: 72% 50%; }
	.zp-tile--about::before { background-image: var(--zp-img-about); background-position: 62% 35%; }
	.zp-tile:hover::before,
	.zp-tile:focus-within::before { opacity: 1; transform: none; }
}
.zp-tile__title a::after { content: ""; position: absolute; inset: 0; } /* whole tile clickable */
.zp-tile .zp-sub { margin: 0; font-size: 17px; font-weight: 400; }
@media (max-width: 600px) {
	.zp-tile { min-height: 150px; padding: 14px !important; }
	.zp-tile .zp-sub { font-size: 13px; line-height: 1.35; }
}

@keyframes zpSwipe  { from { clip-path: inset(0 100% 0 0); transform: translateX(-24px); opacity: 0; } to { clip-path: inset(0 0 0 0); transform: none; opacity: 1; } }
@keyframes zpSwipe2 { from { clip-path: inset(0 100% 0 0); transform: translateX(-24px); opacity: 0; } to { clip-path: inset(0 0 0 0); transform: none; opacity: 1; } }
.zp-animate .zp-tile .zp-sub { animation: zpSwipe .7s var(--zp-ease) both; }
.zp-animate .zp-tile:nth-child(1) .zp-sub { animation-delay: .30s; }
.zp-animate .zp-tile:nth-child(2) .zp-sub { animation-delay: .45s; }
.zp-animate .zp-tile:nth-child(3) .zp-sub { animation-delay: .60s; }
.zp-animate .zp-tile:nth-child(4) .zp-sub { animation-delay: .75s; }
.zp-animate .zp-tile:hover .zp-sub { animation-name: zpSwipe2; animation-delay: 0s; }

.zp-section-head { margin-top: 48px !important; margin-bottom: 24px !important; gap: 16px; }
.zp-section-head h2 { margin: 0; }

.zp-notes .wp-block-post-template { list-style: none; margin: 0; padding: 0; }
.zp-notes .wp-block-post {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 32px;
	margin: 0 !important;
	padding: 18px 28px 18px 0;
}
.zp-notes .wp-block-post::after { content: "→"; position: absolute; right: 0; top: 18px; font-family: var(--zp-mono); font-size: 18px; font-weight: 400; color: var(--zp-muted); }
.zp-notes .wp-block-post-date { flex: 0 0 120px; color: var(--zp-muted); font-weight: 400; }
.zp-notes__title {
	flex: 1 1 300px;
	margin: 0 !important;
	font-family: var(--zp-sans) !important;
	font-size: 20px !important;
	font-weight: 400 !important;
	letter-spacing: 0 !important;
	line-height: 1.25 !important;
	transition: padding .25s ease;
}
.zp-notes__title a { text-decoration: none; }
.zp-notes__title a::after { content: ""; position: absolute; inset: 0; }
.zp-notes .wp-block-post:hover .zp-notes__title { padding-left: 8px; }

/* ---------- Motion ---------- */
.zp-videos > * + * { margin-block-start: var(--zp-video-gap) !important; }
.zp-videos .wp-block-embed { margin-left: 0; margin-right: 0; }
.zp-lite__frame {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #24221F;
}
.zp-lite__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zp-lite__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.zp-lite__play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 96px;
	height: 96px;
	margin: -48px 0 0 -48px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: var(--zp-slate);
	color: #FFFFFF;
	cursor: pointer;
	transition: transform .25s ease, background .25s ease;
}
.zp-lite__play:hover,
.zp-lite__play:focus-visible { transform: scale(1.08); background: var(--zp-ink); }
.zp-videos .wp-block-embed figcaption {
	margin: 14px 0 0;
	padding-bottom: 12px;
	text-align: left;
	font-family: var(--zp-mono);
	font-size: 14px;
	color: var(--zp-ink);
}

/* ---------- Photography: topic list ---------- */
.zp-topics { display: flex; flex-direction: column; gap: 96px; }
.zp-topic { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px; text-decoration: none; color: var(--zp-ink); }
.zp-topic__text { flex: 1 1 260px; display: flex; flex-direction: column; gap: 8px; }
.zp-topic__title { font-size: 40px; font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.zp-topic__meta { font-family: var(--zp-mono); font-size: 14px; color: var(--zp-ink); }
.zp-topic__strip { flex: 3 1 480px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.zp-topic__thumb img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: opacity .25s ease; }
.zp-topic:hover .zp-topic__thumb img { opacity: .85; }

/* ---------- Photography: contact sheet ----------
   Works with one Gallery block AND with loose Image blocks. */
.zp-sheet {
	display: grid !important;
	grid-template-columns: repeat(var(--zp-sheet-cols), minmax(0, 1fr));
	gap: var(--zp-sheet-gap);
	align-items: start;
}
.zp-sheet > * { max-width: none !important; margin: 0 !important; grid-column: 1 / -1; }
.zp-sheet > .wp-block-image { grid-column: auto; }
.zp-sheet > .wp-block-image img {
	display: block;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: opacity .25s ease;
}
.zp-sheet > .wp-block-image img:hover { opacity: .85; }
.zp-sheet > .wp-block-image figcaption { display: none; }
@media (max-width: 782px) {
	.zp-sheet { grid-template-columns: repeat(min(var(--zp-sheet-cols), 3), minmax(0, 1fr)); }
}

.zp-sheet .wp-block-gallery,
.zp-sheet .wp-block-gallery.has-nested-images {
	display: grid !important;
	grid-template-columns: repeat(var(--zp-sheet-cols), minmax(0, 1fr));
	gap: var(--zp-sheet-gap) !important;
	max-width: 100%;
}
.zp-sheet .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
	width: auto !important;
	margin: 0 !important;
	flex: none;
}
.zp-sheet .wp-block-gallery figure.wp-block-image img {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	cursor: zoom-in;
	transition: opacity .25s ease;
}
.zp-sheet .wp-block-gallery figure.wp-block-image img:hover { opacity: .85; }
.zp-sheet .wp-block-gallery figcaption { display: none; }
.zp-sheet .wp-block-image img { cursor: zoom-in; }
@media (max-width: 782px) {
	.zp-sheet .wp-block-gallery,
	.zp-sheet .wp-block-gallery.has-nested-images { grid-template-columns: repeat(min(var(--zp-sheet-cols), 3), minmax(0, 1fr)); }
}

/* ---------- Lightbox ---------- */
.zp-lb {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(255, 255, 255, .97);
	opacity: 0;
	transition: opacity .3s ease;
	touch-action: pan-y;
}
.zp-lb.is-open { opacity: 1; }
.zp-lb__img {
	position: fixed;
	object-fit: contain;
	transform-origin: 0 0;
	transition: transform .45s var(--zp-ease), opacity .25s ease;
	will-change: transform;
	user-select: none;
}
.zp-lb__btn {
	position: fixed;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--zp-ink);
	opacity: .6;
	cursor: pointer;
	transition: opacity .2s ease;
}
.zp-lb__btn:hover,
.zp-lb__btn:focus-visible { opacity: 1; }
.zp-lb__close { top: 16px; right: 16px; }
.zp-lb__prev { left: 12px; top: 50%; margin-top: -26px; }
.zp-lb__next { right: 12px; top: 50%; margin-top: -26px; }
.zp-lb__count {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 20px;
	text-align: center;
	font-family: var(--zp-mono);
	font-size: 13px;
	color: var(--zp-muted);
}

/* ---------- Floating ideas: filter + grid ---------- */
.zp-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 4px;
	padding: 16px 0;
	margin-bottom: 48px;
}
.zp-filter__tag {
	padding: 10px 16px;
	border: 0;
	background: transparent;
	color: var(--zp-ink);
	font-family: var(--zp-mono);
	font-size: 28px;
	font-weight: 400;
	text-decoration-thickness: 3px;
	text-transform: capitalize;
	cursor: pointer;
	transition: color .2s ease, background .2s ease;
}
.zp-filter__tag:hover { background: rgba(30, 28, 26, .07); color: var(--zp-ink); }
.zp-filter__tag[aria-pressed="true"] { background: var(--zp-slate); color: #FFFFFF; }
.zp-filter__tag.is-off { color: var(--zp-accent); text-decoration: line-through; }
.zp-filter__clear {
	margin-left: auto;
	padding: 10px 12px;
	border: 0;
	background: none;
	font-family: var(--zp-mono);
	font-size: 14px;
	font-weight: 400;
	text-decoration: underline;
	text-decoration-color: var(--zp-accent);
	color: var(--zp-ink);
	cursor: pointer;
}
.zp-filter__status { margin-top: -24px; margin-bottom: 24px; font-family: var(--zp-mono); font-size: 14px; font-weight: 400; color: var(--zp-muted); }
.zp-filter__status:empty { display: none; }

.zp-ideas-query .zp-grid {
	display: grid !important;
	grid-template-columns: repeat(var(--zp-ideas-cols), minmax(0, 1fr));
	gap: 48px 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}
@media (max-width: 1100px) { .zp-ideas-query .zp-grid { grid-template-columns: repeat(min(var(--zp-ideas-cols), 4), minmax(0, 1fr)); } }
@media (max-width: 782px) { .zp-ideas-query .zp-grid { grid-template-columns: repeat(min(var(--zp-ideas-cols), 2), minmax(0, 1fr)); } }
@media (max-width: 560px)  { .zp-ideas-query .zp-grid { grid-template-columns: 1fr; } }
.zp-grid > .wp-block-post { display: flex; flex-direction: column; gap: 16px; margin: 0 !important; animation: zpIn .4s ease both; }
@keyframes zpIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.zp-card__img,
.zp-grid .wp-block-post-featured-image { margin: 0 !important; overflow: hidden; }
.zp-grid .wp-block-post-featured-image img,
.zp-card__img img,
.zp-noimg {
	display: block;
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	background: #CFCAC3;
	transition: filter .35s ease, opacity .35s ease, transform .3s ease;
}
.zp-grayscale .zp-grid .wp-block-post-featured-image img,
.zp-grayscale .zp-related .zp-card__img img { filter: grayscale(1); }
.zp-grid .wp-block-post:hover .wp-block-post-featured-image img,
.zp-related .zp-card:hover .zp-card__img img { filter: none; transform: translateY(-4px); }

.zp-card__title,
.zp-grid .wp-block-post-title {
	margin: 0 !important;
	font-family: var(--zp-sans) !important;
	font-size: 17px !important;
	font-weight: 400 !important;
	letter-spacing: 0 !important;
	line-height: 1.3 !important;
}
.zp-grid .wp-block-post-title a { text-decoration: none; }
.zp-grid .wp-block-post:hover .wp-block-post-title a,
.zp-card:hover .zp-card__title {
	text-decoration: underline;
	text-decoration-color: var(--zp-accent);
	text-decoration-thickness: 2px;
}
.zp-card__meta { gap: 6px 10px !important; font-family: var(--zp-mono); font-size: 13px; color: var(--zp-muted); }
.zp-card__meta .wp-block-post-date,
.zp-card__meta .wp-block-post-terms { margin: 0; font-size: 13px; }
.zp-card__meta .wp-block-post-date + .wp-block-post-terms::before { content: "· "; }
.zp-card__meta a { color: var(--zp-muted); text-decoration: none; }

/* Filter states (set by zoran.js) */
.zp-grid .is-match .wp-block-post-featured-image img { filter: none !important; }
.zp-grid .is-dim { color: var(--zp-muted); }
.zp-grid .is-dim .wp-block-post-featured-image img { filter: grayscale(1) brightness(1.25) contrast(.55) !important; opacity: .6; }
.zp-grid .zp-divider {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 24px 0 0 !important;
	font-family: var(--zp-mono);
	font-size: 14px;
	font-weight: 400;
	color: var(--zp-muted);
	list-style: none;
}

/* ---------- Single post ---------- */
.zp-post-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px; margin-top: 24px; }
.zp-article { flex: 999 1 560px; min-width: 0; max-width: 720px; }
.zp-article > .wp-block-post-title {
	margin: 0 0 24px;
	font-size: clamp(40px, 6vw, 80px);
	line-height: .95;
	letter-spacing: -.035em;
}
.zp-post-meta {
	margin-bottom: 48px !important;
	gap: 8px 24px !important;
	align-items: center;
	padding-bottom: 24px;
	font-family: var(--zp-mono);
	font-size: 14px;
}
.zp-post-meta > * { margin: 0 !important; }
.zp-post-meta .wp-block-post-date { color: var(--zp-ink); }
.zp-tags a,
.zp-chip {
	display: inline-block;
	margin-right: 6px;
	padding: 2px 8px;
	background: var(--zp-slate);
	color: #FFFFFF;
	font-family: var(--zp-mono);
	font-weight: 400;
	text-decoration: none;
}
.zp-tags .wp-block-post-terms__separator { display: none; }
.zp-readtime { color: var(--zp-muted); }
.zp-featured { margin: 48px 0 !important; }
.zp-featured img { width: 100%; height: auto; }
.zp-content { font-size: 19px; line-height: 1.65; }
.zp-content > p:first-child { font-size: 24px; line-height: 1.45; font-weight: 700; }
.zp-content h2 { font-size: 34px; margin-top: 1.4em; }
.zp-content .wp-block-image img,
.zp-content .wp-block-gallery img { }
.zp-content figcaption { font-family: var(--zp-mono); font-size: 13px; color: var(--zp-muted); text-align: left; }

.zp-prevnext { gap: 16px !important; margin-top: 96px; }
.zp-prevnext .wp-block-post-navigation-link {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 24px 0;
	color: var(--zp-ink);
	transition: color .2s ease;
}
.zp-prevnext .wp-block-post-navigation-link:empty { display: none; }
.zp-prevnext .wp-block-post-navigation-link a {
	color: inherit;
	text-decoration: none;
	font-size: 20px;
	font-weight: 900;
	letter-spacing: -.02em;
	line-height: 1.1;
}
.zp-prevnext .wp-block-post-navigation-link a::after { content: ""; position: absolute; inset: 0; }
.zp-prevnext .wp-block-post-navigation-link:hover { color: var(--zp-muted); }
.zp-prevnext__next { text-align: right; grid-column: 2; }
.zp-prevnext .post-navigation-link__label { font-family: var(--zp-mono); font-size: 13px; }

.zp-aside { flex: 0 1 300px; max-width: 300px; min-width: 0; margin-left: auto; display: flex; flex-direction: column; gap: 16px; padding-top: 16px; }
@media (max-width: 1000px) { .zp-aside { flex: 1 1 100%; max-width: none; margin-left: 0; } }
.zp-aside > * { margin: 0 !important; }
.zp-aside__title { font-size: 20px; }
.zp-aside__sub { margin-top: -8px !important; font-size: 12px !important; padding-bottom: 14px; font-family: var(--zp-mono); font-size: 13px; color: var(--zp-muted); }
.zp-related { display: flex; flex-direction: column; gap: 14px; }
.zp-related .zp-card {
	display: flex;
	flex-direction: column;
	gap: 7px;
	padding-bottom: 14px;
	text-decoration: none;
	color: var(--zp-ink);
}
.zp-related .zp-card__img img,
.zp-related .zp-noimg { aspect-ratio: 3 / 2; }
.zp-related .zp-card__title { font-size: 14px !important; }
.zp-related .zp-card__meta { font-size: 12px; }
.zp-aside .zp-more { font-size: 13px; }
/* Latest 5 posts: titles and their tag, no images, no dividers */
.zp-latest { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.zp-latest__item a { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 0; color: var(--zp-ink); text-decoration: none; }
.zp-latest__title { font-family: var(--zp-sans); font-size: 15px; line-height: 1.35; }
.zp-latest__item a:hover .zp-latest__title { text-decoration: underline; text-decoration-color: var(--zp-accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.zp-latest .zp-chip { margin: 0; font-size: 12px; padding: 1px 6px; }
.zp-related .zp-card__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.zp-empty { font-family: var(--zp-mono); color: var(--zp-muted); }

/* ---------- About me ---------- */
.zp-about__title { margin-top: 24px !important; margin-bottom: 48px !important; }
.zp-about__content { font-size: 19px; line-height: 1.65; }
.zp-about__content .wp-block-columns { gap: 48px; align-items: flex-start; }

/* Keep the about text on the same left line as the title and the contact box,
   whatever block holds it (Media & Text, Columns or a padded Group). */
.zp-about__content > .wp-block-group,
.zp-about__content > .wp-block-columns,
.zp-about__content > .wp-block-media-text {
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	max-width: none !important;
}
.zp-about__content .wp-block-media-text { align-items: start; column-gap: 48px; }
.zp-about__content .wp-block-media-text__content { padding: 0 !important; }
.zp-about__content .wp-block-media-text__content > :first-child { margin-top: 0; }
.zp-about__content .wp-block-media-text__media img { width: 100%; height: auto; }
.zp-about__content .wp-block-column > :first-child { margin-top: 0; }
@media (max-width: 600px) {
	.zp-about__content .wp-block-media-text.is-stacked-on-mobile { row-gap: 32px; }
}
.zp-about__content h2 {
	font-size: clamp(28px, 3.4vw, 44px);
	line-height: 1.05;
	letter-spacing: -.025em;
}
.zp-about__content h2 + p em,
.zp-about__content h2 + p:has(> em:only-child) { font-family: var(--zp-mono); font-size: 18px; }
.zp-about__content figure img,
.zp-about__content .wp-block-image img { width: 100%; height: auto; transition: filter .4s ease; }
.zp-grayscale .zp-about__content figure img { filter: grayscale(1); }
.zp-about__content figure img:hover { filter: none; }

.zp-contact {
	gap: 6px !important;
	margin-top: 96px !important;
	padding: clamp(24px, 4vw, 48px) !important;
}
.zp-contact > * { margin: 0 !important; }
.zp-contact__title {
	margin-bottom: 24px !important;
	font-size: clamp(36px, 5vw, 60px);
	letter-spacing: -.035em;
	line-height: 1;
}
.zp-contact__link { font-size: clamp(18px, 1.8vw, 24px); font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.zp-contact__link a {
	display: inline-block;
	margin: 0 -8px;
	padding: 4px 8px;
	color: inherit;
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
	transition: background .25s ease;
}
.zp-contact__link a:hover { background: rgba(255, 255, 255, .14); }
.zp-socials { margin-top: 24px !important; gap: 8px 24px !important; }
.zp-socials .wp-social-link { background: none !important; color: #FFFFFF !important; }
.zp-socials .wp-social-link a { padding: 0 !important; font-family: var(--zp-mono); font-size: 15px; font-weight: 400; text-decoration: underline; }
.zp-socials .wp-social-link svg { display: none; }
.zp-socials .wp-block-social-link-label { margin: 0 !important; }

/* ---------- Respect "reduce motion" ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
.zp-socials:not(:has(li)) { display: none; }

/* ---------- Post gallery: mosaic on laptop, swipe carousel on phone,
   full-screen carousel on click (zoran.js). Only inside posts. ---------- */
.zp-content .wp-block-gallery.has-nested-images {
	display: grid !important;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	grid-auto-rows: 84px;
	grid-auto-flow: dense;
	gap: 6px !important;
	margin: 48px 0 !important;
}
.zp-content .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
	width: auto !important;
	height: 100%;
	margin: 0 !important;
	grid-column: span 2;
	grid-row: span 2;
}
/* Pattern repeats every 7 photos: big + two side, three squares, one wide */
.zp-content .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image):nth-child(7n+1) { grid-column: span 4; grid-row: span 3; }
.zp-content .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image):nth-child(7n+2) { grid-column: span 2; grid-row: span 2; }
.zp-content .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image):nth-child(7n+3) { grid-column: span 2; grid-row: span 1; }
.zp-content .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image):nth-child(7n+0) { grid-column: span 6; grid-row: span 3; }
/* A single photo, or the last one alone on its row, gets the full width */
.zp-content .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image):only-of-type { grid-column: span 6; grid-row: span 4; }
.zp-content .wp-block-gallery figure.wp-block-image img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	cursor: zoom-in;
	transition: opacity .25s ease;
}
.zp-content .wp-block-gallery figure.wp-block-image img:hover { opacity: .85; }
.zp-content .wp-block-gallery figure.wp-block-image figcaption { display: none !important; }
.zp-content .wp-block-gallery > .blocks-gallery-caption { display: none; }
.zp-gal-foot {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	margin: -32px 0 48px;
	font-family: var(--zp-mono);
	font-size: 13px;
	color: var(--zp-muted);
}
.zp-gal-foot__all {
	flex: none;
	padding: 0;
	border: 0;
	background: none;
	font-family: var(--zp-mono);
	font-size: 13px;
	font-weight: 400;
	color: var(--zp-ink);
	text-decoration: underline;
	text-decoration-color: var(--zp-accent);
	text-decoration-thickness: 3px;
	text-underline-offset: 5px;
	cursor: pointer;
}
@media (max-width: 600px) {
	.zp-content .wp-block-gallery.has-nested-images {
		display: flex !important;
		flex-wrap: nowrap !important;
		gap: 8px !important;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		margin-left: -20px !important;
		margin-right: -20px !important;
		padding: 0 20px;
		scrollbar-width: none;
	}
	.zp-content .wp-block-gallery::-webkit-scrollbar { display: none; }
	.zp-content .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
		flex: 0 0 82% !important;
		grid-column: auto !important;
		grid-row: auto !important;
		height: auto;
		aspect-ratio: 3 / 2;
		scroll-snap-align: center;
	}
}

/* Full-screen carousel */
.zp-car {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	background: rgba(255, 255, 255, .98);
	opacity: 0;
	transition: opacity .3s ease;
}
.zp-car.is-open { opacity: 1; }
.zp-car__top { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; font-family: var(--zp-mono); font-size: 13px; color: var(--zp-muted); }
.zp-car__stage { position: relative; flex: 1; min-height: 0; overflow: hidden; touch-action: pan-y; }
.zp-car__track { display: flex; height: 100%; transition: transform .5s var(--zp-ease); will-change: transform; }
.zp-car__slide { flex: 0 0 100%; height: 100%; box-sizing: border-box; padding: 0 72px; display: flex; align-items: center; justify-content: center; opacity: .25; transition: opacity .4s ease; }
.zp-car__slide.is-current { opacity: 1; }
.zp-car__slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; }
.zp-car__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--zp-ink);
	opacity: .6;
	cursor: pointer;
	transition: opacity .2s ease;
}
.zp-car__btn:hover, .zp-car__btn:focus-visible { opacity: 1; }
.zp-car__prev, .zp-car__next { position: absolute; top: 50%; margin-top: -26px; z-index: 2; }
.zp-car__prev { left: 12px; }
.zp-car__next { right: 12px; }
.zp-car__caption { min-height: 1.5em; margin: 12px 20px 0; text-align: center; font-family: var(--zp-mono); font-size: 13px; color: var(--zp-muted); }
.zp-car__thumbs { display: flex; justify-content: center; gap: 6px; padding: 14px 20px 22px; overflow-x: auto; }
.zp-car__thumb { flex: none; width: 64px; height: 42px; padding: 0; border: 0; background: none; opacity: .5; outline: 2px solid transparent; outline-offset: 2px; cursor: pointer; }
.zp-car__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zp-car__thumb.is-current { opacity: 1; outline-color: var(--zp-ink); }
@media (max-width: 600px) {
	.zp-car__slide { padding: 0 12px; }
	.zp-car__prev, .zp-car__next { display: none; }
	.zp-car__thumbs { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .zp-car__track, .zp-car__slide, .zp-car { transition: none; } }

/* ---------- Home: the "&" moves gently every 6.4 seconds ---------- */
.zp-headline .zp-amp { display: inline-block; transform-origin: 50% 85%; animation: zpAmp 6.4s cubic-bezier(.45, 0, .25, 1) infinite; }
@keyframes zpAmp {
	0%, 12%, 100% { transform: rotate(0deg) translateY(0); }
	4% { transform: rotate(-5deg) translateY(-3%); }
	8% { transform: rotate(2deg) translateY(0); }
}

/* ---------- Home: tag index ---------- */
.zp-index { column-count: 2; column-gap: 48px; margin-top: 48px; }
.zp-index__group { break-inside: avoid; margin: 0 0 48px; }
.zp-index__head {
	margin: 0 0 16px !important;
	font-family: var(--zp-mono) !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	letter-spacing: .08em !important;
	line-height: 1.3 !important;
	text-transform: uppercase;
}
.zp-index ul { list-style: disc; margin: 0; padding: 0 0 0 24px; display: flex; flex-direction: column; gap: 24px; }
.zp-index li::marker { color: var(--zp-ink); font-size: 14px; }
.zp-index__row { display: flex; align-items: baseline; gap: 6px; color: var(--zp-ink); text-decoration: none; }
.zp-index__title {
	flex: 0 1 auto;
	font-family: var(--zp-sans);
	font-size: 16px;
	line-height: 1.35;
	transition: color .2s ease;
}
.zp-index__lead { flex: 1 1 24px; min-width: 24px; border-bottom: 1px dotted var(--zp-accent); transform: translateY(-4px); }
.zp-index__meta { flex: none; font-family: var(--zp-mono); font-size: 13px; letter-spacing: .06em; color: var(--zp-muted); text-transform: uppercase; }
.zp-index__row:hover .zp-index__title { color: var(--zp-muted); }
.zp-index-more { margin-top: 8px !important; }
@media (max-width: 600px) { .zp-index { column-count: 1; } }

/* ---------- Tile → full-screen transition (zoran.js) ---------- */
.zp-tr {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #FFFFFF;
	font-family: var(--zp-sans);
	pointer-events: none;
	transition: clip-path .6s cubic-bezier(.7, 0, .2, 1), opacity .4s ease;
}
.zp-tr__title {
	font-size: clamp(40px, 8vw, 110px);
	font-weight: 900;
	letter-spacing: -.04em;
	line-height: 1;
	opacity: 0;
	transform: scale(.6);
	transition: opacity .35s ease .25s, transform .6s cubic-bezier(.7, 0, .2, 1);
}
.zp-tr.is-full .zp-tr__title { opacity: 1; transform: none; }

/* Arriving page: covered in the tile colour from the very first paint
   (class set by a tiny script in <head>), then dissolves. */
html.zp-arriving::before,
html.zp-arriving::after {
	position: fixed;
	z-index: 100001;
	pointer-events: none;
	transition: opacity .7s ease;
}
html.zp-arriving::before { content: ""; inset: 0; background: var(--zp-arrive-bg, #4A4643); }
html.zp-arriving::after {
	content: attr(data-zp-title);
	left: 0;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	text-align: center;
	color: #FFFFFF;
	font-family: var(--zp-sans);
	font-size: clamp(40px, 8vw, 110px);
	font-weight: 900;
	letter-spacing: -.04em;
	line-height: 1;
}
html.zp-arrived::before,
html.zp-arrived::after { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
	.zp-headline .zp-amp { animation: none; }
	.zp-tr { display: none; }
}

/* Home has no footer: keep breathing room under the index */
.zp-home { padding-bottom: 96px; }

/* ---------- About me: the italic line under the heading swipes in once on load,
   like the tile subtitles on the home page ---------- */
.zp-about__content h2 + p:has(> em:only-child) { animation: zpSwipe .7s var(--zp-ease) .3s both; }
@media (prefers-reduced-motion: reduce) { .zp-about__content h2 + p:has(> em:only-child) { animation: none; } }
