.bsw {
	--bsw-cols: 3;
	--bsw-gap: 30px;
	--bsw-lines: 3;
	display: grid;
	grid-template-columns: repeat(var(--bsw-cols), minmax(0, 1fr));
	gap: var(--bsw-gap);
	width: 100%;
}

.bsw__card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 12px 12px 22px;
	border-radius: 20px;
	background: #fcf8f2;
	box-sizing: border-box;
	min-width: 0;
}

.bsw__media {
	display: block;
	overflow: hidden;
	border-radius: 12px;
	aspect-ratio: 3 / 2;
}
.bsw__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}
.bsw__card:hover .bsw__media img { transform: scale(1.04); }
.bsw--no-zoom .bsw__card:hover .bsw__media img { transform: none; }

.bsw__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 18px 6px 0;
}

.bsw__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid #d08f6e;
	color: #2a2118;
	font-size: 14px;
	line-height: 1.3;
}
.bsw__meta:only-child { border-bottom: 0; }

.bsw__title {
	margin: 18px 0 0;
	color: #2a2118;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
}
.bsw__title a {
	color: inherit;
	text-decoration: none;
}
/* whole card clickable */
.bsw__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
}
.bsw__title a:focus-visible { outline: none; }
.bsw__title a:focus-visible::after { outline: 2px solid currentColor; outline-offset: 2px; }

.bsw__excerpt {
	margin: 14px 0 0;
	color: #7b7468;
	font-size: 15px;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--bsw-lines);
	line-clamp: var(--bsw-lines);
	overflow: hidden;
}

.bsw__empty { padding: 20px; text-align: center; opacity: .7; grid-column: 1 / -1; }

@media (prefers-reduced-motion: reduce) {
	.bsw__media img { transition: none; }
}
