/* Legacy portfolio compatibility only. The rebuilt theme uses its own project filter. */

/*
 * The card must be the positioning context for its award label:
 * `li.atp-project.awards:before { position:absolute; top:-25px; right:25px }` in the theme.
 * Without this the pseudo-element anchors to `.atp-projects` (the only positioned ancestor), so every
 * label stacks in one place and `.atp-projects{overflow:hidden}` clips it away - the label looks
 * "missing" although the class and the CSS are both there. `.atp-projects{padding-top:25px}` already
 * reserves the room above the first row.
 */
.atp-grid-portfolio .atp-projects > li.atp-project {
	position: relative;
}
.atp-portfolio-wrapper.atp-grid-portfolio.sc-legacy-filter-ready .atp-filter-wrapper,
.atp-portfolio-wrapper.atp-grid-portfolio.sc-legacy-filter-ready .atp-filter-opener.sc-legacy-filter-source-hidden,
.atp-portfolio-wrapper.atp-grid-portfolio.sc-legacy-filter-ready input.sc-legacy-filter-source-hidden {
	display: none !important;
}

.atp-portfolio-wrapper.atp-grid-portfolio .atp-filters > .atp-filter[data-filter=".awards"] {
	display: none !important;
}

.atp-portfolio-wrapper.atp-grid-portfolio.sc-legacy-filter-ready .atp-projects-wrapper {
	transform: none !important;
	padding-bottom: 0 !important;
}

.sc-legacy-project-filter {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 1rem;
	margin: 0 auto 1.25rem;
	padding: 0 0.75rem;
	font: inherit;
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0.05em;
	text-align: center;
}

.sc-legacy-project-filter__button {
	border: 0;
	padding: 0.25rem 0;
	background: transparent;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	text-decoration: none;
	cursor: pointer;
}

.sc-legacy-project-filter__button[aria-pressed="true"] {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.sc-legacy-project-filter__button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 0.2em;
}

.atp-portfolio-wrapper.atp-grid-portfolio.sc-legacy-filter-ready .atp-projects .atp-project[hidden] {
	display: none !important;
}
