/*
Theme Name: Kadence Child
Theme URI: https://example.com/
Description: Child theme for the Kadence theme.
Author: Your Name
Author URI: https://example.com/
Template: kadence
Version: 1.0.0
Text Domain: kadence-child
*/

/* Add custom CSS below this line */

/* Style front page Deadlys promo box */
.deadlys-promo-box {
background: #8e8e8e url('https://chriscantrell.net/wp-content/uploads/2026/07/comic_strip_page_bg_2026.webp')!important;
}

/* Style Comic Crypt front page promo box */
.crypt-promo-box {
background: #8e8e8e url('https://chriscantrell.net/wp-content/uploads/2026/07/crypt_comic_strip_bg.webp')!important;
}


/* Change header and footer menu text to uppercase. */
.header-navigation, .header-menu-container {
	display: flex;
	text-transform: uppercase;
}

.footer-navigation, .footer-menu-container {
	text-transform: uppercase;
}



/* Fix Color Of SIMILAR POSTS titles */
.entry-related-carousel h3.entry-title {
	font-size: 20px;
	color: #fefefe;
}



/* ========================================
   Latest News Cards
   Shortcode: [latest_news_cards]
======================================== */

.latest-news-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: stretch;
	gap: 30px;
	width: 100%;
	margin: 0;
	padding: 0;
}

/* Entire linked card */
.latest-news-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-width: 0;
	overflow: hidden;

	background: #2d2d2d;
	border: 1px solid #444444;
	border-radius: 8px;

	color: #ffffff;
	text-decoration: none;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

/* Remove Kadence link effects */
.latest-news-card:hover,
.latest-news-card:focus,
.latest-news-card:active,
.latest-news-card:visited {
	color: #ffffff;
	text-decoration: none;
	transform: none;
}

/* Fixed image area keeps every card equal */
.latest-news-card-image {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    aspect-ratio: 1054 / 529;
    overflow: hidden;
    background: #222;
}

/* Show the complete image without cropping */
.latest-news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Date and title area */
.latest-news-card-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;

	width: 100%;
	padding: 12px 16px 14px;
	text-align: center;
}

/* Post date */
.latest-news-card-date {
	display: block;
	margin: 0 0 -6px;
	padding: 0;

	font-size: 0.9rem;
	font-weight: 400;
	line-height: 1.2;
	color: #c5c5c5;
}

/* Post title */
.latest-news-card-title {
	margin: 0;
	padding: 0;

	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.2;
	color: #ffffff;
}


/* Prevent theme styles from altering the title link */
.latest-news-card:hover .latest-news-card-title,
.latest-news-card:focus .latest-news-card-title {
	color: #ffffff;
}

/* No-post message */
.latest-news-empty {
	margin: 0;
	text-align: center;
	color: #ffffff;
}

/* Tablet */
@media only screen and (max-width: 900px) {
	.latest-news-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}

	.latest-news-card-image {
		height: 220px;
	}
}

/* Mobile */
@media only screen and (max-width: 600px) {
	.latest-news-cards {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.latest-news-card-image {
		height: 220px;
	}

	.latest-news-card-content {
		padding: 12px 14px 14px;
	}

	.latest-news-card-date {
		margin-bottom: 5px;
	}

	.latest-news-card-title {
		font-size: 1.1rem;
	}
}