/* FilmyKeeday — Homepage mobile-only fixes (loads only on is_front_page) */
@media (max-width: 768px) {
	/* 1) Center site title + slimmer header strip — mobile homepage only */
	body.home .cm-header-builder .cm-site-title,
	body.home .cm-header-builder .cm-site-title a {
		text-align: center !important;
		justify-content: center !important;
		width: 100% !important;
		display: block !important;
		margin-left: auto !important;
		margin-right: auto !important;
	}
	body.home .cm-header-builder .cm-header-main-row {
		padding-top: 8px !important;
		padding-bottom: 8px !important;
	}
	body.home .cm-header-builder .cm-main-row,
	body.home .cm-header-builder .cm-top-row {
		min-height: 48px !important;
	}
	body.home .cm-header-builder .cm-site-title a {
		font-size: 24px !important;
		line-height: 1.1 !important;
		letter-spacing: 0.8px !important;
	}
	body.home .cm-header-builder .cm-site-description {
		text-align: center !important;
	}

	/* 2) Full-width homepage on mobile — remove outer gray border + side padding that crops images */
	body.home {
		background-color: #ffffff !important;
		padding: 0 !important;
	}
	body.home #page {
		padding: 0 !important;
	}
	body.home #cm-content .inner-wrap,
	body.home .cm-container,
	body.home .cm-content {
		max-width: 100% !important;
		width: 100% !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		box-sizing: border-box !important;
		border: none !important;
		box-shadow: none !important;
	}
	body.home .cm-content {
		padding: 0 !important;
	}
	body.home .cm-primary,
	body.home #primary,
	body.home #cm-primary,
	body.home .cm-secondary,
	body.home #secondary {
		width: 100% !important;
		max-width: 100% !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	body.home .cm-posts .post,
	body.home .cm-featured-posts,
	body.home .widget,
	body.home .cm-slider-area {
		margin-left: 0 !important;
		margin-right: 0 !important;
		border-left: none !important;
		border-right: none !important;
	}
	/* Ensure images fill edge-to-edge like single-post */
	body.home .cm-featured-image img,
	body.home .cm-posts img,
	body.home .widget img,
	body.home .inner-wrap img {
		width: 100% !important;
		max-width: 100% !important;
		height: auto !important;
		display: block !important;
	}
	body.home .cm-header-builder {
		border-bottom: none !important;
	}
	/* 3) Kill the last light line borders that box the homepage content on mobile */
	body.home .cm-content,
	body.home .cm-primary,
	body.home .cm-secondary,
	body.home .cm-posts .post,
	body.home .cm-featured-posts,
	body.home .cm-highlighted-posts,
	body.home .widget,
	body.home .inner-wrap,
	body.home .cm-container,
	body.home #cm-content,
	body.home #page,
	body.home .cm-header-builder,
	body.home .cm-header-builder .cm-header-main-row,
	body.home .cm-header-builder .cm-header-bottom-row,
	body.home .cm-header-builder .cm-mobile-row,
	body.home .cm-header-builder .cm-top-row,
	body.home .cm-footer-builder,
	body.home .cm-footer-cols {
		border: none !important;
		box-shadow: none !important;
		outline: none !important;
	}
	body.home .cm-header-builder .cm-header-bottom-row {
		border-top: none !important;
	}
	body.home .cm-posts .post {
		border: none !important;
		border-bottom: none !important;
		border-radius: 0 !important;
		background: #ffffff !important;
	}
	body.home .cm-posts .post .cm-post-content,
	body.home .cm-featured-posts .cm-post-content {
		border: none !important;
		box-shadow: none !important;
	}
	body.home .cm-content,
	body.home #cm-content {
		background: #ffffff !important;
		padding: 0 !important;
	}
	body.home .inner-wrap {
		background: #ffffff !important;
	}
	/* Fix Latest Blogs cards — they use .post-card (not .cm-posts .post) */
	body.home .post-card,
	body.home .wp-block-post,
	body.home .fk-written-grid .wp-block-post,
	body.home .fk-written-grid .post-card {
		border: none !important;
		box-shadow: none !important;
		border-radius: 0 !important;
		background: #ffffff !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
	body.home .post-card {
		padding-bottom: 16px !important;
	}
	body.home .fk-written-grid,
	body.home .wp-block-post-template,
	body.home .fk-sec-head {
		padding-left: 0 !important;
		padding-right: 0 !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		max-width: 100% !important;
		width: 100% !important;
	}
	body.home .fk-sec-head {
		gap: 8px !important;
	}
}
