/* Tablet 768–1024. Beats home-polish grid + 1b7a width:100%. Desktop/mobile unchanged. */

@media (min-width: 768px) and (max-width: 1024px) {
	.yepx-mega a,
	.yepx-nav--primary .yepx-mega a,
	.yepx-nav--primary .yepx-mega__links a,
	.yepx-mega .yepx-mega__links > li > a,
	.yepx-mega a:has(> .yepx-mega__card-chevron) {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
		grid-template-columns: none !important;
		grid-template-rows: none !important;
	}

	.yepx-mega a > .yepx-nav__label,
	.yepx-mega .yepx-nav__label,
	.yepx-nav--primary .yepx-mega__links .yepx-nav__label {
		flex: 1 1 auto !important;
		min-width: 0 !important;
		width: auto !important;
		grid-column: auto !important;
	}

	.yepx-mega a > svg.yepx-mega__card-chevron,
	.yepx-mega .yepx-mega__card-chevron,
	.yepx-nav--primary .yepx-mega__links .yepx-mega__card-chevron {
		flex: 0 0 auto !important;
		flex-shrink: 0 !important;
		margin-left: auto !important;
		align-self: center !important;
		display: block !important;
		grid-column: auto !important;
		grid-row: auto !important;
	}
}

@media (min-width: 768px) and (max-width: 1279px) {
	.yepx-hero .yepx-slider__actions,
	.yepx-hero-stage .yepx-slider__actions,
	.yepx-slider__actions,
	.yepx-slider.is-tablet .yepx-slider__actions,
	.yepx-slider.is-desktop .yepx-slider__actions,
	.yepx-slider__copy--tab .yepx-slider__actions,
	.yepx-slider__copy--desk .yepx-slider__actions {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		align-items: stretch !important;
		justify-content: stretch !important;
		width: 100% !important;
		max-width: 100% !important;
		gap: 0.4rem;
	}

	.yepx-hero .yepx-slider__actions .yepx-btn,
	.yepx-hero-stage .yepx-slider__actions .yepx-btn,
	.yepx-slider__actions .yepx-btn,
	.yepx-slider.is-tablet .yepx-slider__actions .yepx-btn,
	.yepx-slider.is-desktop .yepx-slider__actions .yepx-btn,
	.yepx-slider__copy--tab .yepx-slider__actions .yepx-btn,
	.yepx-slider__copy--desk .yepx-slider__actions .yepx-btn,
	.yepx-hero .yepx-slider__actions > a.yepx-btn,
	.yepx-hero .yepx-slider__actions > .yepx-btn {
		flex: 1 1 0 !important;
		width: 50% !important;
		max-width: none !important;
		min-width: 0 !important;
		box-sizing: border-box;
		text-align: center !important;
		justify-content: center !important;
	}

	.yepx-hero .yepx-slider__actions:has(> :nth-child(1):last-child) .yepx-btn,
	.yepx-slider__copy--tab .yepx-slider__actions:has(> :nth-child(1):last-child) .yepx-btn,
	.yepx-slider__copy--desk .yepx-slider__actions:has(> :nth-child(1):last-child) .yepx-btn {
		width: 100% !important;
	}

	.yepx-hero .yepx-slider__actions:has(> :nth-child(3):last-child) .yepx-btn,
	.yepx-slider__copy--tab .yepx-slider__actions:has(> :nth-child(3):last-child) .yepx-btn,
	.yepx-slider__copy--desk .yepx-slider__actions:has(> :nth-child(3):last-child) .yepx-btn {
		width: 33.333% !important;
	}

	.yepx-hero .yepx-slider__actions:has(> :nth-child(4):last-child) .yepx-btn,
	.yepx-slider__copy--tab .yepx-slider__actions:has(> :nth-child(4):last-child) .yepx-btn,
	.yepx-slider__copy--desk .yepx-slider__actions:has(> :nth-child(4):last-child) .yepx-btn {
		width: 25% !important;
	}
}

@media (min-width: 1100px) {
	.yepx-hero .yepx-slider-noscript .yepx-slider__slide,
	.yepx-hero .yepx-slider.is-desktop .yepx-slider__slide,
	.yepx-hero .yepx-slider.is-tablet .yepx-slider__slide {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
	}

	.yepx-hero .yepx-slider__media-scale,
	.yepx-hero .yepx-hero-media-stage,
	.yepx-hero .yepx-slider__img {
		min-width: 0 !important;
		max-width: 100% !important;
		width: 100%;
	}
}

@media (max-width: 1099px) {
	.yepx-hero .yepx-slider-noscript .yepx-slider__slide,
	.yepx-hero .yepx-slider.is-desktop .yepx-slider__slide,
	.yepx-hero .yepx-slider.is-tablet .yepx-slider__slide {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}
