/**
 * Series Single/Detail Page Styles
 * 
 * @package Plastpro
 * @since 1.0.0
 */

/* Hero Section - Now uses shared .series-hero styles from series-archive.css */
/* All hero styling is handled in series-archive.css for consistency */

/* Series Introduction */
.series-intro {
	padding: 3rem 0;
	background: #FFFFFF;
}

.series-intro-title {
	font-size: var(--font-size-h1);
	font-weight: 700;
	margin-bottom: 1.5rem;
	color: #1D252D;
}

.series-intro-description {
	font-size: var(--font-size-large);
	line-height: 1.8;
	color: #7C878E;
	max-width: 900px;
}

/* Series Content Area */
.series-content {
	padding: 3rem 0;
	background: #FFFFFF;
}

.series-content-wrapper {
	max-width: 1200px;
	margin: 0 auto;
}

.series-content-wrapper h2,
.series-content-wrapper h3 {
	margin-top: 2rem;
	margin-bottom: 1rem;
	color: #1D252D;
}

.series-content-wrapper h2 {
	font-size: var(--font-size-h2);
	font-weight: 700;
}

.series-content-wrapper h3 {
	font-size: var(--font-size-h3);
	font-weight: 700;
}

.series-content-wrapper p {
	margin-bottom: 1.5rem;
	line-height: 1.8;
	color: #1D252D;
}

.series-content-wrapper img {
	max-width: 100%;
	height: auto;
	margin: 1.5rem 0;
	border-radius: 8px;
}

/* Gallery Items Section */
/* Full-bleed (100vw); clipped by .site-main */
.series-bottom-text {
	background-color: #fff;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(-50vw + 50%);
	margin-right: calc(-50vw + 50%);
	box-sizing: border-box;
	padding: 3rem 0;
}

.series-bottom-text-inner {
	width: 100%;
	max-width: var(--site-container-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
	box-sizing: border-box;
}

.series-bottom-text-content {
	color: #1D252D;
	text-align: center;
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.6;
	margin: 0;
}

.series-bottom-text-content p {
	margin-bottom: 1rem;
}

.series-bottom-text-content p:last-child {
	margin-bottom: 0;
}

/* Gallery section title: same h2 style as Featured Series section */
.series-gallery-items-title {
	color: #1D252D;
	font-size: var(--font-size-section-title);
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
	font-weight: 300;
	line-height: 1.2;
	word-wrap: break-word;
	margin-bottom: 2.5rem;
	text-align: center;
}


/* Full-bleed (100vw); clipped by .site-main */
.series-gallery-item {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(-50vw + 50%);
	margin-right: calc(-50vw + 50%);
	box-sizing: border-box;
	padding: 2rem 0;
	margin-bottom: 2rem;
}

.series-gallery-item:last-child {
	margin-bottom: 0;
}

/* Gallery item background: alternate by position (first white, second gray, etc.) */
.series-gallery-items .series-gallery-item:nth-child(even) {
	background-color: #fff;
}

.series-gallery-items .series-gallery-item:nth-child(odd) {
	background-color: var(--plastpro-gray-6, #F5F5F5);
}

/* Inner content constrained to site-container-max-wide, centered */
.series-gallery-item-inner {
	width: 100%;
	max-width: var(--site-container-max-wide);
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 4rem;
}

/* Image on left, content on right */
.series-gallery-item-left .series-gallery-item-inner {
	flex-direction: row;
}

/* Image on right, content on left */
.series-gallery-item-right .series-gallery-item-inner {
	flex-direction: row-reverse;
}

.series-gallery-item-image {
	flex: 0 0 500px;
	width: 500px;
	height: 500px;
	overflow: hidden;
}

.series-gallery-item-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.series-gallery-item-content {
	flex: 1;
	min-width: 0; /* allow flex item to shrink on narrow screens */
}

/* Gallery item title: same style as featured article title */
.series-gallery-item-title {
	font-family: var(--plastpro-font-family-heading);
	font-size: 2.25rem;
	font-weight: 400;
	line-height: 1.3;
	margin: 0;
	color: #1D252D;
	word-wrap: break-word;
}

/* Gallery item paragraph: same style as featured article excerpt */
.series-gallery-item-paragraph {
	font-family: var(--plastpro-font-family);
	font-size: 1rem;
	line-height: 1.6;
	color: #1D252D;
	margin: 0;
}

.series-gallery-item-paragraph p {
	margin-bottom: 1rem;
}

.series-gallery-item-paragraph p:last-child {
	margin-bottom: 0;
}

/* Responsive – tablet: smaller image, tighter gap */
@media (max-width: 1024px) {
	.series-gallery-item-inner {
		gap: 3rem;
	}

	.series-gallery-item-image {
		flex: 0 0 360px;
		width: 360px;
		height: 360px;
	}

	.series-gallery-item-title {
		font-size: var(--font-size-h2);
	}
}

/* Responsive – mobile: stack image and content vertically */
@media (max-width: 768px) {
	/* Hero responsive styles are in series-archive.css */

	.series-intro-title {
		font-size: var(--font-size-h2);
	}

	.series-intro,
	.series-content {
		padding: 2rem 0;
	}

	.series-gallery-items-title {
		font-size: var(--font-size-section-title);
		line-height: 1.2;
		margin-bottom: 2rem;
	}

	.series-gallery-item-inner {
		flex-direction: column;
		gap: 1.5rem;
		padding-left: 20px;
		padding-right: 20px;
	}

	/* Both left/right placements stack the same: image on top, content below */
	.series-gallery-item-left .series-gallery-item-inner,
	.series-gallery-item-right .series-gallery-item-inner {
		flex-direction: column;
	}

	.series-gallery-item-image {
		flex: 0 0 auto;
		width: 100%;
		max-width: 100%;
		height: auto;
		aspect-ratio: 4 / 3;
	}

	.series-gallery-item-content {
		max-width: 100%;
	}

	.series-gallery-item-title {
		font-size: var(--font-size-h2);
	}

	.series-gallery-item-paragraph {
		font-size: var(--font-size-h6);
	}
}

@media (max-width: 480px) {
	.series-gallery-item-title {
		font-size: var(--font-size-h3);
	}

	.series-gallery-item-paragraph {
		font-size: var(--font-size-body);
	}
}

