/* [cd_blog_posts] shortcode styles */

/* The list must never be wider than whatever it is dropped into. */
.cd-bp-list {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.cd-bp-row {
	display: flex;
	align-items: center;
	gap: 20px;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	/* Flex items default to min-width:auto, which lets a long unbroken title
	   push the row wider than its container instead of shrinking. */
	min-width: 0;
	text-decoration: none;
	color: inherit;
}

.cd-bp-pic {
	flex: 0 0 90px;
	width: 90px !important;
	height: 92px !important;
	border-radius: 6px !important;
	border: none !important;
	object-fit: cover;
}

.cd-bp-pic-placeholder {
	background-color: #eee;
}

.cd-bp-info {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 100%;
}

.cd-bp-title {
	margin: 0;
	font-family: 'Playfair Display', serif !important;
	font-weight: 500 !important;
	font-size: 18px !important;
	line-height: 120% !important;
	letter-spacing: 0%;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	/* A long URL or unbroken word in a title would otherwise refuse to wrap. */
	overflow-wrap: anywhere;
	word-break: break-word;
}

.cd-bp-date {
	margin-top: 12px;
	color: #4B2FC5;
	font-family: 'Outfit', sans-serif;
	font-weight: 400;
	font-size: 15px;
	line-height: 28px;
	letter-spacing: 0px;
}

/* Was a fixed 379px, which overflowed every container narrower than that —
   the most visible cause on a phone. */
.cd-bp-separator {
	width: 100%;
	max-width: 379px;
	height: 1px;
	margin: 20px 0;
	background-color: #4B2FC559;
}

.cd-bp-empty {
	font-family: 'Outfit', sans-serif;
	font-size: 15px;
	color: #666;
}

/* The 90px thumbnail plus a 20px gap leaves too little for the title on a
   narrow phone, so it shrinks rather than forcing the row wide. */
@media (max-width: 420px) {
	.cd-bp-pic {
		flex: 0 0 64px;
		width: 64px !important;
		height: 66px !important;
	}

	.cd-bp-row {
		gap: 14px;
	}
}
