.b-studies {
	--b-posts-per-row: 3;
	--b-post-gap: 20px;
	--b-post-pad: 10px;
	--b-hover-zoom: 1.1;
	
	display: flex;
	flex-wrap: wrap;
	margin: var(--b-post-gap) calc(0px - var(--b-post-gap));
}
.b-casestudy {
	display: flex;
	flex-direction: column;
	width: calc(100% / var(--b-posts-per-row) - 2 * var(--b-post-gap));
	margin: var(--b-post-gap);

	cursor: pointer;
	text-decoration: none;
}
.b-casestudy .b-img-container {
	position: relative;
	width: 100%;
	padding-bottom: 60%;
	overflow: hidden;
}
.b-casestudy .b-img-container img {
	position: absolute;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.25s;
}
:root.b-hover .b-casestudy:hover .b-img-container img {
	transform: scale(var(--b-hover-zoom));
}

.b-casestudy .b-text-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: var(--b-post-pad);
}

.b-casestudy p {
	text-align: center;
}
.b-casestudy p.b-tagline {
	margin-top: 5px;
	font-size: 0.7rem;
}

@media only screen and (max-width: 1024px) {
	.b-studies {
		--b-post-gap: 10px;
		--b-post-pad: 5px;
	}
}
@media only screen and (max-width: 700px) {
	.b-studies {
		--b-posts-per-row: 1;
		--b-post-pad: 10px;
	}
}