/* Jai Zharotia — virtual gallery. Uses the theme's fonts and colours where present. */
.jzg { position: relative; margin: 0 0 56px; }
.jzg-room { position: relative; height: clamp(520px, 84svh, 900px); overflow: hidden; background: var(--wall, #ebe5d9); color: #2a231d; user-select: none; -webkit-user-select: none; cursor: grab; touch-action: pan-y; outline: none; }
.jzg-room.is-walking { cursor: grabbing; }
.jzg-room:focus-visible { box-shadow: inset 0 0 0 3px var(--gold, #a97f48); }
.jzg-dark { color: #efe6d6; }

/* ceiling with a light track */
.jzg-ceiling { position: absolute; left: 0; right: 0; top: 0; background: linear-gradient(#1b1714, #27211c); z-index: 3; overflow: hidden; }
.jzg-ceiling::after { content: ""; position: absolute; left: 0; right: 0; bottom: 30%; height: 3px; background: #0d0b0a; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.jzg-fixture { position: absolute; left: 0; bottom: 6%; width: 22px; height: 26px; margin-left: -11px; will-change: transform; }
.jzg-fixture::before { content: ""; position: absolute; left: 8px; top: -6px; width: 6px; height: 14px; background: #0d0b0a; }
.jzg-fixture::after { content: ""; position: absolute; left: 0; bottom: 0; width: 22px; height: 16px; border-radius: 3px 3px 9px 9px; background: linear-gradient(#3a332d, #15120f); box-shadow: 0 6px 14px rgba(255,236,200,.35); }

/* wall: soft plaster, darker towards the corners */
.jzg-wall { position: absolute; left: 0; right: 0; z-index: 1;
	background:
		radial-gradient(120% 90% at 50% 35%, rgba(255,255,255,.10), rgba(0,0,0,.10) 100%),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
		var(--wall, #ebe5d9);
}
.jzg-wall::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: linear-gradient(rgba(0,0,0,.05), rgba(0,0,0,.18)); } /* skirting shadow */
.jzg-world { position: absolute; left: 0; top: 0; height: 100%; will-change: transform; }

/* rooms: each has its own stretch of wall; partitions between them are drawn in perspective */
.jzg-seg { position: absolute; top: 0; height: 100%; }
.jzg-seg::before { content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(rgba(255,244,225,.10), rgba(0,0,0,0) 45%, rgba(0,0,0,.08)),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.jzg-parts { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.jzg-face, .jzg-edge { position: absolute; inset: 0; }
.jzg-edge { box-shadow: none; }
.jzg-roomtitle { position: absolute; line-height: 1.25; color: #2a231d; }
.jzg-roomtitle span { display: block; letter-spacing: .3em; text-transform: uppercase; font-size: .72em; opacity: .7; margin-bottom: .5em; }
.jzg-roomtitle strong { display: block; font-weight: 500; font-size: 1.6em; line-height: 1.1; }
.jzg-t-dark, .jzg-exit.jzg-t-dark { color: #efe6d6; }
.jzg-t-light, .jzg-exit.jzg-t-light { color: #2a231d; }

/* floor in perspective */
.jzg-floor { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; overflow: hidden; perspective: 380px; perspective-origin: 50% -60%; background: #3a2c22; }
.jzg-floor-plane { position: absolute; left: -50%; right: -50%; top: 0; height: 260%; transform-origin: 50% 0; transform: rotateX(68deg);
	background:
		linear-gradient(rgba(255,240,215,.16), rgba(0,0,0,.35) 70%),
		repeating-linear-gradient(90deg, #6b4a32 0 118px, #5d3f2a 118px 120px, #74513a 120px 238px, #5a3d29 238px 240px);
}
.jzg-floor::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,0) 30%, rgba(0,0,0,.35)); pointer-events: none; }

/* entrance and exit walls */
.jzg-panel { position: absolute; line-height: 1.35; }
.jzg-entrance h2 { font-size: 3.1em; line-height: 1.02; margin: .15em 0 .3em; font-weight: 500; }
.jzg-entrance .jzg-kicker { letter-spacing: .28em; text-transform: uppercase; font-size: .8em; opacity: .75; margin: 0; }
.jzg-entrance .jzg-cur { font-style: italic; margin: 0 0 1em; opacity: .85; }
.jzg-entrance .jzg-intro { font-size: 1.05em; max-width: 30em; margin: 0; }
.jzg-exit h2 { font-size: 2.2em; font-weight: 500; margin: 0 0 .4em; }
.jzg-exit p { margin: 0 0 .6em; }
.jzg-exit a { color: inherit; }

/* works */
.jzg-work { position: absolute; margin: 0; cursor: zoom-in; outline: none; }
.jzg-pool { position: absolute; left: -40%; right: -40%; top: -55%; bottom: -25%; background: radial-gradient(50% 50% at 50% 42%, rgba(255,246,226,.55), rgba(255,246,226,0) 70%); pointer-events: none; mix-blend-mode: soft-light; }
.jzg-dark .jzg-pool, .jzg-w-dark .jzg-pool { mix-blend-mode: screen; background: radial-gradient(50% 50% at 50% 42%, rgba(255,232,190,.22), rgba(255,232,190,0) 70%); }
.jzg-dark .jzg-w-light .jzg-pool { mix-blend-mode: soft-light; background: radial-gradient(50% 50% at 50% 42%, rgba(255,246,226,.55), rgba(255,246,226,0) 70%); }
.jzg-frame { position: absolute; inset: 0; display: block; padding: var(--fr, 0); background: #1f1b18; box-shadow: 0 2px 3px rgba(0,0,0,.25), 0 18px 34px -10px rgba(0,0,0,.45); transition: transform .5s ease, box-shadow .5s ease; }
.jzg-f-wood .jzg-frame { background: linear-gradient(135deg, #7a5638, #5b3e27 40%, #7c5a3b); }
.jzg-f-none .jzg-frame { background: transparent; box-shadow: 0 2px 3px rgba(0,0,0,.2), 0 16px 30px -12px rgba(0,0,0,.45), 6px 6px 0 -2px rgba(0,0,0,.08); }
.jzg-mat { position: relative; display: block; width: 100%; height: 100%; padding: var(--mat, 0); background: #f7f4ee; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), inset 2px 2px 3px rgba(0,0,0,.18); }
.jzg-f-none .jzg-mat, .jzg-f-black .jzg-mat, .jzg-f-wood .jzg-mat { background: #e9e4da; box-shadow: none; }
.jzg-mat img { display: block; width: 100%; height: 100%; object-fit: fill; opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.jzg-work.is-in img { opacity: 1; }
.jzg-work:hover .jzg-frame, .jzg-work:focus-visible .jzg-frame { transform: translateY(-1px); box-shadow: 0 2px 3px rgba(0,0,0,.25), 0 26px 44px -10px rgba(0,0,0,.5); }
.jzg-work:focus-visible .jzg-frame { outline: 2px solid var(--gold, #a97f48); outline-offset: 6px; }
.jzg-label { position: absolute; line-height: 1.35; padding: .5em .6em; background: rgba(255,255,255,.55); box-shadow: 0 1px 2px rgba(0,0,0,.12); color: #2a231d; }
.jzg-dark .jzg-label, .jzg-w-dark .jzg-label { background: rgba(255,250,240,.88); }
.jzg-dark .jzg-w-light .jzg-label { background: rgba(255,255,255,.55); }
.jzg-label strong { display: block; font-weight: 600; }
.jzg-label span { display: block; opacity: .8; }
.jzg-label em { display: block; margin-top: .3em; color: #8a6a3a; font-style: normal; letter-spacing: .06em; }

/* controls */
.jzg-ui { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.jzg-btn { pointer-events: auto; position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); background: rgba(250,247,240,.82); color: #28211c; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(4px); transition: opacity .3s, background .2s; }
.jzg-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.jzg-btn:hover { background: #fff; }
.jzg-btn:disabled { opacity: 0; pointer-events: none; }
.jzg-prev { left: 16px; } .jzg-next { right: 16px; }
.jzg-bar { pointer-events: auto; position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 6px 10px; background: rgba(20,17,15,.72); color: #efe6d6; border-radius: 30px; font-size: 14px; letter-spacing: .08em; backdrop-filter: blur(6px); white-space: nowrap; }
.jzg-small { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(239,230,214,.35); background: transparent; color: inherit; font-size: 18px; line-height: 1; cursor: pointer; }
.jzg-small:disabled { opacity: .3; cursor: default; }
.jzg-count { min-width: 66px; text-align: center; }
.jzg-link { background: none; border: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; letter-spacing: .04em; padding: 4px 6px; }
.jzg-hint { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); margin: 0; padding: 8px 14px; background: rgba(20,17,15,.62); color: #efe6d6; font-size: 14px; border-radius: 4px; text-align: center; max-width: calc(100% - 40px); transition: opacity .8s; }
.jzg-hint.is-gone { opacity: 0; }

/* list view (no JavaScript, or "View as a list") */
.jzg-list { list-style: none; margin: 0 0 64px; padding: 0; display: grid; gap: 40px; }
.jzg-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.jzg-list img { width: 100%; height: auto; }
.jzg-list h3 { margin: 0 0 6px; }
.jzg-js .jzg-list { display: none; }
.jzg-js.jzg-listmode .jzg-list { display: grid; }
.jzg-back { display: none; color: inherit; margin-bottom: 24px; }
.jzg-js.jzg-listmode .jzg-back { display: inline-block; }
@media (max-width: 700px) { .jzg-list li { grid-template-columns: 1fr; } }

/* look closer */
.jzg-noscroll { overflow: hidden; }
.jzg-look { position: fixed; inset: 0; z-index: 100000; background: rgba(13,11,10,.96); color: #efe6d6; display: grid; grid-template-columns: minmax(0, 1fr) 360px; opacity: 0; transition: opacity .25s; }
.jzg-look.is-open { opacity: 1; }
.jzg-look[hidden] { display: none; }
.jzg-look-stage { position: relative; overflow: hidden; display: grid; place-items: center; padding: 40px 70px; touch-action: none; cursor: zoom-in; }
.jzg-look-stage.is-zoomed { cursor: grab; }
.jzg-look-stage img { max-width: 100%; max-height: calc(100vh - 80px); object-fit: contain; transform-origin: center; transition: transform .25s ease; box-shadow: 0 30px 60px rgba(0,0,0,.5); user-select: none; -webkit-user-drag: none; }
.jzg-look-info { padding: 64px 32px 32px; overflow: auto; border-left: 1px solid rgba(239,230,214,.12); }
.jzg-look-n { letter-spacing: .2em; text-transform: uppercase; font-size: 13px; color: #c9a46e; margin: 0 0 10px; }
.jzg-look-info h3 { font-size: 30px; line-height: 1.15; margin: 0 0 10px; color: #f3ede1; font-weight: 500; }
.jzg-look-meta { margin: 0 0 6px; color: #d8ccb8; }
.jzg-look-cat, .jzg-look-status { margin: 0 0 6px; color: #b8aa95; font-size: 15px; }
.jzg-look-status:empty, .jzg-look-cat:empty { display: none; }
.jzg-look-text { margin: 18px 0; line-height: 1.6; color: #d8ccb8; white-space: pre-line; }
.jzg-look-acts a { color: #e3cfae; }
.jzg-look-acts .btn { display: inline-block; background: #c9a46e; color: #16120f; padding: 12px 20px; text-decoration: none; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; margin: 0 10px 10px 0; }
.jzg-look-tip { font-size: 13px; color: #8f8370; margin-top: 24px; }
.jzg-look .jzg-btn { background: rgba(239,230,214,.1); color: #efe6d6; border-color: rgba(239,230,214,.2); }
.jzg-look-prev { left: 14px; } .jzg-look-next { right: 374px; }
.jzg-look-x { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(239,230,214,.25); background: transparent; color: #efe6d6; font-size: 26px; cursor: pointer; z-index: 2; }
@media (max-width: 900px) {
	.jzg-look { grid-template-columns: 1fr; grid-template-rows: minmax(0, 62vh) auto; overflow: auto; }
	.jzg-look-stage { padding: 56px 12px 12px; }
	.jzg-look-stage img { max-height: calc(62vh - 70px); }
	.jzg-look-info { border-left: 0; border-top: 1px solid rgba(239,230,214,.12); padding: 20px 20px 40px; }
	.jzg-look-next { right: 14px; }
	.jzg-look .jzg-btn { top: 31vh; }
}
@media (max-width: 700px) {
	.jzg-room { height: clamp(460px, 78svh, 720px); }
	.jzg-btn { width: 44px; height: 44px; margin-top: -22px; }
	.jzg-prev { left: 8px; } .jzg-next { right: 8px; }
	.jzg-bar { bottom: 10px; font-size: 13px; gap: 6px; }
	.jzg-hint { bottom: 56px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .jzg-frame, .jzg-mat img, .jzg-look, .jzg-look-stage img { transition: none; } }

/* home page: "Now showing online" */
.jzg-now { background: var(--jz-now-bg, #e4d6bd); border-top: 1px solid rgba(169,127,72,.4); border-bottom: 1px solid rgba(169,127,72,.4); color: var(--night-ink, #efe6d6); padding: clamp(48px, 7vw, 96px) 0; }
.jzg-now .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.jzg-now h2 { margin: 0 0 10px; color: #f3ede1; }
.jzg-now .muted { color: #c2b5a1; }
.jzg-now .eyebrow { color: #d2b27f; }
.jzg-now.no-line { border-top-color: transparent; border-bottom-color: transparent; }
.jzg-now.is-light .jzg-now-works { background: radial-gradient(60% 70% at 50% 30%, rgba(255,255,255,.45), rgba(255,255,255,0)); }
.jzg-now.is-light .jzg-now-works img { box-shadow: 0 0 0 6px #fbf8f2, 0 0 0 8px #2a2521, 0 16px 26px rgba(60,40,20,.28); }
.jzg-now.is-light .jzg-now-teaser img { box-shadow: 0 14px 30px rgba(60,40,20,.18); }
.jzg-now.is-light { color: #1a1512; }
.jzg-now.is-light h2 { color: #1a1512; }
.jzg-now.is-light .muted { color: #5c5047; }
.jzg-now.is-light .eyebrow, .jzg-now.is-light .jzg-now-count { color: #8a6536; border-color: #8a6536; }
.jzg-now-works { display: flex; align-items: flex-end; justify-content: center; gap: 18px; padding: 30px; background: radial-gradient(60% 70% at 50% 30%, rgba(255,240,210,.12), rgba(0,0,0,0)); }
.jzg-now-works img { max-height: 240px; max-width: 32%; width: auto; box-shadow: 0 0 0 6px #f7f4ee, 0 0 0 8px #1f1b18, 0 20px 30px rgba(0,0,0,.5); }
@media (max-width: 800px) { .jzg-now .wrap { grid-template-columns: 1fr; } .jzg-now-works img { max-height: 150px; } }
.jzg-now-count { display: inline-block; margin: 4px 0 14px; padding: 6px 14px; border: 1px solid var(--gold, #a97f48); color: var(--gold, #c9a46d); letter-spacing: .16em; text-transform: uppercase; font-size: 13px; }
.jzg-now .btn { background: var(--gold, #a97f48); color: #14110f; border-color: var(--gold, #a97f48); }
.jzg-now .btn:hover, .jzg-now .btn:focus-visible { background: #c79a5e; color: #14110f; }
.jzg-now-teaser { display: block; max-width: 520px; justify-self: center; width: 100%; }
.jzg-now-teaser img { display: block; width: 100%; height: auto; border-radius: 2px; }
.jzg-label .jzg-cat { display: block; font-size: .78em; letter-spacing: .12em; opacity: .6; margin: 1px 0 3px; }
/* Links in the gallery as outline buttons */
.jzg-look-acts a:not(.btn), .jzg-exit-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; margin: 0 8px 10px 0; border: 1px solid rgba(233,220,198,.45); color: #efe6d6; text-decoration: none; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; }
.jzg-look-acts a:not(.btn):hover, .jzg-exit-links a:hover { background: #c9a46e; border-color: #c9a46e; color: #16120f; }
.jzg-exit-links { font-size: 0; }
.jzg-t-light .jzg-exit-links a, .jzg-exit.jzg-t-light .jzg-exit-links a { color: #2a231d; border-color: rgba(42,35,29,.4); }
.jzg-exit-pv { margin-top: 6px; font-size: 0; }
.jzg-exit-pv a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; background: #c9a46e; color: #16120f; text-decoration: none; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; }
.jzg-exit-pv a:hover { background: #dcb980; }
