/**
 * Gallery filter + intro styles. The grid keeps the theme styling. Chips are
 * scoped body.tol-site with !important so the Elementor kit cannot repaint them
 * as solid plum blocks. Compact pills, tighter on mobile.
 */

/* Intro line above the filter. */
.tol-gm-intro-msg {
	max-width: 640px;
	margin: 0 auto 20px;
	padding: 0 clamp(20px, 4vw, 64px);
	text-align: center;
	font-size: 1rem;
	line-height: 1.5;
	color: #6b5f57;
}

.tol-gm-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px 28px;
	margin: 0 auto 30px;
	padding: 0 clamp(20px, 4vw, 64px);
	max-width: 1440px;
}

.tol-gm-filter-group {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 10px;
}

.tol-gm-filter-label {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #9E2D63;
	margin-right: 4px;
}

.tol-gm-filter-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* Compact outline pill. Scoped + !important to beat the kit button style. */
body.tol-site .tol-gm-chip,
.tol-gm-chip {
	appearance: none !important;
	border: 1px solid rgba(158, 45, 99, 0.4) !important;
	background: transparent !important;
	background-color: transparent !important;
	color: #3A322C !important;
	font: inherit;
	font-size: 0.86rem !important;
	line-height: 1 !important;
	letter-spacing: 0.02em !important;
	padding: 8px 16px !important;
	border-radius: 999px !important;
	min-height: 0 !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
body.tol-site .tol-gm-chip:hover,
.tol-gm-chip:hover { border-color: #C2477E !important; color: #9E2D63 !important; }
body.tol-site .tol-gm-chip.is-active,
.tol-gm-chip.is-active { background: #9E2D63 !important; background-color: #9E2D63 !important; border-color: #9E2D63 !important; color: #fff !important; }
body.tol-site .tol-gm-chip:focus-visible { outline: 2px solid #C2477E; outline-offset: 2px; }

.tol-gm-filter-empty {
	width: 100%;
	margin: 8px 0 0;
	font-size: 0.95rem;
	color: #6b5f57;
}

/* Non-matching tiles drop out. The layout closes up. */
.tol-gallery-item.tol-gm-hide { display: none !important; }

/* Lazy-load reveal: fade tiles in as they enter the viewport. JS-gated, so with
   no JS every tile is visible. Native loading=lazy still defers the download. */
.tol-gm-reveal-on .tol-gallery-item {
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}
.tol-gm-reveal-on .tol-gallery-item.is-in { opacity: 1; transform: none; }

@media (max-width: 600px) {
	.tol-gm-intro-msg { font-size: 0.95rem; }
	/* Mobile keeps full-width stacked groups, left-aligned as before. */
	.tol-gm-filter { justify-content: flex-start; gap: 10px 16px; margin-bottom: 22px; }
	.tol-gm-filter-group { gap: 6px 8px; width: 100%; }
	.tol-gm-filter-label { width: 100%; margin-bottom: 2px; }
	body.tol-site .tol-gm-chip, .tol-gm-chip { font-size: 0.8rem !important; padding: 7px 13px !important; }
}

@media (prefers-reduced-motion: reduce) {
	.tol-gm-chip { transition: none; }
	.tol-gm-reveal-on .tol-gallery-item { opacity: 1; transform: none; transition: none; }
}
