/**
 * HOME 03 — Real Makes carousel.
 *
 * This file is intentionally scoped to the front-page Real Makes section. It
 * follows every legacy Homepage stylesheet so the former collage geometry can
 * be retired without changing HOME 01, HOME 02 or any shared card component.
 */
body.home [data-home-real-makes] {
	position: relative;
	min-height: 0 !important;
	padding-block: clamp(3rem, 5vw, 5.25rem) !important;
	overflow: hidden;
	background-color: #fffaf8 !important;
	background-image:
		linear-gradient(to bottom, transparent calc(100% - clamp(3rem, 7vw, 8rem)), var(--f4u-paper, #fffdfb)),
		var(--f4u-home-marble-original, url('../images/f4u-favourites-marble-user-approved.png')) !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size: 100% 100%, cover !important;
}

body.home [data-home-real-makes] .f4u-community-grid {
	display: grid !important;
	grid-template-columns: minmax(15rem, .56fr) minmax(0, 1.44fr) !important;
	align-items: center;
	gap: clamp(2rem, 4.8vw, 5.5rem);
	height: auto !important;
}

body.home [data-home-real-makes] .f4u-community-intro {
	position: relative;
	z-index: 2;
	max-width: 31rem;
}

body.home [data-home-real-makes] .f4u-community-intro h2,
body.home [data-home-real-makes] .f4u-community-intro p {
	max-width: none;
}

body.home [data-home-real-makes] .f4u-community-intro .f4u-script {
	font-family: var(--f4u-font-script), cursive;
}

body.home [data-home-real-makes] .f4u-real-makes-carousel {
	position: relative;
	min-width: 0;
	min-height: 0 !important;
	height: auto !important;
	padding-inline: clamp(2.35rem, 3.4vw, 3.25rem);
}

body.home [data-home-real-makes] .f4u-real-makes-carousel__viewport {
	width: 100%;
	min-height: 0 !important;
	height: auto !important;
	overflow-x: auto;
	overflow-y: hidden;
	padding-block: .8rem 1rem;
	overscroll-behavior-inline: contain;
	scrollbar-width: none;
	cursor: grab;
	touch-action: pan-y pinch-zoom;
	-webkit-overflow-scrolling: touch;
}

body.home [data-home-real-makes] .f4u-real-makes-carousel__viewport.is-dragging {
	cursor: grabbing;
	scroll-behavior: auto;
	user-select: none;
}

body.home [data-home-real-makes] .f4u-real-makes-carousel__viewport::-webkit-scrollbar {
	display: none;
}

body.home [data-home-real-makes] .f4u-real-makes-carousel__viewport:not(.is-auto) {
	scroll-snap-type: inline proximity;
}

body.home [data-home-real-makes] .f4u-real-makes-carousel__viewport:focus-visible {
	outline: 2px solid var(--f4u-petal);
	outline-offset: .25rem;
}

body.home [data-home-real-makes] .f4u-real-makes-carousel__track {
	display: flex !important;
	width: max-content;
	min-width: 100%;
	min-height: 0 !important;
	height: auto !important;
	align-items: flex-start;
	gap: clamp(.8rem, 1.3vw, 1.25rem);
}

body.home [data-home-real-makes] .f4u-community-card {
	position: relative;
	flex: 0 0 clamp(13rem, 16vw, 18.25rem) !important;
	width: auto !important;
	min-width: 0;
	min-height: 0 !important;
	height: auto !important;
	align-self: flex-start;
	padding: .48rem;
	overflow: hidden;
	border: 1px solid rgba(126, 82, 77, .13);
	border-radius: 1rem;
	background: rgba(255, 250, 248, .9);
	box-shadow: 0 .7rem 1.8rem rgba(75, 47, 43, .09);
	transform: none !important;
	scroll-snap-align: start;
}

body.home [data-home-real-makes] .f4u-community-card:nth-child(even) {
	transform: none !important;
}

body.home [data-home-real-makes] .f4u-community-card__frame {
	position: relative;
	display: flex;
	width: 100%;
	aspect-ratio: 3 / 4;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: .72rem;
	background: #f5e9e6;
}

body.home [data-home-real-makes] .f4u-community-card__image-link {
	display: flex;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
}

body.home [data-home-real-makes] .f4u-community-card__frame img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	object-fit: contain;
	object-position: var(--f4u-media-position, 50% 50%);
	background: #f5e9e6;
}

body.home [data-home-real-makes] .f4u-community-card .f4u-favorite {
	position: absolute;
	z-index: 3;
	top: .75rem;
	right: .75rem;
	display: grid;
	width: 40px;
	height: 40px;
	min-width: 40px;
	min-height: 40px;
	place-items: center;
	padding: 0;
	border: 1px solid rgba(86, 61, 57, .13);
	border-radius: 50%;
	color: var(--f4u-ink);
	background: rgba(255, 255, 255, .95);
	box-shadow: 0 .25rem .85rem rgba(54, 35, 32, .14);
	cursor: pointer;
	transition: color .18s ease, background-color .18s ease, transform .18s ease;
}

body.home [data-home-real-makes] .f4u-community-card .f4u-favorite:hover,
body.home [data-home-real-makes] .f4u-community-card .f4u-favorite:focus-visible {
	transform: scale(1.06);
}

body.home [data-home-real-makes] .f4u-community-card .f4u-favorite.is-active {
	color: #fff;
	background: var(--f4u-petal);
}

body.home [data-home-real-makes] .f4u-community-card .f4u-favorite.is-loading {
	cursor: progress;
	opacity: .72;
}

body.home [data-home-real-makes] .f4u-community-card .f4u-favorite svg,
body.home [data-home-real-makes] .f4u-community-card .f4u-favorite .f4u-managed-icon,
body.home [data-home-real-makes] .f4u-community-card .f4u-favorite .f4u-managed-icon__mask {
	display: block;
	width: 23px !important;
	height: 23px !important;
	max-width: 23px !important;
	max-height: 23px !important;
}

body.home [data-home-real-makes] .f4u-real-makes-carousel__arrow {
	position: absolute;
	z-index: 4;
	top: 50%;
	display: grid;
	width: 2.55rem;
	height: 2.55rem;
	place-items: center;
	padding: 0;
	border: 1px solid rgba(92, 61, 56, .13);
	border-radius: 50%;
	color: var(--f4u-ink);
	background: rgba(255, 255, 255, .94);
	box-shadow: 0 .35rem 1rem rgba(61, 39, 36, .13);
	cursor: pointer;
	transform: translateY(-50%);
}

body.home [data-home-real-makes] .f4u-real-makes-carousel__arrow--previous {
	left: 0;
}

body.home [data-home-real-makes] .f4u-real-makes-carousel__arrow--next {
	right: 0;
}

body.home [data-home-real-makes] .f4u-real-makes-carousel__arrow--previous svg,
body.home [data-home-real-makes] .f4u-real-makes-carousel__arrow--previous .f4u-managed-icon {
	transform: rotate(180deg);
}

body.home [data-home-real-makes] .f4u-real-makes-carousel__arrow svg,
body.home [data-home-real-makes] .f4u-real-makes-carousel__arrow .f4u-managed-icon,
body.home [data-home-real-makes] .f4u-real-makes-carousel__arrow .f4u-managed-icon__mask {
	display: block;
	width: 1rem !important;
	height: 1rem !important;
	max-width: 1rem !important;
	max-height: 1rem !important;
}

body.home [data-home-real-makes] .f4u-real-makes-carousel__status {
	min-height: 1.25rem;
	margin: .25rem 0 0;
	color: var(--f4u-muted, #6f615e);
	font-size: .78rem;
	text-align: center;
}

@media (max-width: 899px) {
	body.home [data-home-real-makes] .f4u-community-grid {
		grid-template-columns: minmax(0, 1fr) !important;
		gap: clamp(1.5rem, 5vw, 2.6rem);
	}

	body.home [data-home-real-makes] .f4u-community-intro {
		max-width: 38rem;
		margin-inline: auto;
		text-align: center;
	}

	body.home [data-home-real-makes] .f4u-community-intro .f4u-gold-stroke {
		margin-inline: auto;
	}

	body.home [data-home-real-makes] .f4u-community-intro .f4u-actions {
		justify-content: center;
	}

	body.home [data-home-real-makes] .f4u-community-card {
		flex: 0 0 clamp(13.5rem, 43vw, 17.5rem) !important;
	}
}

@media (max-width: 520px) {
	body.home [data-home-real-makes] {
		padding-block: 2.5rem 2.9rem !important;
	}

	body.home [data-home-real-makes] .f4u-community-grid {
		width: min(calc(100% - 1.5rem), 84rem);
	}

	body.home [data-home-real-makes] .f4u-real-makes-carousel {
		padding-inline: 1.85rem;
	}

	body.home [data-home-real-makes] .f4u-community-card {
		flex: 0 0 min(72vw, 17rem) !important;
	}

	body.home [data-home-real-makes] .f4u-real-makes-carousel__arrow {
		width: 2.25rem;
		height: 2.25rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.home [data-home-real-makes] .f4u-community-card .f4u-favorite,
	body.home [data-home-real-makes] .f4u-real-makes-carousel__viewport {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
