
.cards-widget {
	position: relative;
	height: 100%;
	transition: 300ms;
}

.cards-widget .item, .cards-widget .item--employee, .cards-widget .item--horizontal, .cards-widget .item--content-type, .cards-widget .item--basic {
	height: 100%;
	position: relative;
	border-radius: var(--block-border-radius);
	background-color: white;
	overflow: hidden;
	transition: transform var(--transition-ms);
}

.cards-widget .item--basic {
	display: flex;
	flex-direction: column;
	grid-gap: .625rem;
	grid-template-columns: inherit;
	justify-content: space-between !important;
	transition: transform var(--transition-ms), background-color 150ms, border-color 150ms;
	width: 100%;
}

.cards-widget .item--basic .content-wrapper {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.cards-widget .item--basic .content-wrapper .image {
	width: 100%;
	max-width: 300px;
	overflow: hidden;
}

.cards-widget .item--basic .content-wrapper .description p {
	margin-bottom: 1em;
}

.cards-widget .item--basic .content-wrapper .button {
	z-index: 2;
}

.cards-widget .item--basic .content-wrapper .heading, .cards-widget .item--basic .content-wrapper .subheading, .cards-widget .item--basic .content-wrapper .description, .cards-widget .item--basic .content-wrapper .image, .cards-widget .item--basic .content-wrapper .button-wrapper, .cards-widget .item--basic .content-wrapper .button {
	margin-bottom: 0;
}

.cards-widget .item--content-type {
	padding: 0 !important;
}

.cards-widget .item--content-type .image {
	width: 100%;
}

.cards-widget .item--content-type .content-wrapper {
	padding: 2rem;
}

@media (max-width: 991.98px) {
	.cards-widget .item--content-type .content-wrapper {
		padding: 1.5rem;
	}
}

.cards-widget .item--content-type .content-wrapper .heading {
	margin-top: .5rem;
	margin-bottom: 0;
	font-weight: 400 !important;
}

.cards-widget .item--horizontal {
	display: flex;
	align-items: center;
	column-gap: 1.5em;
	row-gap: 1em;
}

@media (max-width: 575.98px) {
	.cards-widget .item--horizontal {
		flex-direction: column;
		text-align: center;
	}
}

.cards-widget .item--horizontal .image-wrapper {
	flex-shrink: 0;
}

.cards-widget .item--horizontal .content-wrapper {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.cards-widget .item--horizontal .content-wrapper .button-wrapper {
	margin-top: auto;
}

.cards-widget .item--horizontal .content-wrapper .button-wrapper .button {
	z-index: 3;
}

.cards-widget .item--employee {
	width: 100%;
}

.cards-widget .item--employee .content-wrapper {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.cards-widget .item--employee .content-wrapper .image {
	width: 100%;
	max-width: 300px;
	overflow: hidden;
}

.cards-widget .item--employee .content-wrapper .content-name-wrapper {
	--logo-size: 2rem;
	position: relative;
}

@media (max-width: 767.98px) {
	.cards-widget .item--employee .content-wrapper .content-name-wrapper {
		--logo-size: 1.75rem;
	}
}

.cards-widget .item--employee .content-wrapper .content-name-wrapper .heading {
	padding-right: calc(var(--logo-size) + .5em);
}

.cards-widget .item--employee .content-wrapper .content-name-wrapper img {
	width: var(--logo-size);
	position: absolute;
	top: .25em;
	right: 0;
}

.cards-widget .item--employee .content-wrapper .heading, .cards-widget .item--employee .content-wrapper .subheading, .cards-widget .item--employee .content-wrapper .image {
	margin-bottom: 0;
}

@media (max-width: 1199.98px) {
	.cards-widget .grid-item, .cards-widget .grid-sizer {
		width: 22%;
	}
}

@media (max-width: 991.98px) {
	.cards-widget .grid-item, .cards-widget .grid-sizer {
		width: 30%;
	}
}

@media (max-width: 767.98px) {
	.cards-widget .grid-item, .cards-widget .grid-sizer {
		width: 47%;
	}
}

@media (max-width: 575.98px) {
	.cards-widget .grid-item, .cards-widget .grid-sizer {
		width: 100%;
	}
}

.cards-widget .grid-item--1, .cards-widget .grid-sizer--1 {
	width: 100% !important;
}

@media (min-width: 576px) {
	.cards-widget .grid-item--2, .cards-widget .grid-sizer--2 {
		width: 47%;
	}
}

@media (min-width: 768px) {
	.cards-widget .grid-item--3, .cards-widget .grid-sizer--3 {
		width: 30%;
	}
}

@media (min-width: 992px) {
	.cards-widget .grid-item--4, .cards-widget .grid-sizer--4 {
		width: 22%;
	}
}

@media (min-width: 1200px) {
	.cards-widget .grid-item--5, .cards-widget .grid-sizer--5 {
		width: 17%;
	}
}
