/*
Theme Name: Patrick van den Broek
Description: Gallery-minimal child theme of Twenty Twenty-Five for patrickv.com. Paintings are shown whole on a soft wall; no web fonts, no jQuery.
Template: twentytwentyfive
Version: 1.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: patrickv
*/

:root { --pv-wall: #f1ede6; --pv-line: #e3ddd3; --pv-muted: #6d675e; --pv-accent: #7a4a24; --pv-ok: #3f6b45; --pv-gap: clamp(16px, 3vw, 32px); }

.pv-muted { color: var(--pv-muted); }
.pv-link { text-decoration: none; border-bottom: 1px solid var(--pv-line); }
.pv-link:hover { border-color: currentColor; }
.pv-crumbs { font-size: .85rem; color: var(--pv-muted); margin: 0 0 .6em; }
.pv-crumbs a { color: var(--pv-muted); }
.pv-btn { display: inline-block; background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); padding: .75em 1.4em; text-decoration: none; border: 1px solid var(--wp--preset--color--contrast); font-size: .95rem; letter-spacing: .02em; }
.pv-btn:hover { background: var(--pv-accent); border-color: var(--pv-accent); color: #fff; }
.pv-btn--quiet { background: transparent; color: inherit; }
.pv-btn--quiet:hover { background: var(--wp--preset--color--contrast); border-color: var(--wp--preset--color--contrast); }

/* Header */
.pv-header { border-bottom: 1px solid var(--pv-line); }
.pv-role { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--pv-muted); margin: 0; }
.pv-header .wp-block-navigation a { text-decoration: none; }
.pv-header .wp-block-navigation .current-menu-item > a,
.pv-header .wp-block-navigation a[aria-current="page"] { border-bottom: 1px solid currentColor; }

/* The "wall": an even mat of wall color hugging each painting.
   The painting keeps its own proportions and is never enlarged; the mat shrinks to fit it. */
.pv-frame { display: inline-block; max-width: 100%; background: var(--pv-wall); padding: 16px; line-height: 0; vertical-align: top; }
.pv-frame img { display: block; width: auto; height: auto; max-width: 100%; max-height: 300px; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 6px 18px rgba(0,0,0,.08); transition: transform .25s ease; }
.pv-frame--empty { width: 100%; aspect-ratio: 4 / 3; background: var(--pv-line); }
a:hover .pv-frame img { transform: translateY(-2px); }
.pv-series-row .pv-frame img { max-height: 420px; }
.pv-card .pv-frame img { max-height: 260px; }
.pv-grid--lg .pv-frame img { max-height: 420px; }
/* Featured Image block inside Query Loops gets the same mat */
.wp-block-post-featured-image.pv-frame-block { display: block; width: fit-content !important; max-width: 100%; height: auto !important; aspect-ratio: auto !important; background: var(--pv-wall); padding: 16px; margin: 0; line-height: 0; }
.wp-block-post-featured-image.pv-frame-block a { display: block; height: auto !important; }
.wp-block-post-featured-image.pv-frame-block img { display: block; width: auto !important; height: auto !important; max-width: 100%; max-height: 300px; aspect-ratio: auto !important; object-fit: contain !important; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 6px 18px rgba(0,0,0,.08); transition: transform .25s ease; }
.wp-block-post-featured-image.pv-frame-block a:hover img { transform: translateY(-2px); }
.pv-grid-loop .wp-block-post-template { align-items: start; }

/* Series grid (Query Loop) */
.pv-grid-loop .wp-block-post-title { font-size: 1.1rem; margin-top: 14px; margin-bottom: 2px; }
.pv-grid-loop .wp-block-post-title a { text-decoration: none; }
.pv-card-meta { font-size: .875rem; color: var(--pv-muted); margin: 0; }
.pv-dot { font-size: .8rem; margin-left: 8px; white-space: nowrap; }
.pv-dot::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.pv-dot--available::before { background: var(--pv-ok); }
.pv-dot--sold::before { background: #b23b2e; }

/* Series overview */
.pv-series-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--pv-line); }
.pv-series-row h2 { margin-top: 0; }
.pv-series-row h2 a { text-decoration: none; }

/* Home cards */
.pv-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--pv-gap); }
.pv-card { text-decoration: none; }
.pv-card h3 { margin: 14px 0 4px; }
.pv-card p { font-size: .92rem; margin: 0; }

/* Single painting */
.pv-work { display: grid; grid-template-columns: minmax(0, 7fr) minmax(260px, 4fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.pv-work-art { margin: 0; background: var(--pv-wall); padding: clamp(16px, 4vw, 48px); }
.pv-work-art { text-align: center; }
.pv-work-art .pv-frame { padding: 0; background: none; }
.pv-work-art .pv-frame img { max-height: 78vh; }
.pv-work-info { position: sticky; top: 24px; }
.pv-work-title { margin: 0 0 .3em; }
.pv-work-meta { color: var(--pv-muted); }
.pv-status { font-size: 1.05rem; }
.pv-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--pv-line); font-size: .9rem; }
.pv-pager a { text-decoration: none; color: var(--pv-muted); }

/* Available */
.pv-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px) var(--pv-gap); }
.pv-grid--lg { grid-template-columns: repeat(2, 1fr); }
.pv-work-card { display: block; text-decoration: none; }
.pv-work-card h2 { font-size: 1.15rem; margin: 14px 0 2px; }
.pv-price { margin: 4px 0 8px; }

.pv-series-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 24px; border-top: 1px solid var(--pv-line); }

/* Footer */
.pv-footer { border-top: 1px solid var(--pv-line); font-size: .92rem; }
.pv-footer a { text-decoration: none; }

@media (max-width: 1000px) { .pv-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
	.pv-series-row, .pv-work, .pv-grid--lg { grid-template-columns: 1fr; }
	.pv-grid { grid-template-columns: repeat(2, 1fr); }
	.pv-work-info { position: static; }
}
@media (max-width: 420px) { .pv-cards, .pv-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Home */
.pv-hero img { width: 100%; max-height: 72vh; object-fit: cover; background: var(--pv-wall); }
.pv-eyebrow { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--pv-muted); margin-bottom: .75em; }
.pv-hero-title { max-width: 18em; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--wp--preset--color--contrast); border: 1px solid currentColor; }

/* Page patterns */
.pv-h-sub { font-size: 1.25rem; margin-top: 1.6em; }
.pv-portrait img { width: 100%; height: auto; }
.wp-block-image.pv-wall { display: block; width: fit-content; max-width: 100%; background: var(--pv-wall); padding: 16px; margin: 0; line-height: 0; }
.wp-block-image.pv-wall img { display: block; width: auto; height: auto; max-width: 100%; max-height: 300px; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 6px 18px rgba(0,0,0,.08); }
.pv-cv-block { border-top: 1px solid var(--pv-line); padding-top: 20px; margin-top: 8px !important; }
.pv-cv-block h3 { font-size: 1.1rem; margin: 0; }
.pv-cv-list { list-style: none; padding: 0; margin: 0; }
.pv-cv-list li { margin-bottom: 6px; }
.pv-event { border-top: 1px solid var(--pv-line); padding-top: 18px; }
.pv-event h3 { margin: 0 0 4px; }
.pv-event p { margin: 0; }
.pv-event-date { font-family: var(--wp--preset--font-family--serif); font-size: 1.05rem; }
.pv-form input:not([type=submit]):not([type=checkbox]), .pv-form textarea, .pv-form select { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #cfc7ba; background: #fff; border-radius: 0; }
.pv-form input[type=submit] { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); border: 0; padding: .8em 1.6em; font: inherit; cursor: pointer; }
.pv-form input[type=submit]:hover { background: var(--pv-accent); }

/* Full-width hero */
.pv-hero-cover { margin-block-start: 0 !important; }
.pv-hero-caption { display: inline-block; margin: 0; padding: 6px 12px; background: rgba(250,248,244,.88); font-size: .8rem; letter-spacing: .02em; line-height: 1.4; }
.pv-hero-caption a { text-decoration: none; color: var(--wp--preset--color--contrast); }
@media (max-width: 760px) { .pv-hero-cover { min-height: 56vh !important; } }

/* Hero always spans the full browser width, whatever its alignment setting */
.home .pv-hero-cover,
.home .pv-hero {
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
}
.home .pv-hero img { width: 100%; max-height: 78vh; object-fit: cover; }
html, body { overflow-x: clip; }

/* Home: banners and colored sections run edge to edge (no side padding) */
.home .wp-block-post-content > .wp-block-cover,
.home .wp-block-post-content > .wp-block-image.alignfull,
.home .wp-block-post-content > .wp-block-group.has-background,
.home .wp-block-post-content > .wp-block-columns.has-background {
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	border-radius: 0;
}
/* Keep the text inside colored sections off the edges */
.home .wp-block-post-content > .wp-block-group.has-background,
.home .wp-block-post-content > .wp-block-columns.has-background {
	padding-left: max(var(--wp--preset--spacing--50), 4vw);
	padding-right: max(var(--wp--preset--spacing--50), 4vw);
}
/* No gap between the header and the hero, or between stacked full-width sections */
.home .wp-block-post-content > .wp-block-cover:first-child { margin-top: 0 !important; }
.home main.wp-block-group { padding-top: 0 !important; }
.home .wp-block-post-content > :is(.wp-block-cover, .wp-block-image.alignfull, .wp-block-group.has-background, .wp-block-columns.has-background) + :is(.wp-block-cover, .wp-block-image.alignfull, .wp-block-group.has-background, .wp-block-columns.has-background) { margin-top: 0 !important; }

/* Available Work: 3 columns on desktop, 2 on tablets, 1 on phones */
.pv-grid--lg { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.pv-grid--lg .pv-frame img { max-height: 340px; }
@media (max-width: 1000px) { .pv-grid--lg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .pv-grid--lg { grid-template-columns: 1fr; } .pv-grid--lg .pv-frame img { max-height: none; } }

/* Paintings overview: two series side by side (image above text), one column on phones */
.pv-series-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 64px); align-items: start; margin-top: 24px; }
.pv-series-list .pv-series-row { grid-template-columns: 1fr; gap: 20px; align-items: start; padding: 0; border-top: 0; }
.pv-series-list .pv-series-row .pv-frame img { max-height: 380px; }
.pv-series-list .pv-series-row h2 { margin-bottom: .2em; }
@media (max-width: 760px) {
	.pv-series-list { grid-template-columns: 1fr; }
	.pv-series-list .pv-series-row .pv-frame img { max-height: none; }
}

/* Home hero: bring the left-aligned text in from the edge, toward the center */
.home .wp-block-post-content > .wp-block-cover {
	padding-left: clamp(24px, 12vw, 260px) !important;
	padding-right: clamp(24px, 12vw, 260px) !important;
}
.home .wp-block-post-content > .wp-block-cover .wp-block-cover__inner-container { max-width: 760px; }
@media (max-width: 600px) {
	.home .wp-block-post-content > .wp-block-cover { padding-left: 24px !important; padding-right: 24px !important; }
}

/* Photo album pages: content + album list sidebar */
.pv-album-sidebar { position: sticky; top: 24px; align-self: flex-start; }
.pv-album-nav { border-left: 1px solid var(--pv-line); padding-left: 24px; font-size: .95rem; }
.pv-album-nav-title { font-size: 1.2rem; margin: 0 0 12px; }
.pv-album-nav-title a { text-decoration: none; }
.pv-album-nav details { border-top: 1px solid var(--pv-line); padding: 8px 0; }
.pv-album-nav summary { cursor: pointer; font-family: var(--wp--preset--font-family--serif); font-size: 1.05rem; list-style-position: outside; }
.pv-album-nav ul { list-style: none; margin: 8px 0 4px; padding: 0; }
.pv-album-nav li { margin: 0 0 6px; line-height: 1.35; }
.pv-album-nav li a { text-decoration: none; color: var(--pv-muted); }
.pv-album-nav li a:hover, .pv-album-nav li a[aria-current="page"] { color: var(--wp--preset--color--contrast); }
.pv-album-nav li a[aria-current="page"] { font-weight: 600; }
@media (max-width: 781px) {
	.pv-album-sidebar { position: static; }
	.pv-album-nav { border-left: 0; padding-left: 0; border-top: 1px solid var(--pv-line); padding-top: 20px; margin-top: 24px; }
}

/* Album sidebar: years */
.pv-album-years { list-style: none; margin: 0; padding: 0; }
.pv-album-years li { display: flex; justify-content: space-between; border-top: 1px solid var(--pv-line); padding: 8px 0; margin: 0; }
.pv-album-years a { text-decoration: none; font-family: var(--wp--preset--font-family--serif); font-size: 1.05rem; color: var(--pv-muted); }
.pv-album-years a:hover, .pv-album-years a[aria-current="page"] { color: var(--wp--preset--color--contrast); }
.pv-album-years a[aria-current="page"] { font-weight: 600; }
/* Year page: grid of albums */
.pv-album-grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.pv-album-grid a { display: block; text-decoration: none; }
.pv-album-cover { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--pv-wall); }
.pv-album-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.pv-album-grid a:hover .pv-album-cover img { transform: scale(1.03); }
.pv-album-noimg { display: block; width: 100%; height: 100%; }
.pv-album-name { display: block; font-family: var(--wp--preset--font-family--serif); font-size: 1.1rem; margin-top: 10px; }
.pv-album-date { display: block; font-size: .85rem; }
@media (max-width: 1000px) { .pv-album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pv-album-grid { grid-template-columns: 1fr; } }

/* "Album sidebar" block style (Group or Column) and "Album list" (List):
   same look as the automatic album year list, for text you edit yourself */
.is-style-pv-sidebar { border-left: 1px solid var(--pv-line); padding-left: 24px; font-size: .95rem; }
.is-style-pv-sidebar :is(h2, h3, h4) { font-family: var(--wp--preset--font-family--serif); font-size: 1.2rem; font-weight: 400; margin: 0 0 12px; }
.is-style-pv-sidebar :is(h2, h3, h4) a { text-decoration: none; }
.is-style-pv-sidebar p { margin: 0 0 12px; color: var(--pv-muted); }
.is-style-pv-sidebar ul, ul.is-style-pv-sidebar-list { list-style: none; margin: 0 0 24px; padding: 0; }
.is-style-pv-sidebar ul li, ul.is-style-pv-sidebar-list li { border-top: 1px solid var(--pv-line); padding: 8px 0; margin: 0; }
.is-style-pv-sidebar ul li a, ul.is-style-pv-sidebar-list li a { text-decoration: none; font-family: var(--wp--preset--font-family--serif); font-size: 1.05rem; color: var(--pv-muted); }
.is-style-pv-sidebar ul li a:hover, ul.is-style-pv-sidebar-list li a:hover { color: var(--wp--preset--color--contrast); }
/* the automatic list inside a styled sidebar shouldn't get a second border */
.is-style-pv-sidebar .pv-album-nav { border-left: 0; padding-left: 0; }
@media (max-width: 781px) { .is-style-pv-sidebar { border-left: 0; padding-left: 0; border-top: 1px solid var(--pv-line); padding-top: 20px; } }
/* In the Album sidebar style, a paragraph that is just a link looks like a list row */
.is-style-pv-sidebar p:has(> a:only-child) { border-top: 1px solid var(--pv-line); padding: 8px 0; margin: 0; }
.is-style-pv-sidebar p:has(> a:only-child) a { text-decoration: none; font-family: var(--wp--preset--font-family--serif); font-size: 1.05rem; color: var(--pv-muted); }
.is-style-pv-sidebar p:has(> a:only-child) a:hover { color: var(--wp--preset--color--contrast); }
.is-style-pv-sidebar p:has(> a:only-child) + :not(p) { margin-top: 24px; }

/* Home hero: text and button centered horizontally, sitting just below the vertical middle */
.home .wp-block-post-content > .wp-block-cover {
	align-items: center !important;
	justify-content: center !important;
}
.home .wp-block-post-content > .wp-block-cover .wp-block-cover__inner-container {
	width: 100%;
	max-width: 760px;
	margin: 12vh auto 0 !important;   /* nudges it a little below center */
	text-align: center;
}
.home .wp-block-post-content > .wp-block-cover .wp-block-cover__inner-container > * { margin-left: auto; margin-right: auto; text-align: center; }
.home .wp-block-post-content > .wp-block-cover .wp-block-buttons { justify-content: center; }
@media (max-width: 600px) {
	.home .wp-block-post-content > .wp-block-cover .wp-block-cover__inner-container { margin-top: 6vh !important; }
}
/* Hero title: force center even if the block has its own left alignment */
.home .wp-block-post-content > .wp-block-cover :is(h1, h2, h3, .wp-block-heading, .wp-block-site-title, .wp-block-post-title, p) {
	text-align: center !important;
	margin-left: auto !important;
	margin-right: auto !important;
	align-self: center !important;
}
.home .wp-block-post-content > .wp-block-cover .wp-block-cover__inner-container .wp-block-group { justify-content: center !important; align-items: center !important; text-align: center !important; }
/* Hero text sits in the lower, darker part of the painting */
.home .wp-block-post-content > .wp-block-cover { align-items: flex-end !important; padding-bottom: 9vh !important; }
.home .wp-block-post-content > .wp-block-cover .wp-block-cover__inner-container { margin-top: 0 !important; }
@media (max-width: 600px) { .home .wp-block-post-content > .wp-block-cover { padding-bottom: 6vh !important; } }

/* Detail page: More views / Behind the painting */
.pv-more { margin-top: clamp(48px, 7vw, 80px); padding-top: 32px; border-top: 1px solid var(--pv-line); }
.pv-more h2 { margin: 0 0 4px; font-size: clamp(1.4rem, 2vw, 1.7rem); }
.pv-sub { color: var(--pv-muted); font-size: .95rem; margin: 0 0 22px; }
.pv-views { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.pv-views figure { margin: 0; }
.pv-view-frame { display: block; background: var(--pv-wall); padding: 14px; line-height: 0; }
.pv-view-frame img { width: 100%; height: auto; }
.pv-views figcaption { font-size: .85rem; color: var(--pv-muted); margin-top: 8px; }
.pv-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: start; }
.pv-steps img { display: block; width: 100%; height: auto; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.08); }
.pv-step-n { font-family: var(--wp--preset--font-family--serif); font-size: 1.05rem; margin: 10px 0 0; }
.pv-step-cap { font-size: .85rem; color: var(--pv-muted); margin: 2px 0 0; line-height: 1.45; }
.pv-zoom { display: block; cursor: zoom-in; }
.pv-lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(250,248,244,.97); display: grid; place-items: center; padding: 4vh 4vw; cursor: zoom-out; }
.pv-lightbox[hidden] { display: none; }
.pv-lightbox figure { margin: 0; text-align: center; }
.pv-lightbox img { max-width: 92vw; max-height: 84vh; width: auto; height: auto; box-shadow: 0 12px 40px rgba(0,0,0,.18); }
.pv-lightbox figcaption { margin-top: 12px; color: var(--pv-muted); font-size: .9rem; }
.pv-lb-close { position: absolute; top: 16px; right: 20px; font-size: 32px; line-height: 1; background: none; border: 0; cursor: pointer; color: var(--wp--preset--color--contrast); }
@media (max-width: 900px) { .pv-views { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pv-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pv-views, .pv-steps { grid-template-columns: 1fr; } }

/* Slideshow viewer */
.pv-lightbox { cursor: default; }
.pv-lightbox img { cursor: pointer; }
.pv-lightbox figcaption { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.pv-lb-count { color: var(--pv-muted); font-variant-numeric: tabular-nums; }
.pv-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--pv-line); background: rgba(250,248,244,.92); font-size: 34px; line-height: 1; cursor: pointer; color: var(--wp--preset--color--contrast); display: grid; place-items: center; padding-bottom: 4px; }
.pv-lb-nav:hover { background: #fff; border-color: var(--wp--preset--color--contrast); }
.pv-lb-nav[hidden] { display: none; }
.pv-lb-prev { left: 2vw; }
.pv-lb-next { right: 2vw; }
@media (max-width: 600px) { .pv-lb-nav { width: 42px; height: 42px; font-size: 28px; top: auto; bottom: 18px; transform: none; } .pv-lb-prev { left: 18px; } .pv-lb-next { right: 18px; } .pv-lightbox img { max-height: 72vh; } }

/* Series / collection grids: center each painting and its text in its cell */
.pv-grid-loop .wp-block-post-template > li { text-align: center; display: flex; flex-direction: column; align-items: center; }
.pv-grid-loop .pv-card-link { display: block; width: 100%; text-align: center; }
.pv-grid-loop .pv-card-link .pv-frame { margin: 0 auto; }
.pv-grid-loop .wp-block-post-title, .pv-grid-loop .pv-card-meta { text-align: center; width: 100%; }
.pv-grid-loop .pv-dot { margin-left: 8px; }

/* Available Work: center painting, title, details, price and Inquire link in each cell */
.pv-grid--lg > li { text-align: center; display: flex; flex-direction: column; align-items: center; }
.pv-grid--lg .pv-work-card { width: 100%; text-align: center; }
.pv-grid--lg .pv-work-card .pv-frame { margin: 0 auto; }
.pv-grid--lg .pv-card-meta, .pv-grid--lg .pv-price, .pv-grid--lg h2 { text-align: center; }
.pv-grid--lg > li > .pv-link { display: inline-block; margin-top: 8px; }

/* Series / collection grids: 3 columns, slightly larger paintings */
.pv-grid-loop .pv-frame img { max-height: 360px; }

/* Available Work: sort bar */
.pv-sortbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 32px; padding-bottom: 18px; border-bottom: 1px solid var(--pv-line); }
.pv-sort-label { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--pv-muted); margin-right: 8px; }
.pv-sort-btn { font: inherit; font-size: .92rem; background: transparent; color: var(--wp--preset--color--contrast); border: 1px solid var(--pv-line); border-radius: 999px; padding: 6px 16px; cursor: pointer; }
.pv-sort-btn:hover { border-color: var(--wp--preset--color--contrast); }
.pv-sort-btn.is-active { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); border-color: var(--wp--preset--color--contrast); }
.pv-card-subject { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--pv-muted); margin: 14px 0 0; }
.pv-grid--lg .pv-work-card h2 { margin-top: 4px; }

/* ---------- Paintings / Illustrations landing (Option A) ---------- */
.pv-ahero { position: relative; height: clamp(360px, 58vh, 600px); overflow: hidden; margin: 0; }
.pv-ahero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.pv-ahero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,18,15,.66), rgba(20,18,15,0) 58%); }
.pv-ahero-cap { position: absolute; z-index: 2; left: max(var(--wp--preset--spacing--50), calc((100vw - var(--wp--style--global--wide-size)) / 2)); right: var(--wp--preset--spacing--50); bottom: clamp(28px, 6vh, 56px); max-width: 780px; color: #fff; }
.pv-ahero h1 { color: #fff; font-size: clamp(2.8rem, 6vw, 4.8rem); margin: 0; line-height: 1.05; }
.pv-ahero-eyebrow { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.85); margin: 0 0 .5em; }
.pv-ahero-intro { font-size: 1.1rem; margin: .5em 0 0; color: rgba(255,255,255,.92); }
.pv-ahero--plain { height: auto; background: none; }
.pv-ahero--plain::after { display: none; }
.pv-ahero--plain .pv-ahero-cap { position: static; color: inherit; padding: clamp(36px, 6vw, 72px) var(--wp--preset--spacing--50) 0; margin: 0 auto; max-width: var(--wp--style--global--wide-size); }
.pv-ahero--plain h1 { color: inherit; } .pv-ahero--plain .pv-ahero-eyebrow, .pv-ahero--plain .pv-ahero-intro { color: var(--pv-muted); }

.pv-exhibit { margin-top: 0; }
.pv-exrow { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(56px, 8vw, 96px) 0; border-bottom: 1px solid var(--pv-line); }
.pv-exrow.is-flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.pv-exrow.is-flip .pv-exart { order: 2; }
.pv-exart { display: grid; place-items: center; background: var(--pv-wall); padding: clamp(24px, 4vw, 56px); }
.pv-exart img { display: block; width: auto; height: auto; max-width: 100%; max-height: 520px; box-shadow: 0 4px 8px rgba(0,0,0,.08), 0 22px 48px rgba(0,0,0,.18); transition: transform .3s ease; }
.pv-exart:hover img { transform: translateY(-3px); }
.pv-exnum { font-family: var(--wp--preset--font-family--serif); color: var(--pv-accent); letter-spacing: .1em; margin: 0; }
.pv-extext h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin: .1em 0 .25em; }
.pv-extext h2 a { text-decoration: none; }
.pv-exmeta { color: var(--pv-muted); font-size: .92rem; margin: 0 0 1em; }
.pv-exdesc { color: #3c3833; margin: 0 0 1.4em; }
.pv-exthumbs { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 1.6em; }
.pv-exthumbs a { display: block; line-height: 0; }
.pv-exthumbs img { height: 84px; width: auto; box-shadow: 0 2px 6px rgba(0,0,0,.12); transition: transform .2s ease; }
.pv-exthumbs a:hover img { transform: translateY(-2px); }
@media (max-width: 860px) {
	.pv-exrow, .pv-exrow.is-flip { grid-template-columns: 1fr; }
	.pv-exrow.is-flip .pv-exart { order: 0; }
	.pv-exart img { max-height: 420px; }
	.pv-exthumbs img { height: 64px; }
}
/* hero sits flush under the header (shortcode wrappers can leave an empty paragraph) */
.wp-site-blocks > p:empty { display: none; }
.wp-site-blocks > .pv-ahero, .wp-site-blocks > p > .pv-ahero { margin-top: 0 !important; }
.wp-site-blocks > .pv-ahero + main, .wp-site-blocks > .pv-ahero + p:empty + main { margin-top: 0 !important; }
.post-type-archive-painting .pv-exhibit > .pv-exrow:last-child, .post-type-archive-illustration .pv-exhibit > .pv-exrow:last-child { border-bottom: 0; }

/* ---------- Sticky header ---------- */
:root { --pv-header-h: 84px; --pv-adminbar: 0px; }
body.admin-bar { --pv-adminbar: 32px; }
@media (max-width: 782px) { body.admin-bar { --pv-adminbar: 46px; } }
.wp-site-blocks > header.wp-block-template-part,
.wp-site-blocks > .wp-block-template-part:first-child:has(.pv-header) {
	position: sticky;
	top: var(--pv-adminbar);
	z-index: 1000;
	background: var(--wp--preset--color--base);
	box-shadow: 0 1px 0 var(--pv-line), 0 6px 18px rgba(31,29,26,.05);
}
.wp-site-blocks > header.wp-block-template-part .pv-header { background: var(--wp--preset--color--base); }
/* below 600px the WP admin bar scrolls away, so stick to the very top */
@media (max-width: 600px) { body.admin-bar { --pv-adminbar: 0px; } }
/* other sticky elements sit below the header */
.pv-work-info, .pv-album-sidebar { top: calc(var(--pv-header-h) + var(--pv-adminbar) + 24px); }
/* jump links (e.g. Sketchbook sections) don't hide under the header */
html { scroll-padding-top: calc(var(--pv-header-h) + var(--pv-adminbar) + 16px); }
/* Sticky header: 80% opaque so the page shows through (with a soft blur so text stays readable) */
.wp-site-blocks > header.wp-block-template-part,
.wp-site-blocks > .wp-block-template-part:first-child:has(.pv-header) {
	background: rgba(250, 248, 244, .8);
	-webkit-backdrop-filter: saturate(140%) blur(10px);
	backdrop-filter: saturate(140%) blur(10px);
}
.wp-site-blocks > header.wp-block-template-part .pv-header,
.wp-site-blocks > header.wp-block-template-part .pv-header > .wp-block-group { background: transparent; }

/* ---------- Paintings / Illustrations: offset two-column tiles ---------- */
.pv-exhibit--tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 88px); row-gap: clamp(56px, 7vw, 104px); align-items: start; padding: clamp(56px, 7vw, 96px) 0 clamp(80px, 10vw, 140px); }
.pv-exhibit--tiles .pv-exrow { display: block; padding: 0; border: 0; }
.pv-exhibit--tiles .pv-exrow:nth-child(even) { margin-top: clamp(96px, 16vw, 260px); }   /* the offset */
.pv-exhibit--tiles .pv-exart { display: grid; place-items: center; aspect-ratio: 5 / 4; padding: clamp(20px, 3.5vw, 48px); }
.pv-exhibit--tiles .pv-exart img { max-height: 100%; max-width: 100%; width: auto; height: auto; }
.pv-exhibit--tiles .pv-extext { padding-top: 24px; }
.pv-exhibit--tiles .pv-extext h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.pv-exhibit--tiles .pv-exdesc { max-width: 40em; }
.pv-exhibit--tiles .pv-exthumbs img { height: 72px; }
@media (max-width: 860px) {
	.pv-exhibit--tiles { grid-template-columns: 1fr; row-gap: 64px; }
	.pv-exhibit--tiles .pv-exrow:nth-child(even) { margin-top: 0; }
	.pv-exhibit--tiles .pv-exart { aspect-ratio: auto; }
	.pv-exhibit--tiles .pv-exart img { max-height: 420px; }
}
/* tiles: every wall panel is the same 5:4 shape; tall paintings shrink to fit inside it */
.pv-exhibit--tiles .pv-exart { container-type: inline-size; --pv-pad: clamp(20px, 3.5vw, 48px); padding: var(--pv-pad); }
.pv-exhibit--tiles .pv-exart img { max-height: calc(80cqw - 2 * var(--pv-pad)); max-width: 100%; }
@media (max-width: 860px) { .pv-exhibit--tiles .pv-exart { aspect-ratio: 5 / 4; } }
/* tiles: thinner wall border so the paintings fill more of the panel */
.pv-exhibit--tiles .pv-exart { --pv-pad: clamp(12px, 1.8vw, 24px); }
/* tiles: just painting, title, description and link */
.pv-exhibit--tiles .pv-exnum, .pv-exhibit--tiles .pv-exmeta { display: none; }
.pv-exhibit--tiles .pv-extext h2 { margin-top: 0; }
.pv-exhibit--tiles .pv-exdesc { margin-bottom: 1.1em; }
/* tiles: no wall panel — just the painting */
.pv-exhibit--tiles .pv-exart { display: block; background: none; padding: 0; aspect-ratio: auto; container-type: normal; }
.pv-exhibit--tiles .pv-exart img { display: block; width: auto; height: auto; max-width: 100%; max-height: 640px; box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 14px 32px rgba(0,0,0,.14); }
@media (max-width: 860px) { .pv-exhibit--tiles .pv-exart { aspect-ratio: auto; } .pv-exhibit--tiles .pv-exart img { max-height: 480px; } }
.pv-exhibit--tiles .pv-exart { place-items: normal; justify-items: start; }   /* paintings line up with the title below */

/* Collection pages: no wall panel — just the painting, centered in its column */
.pv-grid-loop .pv-frame { background: none; padding: 0; display: inline-block; }
.pv-grid-loop .pv-frame img { max-height: 380px; box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 12px 28px rgba(0,0,0,.14); }
.pv-grid-loop .pv-card-title { margin-top: 18px !important; }

/* Painting / illustration pages: no wall panel — just the artwork */
.pv-work-art { background: none; padding: 0; text-align: center; }
.pv-work-art .pv-frame img { max-height: 80vh; box-shadow: 0 3px 6px rgba(0,0,0,.08), 0 18px 44px rgba(0,0,0,.16); }
/* More views on the same page match */
.pv-view-frame { background: none; padding: 0; }
.pv-view-frame img { box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 10px 24px rgba(0,0,0,.12); }

/* Available Work: no wall panel — just the painting, centered */
.pv-grid--lg .pv-frame { background: none; padding: 0; display: inline-block; }
.pv-grid--lg .pv-frame img { max-height: 380px; box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 12px 28px rgba(0,0,0,.14); }
/* any remaining wall-panel frames site-wide (home cards, older patterns) match the clean look */
.pv-frame, .wp-block-image.pv-wall, .wp-block-post-featured-image.pv-frame-block { background: none; padding: 0; }

/* ---------- Paintings page: three collections per row ---------- */
.pv-exhibit--tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(28px, 3.5vw, 56px); row-gap: clamp(48px, 5vw, 80px); padding-top: clamp(48px, 5vw, 72px); }
.pv-exhibit--tiles .pv-exrow:nth-child(even) { margin-top: 0; }                       /* drop the old 2-column offset */
.pv-exhibit--tiles .pv-exrow:nth-child(3n+2) { margin-top: clamp(32px, 4vw, 72px); }  /* gentle stagger on the middle column */
.pv-exhibit--tiles .pv-exart img { max-height: 460px; }
.pv-exhibit--tiles .pv-extext { padding-top: 18px; }
.pv-exhibit--tiles .pv-extext h2 { font-size: clamp(1.6rem, 2.2vw, 2.1rem); }
.pv-exhibit--tiles .pv-exdesc { font-size: .95rem; }
@media (max-width: 1100px) {
	.pv-exhibit--tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pv-exhibit--tiles .pv-exrow:nth-child(3n+2) { margin-top: 0; }
	.pv-exhibit--tiles .pv-exrow:nth-child(even) { margin-top: clamp(32px, 6vw, 80px); }
}
@media (max-width: 700px) {
	.pv-exhibit--tiles { grid-template-columns: 1fr; }
	.pv-exhibit--tiles .pv-exrow:nth-child(n) { margin-top: 0; }
	.pv-exhibit--tiles .pv-exart img { max-height: 420px; }
}

/* Fiddler's Three collection page: two columns (multi-panel pieces need the width) */
body.term-fiddlers-three .pv-grid-loop .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; column-gap: clamp(32px, 5vw, 80px); }
body.term-fiddlers-three .pv-grid-loop .pv-frame img { max-height: 520px; }
@media (max-width: 700px) { body.term-fiddlers-three .pv-grid-loop .wp-block-post-template { grid-template-columns: 1fr !important; } }

/* Consistent painting sizes in collection grids & Available: every image is as large as
   the max height allows (by its own proportions) but never wider than its column. */
.pv-grid-loop, .pv-grid--lg { --pv-maxh: 380px; }
body.term-fiddlers-three .pv-grid-loop { --pv-maxh: 520px; }
.pv-grid-loop .pv-frame, .pv-grid--lg .pv-frame { display: block; text-align: center; }
.pv-grid-loop .pv-frame img[style*="--ar"], .pv-grid--lg .pv-frame img[style*="--ar"] {
	display: block; margin: 0 auto;
	width: min(100%, calc(var(--pv-maxh) * var(--ar))) !important;
	height: auto !important; max-width: 100%; max-height: none;
}
/* Fiddler's Three: more breathing room between rows */
body.term-fiddlers-three .pv-grid-loop .wp-block-post-template { row-gap: clamp(64px, 7vw, 112px) !important; }

/* ---------- Paintings page: back to two collections per row ---------- */
.pv-exhibit--tiles { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; column-gap: clamp(40px, 5vw, 88px); row-gap: clamp(56px, 6vw, 96px); }
.pv-exhibit--tiles .pv-exrow:nth-child(3n+2) { margin-top: 0; }
.pv-exhibit--tiles .pv-exrow:nth-child(even) { margin-top: clamp(40px, 6vw, 96px); }   /* gentle stagger on the right column */
.pv-exhibit--tiles .pv-exart img { max-height: 560px; }
.pv-exhibit--tiles .pv-extext h2 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); }
@media (max-width: 700px) {
	.pv-exhibit--tiles { grid-template-columns: 1fr !important; }
	.pv-exhibit--tiles .pv-exrow:nth-child(n) { margin-top: 0; }
	.pv-exhibit--tiles .pv-exart img { max-height: 440px; }
}

/* About page: content at ~80% width, centered on the page with equal side margins, text left-aligned */
body.page-about-me main .wp-block-post-title,
body.page-about-me main .wp-block-post-content {
	width: min(80%, 1280px);
	max-width: none !important;
	margin-left: auto !important;
	margin-right: auto !important;
	text-align: left;
}
body.page-about-me main .wp-block-post-content > * { max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
@media (max-width: 782px) {
	body.page-about-me main .wp-block-post-title,
	body.page-about-me main .wp-block-post-content { width: 100%; }
}

/* ---------- Contact page ---------- */
body.page-contact main .wp-block-post-title,
body.page-contact main .wp-block-post-content { width: min(80%, 1280px); max-width: none !important; margin-left: auto !important; margin-right: auto !important; text-align: left; }
body.page-contact main .wp-block-post-content > * { max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
@media (max-width: 782px) { body.page-contact main .wp-block-post-title, body.page-contact main .wp-block-post-content { width: 100%; } }
.pv-contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.pv-contact-list li { border-top: 1px solid var(--pv-line); padding: 12px 0; margin: 0; line-height: 1.5; }
.pv-form-panel { background: var(--pv-wall); padding: clamp(24px, 3.5vw, 44px) !important; }
/* Contact Form 7 */
.pv-cf label { display: block; font-size: .9rem; font-weight: 600; margin: 0 0 18px; }
.pv-cf .wpcf7-form-control-wrap { display: block; margin-top: 6px; font-weight: 400; }
.pv-cf input[type=text], .pv-cf input[type=email], .pv-cf select, .pv-cf textarea { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #cfc7ba; background: #fff; color: var(--wp--preset--color--contrast); border-radius: 0; box-sizing: border-box; }
.pv-cf textarea { min-height: 150px; resize: vertical; }
.pv-cf input:focus, .pv-cf select:focus, .pv-cf textarea:focus { outline: 2px solid var(--pv-accent); outline-offset: 0; border-color: var(--pv-accent); }
.pv-cf .pv-optional { font-weight: 400; color: var(--pv-muted); }
.pv-cf input[type=submit] { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--contrast); padding: .8em 1.8em; font: inherit; font-size: .95rem; letter-spacing: .02em; cursor: pointer; border-radius: 0; margin-top: 4px; }
.pv-cf input[type=submit]:hover { background: var(--pv-accent); border-color: var(--pv-accent); }
.pv-form-panel .wpcf7-not-valid-tip { font-size: .82rem; color: #b23b2e; margin-top: 4px; }
.pv-form-panel .wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 12px 16px; border-width: 1px; font-size: .92rem; }
.pv-form-panel .wpcf7-spinner { vertical-align: middle; }
.pv-cf .pv-req { color: #b23b2e; font-weight: 600; }
.pv-cf .pv-required-note { font-size: .82rem; color: var(--pv-muted); margin: 0 0 14px; }
/* Paintings page tiles: center each painting in its column; text below stays left-aligned */
.pv-exhibit--tiles .pv-exart { text-align: center; justify-items: center; }
.pv-exhibit--tiles .pv-exart img { margin-left: auto !important; margin-right: auto !important; }

/* Videos in More views / Behind the painting */
.pv-video-tile { position: relative; display: block; }
.pv-video-tile video { display: block; width: 100%; height: auto; background: #000; box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 10px 24px rgba(0,0,0,.12); }
.pv-play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(250,248,244,.9); box-shadow: 0 4px 14px rgba(0,0,0,.25); pointer-events: none; transition: transform .2s ease, opacity .2s ease; }
.pv-play::after { content: ""; position: absolute; left: 22px; top: 17px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent var(--wp--preset--color--contrast); }
.pv-video-tile:hover .pv-play { transform: scale(1.08); }
.pv-steps .pv-video-tile video { box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.08); }
.pv-lightbox video { max-width: 92vw; max-height: 84vh; width: auto; height: auto; background: #000; box-shadow: 0 12px 40px rgba(0,0,0,.18); display: block; margin: 0 auto; }
.pv-lightbox video[hidden], .pv-lightbox img[hidden] { display: none; }
/* More views: a video tile is as tall as the 4:3 photos beside it; narrower if the video is tall */
.pv-views .pv-video-tile .pv-view-frame { aspect-ratio: 4 / 3; display: flex; justify-content: center; align-items: stretch; line-height: 0; }
.pv-views .pv-video-tile video { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.pv-views .pv-video-tile .pv-play { top: 50%; }
/* No play button over the looping preview — just the video */
.pv-video-tile .pv-play { display: none; }
/* More views without click-to-enlarge */
.pv-views .pv-view-frame { cursor: default; }
.pv-video-tile--static { cursor: default; }

/* About: Beyond the canvas cards */
.pv-elsewhere .wp-block-column { display:flex; flex-direction:column; }
.pv-elsewhere .wp-block-column .wp-block-buttons { margin-top:auto !important; padding-top:24px; }
.pv-elsewhere .wp-block-column p.pv-eyebrow { margin:0; }

/* Augmented reality band (single painting) */
.pv-ar-badge { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--accent-1); border: 1px solid currentColor; padding: 5px 12px; margin: 2px 0 18px; text-decoration: none; }
.pv-ar-badge:hover { background: var(--wp--preset--color--accent-1); color: #fff; }
.pv-ar { margin-top: clamp(56px, 8vw, 96px); background: var(--wp--preset--color--accent-2); padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; scroll-margin-top: calc(var(--pv-header-h, 80px) + 24px); }
.pv-ar-phone { justify-self: center; width: min(340px, 100%); aspect-ratio: 720 / 1168; border-radius: 38px; background: #111; padding: 12px; box-shadow: 0 30px 60px -25px rgba(0,0,0,.45); box-sizing: content-box; }
.pv-ar-phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; display: block; background: #222; }
.pv-ar .pv-eyebrow { color: var(--wp--preset--color--accent-1); }
.pv-ar h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0 0 14px; }
.pv-ar-steps { padding: 0; margin: 26px 0 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.pv-ar-steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; }
.pv-ar-steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--wp--preset--color--contrast); display: grid; place-items: center; font-family: var(--wp--preset--font-family--serif); font-size: .95rem; }
.pv-ar-note { color: var(--pv-muted, #6d675e); font-size: .9rem; margin-top: 24px; }
.pv-ar + .pv-more { border-top: 0; }
@media (max-width: 800px) { .pv-ar { grid-template-columns: 1fr; } .pv-ar-phone { width: min(300px, 80vw); } }

/* Home: AR feature band (full width tan) */
.pv-home-ar { margin-top: clamp(56px, 8vw, 104px) !important; margin-bottom: 0 !important; padding: clamp(56px, 8vw, 112px) var(--wp--preset--spacing--50, 24px) !important; }
.pv-arf { max-width: var(--wp--style--global--wide-size, 1600px); margin: 0 auto; }
.pv-arf-head { text-align: center; max-width: 820px; margin: 0 auto clamp(40px, 5vw, 64px); }
.pv-arf-head .pv-eyebrow { color: var(--wp--preset--color--accent-1); }
.pv-arf-head h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.1; margin: 0 0 18px; }
.pv-arf-lead { font-size: 1.15rem; color: var(--wp--preset--color--accent-3); margin: 0 auto; }
.pv-arf-pair { display: grid; grid-template-columns: auto 80px auto; justify-content: center; align-items: center; gap: clamp(24px, 3vw, 48px); }
.pv-arf figure { margin: 0; }
.pv-arf figcaption { font-size: .85rem; color: var(--pv-muted, #6d675e); margin-top: 14px; text-align: center; letter-spacing: .04em; }
.pv-arf-paint img { display: block; height: min(560px, 70vh); width: auto; max-width: 100%; box-shadow: 0 18px 40px -22px rgba(0,0,0,.45); }
.pv-arf-video .pv-ar-phone { height: min(536px, 67vh); width: auto; }
.pv-arf-arrow { font-family: var(--wp--preset--font-family--serif); text-align: center; text-transform: uppercase; letter-spacing: .1em; color: var(--wp--preset--color--accent-1); }
.pv-arf-arrow b { display: block; font-size: 2.4rem; font-weight: 400; line-height: 1; }
.pv-arf-cta { text-align: center; margin: clamp(40px, 5vw, 64px) 0 0; }
@media (max-width: 860px) {
	.pv-arf-pair { grid-template-columns: 1fr; justify-items: center; }
	.pv-arf-arrow b { transform: rotate(90deg); }
	.pv-arf-paint img { height: auto; width: 100%; }
	.pv-arf-video .pv-ar-phone { height: auto; width: min(300px, 80vw); }
}

/* Home: contact call to action below the AR feature */
.pv-home-cta { padding-top: clamp(56px, 8vw, 104px); }
.pv-home-cta h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-top: 0; }
.pv-home-cta .wp-block-buttons { margin-top: 28px; }

/* Rounded buttons everywhere (radius matches the home hero button; see --pv-btn-radius in functions.php) */
.wp-block-button__link, .wp-element-button, .pv-btn, .pv-cf input[type=submit], .pv-form input[type=submit], .wpcf7-submit { border-radius: var(--pv-btn-radius, 6px) !important; }

/* Footer social icons */
.pv-footer .pv-social { gap: 14px; margin: 0; }
.pv-footer .pv-social .wp-social-link { color: var(--wp--preset--color--contrast); }
.pv-footer .pv-social .wp-social-link:hover { color: var(--wp--preset--color--accent-1); transform: none; }
.pv-footer .pv-social svg { width: 24px; height: 24px; }

/* Icon + text links (contact page) */
.pv-icon-link { display: inline-flex; align-items: center; gap: 8px; line-height: 2; }
.pv-icon-link .pv-ico { flex: none; }

/* Home: two random paintings */
.pv-home-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); align-items: end; }
.pv-hp-item { display: block; text-align: center; text-decoration: none; color: inherit; }
.pv-hp-art { display: flex; align-items: flex-end; justify-content: center; height: min(560px, 62vh); }
.pv-hp-art img { max-height: 100%; max-width: 100%; width: auto; height: auto; box-shadow: 0 18px 40px -22px rgba(0,0,0,.45); }
.pv-hp-title { display: block; font-family: var(--wp--preset--font-family--serif); font-size: 1.25rem; margin-top: 16px; }
.pv-hp-size { display: block; color: var(--pv-muted, #6d675e); font-size: .9rem; }
.pv-hp-item:hover .pv-hp-title { color: var(--wp--preset--color--accent-1); }
@media (max-width: 700px) { .pv-home-pair { grid-template-columns: 1fr; } .pv-hp-art { height: auto; } }

/* Home pair: offset — right painting sits higher than the left */
.pv-home-pair { align-items: start; }
.pv-home-pair > .pv-hp-item:first-child { margin-top: clamp(48px, 7vw, 112px); }
@media (max-width: 700px) { .pv-home-pair > .pv-hp-item:first-child { margin-top: 0; } }

/* Outline buttons (like "Get in touch"): transparent, dark border and text */
.pv-btn--quiet { background: transparent; color: var(--wp--preset--color--contrast); border: 1px solid var(--wp--preset--color--contrast); }
.pv-btn--quiet:hover { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }
.pv-work-info .pv-btn { margin-top: 4px; }

/* Header face logo, left of name and role */
.pv-brand { gap: 12px; }
.pv-brand-logo { display: block; flex: none; line-height: 0; }
.pv-brand-logo img { height: 50px; width: auto; display: block; }
@media (max-width: 600px) { .pv-brand-logo img { height: 40px; } }

/* Header face logo: a bit smaller */
.pv-brand-logo img { height: 42px; }
@media (max-width: 600px) { .pv-brand-logo img { height: 34px; } }

/* Album sidebar: "From the studio" feature below the year list */
.pv-studio-feature { margin-top: 36px; background: var(--wp--preset--color--accent-2); padding: 22px; }
.pv-sf-eyebrow { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--accent-1); margin: 0 0 10px; }
.pv-sf-art { display: block; line-height: 0; }
.pv-sf-art img { width: 100%; height: auto; display: block; box-shadow: 0 12px 30px -18px rgba(0,0,0,.5); }
.pv-sf-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 10px 0 14px; font-size: .85rem; color: var(--pv-muted, #6d675e); }
.pv-sf-cap a { font-family: var(--wp--preset--font-family--serif); font-size: 1.05rem; color: var(--wp--preset--color--contrast); text-decoration: none; }
.pv-sf-cap span { white-space: nowrap; }
.pv-sf-text { font-size: .92rem; line-height: 1.55; color: var(--wp--preset--color--accent-3); margin: 0 0 16px; }
.pv-sf-btn { font-size: .9rem; padding: .6em 1.2em; }
/* the sidebar is now taller than most screens, so let it scroll with the page instead of sticking */
.pv-album-sidebar { position: static !important; }
@media (max-width: 781px) { .pv-studio-feature { margin-top: 24px; } }

/* Album sidebar feature: centered title, size under it, centered button */
.pv-studio-feature { text-align: center; }
.pv-sf-eyebrow { text-align: left; }
.pv-sf-cap { display: block; text-align: center; margin: 12px 0 16px; }
.pv-sf-cap a { display: block; }
.pv-sf-cap span { display: block; margin-top: 2px; }
.pv-sf-btn { display: inline-block; }

/* Home pair: each painting + title centered vertically in its column (no empty space above wide paintings); keep the left-lower offset */
.pv-home-pair { align-items: center; }
.pv-hp-item { display: flex; flex-direction: column; align-items: center; }
.pv-hp-art { height: auto; display: block; }
.pv-hp-art img { max-height: min(560px, 62vh); }
.pv-home-pair > .pv-hp-item:first-child { margin-top: 0; transform: translateY(clamp(32px, 4vw, 64px)); }
.pv-home-pair { margin-bottom: clamp(32px, 4vw, 64px); }
@media (max-width: 700px) { .pv-home-pair > .pv-hp-item:first-child { transform: none; } .pv-home-pair { margin-bottom: 0; } }

/* Contact form Send button: beat the host's generic submit-button style (.wp-site-blocks input[type=submit]) */
.wp-site-blocks .pv-cf input[type="submit"].wpcf7-submit {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--contrast);
	padding: .8em 1.8em;
	font: inherit; font-size: .95rem; letter-spacing: .02em;
	border-radius: var(--pv-btn-radius, 6px);
	cursor: pointer;
	opacity: 1;
}
.wp-site-blocks .pv-cf input[type="submit"].wpcf7-submit:hover,
.wp-site-blocks .pv-cf input[type="submit"].wpcf7-submit:focus-visible {
	background: var(--wp--preset--color--accent-1);
	border-color: var(--wp--preset--color--accent-1);
	color: #fff;
}
.wp-site-blocks .pv-cf input[type="submit"].wpcf7-submit:disabled { opacity: .6; cursor: default; }

/* Mobile menu: the header's frosted-glass blur traps the full-screen menu inside the header bar.
   While the menu is open, drop the blur so the menu covers the whole screen above everything. */
.wp-site-blocks > header.wp-block-template-part:has(.wp-block-navigation__responsive-container.is-menu-open),
.wp-site-blocks > .wp-block-template-part:first-child:has(.wp-block-navigation__responsive-container.is-menu-open) {
	-webkit-backdrop-filter: none !important;
	backdrop-filter: none !important;
	z-index: 100000;
}
.wp-block-navigation__responsive-container.is-menu-open {
	position: fixed !important;
	inset: 0 !important;
	height: 100vh; height: 100dvh;
	z-index: 100000;
	background: var(--wp--preset--color--base) !important;
	color: var(--wp--preset--color--contrast) !important;
	padding: 24px var(--wp--preset--spacing--50, 24px) !important;
	overflow-y: auto;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 56px; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 22px; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a { font-family: var(--wp--preset--font-family--serif); font-size: 1.6rem; border: 0 !important; }
/* same fix for browsers without :has() — WordPress adds .has-modal-open to <html> while the menu is open */
html.has-modal-open .wp-site-blocks > header.wp-block-template-part,
html.has-modal-open .wp-site-blocks > .wp-block-template-part:first-child { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; z-index: 100000; }

/* A plugin on the live host forces text color inside colored sections (data-dsgo-inline-bg, !important).
   Keep our button text readable there. */
body .wp-site-blocks a.pv-btn.pv-btn { color: var(--wp--preset--color--base) !important; text-decoration: none; }
body .wp-site-blocks a.pv-btn.pv-btn:hover { color: #fff !important; }
body .wp-site-blocks a.pv-btn.pv-btn--quiet { color: var(--wp--preset--color--contrast) !important; }
body .wp-site-blocks a.pv-btn.pv-btn--quiet:hover { color: var(--wp--preset--color--base) !important; }

/* Second previous / next links at the bottom of painting pages */
.pv-pager-bottom { margin-top: clamp(48px, 7vw, 80px); }
.pv-pager-bottom .pv-pager { margin-top: 0; padding-top: 24px; font-size: 1.05rem; }
.pv-pager-bottom .pv-pager a { font-family: var(--wp--preset--font-family--serif); color: var(--wp--preset--color--contrast); }
.pv-pager-bottom .pv-pager a:hover { color: var(--wp--preset--color--accent-1); }

/* Stronger version: the host plugin's rule ties on specificity and loads later, so out-rank it */
html body .wp-site-blocks a.pv-btn.pv-btn.pv-btn { color: var(--wp--preset--color--base) !important; text-decoration: none !important; }
html body .wp-site-blocks a.pv-btn.pv-btn.pv-btn:hover { color: #fff !important; }
html body .wp-site-blocks a.pv-btn.pv-btn--quiet.pv-btn--quiet { color: var(--wp--preset--color--contrast) !important; }
html body .wp-site-blocks a.pv-btn.pv-btn--quiet.pv-btn--quiet:hover { color: var(--wp--preset--color--base) !important; }
