/**
 * Blog post single (template-parts/content/content-single.php; old Elementor doc 526, EN + AR).
 *
 * Featured-image band (background inline), then title + content in white
 * Helvetica Neue. Includes the old page custom CSS (h2 / gallery spacing) and
 * the old Customizer rules (mobile padding, Arabic text direction).
 */

.gloorst-single-post {
	--gloorst-sp-font: "Helvetica Neue", sans-serif;
	--gloorst-sp-color: #fff;
}

.gloorst-single-post .gloorst-single-post__band {
	min-height: 500px;
	background-size: cover;
}

.gloorst-single-post .gloorst-single-post__body {
	padding: 0 100px;
}

.gloorst-single-post .gloorst-single-post__inner {
	display: flex;
	flex-direction: column;
	margin: 50px 0;
	padding: 10px;
}

.gloorst-single-post .gloorst-single-post__title {
	margin: 0 0 20px;
	padding: 0 150px;
	font-family: var(--gloorst-sp-font);
	font-size: 32px;
	font-weight: 700;
	line-height: 1.4em;
	color: var(--gloorst-sp-color);
	text-align: start;
}

.gloorst-single-post .gloorst-single-post__content {
	margin-top: 50px;
	padding: 0 150px;
	font-family: var(--gloorst-sp-font);
	font-size: 16px;
	font-weight: 400;
	line-height: 25px;
	color: var(--gloorst-sp-color);
	text-align: end;
}

/* Content resets the old Elementor wrapper applied. */
.gloorst-single-post *,
.gloorst-single-post *::before,
.gloorst-single-post *::after {
	box-sizing: border-box;
}

.gloorst-single-post .gloorst-single-post__content a {
	box-shadow: none;
	text-decoration: none;
}

.gloorst-single-post .gloorst-single-post__content hr {
	margin: 0;
	background-color: transparent;
}

.gloorst-single-post .gloorst-single-post__content img {
	max-width: 100%;
	height: auto;
	border: none;
	border-radius: 0;
	box-shadow: none;
}

.gloorst-single-post .gloorst-single-post__content :is(embed, iframe, object, video) {
	max-width: 100%;
	width: 100%;
	margin: 0;
	border: none;
	line-height: 1;
}

/* Old page custom CSS. */
.gloorst-single-post h2 {
	margin-top: 40px;
}

.gloorst-single-post .gallery-icon {
	margin-top: 40px;
	border: 0;
}

/* Arabic: title right-aligned, content RTL (old element + Customizer CSS). */
.gloorst-single-post--ar .gloorst-single-post__title,
.gloorst-single-post--ar .gloorst-single-post__content {
	direction: rtl;
	text-align: right;
}

@media (max-width: 1024px) {
	.gloorst-single-post .gloorst-single-post__body {
		padding: 0 20px;
	}

	.gloorst-single-post .gloorst-single-post__title {
		padding: 0 50px;
	}

	.gloorst-single-post .gloorst-single-post__content {
		padding: 0 30px;
	}
}

@media (max-width: 767px) {
	.gloorst-single-post .gloorst-single-post__body {
		padding: 0;
	}

	/* Old Customizer rule: 40px side padding on mobile. */
	.gloorst-single-post .gloorst-single-post__title,
	.gloorst-single-post .gloorst-single-post__content {
		padding: 0 40px;
	}
}
