/* Taha Bader – White Cube
   Quiet gallery layout. The wall colour follows the painting. */

:root {
	--tb-gutter: clamp(20px, 4vw, 56px);
	--tb-quiet: var(--wp--preset--color--quiet, #3F4A4C);
	--tb-line: var(--wp--preset--color--line, #AEB9BB);
	--tb-shadow: 0 18px 40px rgba(47, 10, 64, 0.14);
	--tb-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Walls ---------- */
body.tb-wall-linen {
	background-color: var(--wp--preset--color--linen, #F0EBE2);
	--tb-quiet: var(--wp--preset--color--quiet-warm, #5E5648);
	--tb-line: #CFC6B5;
}
body.tb-wall-sage {
	background-color: var(--wp--preset--color--sage, #D5DCDD);
}

/* ---------- Page frame ---------- */
.wp-site-blocks {
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
}
.wp-site-blocks > * { margin-block-start: 0; }
.wp-site-blocks > main,
.wp-site-blocks > .tb-main { flex: 1 0 auto; }

.tb-main {
	padding: 24px var(--tb-gutter) 96px;
	box-sizing: border-box;
	width: 100%;
	max-width: 1760px;
	margin-inline: auto;
}

/* ---------- Links ---------- */
a { color: inherit; text-underline-offset: 5px; }
a:hover { color: #4A1F5E; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.tb-more a,
.tb-enquiry a,
.tb-page-content p a,
.tb-lead a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

/* ---------- Header ---------- */
header.wp-block-template-part { margin: 0; }
.tb-header {
	padding: 24px var(--tb-gutter);
	max-width: 1760px;
	margin-inline: auto;
	box-sizing: border-box;
	width: 100%;
	gap: 16px 32px;
}
.tb-header .wp-block-site-title { margin: 0; letter-spacing: 0.01em; }
.tb-header .wp-block-site-title a { display: inline-block; padding: 12px 0; text-decoration: none; }
.tb-nav { font-size: 18px; gap: 8px 36px; }
.tb-nav .wp-block-navigation-item__content { padding: 12px 0; }
.tb-nav .current-menu-item > a,
.tb-nav .wp-block-navigation-item__content[aria-current="page"] {
	text-decoration: underline;
	text-decoration-thickness: 1px;
}
.tb-nav .wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--wall, #E6EBEA);
	padding: 24px var(--tb-gutter);
}
.tb-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 20px;
	font-size: 22px;
}
.tb-nav .wp-block-navigation__responsive-container-open,
.tb-nav .wp-block-navigation__responsive-container-close {
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
}

/* ---------- Footer ---------- */
footer.wp-block-template-part { margin: 0; }
.tb-footer {
	padding: 32px var(--tb-gutter) 40px;
	max-width: 1760px;
	margin-inline: auto;
	box-sizing: border-box;
	width: 100%;
	font-size: 15px;
	color: var(--tb-quiet);
	gap: 8px 24px;
}
.tb-footer p { margin: 0; }
.tb-footer-links a { margin-left: 20px; text-decoration: none; display: inline-block; padding: 10px 0; }
.tb-footer-links a:first-child { margin-left: 0; }
.tb-footer a { color: var(--tb-quiet); }

/* ---------- Small text pieces ---------- */
.tb-kicker,
.tb-year,
.tb-back,
.tb-notice,
.tb-series-link,
.tb-filter { color: var(--tb-quiet); }
.tb-kicker { font-size: 15px; margin: 0; }
.tb-lead { font-size: 22px; line-height: 1.45; margin: 0; }
.tb-back { margin: 0 0 4px; }
.tb-back a,
.tb-filter a,
.tb-notice a,
.tb-series-link a { color: var(--tb-quiet); text-decoration: none; display: inline-block; padding: 8px 0; }

/* ---------- Start page ---------- */
.tb-home {
	display: grid;
	grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
	gap: 40px 72px;
	align-items: center;
	min-height: calc(100vh - 200px);
}
.tb-intro > * + * { margin-top: 16px; }
.tb-notice { font-size: 16px; margin-top: 40px !important; }

.tb-selection { margin: 0; }
.tb-slides { list-style: none; margin: 0; padding: 0; }
.tb-slides > li { margin: 0; }
.tb-selection .wp-block-post-featured-image {
	margin: 0;
	display: flex;
	justify-content: center;
}
.tb-selection .wp-block-post-featured-image a { display: inline-block; }
.tb-selection .wp-block-post-featured-image img {
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: calc(100vh - 230px);
	object-fit: contain;
	box-shadow: var(--tb-shadow);
}
.tb-js .tb-slides { display: grid; }
.tb-js .tb-slides > li {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.7s var(--tb-ease), visibility 0s linear 0.7s;
}
.tb-js .tb-slides > li.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.7s var(--tb-ease), visibility 0s;
}
.tb-slider-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	margin-top: 8px;
	font-size: 16px;
	color: var(--tb-quiet);
	font-variant-numeric: tabular-nums;
}
.tb-slider-controls button {
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--ink, #2F0A40);
	font: inherit;
	font-size: 18px;
	cursor: pointer;
	border-radius: 50%;
	transition: transform 0.3s var(--tb-ease);
}
.tb-slider-controls button:hover { transform: translateX(var(--tb-nudge, 0)); }
.tb-slider-controls .tb-prev { --tb-nudge: -3px; }
.tb-slider-controls .tb-next { --tb-nudge: 3px; }

/* ---------- Captions under paintings ---------- */
.tb-caption {
	margin-top: 14px !important;
	gap: 0 6px;
	font-size: 17px;
	align-items: baseline;
}
.tb-caption .wp-block-post-title { font-size: 17px; font-weight: 500; margin: 0; }
.tb-caption .wp-block-post-title::after { content: ","; }
.tb-caption .wp-block-post-title a { text-decoration: none; }
.tb-caption .tb-year { margin: 0; font-size: 17px; }
.tb-selection .tb-caption { justify-content: center; }
.tb-grid .wp-block-post-featured-image img,
.tb-series-grid .wp-block-image img { max-height: 82vh; object-fit: contain; object-position: left bottom; }

/* ---------- Heads of list pages ---------- */
.tb-head {
	margin: 8px 0 56px;
	gap: 16px 48px;
	align-items: flex-start;
}
.tb-head h1,
.tb-head .wp-block-query-title,
.tb-page-title {
	font-size: 18px;
	font-weight: 500;
	margin: 0;
}
.tb-series-text { max-width: 520px; margin: 0; color: var(--tb-quiet); }
.tb-series-text p { margin: 0; }
.tb-filter { margin: 0; }
.tb-filter a { margin-left: 24px; }
.tb-filter a:first-child { margin-left: 0; }
.tb-filter a[aria-current="page"],
.tb-filter-mehrfarbig .tb-filter a[href*="mehrfarbig"],
.tb-filter-einfarbig .tb-filter a[href*="einfarbig"] {
	color: var(--wp--preset--color--ink, #2F0A40);
	text-decoration: underline;
}

/* ---------- Grids of paintings ---------- */
.tb-grid.is-layout-grid,
.tb-series-grid.is-layout-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 88px 96px;
	align-items: end;
	list-style: none;
	padding: 0;
	margin: 0;
}
.tb-grid > li { margin: 0; }
.tb-grid .wp-block-post-featured-image,
.tb-series-grid .wp-block-image { margin: 0; }
.tb-grid .wp-block-post-featured-image img,
.tb-series-grid .wp-block-image img {
	width: 100%;
	height: auto;
	display: block;
}
.tb-series-grid .wp-block-image figcaption {
	margin-top: 16px;
	font-size: 17px;
	line-height: 1.5;
	text-align: left;
	color: var(--tb-quiet);
}
.tb-series-grid .wp-block-image figcaption strong { color: var(--wp--preset--color--ink, #2F0A40); font-weight: 500; }

@media (max-width: 800px) {
	.tb-grid.is-layout-grid,
	.tb-series-grid.is-layout-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
}
@media (max-width: 600px) {
	.tb-grid.is-layout-grid,
	.tb-series-grid.is-layout-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}

/* ---------- A single painting ---------- */
.tb-work-cols { gap: 40px 80px; min-height: calc(100vh - 260px); margin: 0; }
.tb-work-image .wp-block-post-featured-image { margin: 0; display: flex; justify-content: center; }
.tb-work-image .wp-block-post-featured-image img {
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: calc(100vh - 170px);
	object-fit: contain;
	box-shadow: var(--tb-shadow);
	view-transition-name: tb-art;
}
.tb-work-info { font-size: 18px; line-height: 1.6; }
.tb-work-info > * { margin-top: 0; margin-bottom: 0; }
.tb-work-info .wp-block-post-title { font-size: 32px; line-height: 1.2; margin-top: 2px; }
.tb-work-info .tb-year { margin-bottom: 24px; }
.tb-details { color: var(--tb-quiet); }
.tb-details p { margin: 0; }
.tb-enquiry { margin-top: 24px !important; }
.tb-enquiry a { display: inline-block; padding: 10px 0; }
.tb-work-nav {
	margin-top: 24px !important;
	padding-top: 20px;
	border-top: 1px solid var(--tb-line);
	gap: 8px 28px;
}
.tb-work-nav a,
.tb-work-nav .post-navigation-link-previous a,
.tb-work-nav .post-navigation-link-next a {
	color: var(--tb-quiet);
	text-decoration: none;
	display: inline-block;
	padding: 10px 0;
}

/* ---------- Text pages: Über, Ausstellungen, Kontakt ---------- */
.tb-page .tb-page-title { margin: 8px 0 56px; }
.tb-page-content { max-width: 1100px; }
.tb-page-content > p,
.tb-page-content > .wp-block-heading { max-width: 720px; }
.tb-page-content .wp-block-heading { font-size: 18px; font-weight: 500; margin: 48px 0 12px; }
.tb-page-content .wp-block-heading:first-child { margin-top: 0; }

.tb-about { gap: 40px 96px; }
.tb-about-photo img { box-shadow: var(--tb-shadow); }
.tb-about-photo figcaption { text-align: left; margin-top: 12px; }
.tb-about-text { max-width: 700px; }
.tb-about-text .wp-block-heading { font-size: 18px; margin: 40px 0 12px; }
.tb-about-text .wp-block-heading:first-child { margin-top: 0; }
.tb-about-text p { margin: 0 0 16px; }

.tb-list-label { color: var(--tb-quiet); }
.tb-table { margin: 0 0 8px; }
.tb-table table { border-collapse: collapse; width: 100%; max-width: 1040px; }
.tb-table td {
	border: 0;
	border-top: 1px solid var(--tb-line);
	padding: 18px 0;
	vertical-align: top;
	line-height: 1.55;
}
.tb-table td:first-child {
	width: 240px;
	padding-right: 32px;
	color: var(--tb-quiet);
	font-variant-numeric: tabular-nums;
}
.tb-table td strong { font-weight: 500; }
.tb-table.wp-block-table thead,
.tb-table.wp-block-table tfoot { border: 0; }

.tb-contact { gap: 40px 96px; max-width: 900px; }
.tb-contact p { margin: 0 0 12px; }
.tb-contact .tb-lead { margin-bottom: 16px; }

.tb-404 h1 { font-size: 32px; margin: 8px 0 24px; }

/* ---------- Phones ---------- */
@media (max-width: 860px) {
	.tb-home {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
	}
	.tb-intro { order: 2; }
	.tb-selection { order: 1; }
	.tb-selection .wp-block-post-featured-image img { max-height: 70vh; }
	.tb-notice { margin-top: 24px !important; }
	.tb-work-cols { min-height: 0; }
	.tb-work-info { flex-basis: auto !important; }
	.tb-table td:first-child { width: 120px; padding-right: 16px; }
}

/* ---------- Gentle motion ---------- */
@media (prefers-reduced-motion: no-preference) {
	@view-transition { navigation: auto; }
	::view-transition-old(root),
	::view-transition-new(root) { animation-duration: 0.35s; }
	::view-transition-group(tb-art) {
		animation-duration: 0.55s;
		animation-timing-function: var(--tb-ease);
	}

	body { transition: background-color 0.6s var(--tb-ease); }

	.tb-js .tb-reveal {
		opacity: 0;
		transform: translateY(14px);
		transition:
			opacity 0.9s var(--tb-ease) var(--tb-delay, 0ms),
			transform 0.9s var(--tb-ease) var(--tb-delay, 0ms);
	}
	.tb-js .tb-reveal.is-in,
	.tb-motion-fallback .tb-reveal { opacity: 1; transform: none; }

	.tb-art img,
	.tb-grid .wp-block-post-featured-image img {
		transition: transform 0.8s var(--tb-ease), box-shadow 0.8s var(--tb-ease);
	}
	.tb-art a:hover img,
	.tb-grid .wp-block-post-featured-image a:hover img {
		transform: translateY(-4px);
		box-shadow: 0 24px 48px rgba(47, 10, 64, 0.16);
	}

	/* a fine line draws itself under links on hover */
	.tb-nav .wp-block-navigation-item__content,
	.tb-caption a,
	.tb-back a,
	.tb-filter a,
	.tb-notice a,
	.tb-series-link a,
	.tb-work-nav a,
	.tb-footer a {
		background-image: linear-gradient(currentColor, currentColor);
		background-repeat: no-repeat;
		background-position: 0 calc(100% - 9px);
		background-size: 0 1px;
		transition: background-size 0.4s var(--tb-ease), color 0.3s;
	}
	.tb-caption a { background-position: 0 100%; }
	.tb-nav .wp-block-navigation-item__content:hover,
	.tb-caption a:hover,
	.tb-back a:hover,
	.tb-filter a:hover,
	.tb-notice a:hover,
	.tb-series-link a:hover,
	.tb-work-nav a:hover,
	.tb-footer a:hover { background-size: 100% 1px; }
}

/* ---------- Small fixes ---------- */
.tb-werke .tb-page-content { max-width: none; }
.tb-work-nav > :empty { display: none; }

/* ---------- Werke: filter by series and by colour ---------- */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.tb-filters {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 8px 0 64px;
}
.tb-filters .tb-filter { margin: 0; display: flex; flex-wrap: wrap; gap: 0 28px; font-size: 18px; }
.tb-filters .tb-filter a { margin: 0; }
.tb-filters .tb-filter-colour { font-size: 16px; }
.tb-filters .tb-filter a[aria-current] {
	color: var(--wp--preset--color--ink, #2F0A40);
	text-decoration: underline;
	text-decoration-thickness: 1px;
}
.tb-werke .tb-grid > li.is-hidden { display: none; }
.tb-filter-empty { color: var(--tb-quiet); margin: 0 0 48px; }
@media (prefers-reduced-motion: no-preference) {
	.tb-werke .tb-grid > li.is-shown { animation: tb-fade-in 0.6s var(--tb-ease) both; }
	@keyframes tb-fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

/* ---------- Bigger arrows for the start-page selection ---------- */
.tb-slider-controls { gap: 12px; margin-top: 20px; font-size: 18px; }
.tb-slider-controls button {
	width: 60px;
	height: 60px;
	font-size: 28px;
	line-height: 1;
	border: 1px solid var(--tb-line);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s var(--tb-ease), background-color 0.3s, border-color 0.3s;
}
.tb-slider-controls button:hover {
	background-color: rgba(47, 10, 64, 0.06);
	border-color: var(--wp--preset--color--ink, #2F0A40);
}

/* ---------- Start page: latest exhibitions ---------- */
.tb-shows > * + * { margin-top: 32px !important; }
.tb-shows > .tb-kicker + * { margin-top: 16px !important; }
.tb-shows .tb-kicker { font-size: 15px; letter-spacing: 0.02em; }
.tb-show { margin: 0; font-size: 18px; line-height: 1.45; color: var(--tb-quiet); }
.tb-show strong { display: inline-block; margin: 2px 0; font-size: 22px; font-weight: 500; line-height: 1.25; color: var(--wp--preset--color--ink, #2F0A40); }
.tb-show-when { font-size: 15px; }
.tb-shows .tb-more { margin-top: 40px !important; }
.tb-intro .tb-show-now { margin-top: 56px !important; padding-top: 24px; border-top: 1px solid var(--tb-line); }
.tb-show-now strong { font-size: 20px; }

.tb-show-now a { text-decoration: none; }
.tb-show-now a:hover strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

/* ---------- Paintings always in full format, never cropped ---------- */
.wp-block-post-featured-image img { object-fit: contain !important; }
.tb-grid .wp-block-post-featured-image img,
.tb-series-grid .wp-block-image img {
	width: auto !important;
	max-width: 100%;
	height: auto !important;
	max-height: 82vh;
}
.tb-grid .wp-block-post-featured-image a { display: inline-block; max-width: 100%; }

/* ---------- Sold works are marked in the gallery ---------- */
.tag-verkauft .tb-caption::before {
	content: "";
	order: 3;
	width: 9px;
	height: 9px;
	margin-left: 10px;
	border-radius: 50%;
	background-color: #C62828;
	align-self: center;
}
.tag-verkauft .tb-caption::after {
	content: "verkauft";
	order: 4;
	color: var(--tb-quiet);
	font-size: 17px;
}

/* ---------- No share or like buttons ---------- */
div.sharedaddy, #jp-post-flair, .jp-relatedposts { display: none !important; }

/* ---------- Three paintings per row on large screens ---------- */
@media (min-width: 1500px) {
	body .tb-main .tb-grid.is-layout-grid,
	body .tb-main .tb-series-grid.is-layout-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 80px 72px;
	}
	.tb-grid .wp-block-post-featured-image img { max-height: 70vh; }
}

/* ---------- Filters stay at the top while scrolling ---------- */
.tb-werke .tb-filters {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 20;
	background-color: var(--wp--preset--color--wall, #E6EBEA);
	margin-left: calc(-1 * var(--tb-gutter));
	margin-right: calc(-1 * var(--tb-gutter));
	padding: 14px var(--tb-gutter) 16px;
	border-bottom: 1px solid var(--tb-line);
}
@media (max-width: 600px) {
	.tb-werke .tb-filters { top: 0; }
	.tb-filters .tb-filter { font-size: 16px; gap: 0 18px; }
}

/* ---------- Contact form ---------- */
.tb-enquiry-form { max-width: 640px; margin-top: 72px; scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + 24px); }
.tb-enquiry-form .tb-list-label { margin: 0 0 8px; }
.tb-form-about { margin: 0 0 24px; font-size: 18px; color: var(--wp--preset--color--ink, #2F0A40); }
.tb-enquiry-form .wp-block-jetpack-contact-form { gap: 20px; }
.tb-enquiry-form label.grunion-field-label { font-size: 15px; font-weight: 400; color: var(--tb-quiet, #3F4A4C); margin-bottom: 6px; }
.tb-enquiry-form label .required,
.tb-enquiry-form label .grunion-label-required { font-weight: 400; opacity: 0.8; }
.tb-enquiry-form input.grunion-field,
.tb-enquiry-form textarea.grunion-field {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--tb-line, #AEB9BB);
  border-radius: 0;
  padding: 12px 14px;
  font: inherit;
  font-size: 18px;
  color: var(--wp--preset--color--ink, #2F0A40);
  transition: border-color 0.3s, background-color 0.3s;
}
.tb-enquiry-form textarea.grunion-field { min-height: 200px; line-height: 1.55; }
.tb-enquiry-form input.grunion-field:focus,
.tb-enquiry-form textarea.grunion-field:focus {
  outline: 2px solid var(--wp--preset--color--ink, #2F0A40);
  outline-offset: 2px;
  border-color: var(--wp--preset--color--ink, #2F0A40);
  background: #fff;
}
.tb-enquiry-form .wp-block-button__link {
  background: var(--wp--preset--color--ink, #2F0A40);
  color: #fff;
  border: 0;
  border-radius: 0;
  padding: 14px 28px;
  font: inherit;
  font-size: 17px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.tb-enquiry-form .wp-block-button__link:hover { background: #4A1F5E; }
.tb-form-note { font-size: 14px; color: var(--tb-quiet, #3F4A4C); margin-top: 16px; }
.tb-form-note a { text-decoration: underline; }

/* ---------- Zoom into the painting on hover (Werke) ---------- */
@media (hover: hover) {
	.tb-grid .wp-block-post-featured-image a { overflow: hidden; cursor: zoom-in; box-shadow: var(--tb-shadow); }
	.tb-grid .wp-block-post-featured-image img {
		transform-origin: var(--tb-zx, 50%) var(--tb-zy, 50%);
		transition: transform 0.5s var(--tb-ease) !important;
		box-shadow: none !important;
	}
	.tb-grid .wp-block-post-featured-image a:hover img { transform: scale(1.6) !important; }
}

/* ---------- Enquiry link: quiet hint that it leads to the contact form ---------- */
.tb-enquiry a::after {
	content: "→";
	display: inline-block;
	margin-left: 6px;
	transition: transform 0.3s;
}
.tb-enquiry a:hover::after { transform: translateX(4px); }
.tb-enquiry::after {
	content: "Weiter zum Kontaktformular";
	display: block;
	font-size: 14px;
	color: var(--tb-quiet);
}

/* ---------- Logo next to the name ---------- */
.tb-brand { gap: 12px; align-items: center; }
.tb-brand .wp-block-site-logo { margin: 0; line-height: 0; }
.tb-brand .wp-block-site-logo img { width: 34px; height: auto; }

/* ---------- Zoom on the single painting page ---------- */
@media (hover: hover) {
	.tb-work-image .wp-block-post-featured-image { overflow: hidden; cursor: zoom-in; width: fit-content; max-width: 100%; margin-inline: auto; box-shadow: var(--tb-shadow); }
	.tb-work-image .wp-block-post-featured-image img {
		display: block;
		box-shadow: none !important;
		transform-origin: var(--tb-zx, 50%) var(--tb-zy, 50%);
		transition: transform 0.5s var(--tb-ease);
	}
	.tb-work-image .wp-block-post-featured-image:hover img { transform: scale(2); }
}

/* ---------- Press list ---------- */
.tb-press td a { text-decoration: none; }
.tb-press td a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

/* ---------- Micro-animations ---------- */
@media (prefers-reduced-motion: no-preference) {
	/* 1. Paintings are unveiled like a curtain rising */
	.tb-js .tb-unveil { clip-path: inset(100% 0 0 0); }
	.tb-js .tb-unveil img { transform: scale(1.08); transition: transform 1.4s var(--tb-ease); }
	.tb-js .tb-unveil.is-in {
		clip-path: inset(0 0 0 0);
		transition: clip-path 1.1s var(--tb-ease) var(--tb-delay, 0ms);
	}
	.tb-js .tb-unveil.is-in img { transform: none; }
	.tb-motion-fallback .tb-unveil { clip-path: none; }

	/* 2. Header arrives gently on the first page view */
	.tb-js .tb-header > * { animation: tb-drop 0.9s var(--tb-ease) backwards; }
	.tb-js .tb-header > *:nth-child(2) { animation-delay: 0.12s; }
	.tb-js .tb-brand .wp-block-site-logo { animation: tb-sign 1.2s var(--tb-ease) backwards 0.1s; }
	@keyframes tb-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
	@keyframes tb-sign { from { opacity: 0; transform: rotate(-14deg) scale(0.85); } to { opacity: 1; transform: none; } }

	/* 3. Start page: the next work fades in with a slow settle */
	.tb-js .tb-slides > li .wp-block-post-featured-image img { transition: transform 1.6s var(--tb-ease), opacity 0.7s; }
	.tb-js .tb-slides > li:not(.is-active) .wp-block-post-featured-image img { transform: scale(1.04); }
	.tb-js .tb-slides > li .tb-caption { transition: transform 0.8s var(--tb-ease) 0.15s, opacity 0.8s 0.15s; }
	.tb-js .tb-slides > li:not(.is-active) .tb-caption { opacity: 0; transform: translateY(8px); }

	/* 4. Sold dot appears with a soft pop once the painting is unveiled */
	.tb-js .tag-verkauft .tb-unveil + .tb-caption::before { transform: scale(0); }
	.tb-js .tag-verkauft .tb-unveil.is-in + .tb-caption::before { animation: tb-pop 0.6s var(--tb-ease) both 0.8s; }
	.tb-motion-fallback .tag-verkauft .tb-caption::before { transform: none; }
	@keyframes tb-pop { from { transform: scale(0); } 60% { transform: scale(1.3); } to { transform: scale(1); } }
}

/* ---------- Start page: wider text column, arrows beside the painting ---------- */
body .tb-home {
	grid-template-columns: minmax(320px, 520px) minmax(0, 1fr);
	gap: 48px 96px;
}
.tb-home .tb-intro .tb-lead { font-size: 24px; line-height: 1.45; }
.tb-home .tb-intro .tb-show-now { max-width: 520px; }
.tb-home .tb-selection {
	display: grid;
	grid-template-columns: auto auto auto;
	justify-content: center;
	align-items: center;
	column-gap: 32px;
}
.tb-home .tb-selection > .wp-block-post-template { grid-column: 2; grid-row: 1; min-width: 0; }
.tb-home .tb-selection > .tb-slider-controls { display: contents; }
.tb-home .tb-slider-controls .tb-prev { grid-column: 1; grid-row: 1; }
.tb-home .tb-slider-controls .tb-next { grid-column: 3; grid-row: 1; }
.tb-home .tb-slider-controls .tb-count {
	grid-column: 2;
	grid-row: 2;
	justify-self: center;
	margin-top: 10px;
	font-size: 15px;
	color: var(--tb-quiet);
	font-variant-numeric: tabular-nums;
}
@media (max-width: 860px) {
	body .tb-home { grid-template-columns: minmax(0, 1fr); }
	.tb-home .tb-selection { column-gap: 8px; }
	.tb-home .tb-slider-controls button { width: 44px; height: 44px; font-size: 22px; }
}

/* ---------- Phone menu covers the whole screen ---------- */
.tb-nav .wp-block-navigation__responsive-container.is-menu-open { z-index: 100000; }
.tb-nav .wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--wall, #E6EBEA) !important;
	color: var(--wp--preset--color--ink, #2F0A40) !important;
	padding: 24px var(--tb-gutter) !important;
}
.tb-nav .is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: flex-start !important;
	padding-top: 64px !important;
}
.tb-nav .is-menu-open .wp-block-navigation__container {
	align-items: flex-start !important;
	gap: 18px !important;
	font-size: 32px !important;
}
.tb-nav .is-menu-open .wp-block-navigation-item__content { padding: 6px 0 !important; }
@media (prefers-reduced-motion: no-preference) {
	.tb-nav .is-menu-open .wp-block-navigation-item { animation: tb-menu-in 0.5s var(--tb-ease) backwards; }
	.tb-nav .is-menu-open .wp-block-navigation-item:nth-child(2) { animation-delay: 0.05s; }
	.tb-nav .is-menu-open .wp-block-navigation-item:nth-child(3) { animation-delay: 0.1s; }
	.tb-nav .is-menu-open .wp-block-navigation-item:nth-child(4) { animation-delay: 0.15s; }
	@keyframes tb-menu-in { from { opacity: 0; transform: translateY(12px); } }
}

/* ---------- Phones: filter bar tucks away while scrolling down ---------- */
@media (max-width: 860px) {
	.tb-werke .tb-filters { transition: transform 0.4s var(--tb-ease); }
	.tb-werke .tb-filters.is-tucked {
		transform: translateY(calc(-100% - var(--wp-admin--admin-bar--height, 0px) - 4px));
	}
}
