@media screen and (min-width: 1026px) {
	.page-excerpt {
		margin-top: 5rem;
		max-width: 530px;
	}
}
@media screen and (max-width: 1025px) {
	.page-excerpt {
		margin-top: 2rem;
	}
}

.page-excerpt + div.page-hero__btn-wrapper {
	margin-top: 4rem;
}

section.page-hero {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding-bottom: 40px;
	margin-top: var(--header-height);
	overflow: hidden;
}
section.page-hero {
	opacity: 0;
	animation: fadeIn 0.5s ease-out 0.5s forwards;
}
@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

main {
	animation: fadeIn 0.5s ease-out 0.5s forwards;
	z-index:9;
	position:relative;
}
main.bg--ultra-dark {
	border-top-left-radius: var(--radius-m);
	border-top-right-radius: var(--radius-m);
}

@media screen and (max-width: 1025px) {
	main.bg--ultra-dark {
		border-top-left-radius: var(--radius-xs);
		border-top-right-radius: var(--radius-xs);
	}
}
@media screen and (max-width: 1025px) {
	section.page-hero.page-hero.page-hero {
		border-radius: var(--radius-s);
	}
}
section.page-hero h1 {
	max-width: 789px;
}
body.home section.page-hero h1 {
	max-width: 1000px;
}

.page-hero__inner-text {
	max-width: 523px;
}

section.page-hero::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(0deg, var(--primary-dark) 0%, rgba(28, 27, 26, 0.3));
	z-index: 0;
}
.page-hero__inner {
	position: relative;
	z-index: 5;
}

section.page-hero {
	padding-bottom: 6rem;
	padding-top: 0;
}
section.page-hero h1 {
	padding-top: 32rem;
	padding-bottom: 7rem;
}
@media screen and (max-width: 1025px) {
	section.page-hero h1 {
		padding-top: 20rem;
		padding-bottom: 8rem;
	}
	section.page-hero {
		padding-bottom: 4rem;
	}
}

.page-hero__featured-img-section {
	height: 655px;
	overflow: hidden;
	position: relative;
	margin-top: calc(var(--section-padding-block) * -0.3);
	padding-right: 0;
	padding-left: 0;
	margin-bottom: var(--section-padding-block) !important;
	z-index: 9;
}
@media screen and (max-width: 1025px) {
	.page-hero__featured-img-section {
		height: 340px;
		margin-top: 0;
	}
}
.page-hero__featured-img-section::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	background: black;
	opacity: 0.3;
	z-index: 9;
	width: calc(100% - 50px);
	margin-left: 25px;
}

.page-hero__featured-img-section img {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	min-width: 100%;
	min-height: 100%;
	padding-left: 25px;
	padding-right: 25px;
}

/* Page settings */
body.dark-section-before-footer footer::after {
	content: "";
	background: #1d1c1b;
	height: calc(100% + 50px);
	width: 100%;
	position: absolute;
	left: 0;
	bottom: 500px;
	z-index: -9999;
}

/* Pages without image */
@media screen and (max-width: 1025px) {
	.hero--contact h1,
	body.blog,
	body.archive h1,
	section.post-hero .back-btn {
		padding-top: 2.5rem;
	}
}
