/*
Theme Name:   Jai Zharotia
Theme URI:    https://www.jaizharotia.com
Author:       The Jai Zharotia Foundation
Description:  Theme for jaizharotia.com: the half-lit home hero, series and artworks, exhibitions, private viewing rooms and the journal. Needs the "Jai Zharotia Foundation Core" plugin.
Version:      1.12.5
Requires at least: 6.4
Requires PHP: 8.0
License:      GPL-2.0-or-later
Text Domain:  jz
*/

:root {
	--paper: #f3ede1;
	--paper-2: #ebe3d4;
	--ink: #28211c;
	--muted: #6f6152;
	--gold: #a97f48;
	--gold-soft: #c9a46e;
	--night: #0d0b0a;
	--night-ink: #efe6d6;
	--line: rgba(40, 33, 28, 0.14);
	--serif: "Cormorant Garamond", "Tiro Devanagari Hindi", Georgia, serif;
	--deva: "Tiro Devanagari Hindi", "Cormorant Garamond", serif;
	--gutter: clamp(20px, 5vw, 72px);
	--max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--serif);
	font-size: 20px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
:lang(hi), .hindi { font-family: var(--deva); line-height: 1.8; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.005em; }
h1 { font-size: clamp(40px, 5.4vw, 76px); }
h2 { font-size: clamp(30px, 3.4vw, 46px); }
h3 { font-size: clamp(22px, 2vw, 28px); }
p { margin: 0 0 1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 100; width: auto; height: auto; clip: auto; background: var(--ink); color: var(--paper); padding: 10px 16px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.eyebrow { font-size: 14px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; }
.rule { width: 60px; height: 2px; background: var(--gold); border: 0; margin: 28px 0; }
.rule.center { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }

.btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px;
	font: 600 15px/1 var(--serif); letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
	background: var(--ink); color: var(--paper); border: 1px solid var(--ink); cursor: pointer; transition: .2s;
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 40px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 26px; font-weight: 600; letter-spacing: .06em; }
.brand-sub { font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }
.nav-toggle { display: none; background: none; border: 1px solid currentColor; color: inherit; font: 600 14px var(--serif); letter-spacing: .2em; text-transform: uppercase; min-height: 44px; padding: 0 16px; cursor: pointer; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav > ul { display: flex; flex-wrap: wrap; gap: 4px 30px; }
.primary-nav a { display: block; padding: 10px 0; font-size: 15px; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; }
.primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a { color: var(--gold); }
.primary-nav li { position: relative; }
.primary-nav .sub-menu { position: absolute; left: -18px; top: 100%; min-width: 250px; background: var(--paper); border: 1px solid var(--line); padding: 8px 18px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { letter-spacing: .1em; font-size: 14px; color: var(--ink); }

/* Dark header on private rooms */
.is-dark .site-header { background: var(--night); color: var(--night-ink); border-color: rgba(233,220,198,.12); }
.is-dark .primary-nav .sub-menu { background: var(--night); }
.is-dark .primary-nav .sub-menu a { color: var(--night-ink); }

/* Header over the dark hero on the home page */
.home .site-header { position: absolute; left: 0; right: 0; top: 0; border: 0; color: var(--night-ink); background: linear-gradient(180deg, rgba(13,11,10,.72), rgba(13,11,10,0)); }
.home .brand-sub { color: var(--gold-soft); }
.home .primary-nav .sub-menu { background: rgba(13,11,10,.94); border-color: rgba(233,220,198,.18); }
.home .primary-nav .sub-menu a { color: var(--night-ink); }
.home .primary-nav a:hover { color: #fff; }

@media (max-width: 860px) {
	.nav-toggle { display: inline-flex; align-items: center; }
	.primary-nav { display: none; width: 100%; }
	.primary-nav.open { display: block; }
	.primary-nav > ul { flex-direction: column; gap: 0; }
	.primary-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; background: none; padding: 0 0 6px 18px; min-width: 0; }
	.home .primary-nav.open { background: rgba(13,11,10,.94); margin: 0 calc(var(--gutter) * -1); padding: 8px var(--gutter) 16px; }
}

/* ---------- Half-lit hero ---------- */
.jz-hero { position: relative; height: 100vh; min-height: 620px; max-height: 1100px; overflow: hidden; background: var(--night); color: var(--night-ink); cursor: crosshair; }
.jz-hero .stage { position: absolute; inset: 0; }
.jz-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jz-hero .tap-hint { display: none; }
.jz-hero .layer { position: absolute; inset: 0; pointer-events: none; }
.jz-hero .side { background: linear-gradient(90deg, rgba(13,11,10,.8) 0%, rgba(13,11,10,.35) 38%, rgba(13,11,10,0) 62%); }
.jz-hero .copy { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(88px, 12vh, 132px); max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.jz-hero .eyebrow { color: var(--gold-soft); margin: 0; }
.jz-hero h1 { margin: 0; font-size: clamp(34px, 4.2vw, 62px); font-weight: 400; line-height: 1.08; color: rgba(239,230,214,.92); }
.jz-hero h1 em { font-weight: 400; color: rgba(227,207,174,.88); }
.jz-hero .lede { margin: 0; max-width: 500px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; color: rgba(216,204,184,.85); }
.jz-hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.jz-hero .btn { background: var(--gold-soft); border-color: var(--gold-soft); color: #16120f; }
.jz-hero .btn:hover { background: #e9dcc6; border-color: #e9dcc6; }
.jz-hero .btn.ghost { background: transparent; color: var(--night-ink); border-color: rgba(233,220,198,.45); }
.jz-hero .btn.ghost:hover { border-color: #e9dcc6; color: #fff; }
.jz-hero .foot { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px 32px; font-size: 14px; color: #b8aa95; }
.jz-hero .hint { display: flex; align-items: center; gap: 10px; letter-spacing: .12em; text-transform: uppercase; }
.jz-hero .credit { text-align: right; line-height: 1.5; }
.jz-hero .credit a { color: #e3cfae; font-style: italic; font-size: 17px; display: block; text-decoration: none; }
/* Effects other than half-lit: no pointer play. */
.jz-hero:not(.fx-halflit) { cursor: default; }
/* With the whole painting lit, the text needs a stronger shade behind it. */
.jz-hero:not(.fx-halflit) .side { background: linear-gradient(90deg, rgba(13,11,10,.9) 0%, rgba(13,11,10,.62) 34%, rgba(13,11,10,.12) 62%, rgba(13,11,10,0) 75%), linear-gradient(0deg, rgba(13,11,10,.55) 0%, rgba(13,11,10,0) 30%); }
/* Slow reveal: from near-darkness to full light over about six seconds. */
.jz-hero.fx-reveal .spot { background: rgba(13,11,10,.96) !important; opacity: 1; transition: opacity 6s cubic-bezier(.4,0,.2,1) .4s; }
.jz-hero.fx-reveal.fx-run .spot { opacity: .06; }
.jz-hero.fx-reveal img { transform: scale(1.03); transition: transform 9s ease-out; }
.jz-hero.fx-reveal.fx-run img { transform: scale(1); }
/* Breathing light: the whole painting brightens and dims slowly, with darker corners like candlelight. */
.jz-hero.fx-breathe .spot { background: radial-gradient(ellipse at 62% 45%, rgba(13,11,10,.1) 0%, rgba(13,11,10,.5) 55%, rgba(13,11,10,.9) 100%) !important; }
.jz-hero.fx-breathe.fx-run .spot { animation: jz-breathe 7s ease-in-out infinite; }
@keyframes jz-breathe { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
/* Slow drift: the painting moves very slowly closer and back. */
.jz-hero.fx-drift img { transform-origin: var(--focus, 60% 45%); }
.jz-hero.fx-drift.fx-run img { animation: jz-drift 40s ease-in-out infinite alternate; }
@keyframes jz-drift { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.12) translate(-2%, -1%); } }
@media (prefers-reduced-motion: reduce) {
	.jz-hero { cursor: default; }
	.jz-hero .spot, .jz-hero img { animation: none !important; transition: none !important; }
	.jz-hero.fx-reveal .spot { opacity: .06; }
}
@media (max-width: 700px) {
	/* Phones: the painting on top (no text over it), the words below. */
	.jz-hero { height: auto; min-height: 0; max-height: none; cursor: default; }
	.jz-hero .stage { position: relative; inset: auto; height: 68svh; min-height: 380px; max-height: 640px; touch-action: pan-y; }
	.jz-hero img { object-position: var(--focus, 50% 50%); }
	.jz-hero .side, .jz-hero:not(.fx-halflit) .side { background: linear-gradient(180deg, rgba(13,11,10,.55) 0%, rgba(13,11,10,0) 22%, rgba(13,11,10,0) 72%, rgba(13,11,10,1) 100%); }
	.jz-hero .tap-hint { display: block; position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: rgba(233,220,198,.7); pointer-events: none; transition: opacity .6s; }
	.jz-hero.touched .tap-hint { opacity: 0; }
	.jz-hero .copy { position: relative; left: auto; right: auto; bottom: auto; padding: 8px var(--gutter) 28px; gap: 16px; }
	.jz-hero .foot { position: relative; left: auto; right: auto; bottom: auto; padding: 0 var(--gutter) 32px; }
	.jz-hero .hint { display: none; }
	.jz-hero .credit { text-align: left; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section.alt { background: var(--paper-2); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: 40px; }
.section-head h2 { margin: 0; }
.page-head { padding: clamp(56px, 8vw, 110px) 0 clamp(28px, 4vw, 48px); }
.page-head p.lead { font-size: clamp(20px, 1.8vw, 24px); color: var(--muted); max-width: 720px; }

.entry-content > * { max-width: 760px; }
.entry-content > .alignwide { max-width: var(--max); }
.entry-content > .alignfull { max-width: none; }
.entry-content blockquote, .wp-block-quote { margin: 40px 0; padding: 0; border: 0; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.4; font-style: italic; }
.entry-content blockquote cite { display: block; margin-top: 14px; font-size: 15px; font-style: normal; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.entry-content h2 { margin-top: 1.6em; }

/* ---------- Grids ---------- */
.series-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 40px 32px; }
.series-card { text-decoration: none; display: block; }
.series-card figure { margin: 0 0 18px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.series-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.series-card:hover img { transform: scale(1.03); }
.series-card h3 { margin: 0 0 4px; }
.series-card .meta { font-size: 16px; color: var(--muted); letter-spacing: .08em; }

.art-grid { columns: 3 300px; column-gap: 32px; }
.art-item { break-inside: avoid; margin: 0 0 36px; }
.art-item a { text-decoration: none; display: block; }
.art-item img { width: 100%; box-shadow: 0 10px 28px rgba(40,33,28,.10); background: var(--paper-2); }
.art-item figcaption { padding-top: 12px; }
.art-item .t { font-size: 20px; display: block; }
.art-item .c { font-size: 15px; color: var(--muted); }
.status { display: inline-block; margin-top: 6px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

/* ---------- Filters ---------- */
.jz-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 14px 18px; margin: -12px 0 40px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.jz-filter { display: flex; flex-direction: column; gap: 4px; min-width: 150px; flex: 1 1 150px; }
.jz-filter span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.jz-filter select { font: 400 17px/1.3 var(--serif); color: var(--ink); background: #fbf8f2; border: 1px solid rgba(40,33,28,.28); border-radius: 0; padding: 9px 10px; width: 100%; }
.jz-filter-actions { display: flex; align-items: center; gap: 16px; }
.jz-filter-actions button { font: 400 14px/1 var(--serif); letter-spacing: .18em; text-transform: uppercase; background: var(--ink); color: var(--paper); border: 0; padding: 13px 22px; cursor: pointer; }
.jz-filter-actions a { font-size: 15px; color: var(--muted); }
@media (max-width: 600px) { .jz-filter { flex-basis: calc(50% - 9px); min-width: 0; } }

/* ---------- Single artwork ---------- */
.artwork { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; padding: clamp(40px, 6vw, 90px) 0; }
.artwork .image { background: var(--paper-2); padding: clamp(16px, 3vw, 40px); }
.artwork .image img { margin: 0 auto; box-shadow: 0 16px 40px rgba(40,33,28,.16); }
.artwork dl { margin: 28px 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; font-size: 18px; }
.artwork dt { color: var(--muted); letter-spacing: .12em; text-transform: uppercase; font-size: 14px; padding-top: 4px; }
.artwork dd { margin: 0; }
.jz-keywords { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 24px; }
.jz-keywords a { font-size: 14px; letter-spacing: .06em; text-decoration: none; border: 1px solid var(--line); padding: 5px 12px; color: var(--muted); }
.jz-keywords a:hover { border-color: var(--gold); color: var(--ink); }
.jz-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 32px; padding: 16px 18px; background: var(--paper-2); border-left: 2px solid var(--gold); font-size: 16px; line-height: 1.5; color: var(--muted); }
.jz-note p { margin: 0; }
.jz-note a { color: var(--ink); white-space: nowrap; }
.jz-note-i { flex: 0 0 22px; height: 22px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); font: italic 600 14px/20px var(--serif); text-align: center; margin-top: 1px; }
.pager { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 28px 0 60px; font-size: 17px; }
.pager a { text-decoration: none; }
@media (max-width: 860px) { .artwork { grid-template-columns: 1fr; } }

/* ---------- Lightbox ---------- */
.jz-lightbox { border: 0; padding: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(13,11,10,.96); color: var(--night-ink); }
.jz-lightbox::backdrop { background: rgba(13,11,10,.9); }
.jz-lightbox .inner { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 56px 24px 28px; }
.jz-lightbox img { max-height: calc(100vh - 170px); width: auto; max-width: 100%; }
.jz-lightbox .cap { text-align: center; font-size: 18px; }
.jz-lightbox .cap a { color: var(--gold-soft); }
.jz-lightbox button { position: absolute; background: none; border: 0; color: var(--night-ink); font: 400 34px/1 var(--serif); width: 52px; height: 52px; cursor: pointer; }
.jz-lightbox .close { top: 10px; right: 14px; }
.jz-lightbox .prev { left: 6px; top: 50%; }
.jz-lightbox .next { right: 6px; top: 50%; }

/* ---------- CV ---------- */
.jz-cv-section { margin: 56px 0; }
.jz-cv-section h2 { font-size: 28px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.jz-cv dl { margin: 0; }
.jz-cv-row { display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.jz-cv-row dt { color: var(--gold); font-variant-numeric: tabular-nums; }
.jz-cv-row dd { margin: 0; }
.jz-cv-detail { display: block; color: var(--muted); font-size: 17px; }

/* ---------- Forms ---------- */
.jz-form { max-width: 640px; }
.jz-form label { display: block; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.jz-form input, .jz-form textarea, .jz-gate-form input {
	width: 100%; font: 400 19px/1.4 var(--serif); color: var(--ink); background: #fbf8f2; border: 1px solid rgba(40,33,28,.28); padding: 12px 14px; border-radius: 0;
}
.jz-form input:focus, .jz-form textarea:focus, .jz-gate-form input:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.jz-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.jz-form button, .jz-gate-form button { display: inline-flex; align-items: center; min-height: 48px; padding: 0 30px; background: var(--ink); color: var(--paper); border: 0; font: 600 15px var(--serif); letter-spacing: .2em; text-transform: uppercase; cursor: pointer; }
.jz-form button:hover, .jz-gate-form button:hover { background: var(--gold); }
.jz-hp { position: absolute; left: -9999px; }
.jz-form-thanks, .jz-form-about { font-size: 22px; font-style: italic; }
.jz-form-error, .jz-gate-message { color: #8a2c1d; }
@media (max-width: 600px) { .jz-form-row { grid-template-columns: 1fr; } }

/* ---------- Private / dark pages (viewing rooms, gated previews) ---------- */
.dark-page { background: var(--night); color: var(--night-ink); min-height: 70vh; }
.dark-page .muted { color: #b8aa95; }
.dark-page .eyebrow { color: var(--gold-soft); }
.gate { min-height: 72vh; display: flex; align-items: center; padding: 80px 0; }
.gate .wrap { max-width: 640px; }
.jz-gate-form label { display: block; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: #b8aa95; margin-bottom: 8px; }
.jz-gate-row { display: flex; gap: 10px; }
.jz-gate-form input { background: rgba(255,255,255,.06); border-color: rgba(233,220,198,.35); color: var(--night-ink); }
.jz-gate-form button { background: var(--gold-soft); color: #16120f; }
.jz-gate-message { color: #f0a58f; margin-top: 14px; }
.room-work { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding: clamp(40px, 6vw, 90px) 0; border-top: 1px solid rgba(233,220,198,.12); }
.room-work img { box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.room-work h2 { font-size: clamp(28px, 2.8vw, 40px); }
.room-work .btn { background: transparent; color: var(--night-ink); border-color: rgba(233,220,198,.45); }
.room-work .btn:hover { background: var(--gold-soft); color: #16120f; border-color: var(--gold-soft); }
@media (max-width: 860px) { .room-work { grid-template-columns: 1fr; } }

/* ---------- Exhibitions & journal lists ---------- */
.card-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 48px 32px; }
.card { text-decoration: none; display: block; }
.card figure { margin: 0 0 16px; aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-2); }
.card img { width: 100%; height: 100%; object-fit: cover; }
.card .kicker { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.card h3 { margin: 6px 0; }
.card p { color: var(--muted); font-size: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #d8ccb8; padding: 72px 0 36px; font-size: 17px; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px; }
.site-footer h4 { font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 14px; font-weight: 600; }
.site-footer a { color: #efe6d6; }
.site-footer .tagline { font-size: 30px; font-style: italic; color: #efe6d6; }
.site-footer .social { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer .bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(233,220,198,.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 14px; color: #a99b86; letter-spacing: .06em; }
.contact-lines { white-space: pre-line; }

/* ---------- Members ---------- */
.primary-nav .menu-account a { color: var(--gold); }
.jz-locked { padding: clamp(60px, 10vw, 140px) var(--gutter); text-align: center; }
.jz-locked .lead { margin-left: auto; margin-right: auto; }
.jz-form #loginform p { margin: 0 0 16px; }
.jz-form #loginform label { display: block; margin-bottom: 6px; }
.jz-form #loginform .login-remember label { display: flex; gap: 8px; align-items: center; }
.jz-form #loginform input[type=text], .jz-form #loginform input[type=password] { width: 100%; font: 400 19px/1.4 var(--serif); color: var(--ink); background: #fbf8f2; border: 1px solid rgba(40,33,28,.28); padding: 12px 14px; border-radius: 0; }
.jz-form #loginform input[type=submit] { font: 400 14px/1 var(--serif); letter-spacing: .18em; text-transform: uppercase; background: var(--ink); color: var(--paper); border: 0; padding: 15px 28px; cursor: pointer; }
.jz-account { display: grid; grid-template-columns: auto 1fr; gap: 10px 28px; font-size: 19px; margin: 0 0 32px; }
.jz-account dt { color: var(--muted); letter-spacing: .12em; text-transform: uppercase; font-size: 14px; padding-top: 4px; }
.jz-account dd { margin: 0; }

/* ---------- Sign-in options ---------- */
.jz-social { display: grid; gap: 12px; max-width: 420px; margin: 0 0 8px; }
.jz-social-btn { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 13px 18px; border: 1px solid rgba(40,33,28,.3); background: #fff; color: #1f1f1f; text-decoration: none; font: 500 16px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; border-radius: 4px; }
.jz-social-btn:hover { border-color: var(--ink); }
.jz-social-apple { background: #000; color: #fff; border-color: #000; }
.jz-social-apple:hover { background: #222; }
.jz-or { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 15px; margin: 14px 0 18px; }
.jz-or::before, .jz-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.jz-shared-h { margin: 48px 0 24px; }

/* ---------- Online exhibition ---------- */
.jzg-holder .jzg-list, .jzg-holder .jzg-back { max-width: var(--max, 1240px); margin-left: auto; margin-right: auto; padding: 0 var(--gutter); }

/* "Now" marker: menu item while an online exhibition is open, and on paintings that are on view */
.now-dot { display: inline-flex; align-items: center; gap: .4em; margin-left: .45em; font-size: .72em; letter-spacing: .14em; text-transform: uppercase; color: var(--gold, #a97f48); vertical-align: .12em; }
.now-dot::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 rgba(169,127,72,.55); animation: jz-now 2.4s ease-out infinite; }
.showing-now .now-dot { margin-left: 0; margin-right: .2em; }
.showing-now { margin: 1.2em 0; padding: .8em 0; border-top: 1px solid rgba(40,33,28,.14); border-bottom: 1px solid rgba(40,33,28,.14); }
@keyframes jz-now { 0% { box-shadow: 0 0 0 0 rgba(169,127,72,.55); } 70%, 100% { box-shadow: 0 0 0 .7em rgba(169,127,72,0); } }
@media (prefers-reduced-motion: reduce) { .now-dot::before { animation: none; } }

/* Poems: Hindi original beside the English rendering */
.poem.wp-block-columns { gap: clamp(28px, 5vw, 72px); margin: 8px 0 40px; }
.poem .wp-block-verse { font-family: var(--serif); font-size: clamp(19px, 1.5vw, 22px); line-height: 1.7; background: none; padding: 0; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink, #28211c); }
.poem .wp-block-verse:lang(hi), .poem .poem-hi .wp-block-verse { font-family: var(--deva); font-size: clamp(18px, 1.4vw, 21px); line-height: 1.95; }
.poem .poem-label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted, #6b5f55); margin: 0 0 14px; }
.poem-note { font-size: 15px; color: var(--muted, #6b5f55); font-style: italic; }
.category-poems .card h3 { font-size: 26px; }
.press-source { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold, #a97f48); margin-bottom: 6px; }

/* Private viewing: the tab and the list of rooms on the account page */
.menu-private a { color: var(--gold, #a97f48) !important; }
.jz-rooms-list { list-style: none; padding: 0; margin: 0 0 32px; border-top: 1px solid rgba(40,33,28,.14); }
.jz-rooms-list li { padding: 24px 0; border-bottom: 1px solid rgba(40,33,28,.14); }
.jz-room-works { display: flex; gap: 12px; overflow-x: auto; padding: 4px 4px 14px; margin-bottom: 8px; scrollbar-width: thin; }
.jz-room-works img { height: 150px; width: auto; flex: none; background: #fff; box-shadow: 0 0 0 5px #f7f4ee, 0 0 0 6px rgba(40,33,28,.25), 0 8px 18px rgba(0,0,0,.12); margin: 6px; }
.jz-room-text { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.jz-room-title { font-size: 26px; flex-basis: 100%; }
.jz-room-text span { color: var(--muted, #6b5f55); font-size: 15px; flex: 1 1 auto; }
@media (max-width: 600px) { .jz-room-works img { height: 110px; } }
.room-signin { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.dark-page .jzg-holder { background: var(--night, #0d0b0a); padding-bottom: 24px; }

/* Logo: JZ in ink (gold on dark headers), words in gold (ivory on dark) */
.brand { flex-direction: row; align-items: center; }
.brand-logo { height: 56px; width: auto; display: block; }
.brand-logo .m { fill: currentColor; }
.brand-logo .w { fill: var(--gold, #a97f48); }
.is-dark .brand-logo .m, .home .brand-logo .m { fill: var(--gold-soft, #c9a46d); }
.is-dark .brand-logo .w, .home .brand-logo .w { fill: var(--night-ink, #efe6d6); }
@media (max-width: 600px) { .brand-logo { height: 40px; } }
.card figure img.placeholder { object-fit: cover; }

/* Footer: social icons instead of words */
.site-footer .social { gap: 12px; align-items: center; }
.site-footer .social-icon { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(233,220,198,.28); border-radius: 50%; color: var(--night-ink, #efe6d6); text-decoration: none; transition: color .2s, border-color .2s, background .2s; }
.site-footer .social-icon svg { width: 20px; height: 20px; }
.site-footer .social-icon:hover, .site-footer .social-icon:focus-visible { color: #16120f; background: var(--gold-soft, #c9a46d); border-color: var(--gold-soft, #c9a46d); }

/* Poem reference numbers: present but quiet */
.poem-ref { display: block; font-size: 12px; letter-spacing: .18em; color: var(--muted, #6b5f55); opacity: .65; margin: 6px 0 0; font-variant-numeric: tabular-nums; }
.entry-content .poem-ref { margin-top: 28px; }

/* Catalogue numbers: a small grey line under the title, like a museum label */
.cat-no { display: block; font-size: 12px; letter-spacing: .16em; color: var(--muted, #6b5f55); opacity: .75; margin-top: 2px; font-variant-numeric: tabular-nums; }
.room-work .cat-no { margin: -6px 0 12px; }
.dark-page .cat-no { color: #b8aa95; }

/* Writings and About landing strips */
.writing-strip { padding: 40px 0 20px; border-top: 1px solid var(--line); }
.writing-strip:first-of-type { border-top: 0; padding-top: 0; }
.writing-strip .section-head .muted { margin: 6px 0 0; max-width: 46em; }
.about-strip { padding-top: 56px; }

/* WordPress buttons in page content look like the site's own buttons */
.entry-content .wp-block-button__link, .wp-block-button .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px;
	font: 600 15px/1 var(--serif); letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
	background: var(--ink); color: var(--paper); border: 1px solid var(--ink); border-radius: 0 !important; transition: .2s;
}
.wp-block-button .wp-block-button__link:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--ink); color: var(--paper); }

/* Standalone links as small outline buttons (see site.js); links inside sentences stay as text */
.btn-link { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px; margin: 4px 8px 4px 0; font: 600 13px/1.2 var(--serif); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--ink); border: 1px solid rgba(40,33,28,.45); background: transparent; transition: .2s; }
.btn-link:hover, .btn-link:focus-visible { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-link-plain { text-transform: none; letter-spacing: .04em; font-size: 15px; font-weight: 500; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0; }
.site-footer .btn-link, .is-dark .btn-link, .dark-page .btn-link { color: var(--night-ink, #efe6d6); border-color: rgba(233,220,198,.35); }
.site-footer .btn-link:hover, .is-dark .btn-link:hover, .dark-page .btn-link:hover { background: var(--gold-soft, #c9a46d); border-color: var(--gold-soft, #c9a46d); color: #16120f; }
/* Links inside running text: a fine gold underline */
.entry-content p a:not(.btn-link), .entry-content li a:not(.btn-link) { text-decoration-thickness: 1px; text-decoration-color: rgba(169,127,72,.6); text-underline-offset: 4px; }
.entry-content p a:not(.btn-link):hover { color: var(--gold); text-decoration-color: var(--gold); }
.site-footer address a, .site-footer p a:not(.btn-link) { text-decoration: none; }
.site-footer p a:not(.btn-link):hover { color: var(--gold-soft, #c9a46d); }
.btn-row .btn { margin: 4px 8px 4px 0; }
.jz-room-title { text-decoration: none; }
.jz-room-title:hover { color: var(--gold); }


/* ---------- Private viewing requests & members' layer (1.11.0) ---------- */
.jz-pv-line { margin-top: 36px; padding: 20px 22px; border: 1px solid rgba(169,127,72,.45); background: rgba(201,164,109,.08); display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.jz-pv-line p { margin: 0; font-size: 17px; line-height: 1.45; max-width: 420px; }
.jz-pv-line p span { color: var(--muted, #6b5f55); }
.jz-pv-strip { background: var(--paper, #f3ede1); }
.jz-pv-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; padding-top: 34px; padding-bottom: 34px; border-top: 1px solid rgba(169,127,72,.35); border-bottom: 1px solid rgba(169,127,72,.35); }
.jz-pv-strip p { margin: 0; max-width: 620px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; }
.jz-pv-kicker { display: block; margin-bottom: 6px; color: var(--gold-deep, #a97f48); letter-spacing: .3em; text-transform: uppercase; font-size: 12px; }
.jz-pv-card { margin: 36px 0; padding: 24px 26px; border: 1px solid rgba(169,127,72,.45); background: rgba(201,164,109,.08); max-width: 640px; }
.jz-pv-card p { margin: 0 0 14px; }
.jz-pv-foot { margin-top: 18px; font-size: 14px; line-height: 1.5; color: rgba(239,230,214,.7); }
.jz-pv-foot a { color: #d2b27f; white-space: nowrap; }
.jz-pv-form fieldset { border: 0; border-top: 1px solid rgba(169,127,72,.3); margin: 0 0 18px; padding: 18px 0 0; }
.jz-pv-form legend { padding: 0 12px 0 0; letter-spacing: .26em; text-transform: uppercase; font-size: 12px; color: var(--gold-deep, #a97f48); }
.jz-pv-label { margin: 14px 0 8px; font-weight: 600; }
.jz-pv-checks { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 8px; }
.jz-form .jz-pv-checks label { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 14px; border: 1px solid rgba(26,21,18,.18); cursor: pointer; font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--ink, #1a1512); white-space: nowrap; }
.jz-form .jz-pv-checks input { width: auto; margin: 0; padding: 0; }
.jz-pv-checks label:has(input:checked) { border-color: var(--gold-deep, #a97f48); background: rgba(201,164,109,.14); }
.jz-pv-form select { width: 100%; padding: 12px 14px; font: inherit; font-size: 17px; background: #fbf8f2; border: 1px solid rgba(26,21,18,.2); border-radius: 0; color: inherit; }
.jz-pv-thanks { padding: 22px 24px; line-height: 1.6; }
.jz-members-more { margin: 48px 0 0; padding: 26px 0 0; border-top: 1px solid rgba(169,127,72,.35); text-align: center; }
.jz-members-more p { margin: 0 0 14px; font-size: 19px; }
.jz-members-more .btn-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.jz-members-more.is-member { text-align: left; font-size: 15px; color: var(--muted, #6b5f55); border: 0; padding: 0; margin-top: 24px; }
.jz-early-note { margin-top: 26px; color: #d2b27f; font-size: 16px; }
.jz-early-note a { color: #efe6d6; }
.jz-pv-strip .btn { background: var(--gold, #a97f48); border-color: var(--gold, #a97f48); color: #14110f; }
.jz-pv-strip .btn:hover, .jz-pv-strip .btn:focus-visible { background: #c79a5e; border-color: #c79a5e; color: #14110f; }

.series-card .series-intro { margin: 10px 0 0; font-size: 16px; line-height: 1.5; color: var(--ink, #1a1512); opacity: .82; }
.series-card figure img.placeholder { object-fit: contain; background: #ece6da; }

/* 1.11.3: never crop a work in a thumbnail; show it whole, as if mounted */
.series-card figure, .card figure { display: flex; align-items: center; justify-content: center; padding: 14px; box-sizing: border-box; }
.series-card img, .card img { width: 100%; height: 100%; object-fit: contain; }
.series-card:hover img { transform: scale(1.02); }
.series-card figure img.placeholder, .card figure img.placeholder { object-fit: contain; }

/* 1.11.4 copyright notices */
.jz-rights { margin: 48px 0 0; padding: 16px 0 0; border-top: 1px solid rgba(169,127,72,.35); }
.jz-rights p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted, #6f6152); }
.jz-rights strong { color: var(--ink, #1a1512); font-weight: 600; }
.jz-rights a { color: var(--gold, #a97f48); white-space: nowrap; }
.site-footer .bottom a { color: #d2b27f; }

/* Authentication and certificates (1.12.0) */
.jz-fakes { background: var(--paper, #f3ede1); padding: clamp(40px, 6vw, 72px) 0; }
.jz-fakes .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; }
.jz-fakes .jz-fakes-text { margin: 0; max-width: 660px; padding-left: 20px; border-left: 3px solid #9b2c22; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; }
.jz-fakes-kicker { display: block; margin-bottom: 6px; color: #9b2c22; letter-spacing: .3em; text-transform: uppercase; font-size: 12px; font-weight: 600; }
.jz-fakes .jz-fakes-links { display: flex; flex-wrap: wrap; gap: 12px; }
.jz-fakes-foot { margin-top: 18px; }
.jz-fakes-foot p { margin: 0 0 10px; font-size: 14px; line-height: 1.5; color: rgba(239,230,214,.7); }
.jz-fakes-foot strong { color: #e3a596; font-weight: 600; }
.jz-fakes-foot .btn { min-height: 38px; padding: 0 16px; font-size: 12px; color: #efe6d6; border-color: rgba(239,230,214,.45); }
.jz-fakes-foot .btn:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.jz-coa-photos { display: grid; gap: 12px; }
.jz-coa-photos figcaption { margin-top: 6px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.jz-coa-transfer { max-width: 720px; margin-top: 48px; padding: 20px 24px; border: 1px solid rgba(169,127,72,.45); background: rgba(201,164,109,.06); }
.jz-coa-transfer summary { cursor: pointer; font-size: 20px; }
.jz-coa-transfer .jz-coa-form { border-top: 0; margin-top: 10px; }
.jz-coa-lead { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.55; }
.jz-coa-info h2, .jz-coa-form h2, .jz-coa-mine h2 { margin-top: 42px; }
.jz-coa-steps { padding-left: 1.3em; }
.jz-coa-steps li { margin-bottom: 10px; }
.jz-coa-terms li { margin-bottom: 8px; }
.jz-coa-form { max-width: 720px; margin-top: 30px; padding-top: 6px; border-top: 2px solid var(--gold); }
.jz-coa-form select, .jz-coa-form input[type=file] { width: 100%; font: 400 18px/1.4 var(--serif); color: var(--ink); background: #fbf8f2; border: 1px solid rgba(40,33,28,.28); border-radius: 0; padding: 10px 12px; }
.jz-coa-form input[readonly] { background: var(--paper-2); color: var(--muted); }
.jz-coa-declare label { text-transform: none; letter-spacing: 0; font-size: 17px; line-height: 1.5; color: var(--ink); display: flex; gap: 12px; align-items: flex-start; }
.jz-coa-declare input { width: auto; margin-top: 6px; flex: 0 0 auto; }
.jz-coa-mine { margin: 0 0 36px; padding: 22px 24px; border: 1px solid rgba(169,127,72,.45); background: rgba(201,164,109,.08); max-width: 720px; }
.jz-coa-mine h2 { margin-top: 0; font-size: 24px; }
.jz-coa-mine ul { list-style: none; margin: 0; padding: 0; }
.jz-coa-mine li { padding: 12px 0; border-top: 1px solid var(--line); }
.jz-coa-mine li:first-child { border-top: 0; }
.jz-coa-mine p { margin: 0 0 6px; }
.jz-coa-ref { font-weight: 600; }
.jz-coa-state { color: var(--muted); }
.jz-coa-estimate { margin-top: 10px; padding: 14px 16px; background: #fbf8f2; border-left: 2px solid var(--gold); }
.jz-coa-reply { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.jz-coa-locked { max-width: 640px; }
.jz-coa-result { margin: 0 0 32px; padding: 22px 24px; border: 1px solid var(--line); background: #fbf8f2; }
.jz-coa-result.is-valid { border-left: 4px solid #2f6b3a; }
.jz-coa-result.is-revoked, .jz-coa-result.is-none { border-left: 4px solid #9b2c22; }
.jz-coa-verdict { margin: 0 0 12px; font-size: 24px; font-weight: 600; }
.is-valid .jz-coa-verdict { color: #2f6b3a; }
.is-revoked .jz-coa-verdict, .is-none .jz-coa-verdict { color: #9b2c22; }
.jz-coa-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.jz-coa-card figure { margin: 0; background: var(--paper-2); padding: 14px; }
.jz-coa-card img { width: 100%; height: auto; max-height: 420px; object-fit: contain; display: block; }
.jz-coa-card dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; }
.jz-coa-card dt { color: var(--muted); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; padding-top: 3px; }
.jz-coa-card dd { margin: 0; }
@media (max-width: 700px) { .jz-coa-card { grid-template-columns: 1fr; } }
.jz-reg-offer { padding: 14px 18px; border-left: 3px solid var(--gold); background: rgba(201,164,109,.12); font-size: 19px; }
.jz-reg-buttons { margin-top: 18px; }
