/* Post-specific content components - scoped to .post-content */

/* === Image Gallery === */
.post-main .image-gallery {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.5rem;
	margin: 2rem 0;
}
.post-main .image-gallery figure {
	flex: 1;
	display: flex;
	flex-direction: column;
	margin: 0;
}
.post-main .image-gallery img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	transition: transform 0.2s;
	display: block;
}
.post-main .image-gallery img:hover {
	transform: scale(1.1);
}
.post-main .image-gallery figcaption {
	font-size: 0.85rem;
	color: #aaa;
	text-align: center;
	margin-top: 0.5rem;
	font-style: italic;
}

/* === Pull Quote === */
.post-main .pull-quote {
	background: linear-gradient(
		135deg,
		rgba(184, 134, 11, 0.15),
		rgba(184, 134, 11, 0.05)
	);
	border-left: 5px solid #b8860b;
	padding: 1.5rem 2rem;
	margin: 2.5rem 0;
	font-size: 1.2rem;
	font-style: italic;
	color: #fff;
	line-height: 1.6;
	border-radius: 0 12px 12px 0;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	position: relative;
}

/* === Video Wrapper === */
.post-main .video-wrapper {
	max-width: 800px;
	margin: 2rem auto;
}
.post-main .video-wrapper iframe {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 16 / 9;
}
.post-main .video-wrapper video {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 16 / 9;
}

/* === Hero Video === */
.post-main .hero-video {
	max-width: none;
	margin: -2rem -2rem 2rem -2rem;
}

/* === Video Credit === */
.post-main .video-credit {
	text-align: center;
	font-size: 0.85rem;
	color: #aaa;
	margin-top: 0.5rem;
	font-style: italic;
}

/* === Poem Blockquote === */
.post-main blockquote.poem {
	border-left: 5px solid #b8860b;
	padding-left: 1.5rem;
	margin: 2.5rem 0;
	font-style: italic;
	color: #fff;
	background: linear-gradient(
		135deg,
		rgba(184, 134, 11, 0.15),
		rgba(184, 134, 11, 0.05)
	);
	padding: 1.5rem 2rem;
	border-radius: 0 12px 12px 0;
	font-size: 1.2rem;
	line-height: 1.6;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	position: relative;
}
.post-main blockquote.poem::before {
	content: "❝";
	position: absolute;
	top: -10px;
	left: 10px;
	font-size: 2.5rem;
	color: #b8860b;
	opacity: 0.6;
}

/* === Section Break === */
.post-main hr.section-break {
	border: none;
	border-top: 2px dashed rgba(184, 134, 11, 0.4);
	margin: 3rem 0;
	position: relative;
}
.post-main hr.section-break::before {
	content: "⚡";
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	background: #1a1a1a;
	padding: 0 0.5rem;
	color: #b8860b;
	font-size: 1.2rem;
}

/* === Hero Image === */
.post-main .hero-image {
	margin: -2rem -2rem 2rem -2rem;
	padding: 0;
}
.post-main .hero-image img {
	width: 100%;
	height: auto;
	border-radius: 12px 12px 0 0;
	display: block;
}
.post-main .hero-image figcaption {
	background: rgba(0, 0, 0, 0.3);
	padding: 0.5rem 1rem;
	margin: 0;
	font-size: 0.9rem;
}

/* === Simple Image Utilities === */
.post-main figure img {
	border-radius: 8px;
	display: block;
	margin: 0 auto;
	width: 100%;
	height: auto;
}
.post-main figure figcaption {
	text-align: center;
}

/* === Image Width Utilities === */
.post-main figure.image-width-small img {
	max-width: 300px;
}
.post-main figure.image-width-medium img {
	max-width: 500px;
}
.post-main figure.image-width-large img {
	max-width: 700px;
}
.post-main figure.image-width-full img {
	max-width: 100%;
}

/* === Custom List Bullets === */
.post-main ul {
	list-style: none;
	padding-left: 1.5rem;
	font-family:
		system-ui,
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		Roboto,
		sans-serif;
}

.post-main ul li {
	position: relative;
	padding-left: 2rem;
	margin-bottom: 1rem;
}

.post-main ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.4rem;
	width: 24px;
	height: 24px;
	background-image: url("/assets/Axe.svg");
	background-size: contain;
	background-repeat: no-repeat;
}

/* === Paragraph Formatting Utilities === */
.post-main .text-left {
	text-align: left;
}
.post-main .text-center {
	text-align: center;
}
.post-main .text-right {
	text-align: right;
}
.post-main .text-justify {
	text-align: justify;
}
.post-main .text-sm {
	font-size: 0.875rem;
}
.post-main .text-lg {
	font-size: 1.125rem;
}
.post-main .text-xl {
	font-size: 1.25rem;
}
.post-main .text-2xl {
	font-size: 1.5rem;
}
.post-main .leading-tight {
	line-height: 1.25;
}
.post-main .leading-normal {
	line-height: 1.5;
}
.post-main .leading-loose {
	line-height: 1.75;
}
.post-main .uppercase {
	text-transform: uppercase;
}
.post-main .lowercase {
	text-transform: lowercase;
}
.post-main .capitalize {
	text-transform: capitalize;
}
.post-main .font-light {
	font-weight: 300;
}
.post-main .font-bold {
	font-weight: 700;
}
.post-main .underline {
	text-decoration: underline;
}
.post-main .line-through {
	text-decoration: line-through;
}
/* === Example Paragraph Rules with Justified Styles === */

/* Elegant justified text with hyphenation */
/*.post-main p {
	text-align: justify;
	hyphens: auto;
	-webkit-hyphens: auto;
	line-height: 1.5;
	font-size: 1.05rem;
	max-width: 65ch;
	margin-left: auto;
	margin-right: auto;
}*/

/* Newspaper-style justified columns */
.post-main {
	text-align: pretty;
	text-justify: inter-word;
	line-height: 1.5;
	letter-spacing: 0.01em;
}

/* Modern justified with controlled spacing */
/*.post-main {
	text-align: justify;
	text-justify: distribute;
	word-spacing: -0.05em;
	line-height: 1.5;
	font-weight: 300;
}*/

/* === Poem Over Image – FINAL POLISHED VERSION === */
.post-main .poem-over-image {
	position: relative;
	display: flex; /* flex = rock-solid centering + auto height */
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 520px; /* gives the ghost image breathing room */
	background: url("/assets/images/KnickyKnack3.webp") center / cover no-repeat;
	border-radius: 12px;
	overflow: hidden;
	margin: 2.5rem 0;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.post-main .poem-over-image .poem-overlay {
	position: relative;
	background: rgba(0, 0, 0, 0.5); /* slightly darker for better contrast */
	padding: 2.5rem 2.75rem;
	border-radius: 12px;
	max-width: 90%;
	text-align: center;
	color: #fff;
	font-style: italic;
	font-size: 1.18rem;
	line-height: 1.68;
	box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
	border: 1.5px solid #b8860b; /* stronger gold border */
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95); /* makes every line pop on the ghost image */
	z-index: 2;
}

/* Subtle inner glow (keeps the spooky feel) */
.post-main .poem-over-image .poem-overlay::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(
		circle at center,
		rgba(255, 255, 255, 0.07),
		transparent
	);
	border-radius: inherit;
	pointer-events: none;
}
