/* FILE: assets/css/portfolio-single.css */

.portfolio-single-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px;
}

.portfolio-single-layout {
	display: flex;
	flex-wrap: nowrap;
	gap: 40px;
}

.portfolio-single-gallery {
	width: 55%;
}

.portfolio-single-content {
	width: 45%;
}

/* Banner Styles */
.portfolio-single-banner {
	position: relative;
	width: 100%;
	min-height: 450px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 0; 
	padding-top: 120px; /* Push content below transparent header */
	padding-bottom: 40px;
	background-color: #222; /* Fallback */
}

.portfolio-single-banner-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
	z-index: 1;
}

.portfolio-single-banner-content {
	position: relative;
	z-index: 2;
	text-align: center;
	padding: 0 20px;
}

.portfolio-single-banner-title {
	color: #ffffff;
	font-size: 3.5rem;
	font-weight: 700;
	margin: 0;
	text-shadow: 0 4px 12px rgba(0,0,0,0.3);
	letter-spacing: -0.5px;
}

.portfolio-single-banner-title::after {
	content: '';
	display: block;
	width: 60px;
	height: 4px;
	background-color: var(--wp-portfolio-theme-color, #111827); /* Accent inherited or fallback */
	margin: 20px auto 0;
	border-radius: 2px;
}

@media (max-width: 767px) {
	.portfolio-single-banner {
		height: 300px;
		margin-top: 80px;
	}
	.portfolio-single-banner-title {
		font-size: 2.5rem;
	}
}

@media (max-width: 767px) {
	.portfolio-single-layout {
		flex-direction: column-reverse;
	}
	.portfolio-single-gallery, .portfolio-single-content {
		width: 100%;
	}
}

.portfolio-swiper {
	margin-bottom: 20px;
}

.portfolio-swiper .swiper-slide img {
	width: 100%;
	height: auto;
	object-fit: cover;
	aspect-ratio: 4/3;
	border-radius: 8px;
}

.swiper-thumbs .swiper-slide {
	opacity: 0.5;
	cursor: pointer;
	transition: opacity 0.3s ease;
}

.swiper-thumbs .swiper-slide-thumb-active {
	opacity: 1;
}

.swiper-thumbs .swiper-slide img {
	width: 100%;
	height: auto;
	object-fit: cover;
	aspect-ratio: 1/1;
	border-radius: 4px;
}

.portfolio-breadcrumb {
	font-size: 14px;
	color: #666;
	margin-bottom: 20px;
}

.portfolio-breadcrumb a {
	color: #333;
	text-decoration: none;
}

.portfolio-breadcrumb a:hover {
	text-decoration: underline;
}

.portfolio-single-title {
	margin: 0 0 20px;
	font-size: 2.5rem;
	line-height: 1.2;
}

.portfolio-single-hr {
	border: 0;
	border-top: 1px solid #eee;
	margin: 20px 0;
}

.portfolio-details-box {
	background: #f9f9f9;
	padding: 20px;
	border-radius: 8px;
	margin-bottom: 30px;
}

.portfolio-details-box p {
	margin: 0 0 10px;
}

.portfolio-details-box p:last-child {
	margin-bottom: 0;
}

.portfolio-full-desc {
	line-height: 1.6;
	margin-bottom: 30px;
}

.portfolio-back-btn {
	display: inline-block;
	padding: 10px 20px;
	background: #333;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	margin-bottom: 30px;
	transition: background 0.3s ease;
}

.portfolio-back-btn:hover {
	background: #555;
	color: #fff;
}

.portfolio-social-share a {
	display: inline-block;
	margin-right: 15px;
	color: #333;
	text-decoration: none;
	font-weight: 500;
}

.portfolio-social-share a:hover {
	text-decoration: underline;
}

/* --- SINGLE PAGE LAYOUT TYPES --- */
/* Type 1: Gallery Left, Details Right (Default flow) */

/* Type 2: Details Left, Gallery Right */
.portfolio-single-layout-type-2 { flex-direction: row-reverse; }

/* Type 3: Gallery Top Focus, Details Below */
.portfolio-single-layout-type-3 { flex-direction: column; }
.portfolio-single-layout-type-3 .portfolio-single-gallery, 
.portfolio-single-layout-type-3 .portfolio-single-content { width: 100%; }

/* Type 4: Details Top Intro, Gallery Below */
.portfolio-single-layout-type-4 { flex-direction: column-reverse; }
.portfolio-single-layout-type-4 .portfolio-single-gallery, 
.portfolio-single-layout-type-4 .portfolio-single-content { width: 100%; }

/* Type 5: 50/50 Split - Sticky Gallery Left */
@media (min-width: 992px) {
	.portfolio-single-layout-type-5 { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
	.portfolio-single-layout-type-5 .portfolio-single-gallery { position: sticky; top: 120px; width: 100%; }
	.portfolio-single-layout-type-5 .portfolio-single-content { width: 100%; }
}

/* Type 6: 50/50 Split - Sticky Gallery Right */
@media (min-width: 992px) {
	.portfolio-single-layout-type-6 { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
	.portfolio-single-layout-type-6 .portfolio-single-content { grid-column: 1; width: 100%; }
	.portfolio-single-layout-type-6 .portfolio-single-gallery { position: sticky; top: 120px; grid-column: 2; width: 100%; }
}
