/*
 * Case Study single template polish.
 * Layered on top of Archicon's portfolio CSS; only fills gaps and tweaks Service Type chips.
 */

/* ---------------------------------------------------------------------
 * Hide the H1 in the page-title bar above breadcrumbs.
 * The duplicate H1 is rendered as the article title inside the layout.
 * ------------------------------------------------------------------ */
body.csh-case-study-single .qodef-page-title .qodef-m-title {
	display: none !important;
}

/* Tighten the now-titleless title bar so it doesn't leave a tall empty band. */
body.csh-case-study-single .qodef-page-title.qodef-title--standard-with-breadcrumbs {
	min-height: 0 !important;
	height: auto !important;
	padding-top: 16px !important;
	padding-bottom: 12px !important;
}

/* ---------------------------------------------------------------------
 * Boxed 1400px layout on case study singles.
 * Scoped to the breadcrumb bar inner and the article wrapper. The writeup
 * now lives inside the article so it inherits the boxing automatically.
 * ------------------------------------------------------------------ */
body.csh-case-study-single .qodef-page-title .qodef-m-content,
body.csh-case-study-single .qodef-portfolio-single-item {
	max-width: 1400px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 20px !important;
	padding-right: 20px !important;
	box-sizing: border-box !important;
}

/* ---------------------------------------------------------------------
 * Writeup: post content rendered in the left column, under the image.
 * Inherits the 8-col width from .qodef-col--8.
 * ------------------------------------------------------------------ */
.csh-case-study-single .csh-case-study-writeup {
	margin-top: 32px;
	font-size: 16px;
	line-height: 1.65;
}

.csh-case-study-single .csh-case-study-writeup > *:first-child {
	margin-top: 0;
}

.csh-case-study-single .csh-case-study-writeup > *:last-child {
	margin-bottom: 0;
}

.csh-case-study-single .csh-case-study-writeup p {
	margin: 0 0 1.1em;
}

.csh-case-study-single .csh-case-study-writeup h2,
.csh-case-study-single .csh-case-study-writeup h3,
.csh-case-study-single .csh-case-study-writeup h4 {
	margin: 1.8em 0 0.5em;
	line-height: 1.25;
}

.csh-case-study-single .csh-case-study-writeup h2 { font-size: 26px; }
.csh-case-study-single .csh-case-study-writeup h3 { font-size: 21px; }
.csh-case-study-single .csh-case-study-writeup h4 { font-size: 18px; }

.csh-case-study-single .csh-case-study-writeup blockquote {
	margin: 1.4em 0;
	padding: 0 0 0 20px;
	border-left: 3px solid currentColor;
	font-size: 18px;
	line-height: 1.5;
	font-style: italic;
}

.csh-case-study-single .csh-case-study-writeup blockquote p:last-child {
	margin-bottom: 0;
}

.csh-case-study-single .csh-case-study-writeup figure {
	margin: 1.5em 0;
}

.csh-case-study-single .csh-case-study-writeup figure img,
.csh-case-study-single .csh-case-study-writeup img {
	display: block;
	max-width: 100%;
	height: auto;
}

.csh-case-study-single .csh-case-study-writeup figcaption {
	font-size: 14px;
	line-height: 1.5;
	margin-top: 8px;
	opacity: 0.75;
}

.csh-case-study-single .csh-case-study-writeup a {
	text-decoration: underline;
}

.csh-case-study-single .qodef-e-portfolio-info .qodef-e {
	margin-top: 6px;
}

.csh-case-study-single .qodef-info--service-types {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid currentColor;
	opacity: 0.95;
}

.csh-case-study-single .qodef-info--service-types a {
	text-decoration: none;
	border-bottom: 1px solid currentColor;
}

.csh-case-study-single .qodef-info--service-types a:hover {
	opacity: 0.7;
}

/* Make sure long info values wrap rather than overflow the narrow column. */
.csh-case-study-single .qodef-e-portfolio-info .qodef-e-info-item {
	overflow-wrap: anywhere;
	word-break: break-word;
}

/* Gallery rows */
.csh-case-study-single .qodef-e-media .qodef-magnific-popup {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 16px;
}

.csh-case-study-single .qodef-e-media .qodef-popup-item img {
	width: 100%;
	height: auto;
	display: block;
}
