/* Praiseworth – phone carousel. Add the CSS class "pwh-m-carousel" to an Elementor section (its columns become
   slides) or to an Image Gallery widget (its images become slides). On phones: 2 per view, swipes move 2 at a time. */
@media (max-width: 767px) {
	/* Section: columns become slides */
	.elementor-section.pwh-m-carousel > .elementor-container {
		display: flex; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
	}
	.elementor-section.pwh-m-carousel > .elementor-container::-webkit-scrollbar { display: none; }
	.elementor-section.pwh-m-carousel > .elementor-container > .elementor-column {
		flex: 0 0 50%; width: 50% !important; max-width: 50%; scroll-snap-align: none;
	}
	.elementor-section.pwh-m-carousel > .elementor-container > .elementor-column:nth-child(2n+1) { scroll-snap-align: start; scroll-snap-stop: always; }

	/* Image Gallery widget: images become slides */
	.pwh-m-carousel .gallery {
		display: flex !important; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
	}
	.pwh-m-carousel .gallery::-webkit-scrollbar { display: none; }
	.pwh-m-carousel .gallery > .gallery-item { flex: 0 0 50% !important; max-width: 50% !important; width: 50% !important; scroll-snap-align: none; }
	.pwh-m-carousel .gallery > .gallery-item:nth-child(2n+1) { scroll-snap-align: start; scroll-snap-stop: always; }
	.pwh-m-carousel .gallery > br { display: none; }

	/* Dots */
	.pwh-mc-dots { display: flex; justify-content: center; gap: 8px; padding: 14px 0 4px; width: 100%; }
	.pwh-mc-dots button { width: 9px !important; height: 9px !important; min-width: 0 !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 50% !important; background: #d9d0c6 !important; box-shadow: none !important; font-size: 0 !important; line-height: 0 !important; cursor: pointer; transition: background .2s, transform .2s; }
	.pwh-mc-dots button.is-on { background: #a8663a !important; transform: scale(1.25); }
}
@media (min-width: 768px) { .pwh-mc-dots { display: none; } }

/* Ticker mode (see m-carousel.js): continuous right-to-left glide on phones. */
@media (max-width: 767px) {
	.pwh-m-carousel.pwh-m-ticker.is-ticking { overflow: hidden; }
	.pwh-m-carousel.pwh-m-ticker.is-ticking .gallery {
		display: flex !important; flex-wrap: nowrap; width: max-content !important; max-width: none !important;
		overflow: visible !important; scroll-snap-type: none !important; margin: 0 !important;
		animation: pwh-ticker linear infinite; will-change: transform;
	}
	.pwh-m-carousel.pwh-m-ticker.is-ticking .gallery > .gallery-item {
		flex: 0 0 var(--pwh-tk-w, 50vw) !important; width: var(--pwh-tk-w, 50vw) !important; max-width: none !important;
		scroll-snap-align: none !important;
	}
	.pwh-m-carousel.pwh-m-ticker.is-paused .gallery { animation-play-state: paused; }
}
@keyframes pwh-ticker {
	from { transform: translate3d(0, 0, 0); }
	to { transform: translate3d(var(--pwh-tk-shift, -50%), 0, 0); }
}
/* Clones only exist for the ticker; never show them outside it (e.g. on desktop). */
.pwh-m-ticker:not(.is-ticking) .gallery > .gallery-item[aria-hidden="true"] { display: none !important; }

