/* Jannah Single Template — front end + editor */

.jst-post-title,
.jst-post-excerpt {
	margin: 0;
}

.jst-featured-image {
	margin: 0;
}

.jst-featured-image img {
	display: inline-block;
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

.jst-featured-image figcaption {
	margin-top: 8px;
	font-size: 0.85em;
}

.jst-post-content > *:last-child {
	margin-bottom: 0;
}

/* Meta ------------------------------------------------------------------ */

.jst-post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.jst-post-meta--stacked {
	flex-direction: column;
}

.jst-post-meta--stacked .jst-meta-separator {
	display: none;
}

.jst-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.jst-meta-icon {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.jst-meta-icon svg {
	width: 1em;
	height: 1em;
}

.jst-meta-separator {
	opacity: 0.6;
}

/* Navigation ------------------------------------------------------------ */

.jst-post-navigation {
	--jst-nav-divider-display: none;
	--jst-nav-divider-color: #e6e6e6;
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: 20px;
	position: relative;
}

.jst-post-navigation::before {
	content: "";
	display: var(--jst-nav-divider-display);
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 1px;
	background: var(--jst-nav-divider-color);
}

.jst-nav-item {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1 1 0;
	text-decoration: none;
	min-width: 0;
}

.jst-nav-item--next {
	justify-content: flex-end;
	text-align: right;
}

.jst-nav-item--empty {
	pointer-events: none;
}

.jst-nav-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.jst-nav-title {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.jst-nav-arrow {
	flex: 0 0 auto;
}

@media (max-width: 767px) {
	.jst-post-navigation {
		flex-direction: column;
	}

	.jst-post-navigation::before {
		display: none;
	}

	.jst-nav-item--next {
		justify-content: flex-start;
		text-align: left;
	}
}

/* Editor placeholders --------------------------------------------------- */

.jst-editor-notice {
	padding: 12px 15px;
	border: 1px dashed #c5c7d1;
	border-radius: 3px;
	color: #6b6f82;
	font-size: 13px;
	background: #f9f9fb;
}

/* Editor placeholder for widgets with no post context ------------------- */

.jst-editor-placeholder {
	display: flex;
	flex-direction: column;
	gap: 4px;
	align-items: flex-start;
	padding: 18px 20px;
	border: 1px dashed #c5c7d1;
	border-radius: 4px;
	background: repeating-linear-gradient(
		45deg,
		#f7f7fa,
		#f7f7fa 10px,
		#f2f2f6 10px,
		#f2f2f6 20px
	);
}

.jst-editor-placeholder__label {
	font-size: 13px;
	font-weight: 600;
	color: #515462;
	letter-spacing: 0.02em;
}

.jst-editor-placeholder__hint {
	font-size: 12px;
	line-height: 1.5;
	color: #7a7e8e;
}

/* ACF Field ------------------------------------------------------------- */

.jst-acf-field {
	margin: 0;
}

.jst-acf-field img {
	display: block;
	max-width: 100%;
	height: auto;
}

.jst-acf-field--image a {
	display: inline-block;
}

.jst-acf-gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.jst-acf-gallery__item img {
	width: 100%;
}

.jst-acf-label {
	font-weight: 600;
}

.jst-acf-field--wysiwyg > *:last-child,
.jst-acf-field--textarea > *:last-child {
	margin-bottom: 0;
}
