/* Grand Peaks hero slideshow - front end only (the editor shows the gallery as a normal grid). */
.gp-hero {
	position: relative;
	overflow: hidden;
	min-height: 680px;
	display: flex;
	align-items: center;
	background: var(--wp--preset--color--cream);
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.gp-hero > .gp-hero-slides {
	position: absolute !important;
	inset: 0;
	margin: 0 !important;
	padding: 0 !important;
	max-width: none !important;
	width: 100% !important;
	display: block !important;
	z-index: 0;
}
.gp-hero > .gp-hero-slides > figure.wp-block-image {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	opacity: 0;
}
.gp-hero > .gp-hero-slides > figure.wp-block-image:first-child { opacity: 1; }
.gp-hero > .gp-hero-slides > figure.wp-block-image img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
}
.gp-hero > .gp-hero-slides figcaption { display: none; }
.gp-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.9) 34%, rgba(255,255,255,0.55) 48%, rgba(255,255,255,0) 66%);
}
.gp-hero > .gp-hero-content {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto !important;
	box-sizing: border-box;
	padding-left: 32px;
	padding-right: 32px;
	padding-top: 96px;
	padding-bottom: 104px;
}
.gp-hero > .gp-hero-content > * { max-width: 540px; margin-left: 0 !important; }
@media (max-width: 760px) {
	.gp-hero { min-height: 600px; align-items: flex-end; }
	.gp-hero::after { background: rgba(255,255,255,0.84); }
	.gp-hero > .gp-hero-content { padding: 72px 24px 56px; }
}

@keyframes gpHero2 { 0% { opacity: 0; } 8.333% { opacity: 1; } 58.333% { opacity: 1; } 66.667% { opacity: 0; } 100% { opacity: 0; } }
.gp-hero > .gp-hero-slides:has(> figure:nth-child(2):last-child) > figure:not(:first-child) { animation: gpHero2 12s linear infinite; }
@keyframes gpHero3 { 0% { opacity: 0; } 5.556% { opacity: 1; } 38.889% { opacity: 1; } 44.444% { opacity: 0; } 100% { opacity: 0; } }
.gp-hero > .gp-hero-slides:has(> figure:nth-child(3):last-child) > figure:not(:first-child) { animation: gpHero3 18s linear infinite; }
@keyframes gpHero4 { 0% { opacity: 0; } 4.167% { opacity: 1; } 29.167% { opacity: 1; } 33.333% { opacity: 0; } 100% { opacity: 0; } }
.gp-hero > .gp-hero-slides:has(> figure:nth-child(4):last-child) > figure:not(:first-child) { animation: gpHero4 24s linear infinite; }
@keyframes gpHero5 { 0% { opacity: 0; } 3.333% { opacity: 1; } 23.333% { opacity: 1; } 26.667% { opacity: 0; } 100% { opacity: 0; } }
.gp-hero > .gp-hero-slides:has(> figure:nth-child(5):last-child) > figure:not(:first-child) { animation: gpHero5 30s linear infinite; }
@keyframes gpHero6 { 0% { opacity: 0; } 2.778% { opacity: 1; } 19.444% { opacity: 1; } 22.222% { opacity: 0; } 100% { opacity: 0; } }
.gp-hero > .gp-hero-slides:has(> figure:nth-child(6):last-child) > figure:not(:first-child) { animation: gpHero6 36s linear infinite; }
@keyframes gpHero7 { 0% { opacity: 0; } 2.381% { opacity: 1; } 16.667% { opacity: 1; } 19.048% { opacity: 0; } 100% { opacity: 0; } }
.gp-hero > .gp-hero-slides:has(> figure:nth-child(7):last-child) > figure:not(:first-child) { animation: gpHero7 42s linear infinite; }
@keyframes gpHero8 { 0% { opacity: 0; } 2.083% { opacity: 1; } 14.583% { opacity: 1; } 16.667% { opacity: 0; } 100% { opacity: 0; } }
.gp-hero > .gp-hero-slides:has(> figure:nth-child(8):last-child) > figure:not(:first-child) { animation: gpHero8 48s linear infinite; }
.gp-hero > .gp-hero-slides > figure:nth-child(2) { animation-delay: 6s !important; }
.gp-hero > .gp-hero-slides > figure:nth-child(3) { animation-delay: 12s !important; }
.gp-hero > .gp-hero-slides > figure:nth-child(4) { animation-delay: 18s !important; }
.gp-hero > .gp-hero-slides > figure:nth-child(5) { animation-delay: 24s !important; }
.gp-hero > .gp-hero-slides > figure:nth-child(6) { animation-delay: 30s !important; }
.gp-hero > .gp-hero-slides > figure:nth-child(7) { animation-delay: 36s !important; }
.gp-hero > .gp-hero-slides > figure:nth-child(8) { animation-delay: 42s !important; }
@media (prefers-reduced-motion: reduce) { .gp-hero > .gp-hero-slides > figure { animation: none !important; } }
