/**
 * Gallery Hub — "very Colorado / homegrown"
 * Mountain motifs · kraft/craft texture · hand-lettered headers · warm earthy palette
 */

.gallery-hub {
	/* --- warm earthy palette (extends the theme's terracotta) --- */
	--co-clay:        #ab5a29;   /* primary accent (kept burnt orange) */
	--co-clay-dark:   #8a4820;
	--co-sand:        #d4b39d;
	--co-sand-lt:     #e7d3c3;
	--co-cream:       #f8f3ef;
	--co-cream-2:     #f1e6da;
	--co-pine:        #3f5e4e;   /* free-release / "given" green */
	--co-sky:         #5b7c99;
	--co-ink:         #2e2723;
	--co-ink-soft:    #6b5d52;
	--co-line:        #d8c7b6;

	--gh-radius:      14px;
	--gh-shadow:      0 10px 26px -14px rgba(60, 34, 12, .45);

	max-width: 1220px;
	margin: 0 auto;
	padding: 0 20px 64px;
	overflow-x: hidden;
	color: var(--co-ink);
	background: var(--co-cream);
	font-family: 'Louis George Cafe', 'Poppins', system-ui, sans-serif;
	/* faint topographic contour texture */
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23ab5a29' stroke-opacity='0.06' stroke-width='1.5'%3E%3Cpath d='M-10 40 Q30 10 60 34 T130 30'/%3E%3Cpath d='M-10 70 Q30 44 60 64 T130 60'/%3E%3Cpath d='M-10 100 Q30 74 60 94 T130 90'/%3E%3C/g%3E%3C/svg%3E");
}

/* --- hero: Direction B "Refined" — a real rotating photo fills the hero, a
   left-to-right dark scrim keeps the lockup legible, the lockup sits
   lower-left as one line with a neon-green rule, and the tabs are a flat
   underline bar sitting directly on a dark strip attached to the photo
   (matching the approved reference exactly, not a re-interpretation). --- */
.gh-hero {
	position: relative;
	min-height: 300px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	background-size: cover;
	background-position: center;
	overflow: hidden;
}
.gh-hero-scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(20, 0, 16, .78) 0%, rgba(20, 0, 16, .30) 45%, transparent 75%);
}
.gh-lockbox {
	position: relative;
	z-index: 2;
	align-self: flex-start;
	margin: 0 0 26px 34px;
	background: #8e0079;
	border-radius: 12px;
	padding: 18px 30px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}
.gh-lockrow { display: inline-flex; align-items: baseline; gap: .22em; }
.gh-gl-pre, .gh-gl-post {
	font-family: 'Satisfy', cursive;
	font-size: 2rem;
	font-style: italic;
	color: #fff;
	text-shadow: 0 0 8px rgba(255, 255, 255, .9), 0 0 20px rgba(230, 180, 255, .55), 0 0 38px rgba(200, 100, 255, .25);
}
.gh-gl-name {
	font-family: 'Pacifico', cursive;
	font-size: 2.5rem;
	color: #88e845;
	text-decoration: underline;
	text-decoration-color: #f56820;
	text-decoration-thickness: 3px;
	text-underline-offset: 4px;
	text-shadow: 0 0 8px rgba(136, 232, 69, .9), 0 0 22px rgba(120, 212, 56, .55), 0 0 40px rgba(100, 200, 30, .25);
}
.gh-gl-name sup { font-size: .42em; vertical-align: super; }

/* --- header (optional, admin-set eyebrow/title/intro — secondary to the
   hero's own branding now, only shows if actually filled in) --- */
.gh-head { text-align: center; padding: 22px 0 6px; }
.gh-eyebrow {
	margin: 0 0 4px;
	font-family: 'Poppins', sans-serif;
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--co-clay);
}
.gh-title {
	margin: 0;
	font-family: 'Pacifico', 'Satisfy', cursive;
	font-weight: 400;
	font-size: clamp(2.1rem, 5vw, 3.2rem);
	line-height: 1.05;
	color: var(--co-ink);
	text-wrap: balance;
}
.gh-intro {
	max-width: 42ch;
	margin: 10px auto 0;
	font-size: 1rem;
	color: var(--co-ink-soft);
}

/* --- tabs: flat underline bar on a dark strip attached to the hero photo --- */
.gh-tabs {
	position: relative;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 0 18px;
	background: #1a0518;
}
.gh-tab {
	appearance: none;
	border: 0;
	border-bottom: 3px solid transparent;
	background: transparent;
	color: rgba(255, 255, 255, .62);
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: .8rem;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: 16px 14px;
	cursor: pointer;
	text-decoration: none;
	display: flex;
	max-width: 100%;
	min-width: 0;
	transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.gh-tab-label { min-width: 0; overflow-wrap: break-word; }
.gh-tab:hover { color: #fff; }
.gh-tab.is-active { color: #ff9256; border-bottom-color: #f56820; }
.gh-tab:focus-visible { outline: 3px solid var(--co-sky); outline-offset: 2px; }

/* --- recruiting CTA, shown only under its matching tab (crowd / Curated Pro) --- */
.gh-tab-cta {
	text-align: center;
	margin: 18px auto 0;
	max-width: 60ch;
	padding: 0 16px;
	box-sizing: border-box;
}
.gh-tab-cta-pitch {
	margin: 0 0 10px;
	font-size: 0.92rem;
	color: var(--co-ink-soft);
}
.gh-tab-cta-btn {
	display: inline-block;
	border-radius: 10px;
	padding: 9px 24px;
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 0.9rem;
	text-decoration: none;
	border: 2px solid transparent;
	transition: background 0.15s ease, border-color 0.15s ease;
}
.gh-tab-cta-btn--crowd { background: #f56820; color: #fff; border-color: #f56820; }
.gh-tab-cta-btn--crowd:hover { background: #c14c11; border-color: #c14c11; color: #fff; }
.gh-tab-cta-btn--curated { background: #8e0079; color: #fff; border-color: #8e0079; }
.gh-tab-cta-btn--curated:hover { background: #720062; border-color: #720062; color: #fff; }

/* --- status line --- */
.gh-status {
	text-align: center;
	min-height: 1.2em;
	margin: 14px 0 0;
	font-size: .88rem;
	color: var(--co-ink-soft);
}

/* --- grid --- */
.gh-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 22px 20px;
	margin-top: 18px;
}
@media (max-width: 520px) {
	.gh-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 12px; }
}

/* --- card --- */
.gh-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: #fff;
	border: 1.5px solid var(--co-line);
	border-radius: var(--gh-radius);
	overflow: hidden;
	cursor: pointer;
	transition: transform .12s ease, box-shadow .12s ease;
}
.gh-card:hover { transform: translateY(-3px); box-shadow: var(--gh-shadow); }
.gh-card:focus-visible { outline: 3px solid var(--co-sky); outline-offset: 2px; }

/* torn kraft strip along the top of the image */
.gh-card-figure {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--co-cream-2);
	overflow: hidden;
}
.gh-card-figure::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 8px;
	z-index: 2;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='8' viewBox='0 0 60 8'%3E%3Cpath d='M0 0 H60 V4 L54 6 L48 3 L42 7 L36 3 L30 6 L24 3 L18 7 L12 3 L6 6 L0 4 Z' fill='%23d4b39d'/%3E%3C/svg%3E") repeat-x top left / 60px 8px;
}
.gh-card-figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.gh-card-body {
	padding: 10px 12px 12px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.gh-card-title {
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: .92rem;
	line-height: 1.25;
	color: var(--co-ink);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.gh-card-sub {
	font-size: .78rem;
	color: var(--co-ink-soft);
}

/* --- marks --- */
.gh-mark {
	position: absolute;
	z-index: 3;
	font-family: 'Poppins', sans-serif;
	font-weight: 800;
}
/* file-use fee — ink stamp, bottom-left of the image */
.gh-mark--fee {
	left: 8px;
	bottom: 8px;
	padding: 4px 9px;
	font-size: .72rem;
	letter-spacing: .03em;
	color: #fff;
	background: var(--co-clay);
	border-radius: 4px;
	transform: rotate(-3deg);
	box-shadow: 0 2px 0 rgba(0,0,0,.15);
}
.gh-mark--fee::after { content: " file use"; font-weight: 600; opacity: .85; }
/* rare — top-right */
.gh-mark--rare {
	right: 8px;
	top: 12px;
	padding: 3px 8px;
	font-size: .64rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--co-cream);
	background: var(--co-pine);
	border-radius: 3px;
	transform: rotate(2deg);
}
/* free — tiny quiet sun, top-left */
.gh-mark--free {
	left: 8px;
	top: 12px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: radial-gradient(circle at 50% 50%, #f4d58d 0 40%, transparent 42%),
		conic-gradient(from 0deg, var(--co-clay) 0 100%);
	-webkit-mask: radial-gradient(circle at 50% 50%, #000 0 46%, transparent 48%),
		repeating-conic-gradient(from 0deg, #000 0 8deg, transparent 8deg 22deg);
	mask: radial-gradient(circle at 50% 50%, #000 0 46%, transparent 48%),
		repeating-conic-gradient(from 0deg, #000 0 8deg, transparent 8deg 22deg);
	opacity: .9;
}

/* --- show more --- */
.gh-more-wrap { text-align: center; margin-top: 28px; }
.gh-more {
	appearance: none;
	border: 1.5px solid var(--co-clay);
	background: #fff;
	color: var(--co-clay);
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: .86rem;
	padding: 10px 24px;
	border-radius: 999px;
	cursor: pointer;
}
.gh-more:hover { background: var(--co-clay); color: #fff; }

/* --- modal --- */
.gh-modal { position: fixed; inset: 0; z-index: 9999; display: flex; }
.gh-modal[hidden] { display: none; }
.gh-modal-scrim { position: absolute; inset: 0; background: rgba(46, 39, 35, .62); }
.gh-modal-card {
	position: relative;
	margin: auto;
	width: min(920px, calc(100vw - 32px));
	max-height: calc(100vh - 48px);
	overflow: auto;
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	background: var(--co-cream);
	border-radius: 18px;
	box-shadow: 0 30px 80px -20px rgba(0,0,0,.5);
}
@media (max-width: 720px) {
	.gh-modal-card { grid-template-columns: 1fr; }
}
.gh-modal-x {
	position: absolute; top: 8px; right: 12px;
	appearance: none; border: 0; background: transparent;
	font-size: 2rem; line-height: 1; color: var(--co-ink); cursor: pointer;
	z-index: 2;
}
.gh-modal-figure { background: #000; }
.gh-modal-figure img { width: 100%; height: 100%; max-height: 70vh; object-fit: contain; display: block; }
.gh-modal-body { padding: 26px 26px 30px; }
.gh-modal-title {
	margin: 0 0 6px;
	font-family: 'Pacifico', cursive;
	font-weight: 400;
	font-size: 1.6rem;
	color: var(--co-ink);
}
.gh-modal-meta { margin: 0 0 14px; font-size: .86rem; color: var(--co-ink-soft); }
.gh-modal-price {
	border-top: 2px dashed var(--co-line);
	border-bottom: 2px dashed var(--co-line);
	padding: 14px 0;
	margin: 0 0 16px;
	font-family: 'Poppins', sans-serif;
}
.gh-price-fee { font-size: 1.4rem; font-weight: 800; color: var(--co-clay); }
.gh-price-free { font-size: 1.35rem; font-weight: 800; color: var(--co-pine); }
.gh-price-note { display: block; margin-top: 4px; font-size: .82rem; font-weight: 400; color: var(--co-ink-soft); }
.gh-price-given { display: block; margin-top: 8px; font-size: .84rem; color: var(--co-ink); }
.gh-price-given a { color: var(--co-clay); font-weight: 700; }
.gh-modal-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.gh-modal-tags span {
	font-size: .72rem;
	padding: 3px 8px;
	background: var(--co-cream-2);
	border: 1px solid var(--co-line);
	border-radius: 999px;
	color: var(--co-ink-soft);
}
.gh-cta {
	display: inline-block;
	background: var(--co-clay);
	color: #fff;
	font-family: 'Poppins', sans-serif;
	font-weight: 800;
	font-size: .95rem;
	text-decoration: none;
	padding: 12px 26px;
	border-radius: 999px;
	box-shadow: var(--gh-shadow);
}
.gh-cta:hover { background: var(--co-clay-dark); color: #fff; }

/* --- skeleton / loading --- */
.gh-card--skeleton { pointer-events: none; }
.gh-card--skeleton .gh-card-figure { background: linear-gradient(90deg, var(--co-cream-2) 0%, #fff 50%, var(--co-cream-2) 100%); background-size: 200% 100%; animation: gh-shimmer 1.2s linear infinite; }
.gh-card--skeleton .gh-card-body { opacity: .4; }
.gh-card--skeleton .gh-card-title { background: var(--co-line); color: transparent; border-radius: 4px; }

@keyframes gh-shimmer { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
	.gh-card, .gh-tab, .gh-card--skeleton .gh-card-figure { transition: none; animation: none; }
}

/* --- mobile: hero/tabs layout tuned from live on-device feedback — placed
   last so it reliably wins over the base rules above for shared properties --- */
@media (max-width: 600px) {
	.gh-hero {
		min-height: 380px;
		background-size: cover;
		background-repeat: no-repeat;
		background-position: center;
	}
	.gh-lockbox {
		position: absolute;
		top: 16px;
		left: 50%;
		transform: translateX(-50%);
		width: max-content;
		max-width: calc(100% - 24px);
		box-sizing: border-box;
		margin: 0;
		padding: 8px 12px;
	}
	.gh-lockrow { flex-wrap: wrap; }
	.gh-gl-pre, .gh-gl-post { font-size: .95rem; }
	.gh-gl-name { font-size: 1.25rem; }
	.gh-tabs {
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		background: transparent;
		flex-direction: column;
		gap: 0;
	}
	.gh-tab {
		width: 100%;
		box-sizing: border-box;
		justify-content: flex-start;
		font-size: .75rem;
		padding: 10px 10px;
		text-shadow: 0 1px 4px rgba(0, 0, 0, .85), 0 1px 14px rgba(0, 0, 0, .6);
		border-bottom-color: transparent;
	}
	.gh-tab.is-active { border-bottom-color: #f56820; order: 1; }
}
