/*
 * Gallery walls (2026-12-02): frames drawn like the product page mockup, shared by the composer (/gallery-wall/),
 * the "Gallery walls" section of the artist page and the artist dashboard. Needs css/fineart-product-mockup.css.
 * Units: --cm (pixels per cm) on a parent; each frame gets --x, --y (cm), --iw, --ih (image cm), --b (white border cm).
 */

/* ---------- One framed artwork ---------- */
.gw-f.fineart-product-frame {
	--frame-strip: calc(4 * var(--cm));     /* Gallery Frame: 2 cm of frame around the print */
	--classic-strip: calc(3 * var(--cm));   /* Classic Frame: 15 mm wood profile */
	--classic-mat: calc(var(--b) * var(--cm));
	position: absolute;
	left: calc(var(--x) * var(--cm));
	top: calc(var(--y) * var(--cm));
	display: block;
	margin: 0;
	line-height: 0;
	/* Standing off the wall: a contact shadow and a soft cast shadow, as in "Show in room". */
	filter:
		drop-shadow(0 calc(.25 * var(--cm)) calc(.35 * var(--cm)) rgba(0, 0, 0, .28))
		drop-shadow(calc(.4 * var(--cm)) calc(1.4 * var(--cm)) calc(2.2 * var(--cm)) rgba(40, 30, 20, .22));
}
.gw-f.fineart-product-frame[data-style="classic"] { margin: 0; }
.gw-f > img {
	position: relative;
	z-index: 4;
	display: block;
	width: calc(var(--iw) * var(--cm));
	height: calc(var(--ih) * var(--cm));
	max-width: none !important;
	margin: 0 !important;
	object-fit: cover;
	box-shadow: 0 0 calc(.1 * var(--frame-strip)) rgba(0, 0, 0, .5);
	filter: brightness(.97) contrast(.97) saturate(.94);
	pointer-events: none;
}
.gw-f[data-style="classic"] > img,
#fa-gw .gw-f[data-style="classic"] > img {
	box-sizing: content-box !important; /* the white border goes around the print, never inside it */
	padding: var(--classic-mat);
	background: #e3e3e3;
	box-shadow: none;
	filter: none;
}
.gw-f[data-glazing="matte"] > img { filter: brightness(.97) contrast(.95) saturate(.92); }
/* Room light across print and frame. */
.gw-f .gw-light {
	position: absolute;
	z-index: 6;
	inset: calc(-.5 * var(--frame-strip));
	background: linear-gradient(135deg, rgba(255, 250, 240, .12) 0%, rgba(255, 250, 240, 0) 45%, rgba(30, 20, 10, .08) 100%);
	pointer-events: none;
}
.gw-f[data-style="classic"] .gw-light { inset: calc(-.5 * var(--classic-strip)); }

/* ---------- Small drawing of a whole wall ---------- */
.gw-mini { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: linear-gradient(180deg, #ece7df 0%, #e4ddd2 78%, #d6cdc0 78.3%, #cfc5b7 100%); }
.gw-mini__wall { position: absolute; left: 50%; top: 42%; width: calc(var(--W) * var(--cm, 2px)); height: calc(var(--H) * var(--cm, 2px)); transform: translate(-50%, -50%); }
.gw-mini .gw-frame.is-empty { position: absolute; left: calc(var(--x) * var(--cm)); top: calc(var(--y) * var(--cm)); width: calc(var(--fw) * var(--cm)); height: calc(var(--fh) * var(--cm)); border: 1px dashed rgba(40, 35, 30, .4); }

/* ---------- Card ---------- */
.gw-card-wall { display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: #fff; color: #151515; font-family: Manrope, system-ui, -apple-system, sans-serif; letter-spacing: 0; text-align: left; }
.gw-card-wall__stage { display: block; text-decoration: none !important; }
.gw-card-wall__stage .gw-mini { transition: filter .3s ease; }
a.gw-card-wall__stage:hover .gw-mini { filter: brightness(1.03); }
.gw-card-wall__body { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 18px 20px 6px; }
.gw-card-wall h3 { margin: 0 !important; color: #151515 !important; font: 600 18px/1.25 Manrope, system-ui, sans-serif !important; letter-spacing: -.01em !important; text-transform: none !important; }
.gw-card-wall__txt p { margin: 4px 0 0 !important; padding: 0 !important; color: #6b665f !important; font: 400 13px/1.4 Manrope, system-ui, sans-serif !important; letter-spacing: 0 !important; }
.gw-card-wall__price { display: flex; flex-direction: column; align-items: flex-end; margin: 0 !important; padding: 0 !important; white-space: nowrap; line-height: 1.25 !important; }
.gw-card-wall__price { flex-direction: row !important; align-items: baseline !important; gap: 6px; }
.gw-card-wall__price b { color: #151515; font-size: 20px; font-weight: 700; }
.gw-card-wall__price em { color: #6b665f; font-size: 13px; font-style: normal; }
.gw-card-wall__cta { display: flex; align-items: center; justify-content: center; height: 46px; margin: 12px 20px 20px; border-radius: 999px; background: #151515; color: #fff !important; font: 600 14px/1 Manrope, system-ui, sans-serif; text-decoration: none !important; transition: background-color .2s ease; }
.gw-card-wall__cta:hover { background: #000; }
.gw-card-wall__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 20px 20px; }
.gw-card-wall.is-draft .gw-mini { opacity: .8; }
.gw-status { margin-right: auto; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.gw-status--publish { background: #e6f2ea; color: #1f6b3a; }
.gw-status--draft { background: #f1eee9; color: #6b665f; }

/* ---------- Artist page, inside "The Collection" (2026-12-02) ---------- */
/* Computers: two tabs, Artworks | Gallery walls. */
.gw-ctabs { display: flex; justify-content: center; gap: 4px; width: max-content; margin: 28px auto 0; padding: 4px; border-radius: 999px; background: #f1eee9; }
.gw-ctabs button { display: inline-flex; align-items: center; gap: 8px; height: 40px; margin: 0; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: #6b665f; font: 500 14px/1 Manrope, system-ui, sans-serif; letter-spacing: 0; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.gw-ctabs button span { color: inherit; font-weight: 400; opacity: .7; }
.gw-ctabs button[aria-selected="true"] { background: #fff; color: #151515; font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.gw-ctabs button:focus-visible { outline: 2px solid #151515; outline-offset: 2px; }
.gw-cwalls[hidden] { display: none !important; }
.gw-cwalls { margin-top: 28px; }
.gw-cwalls__intro { max-width: 560px; margin: 0 auto 32px !important; color: #6b665f !important; font: 400 14px/1.6 Manrope, system-ui, sans-serif !important; letter-spacing: 0 !important; text-align: center; }
.gw-cwalls__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 20px; }
.gw-wt { display: flex; flex-direction: column; align-items: center; color: #000 !important; text-align: center; text-decoration: none !important; }
.gw-wt__img { display: block; width: 100%; }
.gw-wt .gw-mini { aspect-ratio: 1; background: #f4f4f4; transition: filter .3s ease; }
.gw-wt .gw-mini__wall { top: 50%; }
.gw-wt:hover .gw-mini { filter: brightness(1.02); }
.gw-wt__name { margin-top: 14px; font-size: 14px; font-weight: 600; line-height: 24px; letter-spacing: normal; }
.gw-wt__name::before { content: open-quote; }
.gw-wt__name::after { content: close-quote; }
.gw-wt__sub { color: #4a4a4a; font-size: 13px; line-height: 20px; letter-spacing: 1px; text-transform: uppercase; }
@media (min-width: 691px) {
	#collection.gw-show-walls .above-grid,
	#collection.gw-show-walls .woocommerce,
	#collection.gw-show-walls ul.products { display: none !important; }
	.gw-ct { display: none !important; }
}
@media (max-width: 900px) and (min-width: 691px) {
	.gw-cwalls__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phones: one wall tile across the grid, after the first row. */
/* The live grid is a wrapping flex row with 10px around each artwork (and 25px under it). */
.gw-ct { position: relative; display: block; float: none !important; clear: both; grid-column: 1 / -1; flex: 0 0 calc(100% - 20px); width: calc(100% - 20px) !important; height: 250px; margin: 10px 10px 35px !important; padding: 0 !important; overflow: hidden; background: #ebe6de; list-style: none; }
.gw-ct__slide { position: absolute; inset: 0; display: block; color: #151515 !important; text-align: left; text-decoration: none !important; }
.gw-ct__slide[hidden] { display: none; }
.gw-ct .gw-mini { position: absolute; left: 0; right: 0; top: 40px; bottom: 64px; aspect-ratio: auto; background: transparent; }
.gw-ct .gw-mini__wall { top: 50%; }
.gw-ct__tag { position: absolute; z-index: 2; left: 14px; top: 14px; padding: 5px 10px; border-radius: 999px; background: #151515; color: #fff; font: 600 10px/1.2 Manrope, system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.gw-ct__next { position: absolute; z-index: 2; right: 10px; top: 8px; display: inline-flex; align-items: center; gap: 4px; height: 32px; margin: 0; padding: 0 10px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .7); color: #151515; font: 600 12px/1 Manrope, system-ui, sans-serif; letter-spacing: 0; cursor: pointer; }
.gw-ct__foot { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.gw-ct__txt { display: flex; flex-direction: column; min-width: 0; font-family: Manrope, system-ui, sans-serif; letter-spacing: 0; }
.gw-ct__txt strong { overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.gw-ct__txt span { color: #6b665f; font-size: 12px; line-height: 1.4; }
.gw-ct__cta { display: inline-flex; flex: none; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: #fff; font: 600 12px/1 Manrope, system-ui, sans-serif; letter-spacing: 0; white-space: nowrap; }
@media (max-width: 690px) {
	.gw-ctabs, .gw-cwalls { display: none !important; }
}

/* ---------- Artist dashboard ---------- */
.gw-dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 18px; margin-top: 8px; }
.gw-dash-grid .gw-card-wall { box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.gw-dash-empty p { margin: 0 0 8px; }
.fa-dash .fa-btn--primary, .fineart-my-artworks .fa-btn--primary { background: #151515; color: #fff !important; box-shadow: none; }
.fa-btn--ghost { background: transparent; }

/* ---------- Product page: the artist's walls with this artwork, under the pills (2026-12-02) ---------- */
.fa-pw { margin: 18px 0 0; font-family: Manrope, system-ui, -apple-system, sans-serif; letter-spacing: 0; }
.fa-pw__h { margin: 0 0 8px !important; padding: 0 !important; color: #6b665f !important; font: 600 11px/1.4 Manrope, system-ui, sans-serif !important; letter-spacing: .14em !important; text-transform: uppercase; }
.fa-pw__row { display: flex; flex-direction: column; gap: 8px; }
.fa-pw__card { display: flex; align-items: center; gap: 14px; padding: 8px 14px 8px 8px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px #dcd8d2; color: #151515 !important; text-decoration: none !important; transition: box-shadow .2s ease; }
.fa-pw__card:hover { box-shadow: inset 0 0 0 1.5px #151515; }
.fa-pw__img { flex: none; width: 112px; overflow: hidden; border-radius: 8px; }
.fa-pw__img .gw-mini { aspect-ratio: 16 / 10; }
.fa-pw__img .gw-mini__wall { top: 46%; }
.fa-pw__txt { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.fa-pw__txt b { overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.fa-pw__txt small { color: #6b665f; font-size: 12px; line-height: 1.4; }
.fa-pw__card svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- A wall on a room photo, at real scale (artist landing page) ---------- */
.gw-roomshot { position: relative; overflow: hidden; line-height: 0; }
.gw-roomshot__bg { display: block; width: 100%; height: auto; }
.gw-roomshot .gw-mini__wall { position: absolute; width: calc(var(--W) * var(--cm, 2px)); height: calc(var(--H) * var(--cm, 2px)); transform: translate(-50%, -100%); } /* x: centre, y: bottom of the wall, as in the composer */
.gw-roomshot__in { position: relative; }
