/* Single project only. Keep the existing theme header, footer and fonts. */
/* Hello Elementor limits non-Elementor .site-main widths. This template owns
   its inner container, so remove only that outer constraint on project singles. */
body.single-dg_case_study .site-main.dg-site-main {
	width: 100%;
	max-width: none;
	padding-inline: 0;
}

.dg-case-study {
	box-sizing: border-box;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 148px 20px 80px;
	color: var(--dg-text, #fff);
	overflow-wrap: anywhere;
}

.dg-case-study .dg-case-study-image {
	width: 100%;
	max-width: 960px;
	margin: 0 auto;
	border-radius: 26px;
	overflow: hidden;
	background: var(--dg-bg-card, #202020);
}

.dg-case-study .dg-case-study-photo {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
}

.dg-case-study .dg-case-study-copy {
	margin-top: clamp(32px, 4vw, 56px);
}

.dg-case-study .dg-case-study-title {
	max-width: 1080px;
	margin: 0;
	color: #fff;
	font-family: var(--dg-font-heading, "TT Firs Neue", sans-serif);
	font-size: clamp(36px, 5vw, 72px);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -0.025em;
	text-wrap: pretty;
}

.dg-case-study .dg-case-study-description {
	max-width: 800px;
	margin-top: 24px;
	color: rgba(255, 255, 255, 0.76);
	font-family: var(--dg-font-body, "Montserrat", sans-serif);
	font-size: clamp(17px, 1.5vw, 20px);
	line-height: 1.75;
}

.dg-case-study-description > :first-child { margin-top: 0; }
.dg-case-study-description > :last-child { margin-bottom: 0; }
.dg-case-study-description p { margin: 0 0 1.2em; }
.dg-case-study-description :is(h2, h3, h4, h5, h6) { color: #fff; line-height: 1.2; margin: 1.5em 0 0.6em; }
/* Use the existing local TT Firs Neue DemiBold (600) and Medium (500) faces. */
.dg-case-study .dg-case-study-description :is(h2, h3) { font-family: var(--dg-font-heading, "TT Firs Neue", sans-serif); }
.dg-case-study .dg-case-study-description h2 { font-weight: 600; }
.dg-case-study .dg-case-study-description h3 { font-weight: 500; }
.dg-case-study-description a { color: #fff; text-decoration: underline; text-underline-offset: 0.18em; }
.dg-case-study-description a:hover { color: var(--dg-accent, #11e44f); }
.dg-case-study-description :is(img, video, iframe) { max-width: 100%; }
.dg-case-study-description pre { white-space: pre-wrap; }
.dg-case-study-description :is(.alignfull, .alignwide) { width: 100%; max-width: 100%; margin-inline: 0; }
.dg-case-study .post-password-form p { flex-wrap: wrap; gap: 12px; }
.dg-case-study .post-password-form input { max-width: 100%; }

.dg-case-study .dg-case-study-image-additional {
	margin-top: clamp(36px, 5vw, 64px);
}

.dg-case-study .dg-case-study-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-top: clamp(32px, 4vw, 48px);
}

.dg-case-study-actions .dg-btn {
	justify-content: center;
	min-height: 50px;
	width: auto;
	max-width: 100%;
	text-align: center;
	font-family: var(--dg-font-body, "Montserrat", sans-serif);
	font-size: 16px;
	line-height: 1.4;
	text-decoration: none;
}

.dg-case-study-actions .dg-btn:hover { transform: none; }
.dg-case-study-actions .dg-btn-primary { color: #0b0b0b; }
.dg-case-study-actions .dg-btn-secondary { color: #fff; }

.dg-case-study .dg-case-study-back {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	max-width: 100%;
	margin-top: 28px;
	color: rgba(255, 255, 255, 0.68);
	font-family: var(--dg-font-body, "Montserrat", sans-serif);
	font-size: 14px;
	line-height: 1.5;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.dg-case-study .dg-case-study-back:hover { color: #fff; }
.dg-case-study a:focus-visible { outline: 2px solid var(--dg-accent, #11e44f); outline-offset: 4px; }

@media (max-width: 1024px) {
	.dg-case-study { padding-top: 132px; }
}

@media (max-width: 767px) {
	.dg-case-study { padding: 112px 16px 56px; }
	.dg-case-study .dg-case-study-image { border-radius: 20px; }
	.dg-case-study .dg-case-study-description { margin-top: 20px; }
}

@media (max-width: 600px) {
	.dg-case-study .dg-case-study-actions { flex-direction: column; align-items: stretch; }
	.dg-case-study-actions .dg-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.dg-case-study .dg-btn { transition: none; }
}
