/**
 * Cover Blocks
 */

.knd-block-cover {
	--knd-block-cover-height: 600px;
	--knd-block-cover-background: #dadada;
	--knd-block-cover-color: #fff;
	--knd-block-cover-content-background: transparent;

	background-color: var(--knd-block-cover-background);
	margin-top: 25px;
	margin-bottom: 25px;
	min-height: var(--knd-block-cover-height);
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 30px 50px;
	position: relative;
	z-index: 1;
	background-position: center;
	background-size: cover;
	overflow: hidden;

	&:after {
		content: '';
		display: block;
		z-index: -1;
		position: absolute;
		bottom: 0;
		left: 0;
		right: 0;
		top: 0;
		background: rgba(0, 0, 0, 0.35);
		background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.1) 27%, rgba(0, 0, 0, 0.31) 51%, rgba(0, 0, 0, 0.7) 100%);
		border-radius: var(--knd-image-border-radius);
	}

	&.is-style-bottom {
		align-items: flex-end;
	}

	&.has-content-background {
		padding-bottom: 0;
	}

	&.has-background {
		&:not(.alignfull) {
			border-radius: var(--knd-image-border-radius);

			&:not(.alignwide) {
				margin-left: -50px;
				margin-right: -50px;
			}
		}

		&.alignfull {
			margin-top: 0;
			margin-bottom: 0;
		}
	}

	&.alignfull {
		min-height: 600px;
	}

	&-inner {
		width: var(--knd-content-width);
		max-width: 100%;
		margin-left: auto;
		margin-right: auto;
	}

	& &-title {
		margin-top: 0;
		font-size: 24px;
		color: var(--knd-block-cover-color);
		font-family: var(--knd-font-family-headings);
		font-weight: var(--knd-font-weight-headings);
	}

	& &-content {
		font-size: 18px;
		line-height: 1.5;
		color: var(--knd-block-cover-color);
	}

	&.has-content-background &-content {
		background-color: var(--knd-block-cover-content-background);
		padding: 48px;
	}

	.knd-block-recommend {
		margin-bottom: 0;
	}

}
