/**
 * Template-based homepage layout.
 */

.au-homepage-body .site-content > .cs-container {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

.au-homepage-body .main-content {
	width: 100%;
}

.au-homepage {
	margin: 0;
}

/* Authentic applies margin-top/bottom: 32px to .entry-content > * — reset on homepage sections. */
.au-homepage-body .main-content .entry-content.au-homepage > .au-homepage-section {
	margin-bottom: 0;
}

.au-homepage-body .main-content .entry-content.au-homepage > .au-homepage-section--editorial {
	margin-bottom: 0;
}

.au-homepage-body .site-content {
	margin-bottom: 0;
}

.au-homepage-body .main-content .entry-content.au-homepage > .au-homepage-section:not(.au-homepage-section--hero) {
	margin-top: 0;
}

.au-homepage-section {
	position: relative;
}

.au-homepage-section--hero {
	margin-top: -50px;
	margin-bottom: 0;
	padding: 110px 0 130px;
	background-color: #1a1a1a;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	color: #ffffff;
	text-align: center;
	isolation: isolate;
}

.au-homepage-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.28) 0%,
		rgba(0, 0, 0, 0.48) 100%
	);
	pointer-events: none;
}

.au-homepage-hero__container {
	position: relative;
	z-index: 1;
}

.au-homepage-hero__inner {
	width: 100%;
	max-width: none;
	margin: 0 auto;
	text-align: center;
}

/* Match shared list hero typography (see list-hero.css). */
.au-homepage-body .main-content .entry-content.au-homepage .au-homepage-section--hero .au-homepage-hero__title,
.au-homepage-body .main-content .entry-content.au-homepage .au-homepage-section--hero .au-homepage-hero__subtitle {
	margin-top: 0;
	margin-bottom: 0;
	color: #ffffff;
	font-family: var(--au-font-heading, "Cormorant Garamond", Georgia, serif);
	font-weight: 400;
}

.au-homepage-hero__title {
	line-height: 1.15;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.au-homepage-hero__subtitle {
	margin-top: var(--au-listing-hero-subtitle-gap, 0.85rem);
	line-height: 1.5;
	text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
}

.au-homepage-section--bg-white {
	background-color: #ffffff;
}

.au-homepage-section--bg-soft {
	background-color: #f8f8f8;
}

.au-homepage-section--galleries {
	margin-top: 0;
	padding: 60px 0 30px;
}

.au-homepage-section--hero + .au-homepage-section {
	margin-top: 0;
}

.au-homepage-section--artists,
.au-homepage-section--events,
.au-homepage-section--editorial {
	padding: 70px 0;
}

.au-homepage-section__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	margin-bottom: 2.5rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid #e5e5e5;
}

.au-homepage-section__title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1.2;
}

.au-homepage-section__cta {
	flex-shrink: 0;
	white-space: nowrap;
}

.au-homepage-section__content .artunited-content-block {
	margin-bottom: 0;
}

@media (max-width: 768px) {
	.au-homepage-section--hero {
		margin-top: 0;
		padding: 5rem 0 4.5rem;
	}

	.au-homepage-section--galleries {
		margin-top: 0;
		padding-top: 3.5rem;
	}

	.au-homepage-section__header {
		flex-direction: column;
		align-items: flex-start;
	}

	.au-homepage-section__cta {
		align-self: flex-start;
	}
}

[data-scheme="dark"] .au-homepage-section--bg-white {
	background-color: #1a1a1a;
}

[data-scheme="dark"] .au-homepage-section--bg-soft {
	background-color: #141414;
}

[data-scheme="dark"] .au-homepage-section__header {
	border-bottom-color: #333333;
}

[data-scheme="dark"] .au-homepage-section__title {
	color: #f2f2f2;
}

[data-scheme="dark"] .au-homepage-hero__overlay {
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.52) 0%,
		rgba(0, 0, 0, 0.72) 100%
	);
}

[data-scheme="dark"] .au-homepage-body .main-content .entry-content.au-homepage .au-homepage-section--hero .au-homepage-hero__title,
[data-scheme="dark"] .au-homepage-body .main-content .entry-content.au-homepage .au-homepage-section--hero .au-homepage-hero__subtitle {
	color: #ffffff;
}
