.home .qc-header-video-hero {
	background-color: #251f19;
	background-position: center;
	background-size: cover;
	isolation: isolate;
	overflow: hidden;
	position: relative;
}

.home .qc-header-video-hero > .wp-block-cover__image-background,
.home .qc-header-video-hero > .wp-block-cover__video-background {
	height: 100%;
	inset: 0;
	object-fit: cover;
	position: absolute;
	width: 100%;
	z-index: 0;
}

.home .qc-header-video-hero > .wp-block-cover__background {
	opacity: 0.58;
	z-index: 1;
}

.home .qc-header-video-hero > .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
}

.home .qc-header-video-hero.qc-header-video-paused > .wp-block-cover__video-background {
	opacity: 0;
}

.home .qc-home-photo-gallery-section {
	background: #f4efe7;
	padding: clamp(2rem, 5vw, 4.5rem) clamp(1rem, 4vw, 3.5rem);
}

.home .qc-home-photo-gallery {
	display: grid !important;
	gap: clamp(0.75rem, 1.6vw, 1.5rem);
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0 auto !important;
	max-width: 1280px;
}

.home .qc-home-photo-gallery > .wp-block-image {
	aspect-ratio: 4 / 3;
	background: #ded5c8;
	border-radius: 6px;
	margin: 0 !important;
	overflow: hidden;
	width: auto !important;
}

.home .qc-home-photo-gallery > .wp-block-image img {
	display: block;
	height: 100% !important;
	object-fit: cover;
	width: 100% !important;
}

.home .qc-home-photo-gallery > .wp-block-image .wp-image-235 {
	object-position: center 38%;
}

.home .qc-home-photo-gallery.qc-photo-slider-ready {
	aspect-ratio: 16 / 9;
	background: #ded5c8;
	border-radius: 8px;
	display: block !important;
	overflow: hidden;
	position: relative;
	user-select: none;
}

.home .qc-home-photo-hero {
	background: #251f19;
	isolation: isolate;
	min-height: max(672px, 100vh);
	min-height: max(672px, 100svh);
	padding: 0;
	position: relative;
}

.home .qc-home-photo-hero > .qc-home-photo-gallery {
	aspect-ratio: auto;
	border-radius: 0;
	display: block !important;
	height: 100%;
	inset: 0;
	margin: 0 !important;
	max-width: none;
	position: absolute;
	width: 100%;
	z-index: 0;
}

.home .qc-home-photo-hero > .qc-home-photo-gallery > .wp-block-image {
	aspect-ratio: auto;
	border-radius: 0;
	height: 100%;
	inset: 0;
	margin: 0 !important;
	opacity: 0;
	position: absolute;
	width: 100% !important;
}

.home .qc-home-photo-hero > .qc-home-photo-gallery:not(.qc-photo-slider-ready) > .wp-block-image:first-child {
	opacity: 1;
}

.home .qc-home-photo-hero > .qc-home-photo-gallery::after {
	background: linear-gradient(
		180deg,
		rgba(17, 20, 16, 0.58) 0%,
		rgba(17, 20, 16, 0.1) 42%,
		rgba(17, 20, 16, 0.72) 100%
	);
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: 2;
}

.home .qc-home-photo-hero > .qc-home-photo-hero__content {
	box-sizing: border-box;
	inset-inline: 0;
	margin-inline: 0 !important;
	margin-block-start: 0 !important;
	max-width: none !important;
	min-height: max(672px, 100vh) !important;
	min-height: max(672px, 100svh) !important;
	pointer-events: none;
	position: relative;
	width: 100% !important;
	z-index: 4;
}

.home .qc-home-photo-hero__content :is(a, button, [tabindex], .wp-block-navigation) {
	pointer-events: auto;
}

@media (min-width: 781px) {
	.home .qc-home-photo-hero__content > .wp-block-spacer:nth-child(3) {
		flex-basis: 34vh !important;
	}
}

.home .qc-header-video-hero.qc-home-video-section {
	aspect-ratio: 16 / 9;
	height: 56.25vw;
	margin: 0;
	max-height: none;
	min-height: 0 !important;
}

.home .qc-header-video-hero.qc-home-video-section > .wp-block-cover__background {
	display: none;
}

.home .qc-header-video-hero.qc-home-video-section > .wp-block-cover__inner-container {
	display: none;
}

.home .qc-home-photo-gallery.qc-photo-slider-ready > .wp-block-image {
	aspect-ratio: auto;
	border-radius: 0;
	height: 100%;
	inset: 0;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	transition: opacity 1.2s cubic-bezier(0.45, 0, 0.55, 1);
	width: 100% !important;
	z-index: 0;
}

.home .qc-home-photo-gallery.qc-photo-slider-ready > .wp-block-image.is-active {
	opacity: 1;
	z-index: 1;
}

.home .qc-photo-slider-controls {
	background: rgba(37, 31, 25, 0.78);
	border: 1px solid rgba(255, 255, 255, 0.66);
	box-shadow: 0 4px 18px rgba(24, 18, 13, 0.18);
	color: #fff;
	position: absolute;
	z-index: 3;
}

.home .qc-photo-slider-toggle {
	align-items: center;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 999px;
	box-shadow: none;
	color: #fff;
	cursor: pointer;
	display: flex;
	font: inherit;
	height: 30px;
	justify-content: center;
	padding: 0;
	position: static;
	transition: background-color 160ms cubic-bezier(0.23, 1, 0.32, 1), transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
	width: 30px;
}

.home .qc-photo-slider-toggle > span {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1;
}

.home .qc-photo-slider-controls {
	align-items: center;
	border-radius: 999px;
	bottom: clamp(0.75rem, 2vw, 1.5rem);
	display: flex;
	gap: 0.625rem;
	left: 50%;
	min-height: 38px;
	padding: 0.3rem 0.75rem 0.3rem 0.35rem;
	transform: translateX(-50%);
}

.home .qc-photo-slider-toggle[hidden] {
	display: none;
}

.home .qc-photo-slider-counter {
	font-size: 0.78rem;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.08em;
	line-height: 1;
	white-space: nowrap;
}

.home .qc-photo-slider-toggle:focus-visible {
	box-shadow: 0 0 0 2px #3b2e24, 0 0 0 5px #fff;
	outline: none;
}

.home .qc-photo-slider-toggle:active {
	transform: scale(0.96);
}

@media (hover: hover) and (pointer: fine) {
	.home .qc-photo-slider-toggle:hover {
		background: rgba(255, 255, 255, 0.12);
	}
}

@media (max-width: 780px) {
	.home .qc-home-photo-gallery-section {
		padding: 1.5rem 1rem 2rem;
	}

	.home .qc-home-photo-gallery {
		gap: 0.625rem;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.home .qc-home-photo-gallery.qc-photo-slider-ready {
		aspect-ratio: 4 / 3;
	}

	.home .qc-home-photo-hero {
		min-height: 100vh;
		min-height: 100svh;
		padding: 0;
	}

	.home .qc-home-photo-hero > .qc-home-photo-gallery.qc-photo-slider-ready {
		aspect-ratio: auto;
	}

	.home .qc-home-photo-hero > .qc-home-photo-hero__content {
		min-height: 100vh !important;
		min-height: 100svh !important;
	}

	.home .qc-photo-slider-toggle {
		height: 28px;
		width: 28px;
	}

	.home .qc-photo-slider-toggle > span {
		font-size: 0.75rem;
	}

	.home .qc-home-photo-gallery > .wp-block-image:last-child:nth-child(odd) {
		aspect-ratio: 16 / 9;
		grid-column: 1 / -1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.home .qc-header-video-hero > .wp-block-cover__video-background {
		display: none;
	}

	.home .qc-home-photo-gallery.qc-photo-slider-ready > .wp-block-image {
		transition: none;
	}
}
