/**
 * 2.9.304: edge-to-edge Pre-Black Friday hero and a smaller mobile Shop Now.
 * 2.9.302 object-fit: contain letterboxed the desktop art at wide viewports
 * and left the 4:3 mobile art looking inset because creatures sat inside a
 * black frame. Cover + a re-rendered 4:3 mobile banner puts the line-art
 * at the edges. The Shop Now ghost button on phones is 150×44px / 15px type,
 * placed just under "UP TO 30% OFF" in a clear black gap (no creature behind it).
 */

body.gh-studio.home .gh-home-hero.gh-home-hero--pbf {
	display: block;
	width: 100% !important;
	max-width: none !important;
	height: min(56vh, 560px) !important;
	min-height: 0 !important;
	max-height: 560px !important;
	aspect-ratio: auto !important;
	overflow: hidden;
	background: #000;
	box-sizing: border-box;
}

body.gh-studio.home .gh-home-hero--pbf .gh-home-hero-media,
body.gh-studio.home .gh-home-hero--pbf .gh-home-hero-overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

body.gh-studio.home .gh-home-hero--pbf .gh-home-hero-media picture {
	display: block;
	width: 100%;
	height: 100%;
}

body.gh-studio.home .gh-home-hero--pbf .gh-home-hero-overlay {
	background: none;
	pointer-events: none;
}

body.gh-studio.home .gh-home-hero--pbf .gh-home-hero-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover !important;
	object-position: center center !important;
}

body.gh-studio.home .gh-home-hero--pbf .gh-home-hero-copy {
	position: absolute !important;
	inset: 0;
	z-index: 2;
	display: flex;
	width: 100% !important;
	max-width: none !important;
	height: 100% !important;
	min-height: 0 !important;
	max-height: none !important;
	aspect-ratio: auto !important;
	align-items: center;
	flex-direction: column;
	justify-content: flex-end;
	padding-bottom: clamp(24px, 5.5%, 44px);
	text-align: center;
	box-sizing: border-box;
}

body.gh-studio.home .gh-home-hero--pbf .gh-home-hero-copy h1 {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px !important;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

body.gh-studio.home .gh-home-hero--pbf .gh-home-hero-button {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.92);
	color: #fff !important;
}

body.gh-studio.home .gh-home-hero--pbf .gh-home-hero-button:hover,
body.gh-studio.home .gh-home-hero--pbf .gh-home-hero-button:focus {
	background: rgba(255, 255, 255, 0.14);
	border-color: #fff;
	color: #fff !important;
}

/* Height is 75% of width (not a square), so the first Best sellers row can peek. */
@media (max-width: 560px) {
	body.gh-studio.home .gh-home-hero.gh-home-hero--pbf {
		width: 100% !important;
		max-width: 100% !important;
		height: auto !important;
		min-height: 0 !important;
		max-height: none !important;
		aspect-ratio: 4 / 3 !important;
	}

	body.gh-studio.home .gh-home-hero--pbf .gh-home-hero-copy {
		padding-bottom: 0 !important;
		padding-top: 0 !important;
		justify-content: flex-start;
		aspect-ratio: auto !important;
		width: 100% !important;
		height: 100% !important;
		min-height: 0 !important;
	}

	/* "UP TO 30% OFF" ends at 70.72% of the 4:3 banner; 12px gap under it. */
	body.gh-studio.home .gh-home-hero--pbf .gh-home-hero-button {
		position: absolute;
		left: 50%;
		top: calc(70.72% + 12px);
		transform: translateX(-50%);
		box-sizing: border-box;
		width: 150px !important;
		min-width: 150px !important;
		max-width: 150px !important;
		height: 44px !important;
		min-height: 44px !important;
		max-height: 44px !important;
		padding: 0 16px !important;
		border-radius: 12px;
		font-size: 15px !important;
		font-weight: 600;
		line-height: 1 !important;
		letter-spacing: 0.02em;
	}
}
