/* ==========================================================================
   Project hero — shared styling (both layouts)
   ========================================================================== */

.csc-project-hero {
	margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

.csc-project-hero-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.csc-project-hero-title {
	margin: 0 0 .75rem;
	font-size: clamp(1.8rem, 6vw, 3rem);
	line-height: 1.15;
	text-align: center;
}

.csc-project-hero-tags {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .4rem .5rem;
}

.csc-project-hero-tag {
	display: inline-block;
	padding: .3em .8em;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: .75rem;
	letter-spacing: .03em;
	text-transform: uppercase;
	opacity: .75;
}

/* ==========================================================================
   Variant: vertical — portrait image left, title+tags right, full-bleed ~90vh
   ========================================================================== */

.csc-project-hero--vertical {
	display: grid;
	grid-template-columns: 1fr;
}

.csc-project-hero--vertical .csc-project-hero-media {
	position: relative;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	margin: 0 20px;
}

.csc-project-hero--vertical .csc-project-hero-body {
	padding: 1.5rem clamp(1rem, 4vw, 2rem) 0;
}

@media (min-width: 768px) {
	.csc-project-hero--vertical {
		position: relative;
		left: 50%;
		right: 50%;
		width: 100vw;
		max-width: 100vw !important;
		margin-left: -50vw !important;
		margin-right: -50vw !important;
		grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
		align-items: stretch;
		height: 90vh;
		min-height: 480px;
	}

	.csc-project-hero--vertical .csc-project-hero-media {
		height: 100%;
		margin-left: 30px;
	}

	.csc-project-hero--vertical .csc-project-hero-body {
		display: flex;
		flex-direction: column;
		justify-content: center;
		padding: 2rem clamp(2rem, 6vw, 5rem) 2rem clamp(2rem, 4vw, 3rem);
	}
}

/* ==========================================================================
   Variant: horizontal — full-width 16:9 image on top (30px padding),
   title+tags below it
   ========================================================================== */

.csc-project-hero--horizontal {
	position: relative;
	left: 50%;
	right: 50%;
	width: 100vw;
	max-width: 100vw !important;
	margin-left: -50vw !important;
	margin-right: -50vw !important;
	padding: 0 50px;
	box-sizing: border-box;
}

.csc-project-hero--horizontal .csc-project-hero-media {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.csc-project-hero--horizontal .csc-project-hero-body {
	padding: 1.5rem 0 0;
}

@media (max-width: 767px) {
	.csc-project-hero--horizontal {
		padding: 0 20px;
	}
}

/* ==========================================================================
   Hide the theme's own title on Project pages where we render our own
   ========================================================================== */

/* If your theme's title markup uses a different selector than Astra's
   default ".entry-title", add it to this list. */
body.csc-project-has-cover .entry-title,
body.csc-project-has-cover .page-header .entry-title,
body.csc-project-has-cover h1.entry-title {
	display: none;
}
