/*
Theme Name: Kadence Child
Template: kadence
Version: 1.0.0
*/

/* Project pages: keep wrapper full width but center inner content to 1200px */
body.single-project article.jt-project {
	width: 100%;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* Full-width hero background based on the featured image */
body.single-project .jt-project__hero {
	width: 100vw;
	height: 180px; /* adjust to 150–200px */
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;

	/* Break out of the theme container and go edge-to-edge */
	margin-left: calc(-50vw + 50%);
	margin-right: calc(-50vw + 50%);

	/* Optional: avoid layout issues in some themes */
	position: relative;
}

/* Mobile height adjustment */
@media (max-width: 768px) {
	body.single-project .jt-project__hero {
		height: 140px;
	}
}

body.single-project .jt-project__header,
body.single-project .jt-project__content,
body.single-project .jt-project__section {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
	box-sizing: border-box;
}

/* Project header layout (left content + right meta panel) */
body.single-project .jt-project__header {
	margin-top: 24px;
	margin-bottom: 32px;
}

body.single-project .jt-project__header-inner {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 32px;
	align-items: start;
}

body.single-project .jt-project__header-left {
	min-width: 0;
}

body.single-project .jt-project__title {
	margin: 0 0 8px 0;
}

body.single-project .jt-project__pitch {
	margin: 0;
	color: #444;
	font-size: 1rem;
	max-width: 60ch;
}

body.single-project .jt-project__header-right {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-left: 24px;
	border-left: 1px solid #e5e5e5;
}

body.single-project .jt-project__meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

body.single-project .jt-project__meta-label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #777;
}

body.single-project .jt-project__meta-value,
body.single-project .jt-project__meta-link {
	font-size: 0.95rem;
}

body.single-project .jt-project__meta-link {
	text-decoration: none;
}

body.single-project .jt-project__meta-link:hover {
	text-decoration: underline;
}

/* Medium-like code block framing (front-end) */
pre.wp-block-code {
	padding: 16px;
	border-radius: 8px;
	overflow: auto;
	line-height: 1.5;
	tab-size: 4;
}

pre.wp-block-code code {
	font-size: 0.95rem;
}

@media (max-width: 900px) {
	body.single-project .jt-project__header-inner {
		grid-template-columns: 1fr;
	}

	body.single-project .jt-project__header-right {
		padding-left: 0;
		border-left: none;
		border-top: 1px solid #e5e5e5;
		padding-top: 16px;
	}
}
