:root {
	--heroContentSpacing: 20px;
}

.entry-header {
	.avatar-container {
		width: 25px;
		height: 25px;
		flex: 0 0 25px;
	}

	.entry-title, .page-title {
		word-wrap: break-word;
	}
}


// type 1
.hero-section[data-type="type-1"] {
	@include media-breakpoint-down (md) {
		margin-bottom: 30px;
	}

	@include media-breakpoint-up (lg) {
		margin-bottom: 50px;
	}

	.entry-header {
		.entry-title, .page-title {
			font-size: var(--pageTitleFontSize);
			line-height: 1.4;
			margin: initial;
			color: var(--pageTitleFontInitialColor);
			word-wrap: break-word;

			span {
				&:after {
					content: ':';
				}
			}
		}

		.entry-meta {
			color: var(--pageTitleFontInitialColor);

			a {
				color: var(--pageTitleFontInitialColor);

				&:hover {
					color: var(--pageTitleFontHoverColor);
				}
			}
		}

		> *:not(:first-child) {
			margin-top: var(--heroContentSpacing);
		}
	}
}


// type 2
.hero-section[data-type="type-2"] {
	position: relative;
	background: var(--pageTitleBackground);

	> .ct-container {
		display: flex;
		align-items: center;
		padding-top: 50px;
		padding-bottom: 50px;
		min-height: var(--pageTitleMinHeight);
	}

	> figure {
		position: absolute;
		overflow: hidden;
		z-index: 1;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;

		> .ct-image-container {
			height: 100%;
		}

		&:after {
			position: absolute;
			z-index: 2;
			content: '';
			top: 0;
			left: 0;
			right: 0;
			bottom: 0;
			background: var(--pageTitleOverlay);
		}
	}

	.ct-container {
		position: relative;
		z-index: 2;
	}

	.entry-header {
		--heroContentSpacing: 25px;
		width: 100%;
		text-align: center;

		> * {
			margin-top: var(--heroContentSpacing);
			margin-bottom: var(--heroContentSpacing);

			&:first-child {
				margin-top: 0;
			}

			&:last-child {
				margin-bottom: 0;
			}
		}

		@include media-breakpoint-up (lg) {
			width: 60%;
			margin: 0 auto;
		}
	}

	.entry-title, .page-title {
		line-height: 1.3;
		color: var(--pageTitleFontInitialColor);
		font-size: var(--pageTitleFontSize);

		span {
			display: flex;
			justify-content: center;
			font-size: 12px;
			text-transform: uppercase;
			letter-spacing: 0.08em;
			margin-bottom: 10px;
			// color: var(--paletteColor1);
		}
	}

	.page-description {
		font-weight: 500;
		opacity: 0.8;
		color: var(--pageTitleFontInitialColor);

		@include media-breakpoint-down (sm) {
			display: none;
		}
	}

	.entry-meta {
		justify-content: center;
		color: var(--pageTitleFontInitialColor);

		a {
			color: var(--pageTitleFontInitialColor);

			&:hover {
				color: var(--pageTitleFontHoverColor);
			}
		}

		@include media-breakpoint-down (sm) {
			flex-direction: column;

			.avatar-container {
				margin: 0 0 10px 0;
			}

			ul {
				justify-content: center;
			}
		}
	}

	.ct-meta-categories {
		display: flex;
		flex-wrap: wrap;

		.ct-meta-element {

			a {
				@include button((
					height: 30px,
					padding: 15px,
					shadow: false,
					// translate: false,
				));

				&:after {
					display: none;
				}
			}

			&:not(:last-child) {
				margin-right: 10px;
			}
		}
	}
}
