/* Portfolio Single uses the site's global typography and palette. */
.trn-project__hero {
	position: relative;
	isolation: isolate;
	padding: 60px 24px 220px;
	overflow: hidden;
	border-radius: 0 0 48px 48px;
	text-align: center;
	color: #b9bdb9;
	background: radial-gradient(45% 80% at 85% 10%, rgba(59, 47, 224, .4), transparent 70%),
		radial-gradient(30% 60% at 0 100%, rgba(212, 255, 58, .1), transparent 70%), #0e100f;
}
.trn-project__hero::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	background-image: linear-gradient(#ffffff0a 1px, transparent 1px), linear-gradient(90deg, #ffffff0a 1px, transparent 1px);
	background-size: 80px 80px;
	mask-image: radial-gradient(70% 60% at 50% 40%, #0e100f, transparent 75%);
	pointer-events: none;
}
.trn-project__breadcrumbs {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin: 0 0 28px;
	padding: 8px 18px;
	border: 1px solid #ffffff24;
	border-radius: 999px;
	list-style: none;
	font: 600 .9rem/1.7 Manrope, sans-serif;
}
.trn-project__breadcrumbs li {
	display: inline;
}
.trn-project__breadcrumbs li + li::before {
	content: "\ea6e";
	margin-inline-end: 8px;
	color: #d4ff3a;
	font: 400 1em/1 remixicon;
}
[dir="rtl"] .trn-project__breadcrumbs li + li::before { content: "\ea64"; }
.trn-project__breadcrumbs a { color: #b9bdb9; text-decoration: none; }
.trn-project__breadcrumbs a:is(:hover, :focus-visible) { color: #d4ff3a; }
.trn-project__breadcrumbs [aria-current="page"] { color: #fff; }
.trn-project__categories { display: flex; justify-content: center; margin-block-end: 20px; }
.trn-project__badge {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	border-radius: 999px;
	background: #d4ff3a;
	color: #0e100f;
	font: 700 .78rem/1.2 Manrope, sans-serif;
	letter-spacing: .02em;
	text-decoration: none;
}
.trn-project__badge:hover { color: #0e100f; }
.trn-project__hero :is(.trn-project__breadcrumbs a, .trn-project__badge):focus-visible {
	outline: 2px solid #d4ff3a;
	outline-offset: 3px;
}
.trn-project__hero h1.trn-project__heading {
	max-width: 1000px;
	margin: 0 auto 26px;
	color: #fff;
	font: 700 clamp(2.4rem, 5.4vw, 4.6rem)/1 "Bricolage Grotesque", sans-serif;
	letter-spacing: -.045em;
}
.trn-project__hero h1 em {
	color: #d4ff3a;
	font: italic 400 1em/1 "Instrument Serif", serif;
	letter-spacing: -.01em;
}
.trn-project__hero .trn-project__supporting {
	max-width: 720px;
	margin: 0 auto 6px;
	color: #b9bdb9;
	font: 400 1.15rem/1.7 Manrope, sans-serif;
}
.elementor .elementor-element.elementor-widget-trainora-portfolio-detail figure.trn-project__cover {
	position: relative;
	z-index: 1;
	max-width: 1100px;
	margin: 0 auto;
	margin-block-start: calc(-1 * var(--trn-cover-overlap, 0px));
	aspect-ratio: 2;
	overflow: hidden;
	border-radius: 32px;
	background: #f4f2ec;
	box-shadow: 0 24px 60px rgba(14, 16, 15, .14);
}
article:not(:has(.trn-project__cover)) .trn-project__hero--collection { padding-block-end: 90px; }
.trn-project__cover img,
.trn-project__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.trn-project__facts {
	color: #0e100f;
}
.trn-project__facts h2.trn-project__heading {
	margin: 0 0 18px;
	font: 700 1.3rem/1.08 "Bricolage Grotesque", sans-serif;
	letter-spacing: -.03em;
}
.trn-project__facts dl { margin: 0; }
.trn-project__facts dl div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding-block: 13px;
	border-block-end: 1px solid #e4e1d8;
}
.trn-project__facts dl div:first-child { border-block-start: 1px solid #e4e1d8; }
.trn-project__facts dt { color: #5d645f; font: 400 .9rem/1.7 Manrope, sans-serif; }
.trn-project__facts dd { margin: 0; text-align: end; font: 700 1.0625rem/1.7 Manrope, sans-serif; }
.trn-project__facts dd a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.trn-project__facts dd a:is(:hover, :focus-visible) { color: var(--inoforest-color-primary, #3b2fe0); }
:is(.trn-project__facts, .trn-project__gallery, .trn-project__navigation) a:focus-visible {
	outline: 2px solid var(--inoforest-color-primary, #3b2fe0);
	outline-offset: 3px;
}
.elementor-widget-trainora-portfolio-detail:has(.trn-project__cover) { z-index: 1; }
.trn-project__metrics {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	row-gap: 40px;
	margin: 0 0 50px;
	padding: 0;
	list-style: none;
}
.trn-project__metrics li {
	position: relative;
	padding: 34px 30px 0;
	border-inline-start: 1px solid #e4e1d8;
}
.trn-project__metrics li::before {
	content: "";
	position: absolute;
	inset-block-start: 0;
	inset-inline-start: -1px;
	width: 3px;
	height: 26px;
	background: #3b2fe0;
	border-radius: 999px;
}
.trn-project__metrics strong {
	display: block;
	font: 700 clamp(3rem, 5.4vw, 4.8rem)/1 "Bricolage Grotesque", sans-serif;
	letter-spacing: -.06em;
	color: #0e100f;
}
.trn-project__metrics sup { font-size: .45em; color: #3b2fe0; position: static; vertical-align: .9em; }
.trn-project__metrics p { margin: 12px 0 0; color: #4a504c; font: 600 1.0625rem/1.7 Manrope, sans-serif; }
.entry-content.trn-project__story { margin: 0; color: #4a504c; font: 400 1.0625rem/1.85 Manrope, sans-serif; }
.entry-content.trn-project__story > * { margin-block: 0 1.6rem; }
.entry-content.trn-project__story > :is(h2, h3, h4) {
	margin-block-start: 2.6rem;
	color: #0e100f;
	font: 700 clamp(1.7rem, 3vw, 2.3rem)/1.08 "Bricolage Grotesque", sans-serif;
	letter-spacing: -.03em;
}
.entry-content.trn-project__story > :first-child { margin-block-start: 0; }
.entry-content.trn-project__story > :last-child { margin-block-end: 0; }
.entry-content.trn-project__story .wp-block-list { padding-inline-start: 1.4em; list-style: revert; }
.entry-content.trn-project__story .wp-block-list li { margin-block-end: 0; padding-inline-start: 0; }
.entry-content.trn-project__story .wp-block-list li + li { margin-block-start: .4rem; }
.entry-content.trn-project__story .wp-block-list li::before { display: none; }
.entry-content.trn-project__story a { color: #3b2fe0; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.entry-content.trn-project__story .wp-block-quote {
	padding: 6px 0;
	padding-inline-start: 24px;
	background: transparent;
	border: 0;
	border-inline-start: 4px solid #d4ff3a;
	border-radius: 0;
	color: #0e100f;
	font: 400 1.3rem/1.85 "Bricolage Grotesque", sans-serif;
}
.entry-content.trn-project__story .wp-block-quote::before,
.entry-content.trn-project__story .wp-block-quote cite::before { content: none; }
.entry-content.trn-project__story .wp-block-quote p { margin: 0 0 1.2em; font: inherit; }
.entry-content.trn-project__story .wp-block-quote cite {
	display: block;
	margin-block-start: 10px;
	color: #5d645f;
	font: 600 .9rem/1.85 Manrope, sans-serif;
}
.trn-project__heading:has(+ .trn-project__gallery) {
	margin: 56px 0 26px;
	font: 700 clamp(1.7rem, 3vw, 2.3rem)/1.08 "Bricolage Grotesque", sans-serif;
	letter-spacing: -.03em;
}
.trn-project__gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-auto-rows: 220px;
	grid-auto-flow: dense;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.trn-project__gallery li { display: flex; flex-direction: column; min-width: 0; margin: 0; }
.trn-project__gallery li:first-child { grid-row: span 2; }
.trn-project__gallery li:nth-child(4) { grid-column: span 2; }
.trn-project__gallery .trn-project__supporting { margin: 10px 0 0; font: 400 .875rem/1.7 Manrope, sans-serif; color: #5d645f; }
.trn-project__media {
	position: relative;
	display: block;
	flex: 1;
	min-height: 0;
	overflow: hidden;
	border-radius: 20px;
	color: var(--inoforest-color-text, #4a504c);
	background: #f4f2ec;
}
.trn-project__media:is(:hover, :focus-visible) { color: var(--inoforest-color-primary, #3b2fe0); }
.trn-project__media img { transition: transform 1.2s cubic-bezier(.22, 1, .36, 1); }
.trn-project__media:is(:hover, :focus-visible) img { transform: scale(1.06); }
.trn-project__media-icon {
	position: absolute;
	inset-block-end: 14px;
	inset-inline-end: 14px;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	color: #0e100f;
	background: #fff;
	border-radius: 50%;
	font-size: 1.2rem;
	opacity: 0;
	transform: scale(.6);
	transition: opacity .35s cubic-bezier(.22, 1, .36, 1), transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
.trn-project__media:is(:hover, :focus-visible) .trn-project__media-icon { opacity: 1; transform: none; }
.trn-project__gallery .is-video .trn-project__media-icon {
	inset: 0;
	margin: auto;
	width: 76px;
	height: 76px;
	background: #d4ff3a;
	box-shadow: 0 0 0 10px #d4ff3a40;
	font-size: 1.8rem;
	opacity: 1;
	transform: none;
}
.trn-project__gallery .is-video .trn-project__media:is(:hover, :focus-visible) .trn-project__media-icon { transform: scale(1.1); }
.trn-project__navigation { margin: 44px 0 0; }
.trn-project__navigation .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.trn-project__navigation .nav-next { text-align: end; }
.trn-project__navigation .nav-links a {
	display: flex;
	flex-direction: column;
	gap: 8px;
	height: 100%;
	padding: 26px 28px;
	color: #0e100f;
	border: 1px solid #e4e1d8;
	border-radius: 32px;
	text-decoration: none;
	transition: background-color .5s cubic-bezier(.22, 1, .36, 1), border-color .35s cubic-bezier(.22, 1, .36, 1), transform .35s cubic-bezier(.22, 1, .36, 1);
}
.trn-project__navigation .nav-next a { align-items: flex-end; }
.trn-project__navigation .nav-links a:is(:hover, :focus-visible) {
	color: #fff;
	background: #0e100f;
	border-color: #0e100f;
	transform: translateY(-6px);
}
.trn-project__navigation .nav-subtitle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #5d645f;
	font: 700 .8rem/1.7 Manrope, sans-serif;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.trn-project__navigation .nav-links a:is(:hover, :focus-visible) .nav-subtitle { color: #b9bdb9; }
.trn-project__navigation .nav-title { font: 600 1.2rem/1.3 "Bricolage Grotesque", sans-serif; }
[dir="rtl"] .trn-project__navigation .nav-subtitle i { scale: -1 1; }

@media (min-width: 992px) {
	.elementor-element.e-con:has(> .elementor-widget-trainora-portfolio-detail .trn-project__facts) {
		position: sticky;
		inset-block-start: 110px;
		align-self: start;
	}
}
@media (max-width: 1199px) {
	.trn-project__gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) and (max-width: 991px) {
	.elementor .e-con:has(> aside > .elementor-widget-trainora-portfolio-detail .trn-project__facts) {
		--flex-direction: column;
	}
	.elementor .e-con:has(> aside > .elementor-widget-trainora-portfolio-detail .trn-project__facts) > .e-con {
		--width: 100%;
	}
	.elementor :is(main, .elementor):has(.trn-project__hero) .e-con.trainora-cta-effects-yes {
		--flex-direction: column;
		--align-items: stretch;
	}
	.elementor :is(main, .elementor):has(.trn-project__hero) .e-con.trainora-cta-effects-yes > .e-con { --width: 100%; }
}
@media (hover: none) {
	.trn-project__media-icon { opacity: 1; transform: none; }
}
@media (max-width: 767px) {
	.trn-project__hero { padding: 40px 18px 140px; border-radius: 0 0 32px 32px; }
	article:not(:has(.trn-project__cover)) .trn-project__hero--collection { padding-block-end: 64px; }
	.elementor .elementor-element.elementor-widget-trainora-portfolio-detail figure.trn-project__cover { aspect-ratio: 4 / 3; }
	.trn-project__metrics, .trn-project__gallery, .trn-project__navigation .nav-links { grid-template-columns: minmax(0, 1fr); }
	.trn-project__gallery li:nth-child(4) { grid-column: auto; }
	.trn-project__metrics li { padding-inline: 18px; }
	.trn-project__facts dd, .trn-project__metrics p { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
	.trn-project__gallery *, .trn-project__navigation a { transition: none; }
}

/* Match the facts and related-work buttons to the site's button interaction. */
:is(main, .elementor):has(.trn-project__hero) :is(
	.e-con:has(> .elementor-widget-trainora-portfolio-detail .trn-project__facts),
	.e-con:has(> .e-con-inner > .elementor-widget-trainora-editorial-grid)
) .elementor-button {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	min-height: 54px;
}
:is(main, .elementor):has(.trn-project__hero) :is(
	.e-con:has(> .elementor-widget-trainora-portfolio-detail .trn-project__facts),
	.e-con:has(> .e-con-inner > .elementor-widget-trainora-editorial-grid)
) .elementor-button:active { transform: scale(.97); }
@media (prefers-reduced-motion: no-preference) {
	:is(main, .elementor):has(.trn-project__hero) :is(
		.e-con:has(> .elementor-widget-trainora-portfolio-detail .trn-project__facts),
		.e-con:has(> .e-con-inner > .elementor-widget-trainora-editorial-grid)
	) .elementor-button {
		transition: background .35s cubic-bezier(.22, 1, .36, 1),
			border-color .35s cubic-bezier(.22, 1, .36, 1),
			color .35s cubic-bezier(.22, 1, .36, 1),
			transform .35s cubic-bezier(.22, 1, .36, 1);
	}
}
:is(main, .elementor):has(.trn-project__hero) :is(
	.e-con:has(> .elementor-widget-trainora-portfolio-detail .trn-project__facts),
	.e-con:has(> .e-con-inner > .elementor-widget-trainora-editorial-grid)
) .elementor-button-icon { font-size: 1.15em; }
:is(main, .elementor):has(.trn-project__hero) :is(.elementor-button, .trainora-editorial-grid__project):not(.trainora-cta-effects-yes *):focus-visible {
	outline: 2px solid var(--inoforest-color-primary, #3b2fe0);
	outline-offset: 3px;
}
:is(main, .elementor):has(.trn-project__hero) .elementor-button-icon :is(.ri-arrow-right-line, .ri-arrow-right-up-line) {
	display: inline-block;
	transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
:is(main, .elementor):has(.trn-project__hero) .elementor-button:dir(rtl) .elementor-button-icon :is(.ri-arrow-right-line, .ri-arrow-right-up-line) {
	scale: -1 1;
}
:is(main, .elementor):has(.trn-project__hero) .elementor-button:is(:hover, :focus-visible) .ri-arrow-right-line { transform: translateX(4px); }
:is(main, .elementor):has(.trn-project__hero) .elementor-button:is(:hover, :focus-visible) .ri-arrow-right-up-line { transform: translate(3px, -3px); }
:is(main, .elementor):has(.trn-project__hero) .elementor-button:dir(rtl):is(:hover, :focus-visible) .ri-arrow-right-line { transform: translateX(-4px); }
:is(main, .elementor):has(.trn-project__hero) .elementor-button:dir(rtl):is(:hover, :focus-visible) .ri-arrow-right-up-line { transform: translate(-3px, -3px); }
@media (prefers-reduced-motion: reduce) {
	:is(main, .elementor):has(.trn-project__hero) .elementor-button-icon :is(.ri-arrow-right-line, .ri-arrow-right-up-line) { transition: none; }
}
