.tq-article-carousel,
.tq-article-carousel *,
.tq-article-carousel *::before,
.tq-article-carousel *::after {
	box-sizing: border-box;
}

.tq-article-carousel {
	--tq-amc-arrow-top: 50%;
	position: relative;
	width: 100%;
	max-width: 100%;
	margin: 1.5em 0;
	padding: 0;
	clear: both;
}

.tq-amc-viewport {
	position: relative;
	width: 100%;
	min-width: 0;
}

.tq-amc-track {
	display: flex;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	overscroll-behavior-inline: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.tq-amc-track::-webkit-scrollbar {
	display: none;
}

.tq-amc-track:focus-visible {
	outline: 3px solid rgba(20, 20, 20, .25);
	outline-offset: 4px;
}

.tq-amc-slide {
	display: block;
	flex: 0 0 100%;
	width: 100%;
	min-width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.tq-amc-stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: #101010;
}

.tq-amc-aspect-16-9 .tq-amc-stage:not(.tq-amc-stage-rsfv) { aspect-ratio: 16 / 9; }
.tq-amc-aspect-3-2 .tq-amc-stage:not(.tq-amc-stage-rsfv) { aspect-ratio: 3 / 2; }
.tq-amc-aspect-4-3 .tq-amc-stage:not(.tq-amc-stage-rsfv) { aspect-ratio: 4 / 3; }
.tq-amc-aspect-1-1 .tq-amc-stage:not(.tq-amc-stage-rsfv) { aspect-ratio: 1 / 1; }
.tq-amc-aspect-9-16 .tq-amc-stage:not(.tq-amc-stage-rsfv) { aspect-ratio: 9 / 16; }

.tq-amc-stage-rsfv {
	display: block;
	background: transparent;
	overflow: visible;
}

/* Deliberately do not restyle RSFV's internal video/player classes. */
.tq-amc-rsfv-host {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
}

.tq-amc-image,
.tq-amc-video {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	box-shadow: none;
}

.tq-amc-image {
	object-position: center center;
}

.tq-amc-video {
	object-fit: contain;
	background: #000;
}

.tq-amc-fit-cover .tq-amc-image { object-fit: cover; }
.tq-amc-fit-contain .tq-amc-image { object-fit: contain; }

.tq-amc-caption {
	display: block;
	width: 100%;
	margin: 0;
	padding: 7px 4px 0;
	color: #8a8a8a;
	font-family: inherit;
	font-size: 14px;
	font-style: normal;
	font-weight: 400;
	line-height: 1.45;
	text-align: left;
}

.tq-amc-caption-text,
.tq-amc-credit {
	display: block;
}

.tq-amc-credit {
	margin-top: 1px;
}

.tq-amc-arrow {
	position: absolute;
	top: var(--tq-amc-arrow-top);
	z-index: 20;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 54px;
	margin: 0;
	padding: 0;
	color: #fff;
	background: rgba(18, 18, 18, .78);
	border: 0;
	border-radius: 0;
	box-shadow: none;
	cursor: pointer;
	transform: translateY(-50%);
	transition: background-color .18s ease, opacity .18s ease;
	-webkit-appearance: none;
	appearance: none;
}

.tq-amc-prev { left: 0; }
.tq-amc-next { right: 0; }

.tq-amc-arrow:hover:not(:disabled) {
	background: rgba(0, 0, 0, .94);
}

.tq-amc-arrow:focus-visible {
	outline: 3px solid rgba(255, 255, 255, .95);
	outline-offset: -5px;
}

.tq-amc-arrow:disabled {
	opacity: .22;
	cursor: default;
}

.tq-amc-arrow svg {
	display: block;
	width: 26px;
	height: 26px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
	pointer-events: none;
}

.tq-amc-footer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 22px;
	margin-top: 9px;
	color: #777;
	font-size: 12px;
	line-height: 1;
}

.tq-amc-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
}

.tq-amc-dot {
	display: block;
	width: 8px;
	height: 8px;
	min-width: 8px;
	margin: 0;
	padding: 0;
	background: #b9b9b9;
	border: 0;
	border-radius: 999px;
	box-shadow: none;
	cursor: pointer;
	transition: width .18s ease, background-color .18s ease;
	-webkit-appearance: none;
	appearance: none;
}

.tq-amc-dot.is-active {
	width: 20px;
	background: #333;
}

.tq-amc-dot:focus-visible {
	outline: 2px solid #333;
	outline-offset: 3px;
}

.tq-amc-count {
	min-width: 34px;
	font-variant-numeric: tabular-nums;
}

.tq-amc-swipe-hint {
	display: none;
}

.tq-amc-swipe-hint[hidden] {
	display: none !important;
}

.tq-amc-video-unavailable {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 220px;
	padding: 30px;
	background: #111;
	color: #fff;
	font-size: 14px;
	text-align: center;
}

.tq-amc-single .tq-amc-track {
	overflow: visible;
}

@media (max-width: 700px) {
	.tq-article-carousel {
		margin: 1.2em 0;
	}

	/* Mobile is swipe-first. Desktop arrows are intentionally hidden. */
	.tq-amc-arrow {
		display: none;
	}

	.tq-amc-caption {
		padding-top: 6px;
		font-size: 13px;
		line-height: 1.4;
	}

	.tq-amc-footer {
		margin-top: 8px;
	}

	.tq-amc-swipe-hint {
		position: absolute;
		top: var(--tq-amc-arrow-top);
		right: 10px;
		z-index: 18;
		display: inline-flex;
		align-items: center;
		gap: 5px;
		padding: 7px 9px 7px 11px;
		color: #fff;
		background: rgba(18, 18, 18, .76);
		border-radius: 999px;
		font-size: 11px;
		font-weight: 700;
		line-height: 1;
		letter-spacing: .02em;
		pointer-events: none;
		transform: translateY(-50%);
		opacity: 1;
		visibility: visible;
		transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
		animation: tq-amc-swipe-left 1.15s ease-in-out infinite;
	}

	.tq-amc-swipe-hint svg {
		display: block;
		width: 16px;
		height: 16px;
		fill: none;
		stroke: currentColor;
		stroke-width: 2.2;
		stroke-linecap: round;
		stroke-linejoin: round;
	}

	.tq-amc-has-interacted .tq-amc-swipe-hint {
		display: none !important;
		opacity: 0;
		visibility: hidden;
		animation: none;
	}

	@keyframes tq-amc-swipe-left {
		0%, 100% { transform: translate(0, -50%); }
		50% { transform: translate(-7px, -50%); }
	}
}

@media (prefers-reduced-motion: reduce) {
	.tq-amc-track {
		scroll-behavior: auto;
	}

	.tq-amc-arrow,
	.tq-amc-dot {
		transition: none;
	}
}

/* Fullscreen and zoom controls. */
.tq-amc-fullscreen-toggle,
.tq-amc-fullscreen-close,
.tq-amc-zoom-button {
	position: absolute;
	z-index: 40;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	color: #fff;
	background: rgba(18, 18, 18, .78);
	border: 0;
	box-shadow: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	touch-action: manipulation;
}

.tq-amc-fullscreen-toggle,
.tq-amc-fullscreen-close {
	top: 10px;
	right: 10px;
	width: 42px;
	height: 42px;
	border-radius: 4px;
}

.tq-amc-fullscreen-toggle:hover,
.tq-amc-fullscreen-close:hover,
.tq-amc-zoom-button:hover:not(:disabled) {
	background: rgba(0, 0, 0, .94);
}

.tq-amc-fullscreen-toggle:focus-visible,
.tq-amc-fullscreen-close:focus-visible,
.tq-amc-zoom-button:focus-visible {
	outline: 3px solid rgba(255, 255, 255, .95);
	outline-offset: 2px;
}

.tq-amc-fullscreen-toggle svg,
.tq-amc-fullscreen-close svg {
	display: block;
	width: 23px;
	height: 23px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	pointer-events: none;
}

.tq-amc-fullscreen-close {
	display: none;
	z-index: 80;
	width: 46px;
	height: 46px;
	border-radius: 999px;
	background: rgba(0, 0, 0, .82);
}

.tq-amc-fullscreen-close[hidden],
.tq-amc-fullscreen-toggle[hidden] {
	display: none !important;
}

.tq-amc-zoom-controls {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 75;
	display: none;
	align-items: center;
	gap: 6px;
}

.tq-amc-zoom-button {
	position: relative;
	width: 42px;
	height: 42px;
	border-radius: 4px;
	font: 700 20px/1 Arial, sans-serif;
}

.tq-amc-zoom-reset {
	width: auto;
	min-width: 58px;
	padding: 0 10px;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
}

.tq-amc-zoom-button:disabled {
	opacity: .42;
	cursor: default;
}

html.tq-amc-fullscreen-lock,
html.tq-amc-fullscreen-lock body {
	overflow: hidden !important;
}

.tq-article-carousel.tq-amc-is-fullscreen,
.tq-article-carousel.tq-amc-is-fullscreen:fullscreen,
.tq-article-carousel.tq-amc-is-fullscreen:-webkit-full-screen {
	--tq-amc-arrow-top: 50%;
	display: flex;
	flex-direction: column;
	width: 100vw !important;
	max-width: none !important;
	height: 100vh !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	background: #000;
	color: #fff;
	isolation: isolate;
}

.tq-article-carousel.tq-amc-fullscreen-fallback {
	position: fixed !important;
	inset: 0 !important;
	z-index: 2147483000 !important;
}

.tq-amc-is-fullscreen .tq-amc-fullscreen-toggle {
	display: none !important;
}

.tq-amc-is-fullscreen .tq-amc-fullscreen-close {
	display: inline-flex;
}

.tq-amc-is-fullscreen.tq-amc-active-is-image .tq-amc-zoom-controls {
	display: flex;
}

.tq-amc-is-fullscreen .tq-amc-viewport {
	flex: 1 1 auto;
	min-height: 0;
	height: auto;
	background: #000;
	overflow: hidden;
}

.tq-amc-is-fullscreen .tq-amc-track {
	height: 100%;
	min-height: 0;
	background: #000;
}

.tq-amc-is-fullscreen .tq-amc-slide {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
	background: #000;
}

.tq-amc-is-fullscreen .tq-amc-stage,
.tq-amc-is-fullscreen .tq-amc-stage:not(.tq-amc-stage-rsfv) {
	flex: 1 1 auto;
	min-height: 0;
	height: auto;
	aspect-ratio: auto !important;
	background: #000;
	overflow: hidden;
}

.tq-amc-is-fullscreen .tq-amc-stage-rsfv {
	display: block;
	overflow: auto;
}

.tq-amc-is-fullscreen .tq-amc-rsfv-host {
	width: 100%;
	height: 100%;
	max-width: 100%;
}

.tq-amc-is-fullscreen .tq-amc-image,
.tq-amc-is-fullscreen .tq-amc-video {
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain !important;
}

.tq-amc-is-fullscreen .tq-amc-image {
	transform-origin: 50% 50%;
	transition: transform .12s ease-out;
	will-change: transform;
	cursor: zoom-in;
	user-select: none;
	-webkit-user-select: none;
	-webkit-user-drag: none;
}

.tq-amc-is-fullscreen.tq-amc-is-zoomed .tq-amc-image {
	cursor: grab;
	transition: none;
}

.tq-amc-is-fullscreen.tq-amc-is-zoomed .tq-amc-image:active {
	cursor: grabbing;
}

.tq-amc-is-fullscreen.tq-amc-is-zoomed .tq-amc-track {
	overflow-x: hidden;
	scroll-snap-type: none;
	touch-action: none;
}

.tq-amc-is-fullscreen .tq-amc-caption {
	flex: 0 0 auto;
	max-height: 22vh;
	overflow-y: auto;
	padding: 9px 14px 10px;
	color: #d0d0d0;
	background: rgba(0, 0, 0, .94);
}

.tq-amc-is-fullscreen .tq-amc-footer {
	flex: 0 0 auto;
	min-height: 38px;
	margin: 0;
	padding: 8px 12px;
	color: #d0d0d0;
	background: #000;
}

.tq-amc-is-fullscreen .tq-amc-dot {
	background: #666;
}

.tq-amc-is-fullscreen .tq-amc-dot.is-active {
	background: #fff;
}

.tq-amc-is-fullscreen .tq-amc-arrow {
	background: rgba(0, 0, 0, .66);
}

@media (max-width: 700px) {
	.tq-amc-fullscreen-toggle {
		top: 8px;
		right: 8px;
		width: 40px;
		height: 40px;
	}

	.tq-amc-is-fullscreen .tq-amc-fullscreen-close {
		top: max(8px, env(safe-area-inset-top));
		right: max(8px, env(safe-area-inset-right));
		width: 44px;
		height: 44px;
	}

	.tq-amc-is-fullscreen .tq-amc-zoom-controls {
		top: max(8px, env(safe-area-inset-top));
		left: max(8px, env(safe-area-inset-left));
		gap: 5px;
	}

	.tq-amc-is-fullscreen .tq-amc-zoom-button {
		width: 42px;
		height: 42px;
	}

	.tq-amc-is-fullscreen .tq-amc-zoom-reset {
		width: auto;
		min-width: 54px;
	}

	.tq-amc-is-fullscreen .tq-amc-caption {
		max-height: 25vh;
		padding-right: max(12px, env(safe-area-inset-right));
		padding-left: max(12px, env(safe-area-inset-left));
	}

	.tq-amc-is-fullscreen .tq-amc-footer {
		padding-bottom: max(8px, env(safe-area-inset-bottom));
	}

	/* Keep fullscreen swipe-first on mobile unless the image itself is zoomed. */
	.tq-amc-is-fullscreen .tq-amc-arrow {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tq-amc-is-fullscreen .tq-amc-image {
		transition: none;
	}
}
