.ewpp-portfolio {
	--ewpp-accent: var(--e-global-color-primary, #921d26);
	--ewpp-accent-hover: #73171e;
	--ewpp-heading: var(--e-global-color-primary, #343a40);
	--ewpp-text: var(--e-global-color-text, #4f5660);
	--ewpp-muted: #707781;
	--ewpp-surface: #fff;
	--ewpp-border: #e4e7eb;
	--ewpp-filter-hover-color: var(--ewpp-accent);
	--ewpp-filter-hover-background: #fff;
	--ewpp-filter-hover-border-color: var(--ewpp-accent);
	--ewpp-filter-active-color: #fff;
	--ewpp-filter-active-border-color: var(--ewpp-accent);
	--ewpp-filter-count-color: currentColor;
	--ewpp-filter-count-background: rgba(127, 127, 127, .14);
	--ewpp-filter-count-hover-color: currentColor;
	--ewpp-filter-count-hover-background: rgba(127, 127, 127, .14);
	--ewpp-filter-count-active-color: currentColor;
	--ewpp-filter-count-active-background: rgba(255, 255, 255, .2);
	--ewpp-columns: 3;
	width: 100%;
}

.ewpp-portfolio *,
.ewpp-portfolio *::before,
.ewpp-portfolio *::after {
	box-sizing: border-box;
}

.ewpp-portfolio .ewpp-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0 0 32px;
}

.ewpp-portfolio button.ewpp-filter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	appearance: none;
	min-width: 0;
	min-height: 0;
	column-gap: 6px;
	padding: 9px 16px;
	border: 1px solid var(--ewpp-border);
	border-radius: 999px;
	background: #fff;
	color: var(--ewpp-heading);
	font: 600 14px/1.2 "Lato", sans-serif;
	letter-spacing: .01em;
	cursor: pointer;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.ewpp-portfolio[data-ewpp-portfolio] .ewpp-filters button.ewpp-filter:hover:not([disabled]),
.ewpp-portfolio[data-ewpp-portfolio] .ewpp-filters button.ewpp-filter:focus-visible:not([disabled]) {
	border-color: var(--ewpp-filter-hover-border-color, var(--ewpp-accent)) !important;
	background-color: var(--ewpp-filter-hover-background, #fff) !important;
	color: var(--ewpp-filter-hover-color, var(--ewpp-accent)) !important;
	outline: 0;
	transform: translateY(-1px);
}

.ewpp-portfolio button.ewpp-filter:focus-visible {
	box-shadow: 0 0 0 3px rgba(146, 29, 38, .16);
}

.ewpp-portfolio[data-ewpp-portfolio] .ewpp-filters button.ewpp-filter.is-active[aria-pressed="true"]:not([disabled]) {
	border-color: var(--ewpp-filter-active-border-color, var(--ewpp-accent)) !important;
	background: var(--ewpp-filter-active-background, var(--ewpp-accent)) !important;
	color: var(--ewpp-filter-active-color, #fff) !important;
}

.ewpp-filter__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	margin-left: 0;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--ewpp-filter-count-background, rgba(127, 127, 127, .14)) !important;
	color: var(--ewpp-filter-count-color, currentColor) !important;
	font-size: .78em;
}

.ewpp-portfolio[data-ewpp-portfolio] .ewpp-filters button.ewpp-filter:hover:not([disabled]) .ewpp-filter__count,
.ewpp-portfolio[data-ewpp-portfolio] .ewpp-filters button.ewpp-filter:focus-visible:not([disabled]) .ewpp-filter__count {
	background: var(--ewpp-filter-count-hover-background, var(--ewpp-filter-count-background, rgba(127, 127, 127, .14))) !important;
	color: var(--ewpp-filter-count-hover-color, currentColor) !important;
}

.ewpp-portfolio[data-ewpp-portfolio] .ewpp-filters button.ewpp-filter.is-active[aria-pressed="true"]:not([disabled]) .ewpp-filter__count {
	background: var(--ewpp-filter-count-active-background, rgba(255, 255, 255, .2)) !important;
	color: var(--ewpp-filter-count-active-color, currentColor) !important;
}

.ewpp-grid {
	display: grid;
	grid-template-columns: repeat(var(--ewpp-columns), minmax(0, 1fr));
	column-gap: 28px;
	row-gap: 32px;
	width: 100%;
}

.ewpp-card {
	display: flex;
	flex-direction: column;
	position: relative;
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--ewpp-border);
	border-radius: 10px;
	background: var(--ewpp-surface);
	box-shadow: 0 9px 28px rgba(26, 35, 50, .08);
	transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease, background-color .28s ease;
}

.ewpp-card:hover {
	border-color: rgba(146, 29, 38, .28);
	box-shadow: 0 18px 42px rgba(26, 35, 50, .14);
	transform: translateY(-5px);
}

.ewpp-card[hidden] {
	display: none !important;
}

.ewpp-card__image {
	display: block;
	position: relative;
	width: 100%;
	height: 260px;
	overflow: hidden;
	background: #f0f2f4;
	color: inherit;
}

.ewpp-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	border-radius: 0 !important;
	object-fit: cover;
	transition: transform .48s cubic-bezier(.2, .75, .25, 1), opacity .3s ease;
}

.ewpp-card:hover .ewpp-card__image img {
	transform: scale(1.04);
	opacity: .9;
}

.ewpp-card__content {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: 24px 24px 26px;
}

.ewpp-card__title {
	width: 100%;
	margin: 0 0 12px;
	color: var(--ewpp-heading);
	font-family: "Asap", sans-serif;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -.015em;
}

.ewpp-card__title a {
	color: inherit;
	text-decoration: none;
	transition: color .2s ease;
}

.ewpp-card:hover .ewpp-card__title,
.ewpp-card__title a:hover,
.ewpp-card__title a:focus-visible {
	color: var(--ewpp-accent);
}

.ewpp-terms {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin: 0 0 14px;
}

.ewpp-term {
	display: inline-flex;
	align-items: center;
	padding: 5px 9px;
	border: 1px solid #e4e7eb;
	border-radius: 999px;
	background: #f6f7f8;
	color: #616873;
	font: 600 11px/1.15 "Lato", sans-serif;
	letter-spacing: .045em;
	text-transform: uppercase;
}

.ewpp-terms--categories .ewpp-term {
	border-color: rgba(146, 29, 38, .13);
	background: rgba(146, 29, 38, .07);
	color: var(--ewpp-accent);
}

.ewpp-card__date {
	margin: 0 0 12px;
	color: var(--ewpp-muted);
	font: 500 13px/1.4 "Lato", sans-serif;
}

.ewpp-card__excerpt {
	margin: 0 0 20px;
	color: var(--ewpp-text);
	font: 400 16px/1.55 "Lato", sans-serif;
}

.ewpp-card__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: auto;
	padding: 10px 17px;
	border: 1px solid var(--ewpp-accent);
	border-radius: 4px;
	background: var(--ewpp-accent);
	color: #fff;
	font: 700 14px/1.2 "Lato", sans-serif;
	text-decoration: none;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.ewpp-card__button:hover,
.ewpp-card__button:focus-visible {
	border-color: var(--ewpp-accent-hover);
	background: var(--ewpp-accent-hover);
	color: #fff;
	transform: translateY(-1px);
}

.ewpp-card__button:focus-visible {
	outline: 3px solid rgba(146, 29, 38, .18);
	outline-offset: 2px;
}

/* Simple Image Grid */
.ewpp-layout-image-grid .ewpp-card {
	border-color: #fff;
	border-width: 8px;
	border-radius: 2px;
	box-shadow: 4px 4px 18px rgba(39, 45, 57, .14);
}

.ewpp-layout-image-grid .ewpp-card__image {
	height: 280px;
}

.ewpp-card__image-cue {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	top: 50%;
	left: 50%;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: rgba(146, 29, 38, .88);
	color: #fff;
	font: 400 25px/1 sans-serif;
	opacity: 0;
	transform: translate(-50%, -42%) scale(.9);
	transition: opacity .25s ease, transform .25s ease;
}

.ewpp-card:hover .ewpp-card__image-cue,
.ewpp-card__image:focus-visible .ewpp-card__image-cue {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

/* Image + Heading */
.ewpp-layout-image-title .ewpp-card,
.ewpp-layout-image-meta .ewpp-card {
	border: 0;
	background: transparent;
	box-shadow: none;
}

.ewpp-layout-image-title .ewpp-card:hover,
.ewpp-layout-image-meta .ewpp-card:hover {
	box-shadow: none;
}

.ewpp-layout-image-title .ewpp-card__image,
.ewpp-layout-image-meta .ewpp-card__image {
	border-radius: 8px;
}

.ewpp-layout-image-title .ewpp-card__content,
.ewpp-layout-image-meta .ewpp-card__content {
	padding: 18px 2px 0;
}

.ewpp-layout-image-title .ewpp-card__title,
.ewpp-layout-image-meta .ewpp-card__title {
	font-size: 22px;
}

/* Editorial Overlay */
.ewpp-layout-overlay .ewpp-card {
	min-height: 340px;
	border: 0;
	border-radius: 10px;
	background: #181a20;
	box-shadow: 0 12px 34px rgba(18, 19, 25, .18);
}

.ewpp-layout-overlay .ewpp-card__image {
	height: 100%;
	min-height: 340px;
}

.ewpp-card__overlay {
	display: flex;
	align-items: flex-end;
	position: absolute;
	inset: 0;
	padding: 28px;
	background: linear-gradient(180deg, transparent 15%, rgba(18, 19, 25, .74) 100%);
	color: #fff;
	transition: background-color .3s ease;
}

.ewpp-card__overlay-content {
	display: block;
	width: 100%;
	transform: translateY(4px);
	transition: transform .3s ease;
}

.ewpp-layout-overlay .ewpp-card:hover .ewpp-card__overlay-content {
	transform: translateY(0);
}

.ewpp-layout-overlay .ewpp-card__title {
	display: block;
	margin: 0;
	color: #fff;
	font-size: 26px;
}

.ewpp-layout-overlay .ewpp-terms {
	margin-bottom: 12px;
}

.ewpp-layout-overlay .ewpp-term {
	border-color: rgba(255, 255, 255, .26);
	background: rgba(255, 255, 255, .13);
	color: #fff;
}

.ewpp-portfolio .ewpp-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	margin: 36px 0 0;
}

.ewpp-portfolio .ewpp-pagination[hidden] {
	display: none !important;
}

.ewpp-portfolio .ewpp-pagination--numbers,
.ewpp-portfolio .ewpp-page-numbers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.ewpp-portfolio button.ewpp-page-button,
.ewpp-portfolio button.ewpp-load-more {
	appearance: none;
	min-width: 0;
	min-height: 0;
	margin: 0;
	cursor: pointer;
	font-family: "Lato", sans-serif;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.ewpp-portfolio button.ewpp-page-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	min-height: 42px;
	padding: 9px 13px;
	border: 1px solid var(--ewpp-border);
	border-radius: 5px;
	background: var(--ewpp-surface);
	color: var(--ewpp-heading);
	font-size: 14px;
}

.ewpp-portfolio button.ewpp-page-button:hover,
.ewpp-portfolio button.ewpp-page-button:focus-visible {
	border-color: var(--ewpp-accent);
	color: var(--ewpp-accent);
	outline: 0;
	transform: translateY(-1px);
}

.ewpp-portfolio button.ewpp-page-button:focus-visible,
.ewpp-portfolio button.ewpp-load-more:focus-visible {
	box-shadow: 0 0 0 3px rgba(146, 29, 38, .16);
	outline: 0;
}

.ewpp-portfolio button.ewpp-page-button.is-current {
	border-color: var(--ewpp-accent);
	background: var(--ewpp-accent);
	color: #fff;
}

.ewpp-portfolio button.ewpp-page-button:disabled {
	cursor: not-allowed;
	opacity: .42;
	transform: none;
}

.ewpp-portfolio button.ewpp-load-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 25px;
	border: 1px solid var(--ewpp-accent);
	border-radius: 4px;
	background: var(--ewpp-accent);
	color: #fff;
	font-size: 15px;
	box-shadow: 0 8px 20px rgba(146, 29, 38, .16);
}

.ewpp-portfolio button.ewpp-load-more:hover,
.ewpp-portfolio button.ewpp-load-more:focus-visible {
	border-color: var(--ewpp-accent-hover);
	background: var(--ewpp-accent-hover);
	color: #fff;
	transform: translateY(-2px);
}

.ewpp-portfolio .ewpp-pagination--infinite {
	min-height: 44px;
	cursor: default;
}

.ewpp-portfolio .ewpp-loader {
	--ewpp-loader-size: 38px;
	--ewpp-loader-stroke: 4px;
	--ewpp-loader-track: rgba(112, 119, 129, .2);
	--ewpp-loader-color: var(--ewpp-accent);
	display: block;
	width: var(--ewpp-loader-size);
	height: var(--ewpp-loader-size);
	border: var(--ewpp-loader-stroke) solid var(--ewpp-loader-track);
	border-top-color: var(--ewpp-loader-color);
	border-radius: 50%;
	opacity: .38;
	animation: ewpp-spin .8s linear infinite;
}

.ewpp-portfolio .ewpp-pagination--infinite.is-loading .ewpp-loader {
	opacity: 1;
}

@keyframes ewpp-spin {
	to {
		transform: rotate(360deg);
	}
}

.ewpp-notice {
	padding: 24px;
	border: 1px dashed var(--ewpp-border);
	border-radius: 8px;
	background: #f8f9fa;
	color: var(--ewpp-text);
	font: 500 15px/1.5 "Lato", sans-serif;
	text-align: center;
}

@media (max-width: 1024px) {
	.ewpp-grid {
		--ewpp-columns: 2;
	}
}

@media (max-width: 767px) {
	.ewpp-grid {
		--ewpp-columns: 1;
	}

	.ewpp-portfolio .ewpp-filters {
		justify-content: flex-start;
	}

	.ewpp-card__image,
	.ewpp-layout-image-grid .ewpp-card__image {
		height: 230px;
	}

	.ewpp-card__content {
		padding: 21px 20px 23px;
	}

	.ewpp-card__overlay {
		padding: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ewpp-portfolio *,
	.ewpp-portfolio *::before,
	.ewpp-portfolio *::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}
}
