/*
 * Project Single — static styles.
 *
 * Scoped to body.single-project. Self-contained (no Swiper CDN CSS required for
 * the nav buttons / progress line). Ported from the legacy Deep child theme;
 * the runtime dynamic-CSS generation it used has been removed.
 */

/* ── CSS variables ───────────────────────────────────────────────────────── */

body.single-project {
	--sk-ink: #0c0b08;
	--sk-panel: #242321;
	--sk-line: rgba(250 246 240, 014);
	--sk-text: #f7f4ee;
	--sk-muted: rgba(247, 244, 238, 0.65);
	--sk-red: #d62d27;
	--sk-radius: 2px;
}

/* ── Master container ────────────────────────────────────────────────────── */

body.single-project .master_container_bgwhite {
	background: var(--sk-ink) !important;
}

/* ── Kadence integration: let the template go full-width ──────────────────── */

/* Kadence constrains content in #inner-wrap.wrap; remove that on project singles
   so the hero is full-bleed. The continuous dark background comes from the
   full-width .master_container_bgwhite above. */
body.single-project #inner-wrap.wrap {
	max-width: none;
	margin: 0;
	padding: 0;
}

/* Inner content width (the legacy .container helper this template uses). */
body.single-project .container {
	width: 100%;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 25px;
	padding-right: 25px;
	box-sizing: border-box;
	padding-bottom: 40px;
}

/* The hero spans the full viewport width. */
body.single-project .fullwidth-container {
	max-width: none;
}

/* ── Hero / page-title block ─────────────────────────────────────────────── */

body.single-project .fullwidth-container {
	display: flex;
	align-items: center;
	position: relative;
	/* Base: dark gradient; the template overrides with the featured image when one exists. */
	background:
		linear-gradient(180deg, rgba(12, 11, 8, 0.42), rgba(12, 11, 8, 0.88)),
		#0c0b08 !important;
	background-size: cover !important;
	background-position: center center !important;
}

body.single-project .pagetitle_overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg,
			rgba(12, 11, 8, 0.72),
			rgba(12, 11, 8, 0.22) 58%,
			rgba(12, 11, 8, 0.72)) !important;
}

body.single-project .present-container {
	width: 100%;
	padding: 180px 25px 140px !important;
	position: relative;
	z-index: 2;
	text-align: center !important;
}

body.single-project .present-container::before {
	content: "";
	display: block;
	width: 1px;
	height: 92px;
	margin: 0 auto 42px;
	background: var(--sk-red);
}

body.single-project .present-container h1.page_title {
	margin: 0;
	color: #faf6f0 !important;
	letter-spacing: 0 !important;
	text-indent: 0 !important;
	text-transform: none !important;
	max-width: 100% !important;
}

body.single-project .secondaryTitle {
	margin: 14px 0 0;
	color: var(--sk-muted);
	font-size: 18px;
	font-weight: 400;
}

body.single-project .deep_breadcrumbs {
	margin-bottom: 10px;
	color: rgba(255, 255, 255, 0.72);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

body.single-project .deep_breadcrumbs a,
body.single-project .deep_breadcrumbs span {
	color: rgba(255, 255, 255, 0.78) !important;
}

body.single-project .deep_breadcrumbs a:hover {
	color: #fff !important;
}

/* ── Content area ────────────────────────────────────────────────────────── */

body.single-project .proj-content {
	background: var(--sk-ink);
}

body.single-project .projects_description {
	padding-top: 0;
	padding-bottom: 0;
}

/* Legacy WPBakery post-content pane (if present) is hidden; the layout replaces it. */
body.single-project .content_container {
	display: none !important;
}

/* Full-width content layout (media type: "other"). */
body.single-project .proj-fullwidth-content {
	max-width: 860px;
	margin: 0 auto;
	padding: 72px 0 40px;
	color: var(--sk-text);
	font-size: 17px;
	line-height: 1.8;
}

body.single-project .proj-fullwidth-content a {
	color: var(--sk-red);
}

/* ── Project intro description ───────────────────────────────────────────── */

body.single-project .proj-description {
	padding: 72px 0 0;
	text-align: center;
}

body.single-project .proj-description__text {
	max-width: 680px;
	margin: 0 auto;
	font-size: 17px;
	line-height: 1.8;
	color: var(--sk-muted);
}

body.single-project .proj-description__text p {
	margin: 0 0 1em;
}

body.single-project .proj-description__text p:last-child {
	margin-bottom: 0;
}

/* ── Two-column layout ───────────────────────────────────────────────────── */

body.single-project .proj-layout {
	display: flex;
	align-items: flex-start;
	gap: 52px;
	padding: 80px 0 92px;
}

body.single-project .proj-details {
	flex: 0 0 340px;
	min-width: 0;
}

body.single-project .proj-gallery {
	flex: 1;
	min-width: 0;
}

/* ── Meta detail cards (left column) ─────────────────────────────────────── */

body.single-project .proj-meta-item {
	padding: 20px 22px 18px;
	margin-bottom: 10px;
	color: var(--sk-text);
	background: var(--sk-panel);
	border: 1px solid var(--sk-line);
	border-radius: var(--sk-radius);
}

body.single-project .proj-meta-item:last-child {
	margin-bottom: 0;
}

body.single-project .proj-meta-label {
	display: block;
	margin-bottom: 6px;
	color: var(--sk-muted);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.9px;
	text-transform: uppercase;
}

body.single-project .proj-meta-value {
	display: block;
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	color: var(--sk-text);
	line-height: 1.65;
}

body.single-project .proj-meta-value p {
	margin: 0 0 8px;
}

body.single-project .proj-meta-value p:last-child {
	margin-bottom: 0;
}

body.single-project .proj-meta-item img {
	display: block;
	width: auto;
	max-width: 180px;
	max-height: 80px;
	margin-top: 10px;
	object-fit: contain;
}

/* ── Gallery (right column) ──────────────────────────────────────────────── */

body.single-project .proj-gallery .proj-single-media,
body.single-project .proj-gallery .proj-single-swiper {
	overflow: hidden;
	border-radius: var(--sk-radius);
	background: var(--sk-panel);
	border: 1px solid var(--sk-line);
	box-shadow: 0 28px 80px rgba(0, 0, 0, 0.30);
}

body.single-project .proj-gallery .proj-single-img,
body.single-project .proj-gallery .proj-single-swiper__img {
	display: block;
	width: 100%;
	height: auto;
}

/* Self-hosted video / embeds. */
body.single-project .proj-single-video,
body.single-project .proj-gallery .embedded iframe,
body.single-project .proj-gallery #the_movies iframe {
	display: block;
	width: 100%;
	height: auto;
	border: 0;
	border-radius: var(--sk-radius);
	background: #000;
}

body.single-project .proj-gallery .embedded {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
}

body.single-project .proj-gallery .embedded iframe {
	position: absolute;
	inset: 0;
	height: 100%;
}

body.single-project .proj-gallery #the_movies {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
}

body.single-project .proj-gallery #the_movies iframe {
	position: absolute;
	inset: 0;
	height: 100%;
}

/* ── Swiper nav buttons (self-contained — no Swiper CDN CSS required) ─────── */

body.single-project .proj-single-swiper {
	position: relative;
}

body.single-project .proj-swiper-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	color: #fff;
	background: rgba(12, 11, 8, 0.58);
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: var(--sk-radius);
	cursor: pointer;
	transition: background 200ms ease, border-color 200ms ease;
	-webkit-appearance: none;
	appearance: none;
}

body.single-project .proj-swiper-nav--prev {
	left: 14px;
}

body.single-project .proj-swiper-nav--next {
	right: 14px;
}

body.single-project .proj-swiper-nav:hover {
	background: var(--sk-red);
	border-color: var(--sk-red);
}

body.single-project .proj-swiper-nav.swiper-button-disabled {
	opacity: 0.35;
	cursor: not-allowed;
	pointer-events: none;
}

/* ── Slide progress line (replaces pagination dots) ──────────────────────── */

body.single-project .proj-swiper-progress {
	width: 100%;
	height: 2px;
	margin-top: 16px;
	background: rgba(255, 255, 255, 0.12);
	position: relative;
	overflow: hidden;
	border-radius: 1px;
}

body.single-project .proj-swiper-progress__fill {
	display: block;
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: var(--progress, 0%);
	background: rgba(247, 244, 238, 0.72);
	transition: width 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ── Social shares ───────────────────────────────────────────────────────── */

body.single-project .social-shares {
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: 1170px;
	margin: 0 auto;
	padding: 0 25px 70px;
}

body.single-project .social-shares__label {
	color: var(--sk-muted);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}

body.single-project .social-shares__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 36px;
	padding: 0 14px;
	color: #fff !important;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: var(--sk-radius);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-decoration: none;
	transition: background 180ms ease, border-color 180ms ease;
}

body.single-project .social-shares__link:hover {
	background: var(--sk-red);
	border-color: var(--sk-red);
}

/* ── Project navigation (previous / next links) ──────────────────────────── */

body.single-project .projects_nav1 {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	margin: 0 auto;
	background: transparent;
}

body.single-project .projects_nav1 a {
	color: #faf6f0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 210px;
	min-height: 52px;
	padding: 14px 22px;
	border: 1px solid rgba(250, 246, 240, 1);
	border-radius: var(--sk-radius);
	font-size: 12px;
	font-weight: 600 !important;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	transition: all 180ms ease-in-out, border-color 180ms ease;
	text-decoration: none;
}

body.single-project .projects_nav1 a:hover {
	color: #fff !important;
	background: var(--sk-red) !important;
	border-color: var(--sk-red);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1200px) {
	body.single-project .proj-details {
		flex: 0 0 300px;
	}

	body.single-project .proj-layout {
		gap: 36px;
	}
}

@media (max-width: 991px) {
	body.single-project .fullwidth-container {
		min-height: 560px;
	}

	body.single-project .present-container {
		padding-top: 170px !important;
		padding-bottom: 120px !important;
	}

	body.single-project .present-container h1.page_title {
		font-size: 48px !important;
	}

	/* Stack into a single column: details first, gallery below. */
	body.single-project .proj-layout {
		flex-direction: column;
		gap: 32px;
		padding: 60px 0 70px;
	}

	body.single-project .proj-details,
	body.single-project .proj-gallery {
		flex: none;
		width: 100%;
	}
}

@media (max-width: 767px) {
	body.single-project .fullwidth-container {
		min-height: 500px;
	}

	body.single-project .present-container {
		padding: 0 20px 80px !important;
	}

	body.single-project .present-container::before {
		height: 70px;
		margin-bottom: 30px;
	}

	body.single-project .present-container h1.page_title {
		font-size: 36px !important;
		line-height: 1.12em !important;
	}

	body.single-project .projects_description {
		padding-left: 20px;
		padding-right: 20px;
	}

	body.single-project .proj-layout {
		padding: 48px 0 60px;
	}

	body.single-project .projects_nav1 {
		gap: 10px;
		padding-bottom: 70px;
	}

	body.single-project .projects_nav1 a {
		flex: 1;
		min-width: 0;
		min-height: 48px;
		padding: 12px 14px;
		font-size: 10px;
		letter-spacing: 0.6px;
		max-width: 100px;
	}
}
