/*
 * Card grid for the "Zoom Cards Blog" page template.
 * Visual style modeled on the "nectar-fancy-box" cards.
 * (recreated from scratch with our own class names - that component belongs
 * to the Salient theme, not something we can depend on here).
 */

.zoom_cards_section_title {
	margin: 80px 0 20px;
}
.zoom_cards_section_title:first-child {
	margin-top: 0;
}

.zoom_cards_grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 30px;
	margin: 40px 0;
}

@media (max-width: 768px) {
	.zoom_cards_grid {
		grid-template-columns: 1fr;
	}
}

.zoom_cards_grid_full {
	grid-template-columns: 1fr;
	gap: 60px;
}

.zoom_card {
	position: relative;
	overflow: hidden;
	min-height: 300px;
	display: flex;
	align-items: flex-end;
	padding: 8%;
	background-color: #333; /* fallback when the post has no featured image */
}

.zoom_card:after {
	content: '';
	display: block;
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 6px;
	background: #73d8e4;
	z-index: 5;
	transform: scaleX(0);
	transform-origin: 0 0;
	transition: transform .45s cubic-bezier(.24,1,.3,1);
}
.zoom_card:hover:after {
	transform: scaleX(1);
}

.zoom_card_bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	z-index: 1;
	transition: transform .6s cubic-bezier(.24,1,.3,1);
}
.zoom_card_bg:after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(51,51,51,.5);
	transition: background-color .6s cubic-bezier(.24,1,.3,1);
}
.zoom_card:hover .zoom_card_bg {
	transform: scale(1.13);
}
.zoom_card:hover .zoom_card_bg:after {
	background-color: rgba(51,51,51,.2);
}

.zoom_card_link {
	position: absolute;
	z-index: 100;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.zoom_card_inner {
	position: relative;
	z-index: 10;
	color: #fff;
	text-align: left;
}

.zoom_card_title {
	margin: 0 0 .5em;
	font-size: 1.5em;
	line-height: 1.3em;
	color: #fff !important;
}
.zoom_card_title a {
	color: #fff !important;
	text-decoration: none;
}

.zoom_cards_grid_full .zoom_card_title {
	font-size: 2em;
}

.zoom_card_link_text {
	position: relative;
	z-index: 5;
	color: #73d8e4 !important;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.zoom_card_arrow {
	display: inline-block;
	margin-left: 16px;
	width: 26px;
	height: 22px;
	line-height: 22px;
	border-radius: 100px;
	border: 2px solid rgba(255,255,255,.4);
	text-align: center;
	position: relative;
	top: 6px;
	transition: border-color .35s cubic-bezier(.12,.75,.4,1);
}
.zoom_card_arrow:before {
	content: '\2192';
}
.zoom_card:hover .zoom_card_arrow {
	border-color: transparent;
}

@media (max-width: 768px) {
	.zoom_card {
		box-sizing: border-box;
		aspect-ratio: 3 / 4;
		min-height: 0;
	}
	.zoom_card_title {
		font-size: 2em;
	}
}

@media (max-width: 480px) {
	.zoom_card {
		aspect-ratio: 2 / 3;
	}
}
