/* Homepage hero carousel (see includes/mobile-hero.php): portrait posters on phones, wide banners from 768px. */
.tmh {
	display: block;
	position: relative;
	background: var(--thooya-cream);
	padding-bottom: 10px;
}
.tmh-stage { position: relative; }
.tmh-track {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.tmh-track::-webkit-scrollbar { display: none; }
.tmh-slide {
	flex: 0 0 100%;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	margin: 0;
}
.tmh-slide a,
.tmh-slide picture { display: block; line-height: 0; }
.tmh-img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 896 / 1200;
	object-fit: cover;
	background: #2a1708;
}
.tmh-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	padding-top: 10px;
}
.tmh-dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #d8c5a3;
	cursor: pointer;
	transition: width .2s ease, background .2s ease;
}
.tmh-dot.is-active { width: 22px; background: var(--thooya-navy); }
.tmh-dot:focus { background: #d8c5a3; outline: none; }
.tmh-dot.is-active:focus { background: var(--thooya-navy); }
.tmh-dot:focus-visible { box-shadow: 0 0 0 3px rgba(227, 165, 43, .5); }

/* Arrows: tablets and desktops only (phones swipe). */
.tmh-arrow { display: none; }

/* Wide-only slides (e.g. the original ghee banner) and their dots are skipped on phones. */
@media (max-width: 767px) {
	.tmh-desktop-only { display: none !important; }
}

@media (min-width: 768px) {
	.tmh { padding-bottom: 0; }
	.tmh-slide.has-desktop .tmh-img { aspect-ratio: 1983 / 793; }

	/* Dots sit on the banner, inside its gold frame. */
	.tmh-dots {
		position: absolute;
		left: 0;
		right: 0;
		bottom: 2.6%;
		padding: 0;
	}
	.tmh-dot { background: rgba(251, 243, 227, .45); }
	.tmh-dot:focus { background: rgba(251, 243, 227, .45); }
	.tmh-dot.is-active,
	.tmh-dot.is-active:focus { background: var(--thooya-gold); }

	body .tmh .tmh-arrow {
		display: flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		top: 50%;
		z-index: 2;
		width: 46px;
		height: 46px;
		margin-top: -23px;
		padding: 0;
		border: 1.5px solid rgba(227, 165, 43, .8);
		border-radius: 50%;
		background: rgba(36, 20, 10, .55);
		color: #f6d27a;
		cursor: pointer;
		opacity: 0;
		transition: opacity .2s ease, background .15s ease;
	}
	.tmh-prev { left: 2.4%; }
	.tmh-next { right: 2.4%; }
	.tmh-stage:hover .tmh-arrow,
	body .tmh .tmh-arrow:focus-visible { opacity: 1; }
	body .tmh .tmh-arrow:hover { background: rgba(36, 20, 10, .85); color: #f6d27a; }
	body .tmh .tmh-arrow:focus { outline: none; background: rgba(36, 20, 10, .55); color: #f6d27a; }
	body .tmh .tmh-arrow:focus-visible { box-shadow: 0 0 0 3px rgba(227, 165, 43, .5); }
}

@media (min-width: 768px) and (hover: none) {
	body .tmh .tmh-arrow { opacity: 1; }
}
