.wp-block-group.resource-card,
.single-news.news-card {
	height: 100%;
	display: flex;
	flex-direction: column;

	.has-white-background-color {
		flex-grow: 1;
	}

	figure.wp-block-image {
		border-bottom: solid 1px var(--wp--preset--color--admin-grey-200);
		aspect-ratio: 16/9;

		img {
			border-bottom-right-radius: 0;
			border-bottom-left-radius: 0;
			aspect-ratio: 16/9;
			object-fit: cover;
		}

		&.placeholder {
			background-color: var(--wp--preset--color--fc-green-800);
			border-top-left-radius: 16px;
			border-top-right-radius: 16px;
			position: relative;

			&:after {
				content: '';
				position: absolute;
				inset: 0;
				border-top-left-radius: 16px;
				border-top-right-radius: 16px;
				background-image: url('/wp-content/themes/fertilizercanada/assets/images/placeholders/event-placeholder.png');
				background-repeat: no-repeat;
				background-size: cover;
			}
		}
	}

	.gated-icon {
		position: absolute;
		top: var(--wp--preset--spacing--20);
		right: var(--wp--preset--spacing--40);
	}

	.type-group svg {
		color: var(--wp--preset--color--fc-grey-400);
	}

	.wp-block-button__link {
		font-weight: 400;
	}

	&:is(:hover,:focus) {
		.wp-block-button__link {
			border-color: var(--wp--preset--color--fc-green-400) !important;
			background-color: var(--wp--preset--color--fc-green-400) !important;
			color: var(--wp--preset--color--black) !important;
		}
	}

	&:is(:active) {
		.wp-block-button__link {
			border-color: var(--wp--preset--color--fc-green-800) !important;
			background-color: var(--wp--preset--color--fc-green-800) !important;
			color: var(--wp--preset--color--fc-green-50) !important;
		}
	}
}

.wp-block-post:has(> .resource-card, > .news-card) {
	display: flex;
	flex-direction: column;
}
