/**
 * PROM Work page: the filter (rendered by work-page.js into `.prom-work-filter`) and the Work grid variant with
 * the caption below the image (`.prom-work-grid.prom-work-index`, Portfolio Grid title position Below Left).
 * Caption fonts, sizes and colours are Portfolio Grid module settings, not CSS.
 */

/* ---------- grid: caption below the image ---------- */

/* Filtered-out tiles. Masonry skips hidden items when it lays the grid out again. */
.prom-work-index .masonry .masonry-item.prom-is-filtered-out {
	display: none;
}

/* work-grid.css pins the project type near the bottom of an overlay title and pads/balances the title.
   Below the image it's a plain caption: title, then client, left aligned. One class more specific. */
.prom-work-grid.prom-work-index .post-title .pt-title {
	padding: 0;
	line-height: 1.2;
	text-wrap: pretty;
}
.prom-work-grid.prom-work-index .post-title .pt-category {
	position: static;
}

/* ---------- filter ---------- */

.prom-wf {
	--prom-wf-color: #474038;
	--prom-wf-muted: rgba(71, 64, 56, 0.6); /* Figma: the options at 60% */
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	font-family: "NeulisAlt-SemiBold-1", sans-serif;
	font-size: 1.111rem; /* 20px: Figma "Text Link 2", 20/110 (PROM-12: 16px was too small) */
	line-height: 1.1;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	color: var(--prom-wf-color);
}
.prom-wf button {
	appearance: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	text-align: left;
	cursor: pointer;
}
.prom-wf button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}
.prom-wf__group {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}
.prom-wf__heading.is-open {
	text-decoration: underline;
	text-underline-offset: 0.15em;
	text-decoration-thickness: 1px;
}
.prom-wf__panel {
	overflow: hidden; /* height animates between 0 and auto (work-page.js) */
}
.prom-wf__options {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}
/* Two classes: beats `.prom-wf button { color: inherit }`. */
.prom-wf .prom-wf__option {
	color: var(--prom-wf-muted);
	transition: color 150ms ease;
}
.prom-wf .prom-wf__option.is-active {
	color: var(--prom-wf-color);
	text-decoration: underline;
	text-underline-offset: 0.15em;
	text-decoration-thickness: 1px;
}
/* ALL is never underlined, even when it's the current choice (dev review, PROM-10). */
.prom-wf .prom-wf__all.is-active { color: var(--prom-wf-color); }
@media (hover: hover) and (pointer: fine) {
	.prom-wf .prom-wf__option:hover {
		color: var(--prom-wf-color);
	}
}
