/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.0
*/

/* ── Featured Book Review ─────────────────────────────── */
.km-featured-book-review {
	display: flex;
	flex-direction: row;
	gap: 48px;
	align-items: stretch;
	background: #fff;
}

.km-fbr-image {
	flex: 0 0 auto;
	width: 40%;
	max-width: 420px;
}

.km-fbr-image a {
	display: block;
	height: 100%;
}

.km-fbr-image img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}

.km-fbr-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 8px 0;
}

.km-fbr-title a {
	font-family: Montserrat, sans-serif;
	font-size: 36px;
	line-height: 110%;
	font-weight: 600;
	color: #1a1a1a;
	text-decoration: none !important;
}

.km-fbr-title a:hover {
	color: #BE1622;
}

.km-fbr-footer {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.km-fbr-read-more {
	display: inline-block;
	font-family: Montserrat, sans-serif;
	font-size: 20px;
	line-height: 135%;
	font-weight: 600;
	color: var(--red) !important;
	text-decoration: none !important;
	margin-bottom: 4px;
}

.km-fbr-read-more:hover {
	color: #6e1414 !important;
}

.km-fbr-book-author,
.km-fbr-date {
	font-size: 14px;
	color: #444;
	margin: 0;
	padding: 0;
}

@media (max-width: 600px) {
	.km-featured-book-review {
		flex-direction: column;
		gap: 24px;
	}

	.km-fbr-image {
		width: 100%;
		max-width: none;
	}
}
/* ── /Featured Book Review ────────────────────────────── */


/* ── ACF Post Blocks ─────────────────────────────────── */
.km-post-blocks {
	margin-top: 40px;
}

.km-block {
	margin-bottom: 40px;
}

.km-block:last-child {
	margin-bottom: 0;
}

/* Text block — inherits theme prose styles */
.km-block-text {}

/* Gallery block — responsive grid */
.km-block-gallery {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

.km-gallery-item {
	margin: 0;
	overflow: hidden;
}

.km-gallery-item img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}

@media (max-width: 480px) {
	.km-block-gallery {
		grid-template-columns: 1fr;
	}
}

/* Single image block */
.km-block-single-image {
	margin: 0;
}

.km-block-single-image img {
	display: block;
	width: 100%;
	height: auto;
}

.km-image-caption {
	margin-top: 10px;
	padding-bottom: 30px;
	font-size: 14px;
	color: #666;
	font-style: italic;
}
/* ── /ACF Post Blocks ────────────────────────────────── */

/* ── Featured Category Post ──────────────────────────── */

/* Outer wrap: position:relative so the overlay <a> fills it */
.km-fcp-wrap {
	position: relative;
	display: block;
}

/* Invisible full-cover link — sits on top so the whole card is clickable */
.km-fcp-link {
	position: absolute;
	inset: 0;
	z-index: 1;
	text-decoration: none !important;
}

/* Flex row lives on the inner div, never on an <a> */
.km-fcp-inner {
	display: flex;
	flex-direction: row;
	align-items: stretch;
}

/* Left column — 1/3 */
.km-fcp-content {
	flex: 0 0 33.333%;
	width: 33.333%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding-right: 48px;
}

/* Right column — 2/3 */
.km-fcp-image {
	flex: 0 0 66.666%;
	width: 66.666%;
	overflow: hidden;
}

.km-fcp-image img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	transition: transform 0.4s ease;
}

/* Title */
.km-fcp-title {
	font-family: Montserrat, sans-serif;
	font-size: 36px;
	line-height: 110%;
	font-weight: 600;
	color: #1a1a1a;
	margin: 0 0 16px;
	transition: color 0.2s ease;
}

/* Bottom meta */
.km-fcp-bottom {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.km-fcp-excerpt {
	margin: 0 0 16px;
	color: #1a1a1a;
}

.km-fcp-author {
	font-size: inherit;
	font-weight: 700;
	margin: 0;
	padding: 0;
	color: #1a1a1a;
}

.km-fcp-date {
	margin: 0;
	color: #1a1a1a;
}

/* Hover effects — triggered on the wrap since the <a> is the overlay */
.km-fcp-wrap:hover .km-fcp-title {
	color: var(--red);
}

.km-fcp-wrap:hover .km-fcp-image img {
	transform: scale(1.04);
}

@media (max-width: 700px) {
	.km-fcp-inner {
		flex-direction: column;
	}

	.km-fcp-content {
		flex: none;
		width: 100%;
		padding-right: 0;
		padding-bottom: 24px;
	}

	.km-fcp-image {
		flex: none;
		width: 100%;
	}
}
/* ── /Featured Category Post ─────────────────────────── */





