/* ==========================================================================
   Project Single - Complete CSS
   Match Figma Design Node 917:6985
   ========================================================================== */

/* CSS Custom Properties (Design Tokens) */
:root {
	--bg-dark-header: #121212;
	--bg-dark-body: #323232;
	--brand-yellow: #ebe545;
	--text-primary-light: #f9f9f9;
	--text-secondary: #8e8e8e;
	--text-black: #000000;
	--font-heading: 'NB Architekt Std';
	--font-body: 'Montserrat';
	--font-label: 'NB Typewriter Pro';
}

/* ==========================================================================
   Base & Wrapper
   ========================================================================== */

.project-single-wrapper {
	background-color: var(--bg-dark-body);
}

/* ==========================================================================
   Header Section
   ========================================================================== */

.project-header {
	background-color: var(--bg-dark-header);
	padding: 116px 80px 48px 80px;
}

.project-header-content {
	max-width: 1280px;
	margin: 0 auto;
}

.project-breadcrumb {
	font-family: var(--font-heading);
	font-size: 16px;
	line-height: 20px;
	margin-bottom: 12px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.breadcrumb-arrow {
	font-family: var(--font-heading);
	font-weight: 700;
	color: var(--text-primary-light);
	font-size: 16px;
}

.breadcrumb-link {
	font-family: var(--font-heading);
	font-weight: 300;
	color: var(--text-secondary);
	font-size: 16px;
	text-decoration: none;
	transition: color 0.3s ease;
}

.breadcrumb-link:hover {
	color: var(--text-primary-light);
}

.breadcrumb-current {
	font-family: var(--font-heading);
	font-weight: 300;
	color: var(--text-secondary);
	font-size: 16px;
}

.project-title {
	font-family: var(--font-heading);
	font-weight: 400;
	font-size: 56px;
	line-height: 68px;
	color: var(--brand-yellow);
	margin: 0;
	padding: 0;
}

/* ==========================================================================
   Content Wrapper & Sidebar
   ========================================================================== */

.project-content-wrapper {
	background-color: var(--bg-dark-body);
	position: relative;
	max-width: 1280px;
	margin: 0 auto;
	/* padding: 0 80px; */
}

.project-sidebar {
	width: 85px;
	position: absolute;
	top: 0;
	bottom: 0;
	margin-top: 120px;
}

.share-section {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: center;
	position: sticky;
	top: 120px;
}

.share-label {
	font-family: var(--font-body);
	font-size: 12px;
	font-weight: 500;
	color: var(--text-primary-light);
	margin: 0;
	padding: 0;
	letter-spacing: 0.5px;
}

.share-icons {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.share-icons .social-icon-wrapper {
	width: 48px;
	height: 48px;
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */

.project-main-content > p:empty {
	display: none;
}

.project-main-content {
	max-width: 988px;
	width: 100%;
	padding: 120px 0;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 56px;
}

/* ==========================================================================
   Content Block: Intro (Two-Column)
   ========================================================================== */

.content-block-intro {
	display: flex;
	gap: 24px;
}

.content-block-intro-left {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.content-block-intro-left h3 {
	font-family: var(--font-heading);
	font-weight: 400;
	font-size: 40px;
	line-height: 48px;
	color: var(--text-primary-light);
	margin: 0;
	padding: 0;
}

.content-block-intro-left p {
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 20px;
	line-height: 24px;
	color: var(--text-primary-light);
	margin: 0;
	padding: 0;
}

.content-block-intro-left p:not(:last-child) {
	margin-bottom: 16px;
}

.content-block-intro-right {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.content-block-intro-right img {
	width: 100%;
	max-width: 482px;
	height: 312px;
	object-fit: cover;
	display: block;
}

.content-block-intro-caption {
	font-family: var(--font-body);
	font-size: 12px;
	line-height: 14px;
	color: var(--text-secondary);
	text-align: right;
	margin: 0;
	padding: 0;
}

/* ==========================================================================
   Content Block: Full Width Image
   ========================================================================== */

.content-block-full-image {
	width: 100%;
}

.content-block-full-image img {
	width: 100%;
	height: 640px;
	object-fit: cover;
	display: block;
}

/* ==========================================================================
   Content Block: Full Width Text
   ========================================================================== */

.content-block-text {
	width: 100%;
}

.content-block-text p {
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 20px;
	line-height: 24px;
	color: var(--text-primary-light);
	margin: 0;
	padding: 0;
}

.content-block-text p:not(:last-child) {
	margin-bottom: 16px;
}

.content-block-text a {
	color: var(--brand-yellow);
	text-decoration: none;
	transition: color 0.3s ease;
}

.content-block-text a:hover {
	text-decoration: underline;
}

.content-block-text em,
.content-block-text strong {
	color: var(--brand-yellow);
	font-style: normal;
	font-weight: 600;
}

/* ==========================================================================
   Content Block: Image Left, Text Right
   ========================================================================== */

.content-block-img-text {
	display: flex;
	gap: 24px;
	align-items: flex-start;
}

.content-block-img-text-left {
	flex: 1 1 480px;
	max-width: 480px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.content-block-img-text-left img {
	width: 100%;
	height: 603px;
	object-fit: cover;
	display: block;
}

.content-block-img-text-caption {
	font-family: var(--font-body);
	font-size: 12px;
	line-height: 14px;
	color: var(--text-secondary);
	text-align: right;
	margin: 0;
	padding: 0;
}

.content-block-img-text-right {
	flex: 1 1 484px;
	max-width: 484px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.content-block-img-text-right h3 {
	font-family: var(--font-heading);
	font-weight: 400;
	font-size: 40px;
	line-height: 48px;
	color: var(--text-primary-light);
	margin: 0;
	padding: 0;
}

.content-block-img-text-right p {
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 20px;
	line-height: 24px;
	color: var(--text-primary-light);
	margin: 0;
	padding: 0;
}

.content-block-img-text-right p:not(:last-child) {
	margin-bottom: 16px;
}

/* ==========================================================================
   Content Block: Text Left, Image Right
   ========================================================================== */

.content-block-text-img {
	display: flex;
	gap: 24px;
	align-items: flex-start;
}

.content-block-text-img-left {
	flex: 1 1 484px;
	max-width: 484px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.content-block-text-img-left h3 {
	font-family: var(--font-heading);
	font-weight: 400;
	font-size: 40px;
	line-height: 48px;
	color: var(--text-primary-light);
	margin: 0;
	padding: 0;
}

.content-block-text-img-left p {
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 20px;
	line-height: 24px;
	color: var(--text-primary-light);
	margin: 0;
	padding: 0;
}

.content-block-text-img-left p:not(:last-child) {
	margin-bottom: 16px;
}

.content-block-text-img-right {
	flex: 1 1 480px;
	max-width: 480px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.content-block-text-img-right img {
	width: 100%;
	height: 603px;
	object-fit: cover;
	display: block;
}

/* ==========================================================================
   Content Block: Three Columns Images
   ========================================================================== */

.content-block-three-images {
	width: 100%;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.content-block-three-images-item {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.content-block-three-images-item img {
	width: 100%;
	height: 270px;
	object-fit: cover;
	display: block;
}

.content-block-three-images-caption {
	font-family: var(--font-body);
	font-size: 12px;
	line-height: 14px;
	color: var(--text-secondary);
	text-align: right;
	margin: 0;
	padding: 0;
}

/* ==========================================================================
   Content Block: Caption Image (Full Width)
   ========================================================================== */

.content-block-caption-image {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.content-block-caption-image img {
	width: 100%;
	height: 640px;
	object-fit: cover;
	display: block;
}

.content-block-caption-image-caption {
	font-family: var(--font-body);
	font-size: 12px;
	line-height: 14px;
	color: var(--text-secondary);
	text-align: right;
	margin: 0;
	padding: 0;
}

/* ==========================================================================
   Content Block: Video
   ========================================================================== */

.content-block-video {
	width: 100%;
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: transparent;
	height: 556px;
}

.content-block-video img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Dark overlay shown before playback. `pointer-events: none` lets clicks fall through to the play button. */
.content-block-video::before {
	content: '';
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.6);
	z-index: 1;
	pointer-events: none;
}

/* Full-area invisible button so clicking anywhere on the video starts playback. */
.content-block-video-play {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	z-index: 2;
}

.content-block-video-play::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 48px;
	height: 48px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' fill='none'%3E%3Crect width='48' height='48' fill='%23EBE545'/%3E%3Cpath d='M16 10.2812V38.2812L38 24.2813L16 10.2812Z' fill='black'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	transition: transform 0.2s ease;
}

.content-block-video-play:hover::after {
	transform: translate(-50%, -50%) scale(1.1);
}

/* Once playback starts, hide the overlay and the custom button so native controls take over. */
.content-block-video.is-playing::before,
.content-block-video.is-playing .content-block-video-play {
	display: none;
}

/* ==========================================================================
   Content Block: Map
   ========================================================================== */

.content-block-map {
	width: 100%;
}

.content-block-map img {
	width: 100%;
	height: 357px;
	object-fit: cover;
	display: block;
}

.content-block-map iframe {
	width: 100%;
	height: 357px;
	border: none;
	display: block;
}

.content-block-map.is-grayscale iframe {
    filter: grayscale(100%) invert(5%) contrast(90%);
}

/* ==========================================================================
   More Projects Section
   ========================================================================== */

.more-projects-section {
	background-color: var(--bg-dark-body);
	padding: 120px 80px;
}

.more-projects-title {
	font-family: var(--font-heading);
	font-weight: 400;
	font-size: 48px;
	line-height: 58px;
	color: var(--brand-yellow);
	margin: 0 0 24px 0;
	padding: 0;
}

.more-projects-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.project-card {
	display: flex;
	flex-direction: column;
	gap: 24px;
	text-decoration: none;
	transition: opacity 0.3s ease;
}

.project-card:hover {
	opacity: 0.8;
}

.project-card-image {
	width: 100%;
	height: 230px;
	overflow: hidden;
	background-color: #1a1a1a;
}

.card-image-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	filter: grayscale(100%);
	transition: filter 0.3s ease;
}

.project-card:hover .card-image-img {
	filter: grayscale(0%);
}

.project-card-content {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.project-card-subtitle {
	font-family: var(--font-label);
	font-weight: 700;
	font-size: 12px;
	line-height: 15px;
	color: var(--text-primary-light);
	margin: 0;
	padding: 0;
	letter-spacing: 0.5px;
}

.project-card-title {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 20px;
	line-height: 25px;
	color: var(--text-primary-light);
	margin: 0;
	padding: 0;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablet - 1024px */
@media (max-width: 1024px) {
	.project-header {
		padding: 80px 60px 40px 60px;
	}

	.project-title {
		font-size: 48px;
		line-height: 58px;
	}

	.project-content-wrapper {
		padding: 0 60px;
	}

	.project-sidebar {
		width: 100%;
		position: static;
		float: none;
		margin-left: 0;
		display: flex;
		flex-direction: row;
		align-items: center;
		gap: 40px;
		padding: 40px 0 0 0;
	}

	.share-section {
		flex-direction: row;
		align-items: center;
	}

	.share-icons {
		flex-direction: row;
	}

	.project-main-content {
		width: 100%;
		max-width: 100%;
		padding: 60px 0;
		order: 1;
	}

	.content-block-intro {
		flex-direction: column;
	}

	.content-block-intro-right img {
		width: 100%;
		height: auto;
	}

	.content-block-img-text,
	.content-block-text-img {
		flex-direction: column;
	}

	.content-block-img-text-left,
	.content-block-text-img-left,
	.content-block-img-text-right,
	.content-block-text-img-right {
		flex: 1;
		width: 100%;
		max-width: 100%;
	}

	.content-block-img-text-left img,
	.content-block-text-img-right img {
		width: 100%;
		height: auto;
		max-width: 100%;
	}

	.content-block-three-images-item img {
		height: auto;
	}

	.content-block-full-image img {
		height: auto;
	}

	.content-block-caption-image img {
		height: auto;
	}

	.content-block-video {
		height: auto;
		aspect-ratio: 16 / 9;
	}

	.content-block-map img {
		height: auto;
	}

	.more-projects-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.more-projects-section {
		padding: 80px 60px;
	}
}

/* Small Tablet - 768px */
@media (max-width: 768px) {
	.project-header {
		padding: 60px 40px 32px 40px;
	}

	.project-breadcrumb {
		font-size: 14px;
		line-height: 18px;
	}

	.breadcrumb-arrow,
	.breadcrumb-link,
	.breadcrumb-current {
		font-size: 14px;
	}

	.project-title {
		font-size: 36px;
		line-height: 44px;
	}

	.project-content-wrapper {
		padding: 0 40px;
	}

	.project-sidebar {
		float: none;
		margin-left: 0;
		gap: 24px;
		padding: 0;
	}

	.share-icons {
		gap: 8px;
	}

	.share-icon {
		width: 40px;
		height: 40px;
	}

	.share-icon svg {
		width: 20px;
		height: 20px;
	}

	.project-main-content {
		padding: 40px 0;
		gap: 40px;
	}

	.content-block-intro-left h3 {
		font-size: 32px;
		line-height: 40px;
	}

	.content-block-intro-left p {
		font-size: 18px;
		line-height: 26px;
	}

	.content-block-text p {
		font-size: 18px;
		line-height: 26px;
	}

	.content-block-img-text-right h3,
	.content-block-text-img-left h3 {
		font-size: 32px;
		line-height: 40px;
	}

	.content-block-img-text-right p,
	.content-block-text-img-left p {
		font-size: 18px;
		line-height: 26px;
	}

	.content-block-three-images {
		grid-template-columns: repeat(2, 1fr);
	}

	.more-projects-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.more-projects-section {
		padding: 60px 40px;
	}

	.more-projects-title {
		font-size: 36px;
		line-height: 44px;
	}
}

/* Mobile - 480px */
@media (max-width: 480px) {
	.project-header {
		padding: 40px 20px 24px 20px;
	}

	.project-breadcrumb {
		font-size: 12px;
		line-height: 16px;
		gap: 4px;
	}

	.breadcrumb-arrow,
	.breadcrumb-link,
	.breadcrumb-current {
		font-size: 12px;
	}

	.project-title {
		font-size: 28px;
		line-height: 36px;
	}

	.project-content-wrapper {
		padding: 0 20px;
	}

	.project-sidebar {
		float: none;
		margin-left: 0;
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.share-section {
		flex-direction: column;
		align-items: flex-start;
	}

	.share-icons {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 8px;
	}

	.share-icon {
		width: 36px;
		height: 36px;
	}

	.share-icon svg {
		width: 18px;
		height: 18px;
	}

	.project-main-content {
		padding: 32px 0;
		gap: 32px;
	}

	.content-block-intro {
		gap: 16px;
	}

	.content-block-intro-left,
	.content-block-intro-right {
		gap: 12px;
	}

	.content-block-intro-left h3 {
		font-size: 24px;
		line-height: 32px;
	}

	.content-block-intro-left p {
		font-size: 16px;
		line-height: 24px;
	}

	.content-block-text p {
		font-size: 16px;
		line-height: 24px;
	}

	.content-block-img-text,
	.content-block-text-img {
		gap: 16px;
	}

	.content-block-img-text-right h3,
	.content-block-text-img-left h3 {
		font-size: 24px;
		line-height: 32px;
	}

	.content-block-img-text-right p,
	.content-block-text-img-left p {
		font-size: 16px;
		line-height: 24px;
	}

	.content-block-three-images {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.more-projects-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.project-card {
		gap: 16px;
	}

	.project-card-image {
		height: 200px;
	}

	.more-projects-section {
		padding: 40px 20px;
	}

	.more-projects-title {
		font-size: 28px;
		line-height: 36px;
	}

	.project-card-title {
		font-size: 18px;
		line-height: 22px;
	}
}

/* ==========================================================================
   Utility Classes for Content Block Styling
   ========================================================================== */

/* Content blocks rendered via the_content() */

/* Handle WordPress default content styling */
.project-main-content h2 {
	font-family: var(--font-heading);
	font-weight: 400;
	font-size: 40px;
	line-height: 48px;
	color: var(--text-primary-light);
	margin: 0;
	padding: 0;
}

.project-main-content h3 {
	font-family: var(--font-heading);
	font-weight: 400;
	font-size: 40px;
	line-height: 48px;
	color: var(--text-primary-light);
	margin: 0;
	padding: 0;
}

.project-main-content p {
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 20px;
	line-height: 24px;
	color: var(--text-primary-light);
	margin: 0;
	padding: 0;
}

.project-main-content img {
	max-width: 100%;
	display: block;
}

.project-main-content a {
	color: var(--brand-yellow);
	text-decoration: none;
	transition: color 0.3s ease;
}

.project-main-content a:hover {
	text-decoration: underline;
}


/* ---- Video Player ---- */
.content-block-video {
    width: 100%;
    margin: 40px 0;
}

.project-video-player,
.travelogue-video-player {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    background: #000;
    border-radius: 4px;
    outline: none;
}

.content-block-video video::-webkit-media-controls-panel {
    background: rgba(0, 0, 0, 0.7);
}


/* ---- Responsive Video Iframe Wrapper (YouTube / Vimeo) ---- */
.video-iframe-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    width: 100%;
    background: #000;
    border-radius: 4px;
}

.video-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
