/*
 * Performance and interaction compatibility rules for modern browsers.
 * Kept separate from the legacy theme stylesheet so the changes are easy to
 * audit, deploy and roll back.
 */

@media (max-width: 767px), (hover: none), (pointer: coarse) {
	a,
	button,
	input,
	select,
	textarea,
	[role="button"] {
		touch-action: manipulation;
	}

	.featured-entries-col .widget-image,
	.featured-entries-col .widget-image img,
	.post-thumb,
	.post-thumb img,
	.besides-slider .beside-thumb img {
		transition: none !important;
	}

	.slider-section .bx-wrapper img {
		transition: none !important;
	}

	.featured-entries-col .widget-image:hover img,
	.post-thumb img:hover,
	.besides-slider .beside-thumb:hover img,
	.slider-section .bx-wrapper img:hover {
		transform: none !important;
	}

	.slider-section .slider-desc {
		pointer-events: none;
	}

	.slider-section .slider-desc a {
		display: block;
		pointer-events: auto;
	}

	/* Multi-line inline links leave untappable gaps between glyphs on narrow
	 * screens. Make the visual title box itself the link hit target. */
	.site-main article .entry-title > a {
		display: block;
	}
}

.slider-section .bx-loading {
	pointer-events: none;
}

/* Let the configured header artwork fill its available responsive column.
 * Intrinsic numeric dimensions stay in the HTML to reserve the correct ratio. */
.header-ainfo.quitc-header-full-width {
	float: none;
	width: 100%;
}

.header-ainfo .quitc-header-banner-link,
.header-ainfo .quitc-header-banner {
	display: block;
	width: 100%;
}

.header-ainfo .quitc-header-banner {
	height: auto;
	margin: 0 auto;
}

.no-image-widgets .caption-title {
	color: #aaa;
	text-align: center;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

.quitc-youtube-facade,
.quitc-youtube-player {
	height: auto;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
}

.quitc-youtube-facade {
	position: relative;
	overflow: hidden;
	background: #000;
}

.quitc-youtube-facade img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.quitc-youtube-play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 64px;
	height: 44px;
	border-radius: 10px;
	background: rgba(220, 0, 0, 0.92);
	transform: translate(-50%, -50%);
}

.quitc-youtube-play::after {
	position: absolute;
	top: 11px;
	left: 25px;
	width: 0;
	height: 0;
	border-top: 11px solid transparent;
	border-bottom: 11px solid transparent;
	border-left: 18px solid #fff;
	content: "";
}

.quitc-youtube-facade:focus-visible {
	outline: 3px solid #21759b;
	outline-offset: 3px;
}
