/* This is the same locally hosted face Elementor uses for the homepage section titles. */
@font-face {
	font-family: 'Lietome';
	src: url('../../uploads/2025/01/Lie-to-Me-TTF.ttf') format('truetype');
	font-style: normal;
	font-weight: 400;
	font-display: swap;
}

.abc-videos {
	--abc-video-ink: #182b3b;
	--abc-video-accent: #fe9800;
	--abc-video-gap: clamp(1rem, 2.5vw, 2rem);
	background: #fff;
	color: var(--abc-video-ink);
	text-align: left;
}
.abc-videos, .abc-videos * { box-sizing: border-box; }
.abc-videos [hidden] { display: none !important; }
.abc-videos .abc-video-inner {
	max-width: 1180px;
	margin-inline: auto;
	padding: clamp(2.5rem, 5vw, 5rem) clamp(1rem, 3vw, 2.25rem);
}
.abc-video-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .75rem 2rem;
	margin-bottom: clamp(1.5rem, 3vw, 2.75rem);
}
.abc-videos .abc-video-header h1, .abc-videos .abc-video-header h2 {
	color: var(--abc-video-ink);
	margin: 0;
	font-family: 'Lietome', cursive;
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: normal;
	text-transform: none;
}
.abc-videos .abc-video-header h1 { font-size: clamp(2.25rem, 4.7vw, 3.75rem); }
.abc-videos .abc-video-header h2 { font-size: clamp(1.875rem, 3.3vw, 2.75rem); }
.abc-videos-library .abc-video-header { display: block; }
.abc-videos .abc-video-header p {
	margin: .85rem 0 0;
	max-width: 54ch;
	font-size: clamp(1.2rem, 2vw, 1.5rem);
	color: inherit;
	line-height: 1.5;
}
.abc-videos .abc-video-header .abc-video-archive-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: clamp(3.125rem, 4.5vw, 4.0625rem);
	min-width: min(100%, clamp(9.25rem, 16vw, 14.0625rem));
	padding: .7rem clamp(1rem, 2vw, 1.75rem);
	border: 1px solid transparent;
	border-radius: 20px 5px 20px 5px;
	background: var(--abc-video-accent);
	color: var(--abc-video-ink);
	font-family: inherit;
	font-size: clamp(1rem, 1.2vw, 1.125rem);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: .06em;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
}
.abc-videos .abc-video-header .abc-video-archive-link:focus-visible {
	outline: 3px solid var(--abc-video-ink);
	outline-offset: 3px;
}
.abc-videos .abc-video-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.75rem, 4vw, 3rem) var(--abc-video-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}
.abc-videos-home .abc-video-list {
	position: relative;
	grid-template-columns: none;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - var(--abc-video-gap) - var(--abc-video-gap)) / 3);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.abc-videos-home .abc-video-list::-webkit-scrollbar { display: none; }
.abc-videos-home .abc-video-stage { position: relative; margin-inline: .65rem; }
.abc-videos .abc-video-card {
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	scroll-snap-align: start;
}
.abc-video-media {
	position: relative;
	background-color: var(--abc-video-ink);
	aspect-ratio: 16 / 9;
	width: 100%;
	align-self: start;
	overflow: hidden;
}
.abc-video-play, .abc-video-play img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	border: 0;
}
.abc-videos .abc-video-media .abc-video-play > img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}
.abc-video-play-mark {
	position: absolute;
	bottom: .75rem;
	left: .75rem;
	display: grid;
	place-items: center;
	width: 2.8rem;
	height: 2.8rem;
	border-radius: 50%;
	color: var(--abc-video-ink);
	background: var(--abc-video-accent);
}
.abc-videos .abc-video-caption p {
	margin: .8rem 0 0;
	font-size: clamp(1.2rem, 1.85vw, 1.42rem);
	line-height: 1.48;
	color: var(--abc-video-ink);
	overflow-wrap: anywhere;
	white-space: pre-line;
}
.abc-video-controls {
	position: absolute;
	z-index: 1;
	inset-inline: -22px;
	top: var(--abc-arrow-y, 4rem);
	transform: translateY(-50%);
	display: flex;
	justify-content: space-between;
	pointer-events: none;
}
.abc-videos .abc-video-controls button {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 2px solid white;
	border-radius: 50%;
	background: var(--abc-video-ink);
	color: white;
	cursor: pointer;
	pointer-events: auto;
}
.abc-videos .abc-video-controls button[aria-disabled="true"] {
	color: #52606a;
	background: #e9ecee;
	cursor: default;
}
.abc-videos :focus-visible { outline: 3px solid var(--abc-video-ink); outline-offset: 3px; }
.abc-videos .abc-video-play:focus-visible {
	outline: 3px solid white;
	outline-offset: -6px;
	z-index: 1;
}
.abc-videos .abc-video-status {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.abc-videos .abc-video-pages ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem; margin: clamp(2.25rem, 5vw, 3.5rem) 0 0; padding: 0; list-style: none; }
.abc-videos .abc-video-pages li { padding: 0; margin: 0; list-style: none; }
.abc-videos .abc-video-pages :is(a, span) { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 .55rem; color: var(--abc-video-ink); }
.abc-videos .abc-video-pages .current { background: var(--abc-video-ink); color: #fff; }
.abc-videos .abc-video-pages { font-size: 1.17rem; }
.abc-videos .abc-video-empty { font-size: 1.1rem; }

html.abc-video-dialog-open { overflow: hidden; }
dialog.abc-video-dialog {
	position: fixed;
	inset: 0;
	box-sizing: border-box;
	width: min(60rem, calc(100vw - 2.5rem), calc(160vh - 6rem));
	width: min(60rem, calc(100vw - 2.5rem), calc(160dvh - 6rem));
	height: fit-content;
	max-width: none;
	max-height: calc(100% - 2rem);
	padding: 0;
	margin: auto;
	overflow: auto;
	border: 0;
	border-radius: .45rem;
	background: #182b3b;
	color: #fff;
}
.abc-video-dialog::backdrop { background: rgba(9, 16, 22, .85); }
.abc-video-dialog .abc-video-dialog-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: .25rem .35rem .25rem 1rem;
}
.abc-video-dialog .abc-video-dialog-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: #fff;
	font-size: 1.17rem;
	text-decoration: underline;
	text-underline-offset: .2em;
}
.abc-video-dialog .abc-video-close {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	padding: 0;
	background: transparent;
	color: white;
	cursor: pointer;
}
.abc-video-dialog :focus-visible { outline: 3px solid #fe9800; outline-offset: -3px; }
.abc-video-screen {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #0b0f14;
}
.abc-video-dialog .abc-video-screen iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	border: 0;
}
@media (hover: hover) {
	.abc-videos .abc-video-play:hover .abc-video-play-mark { background: var(--abc-video-ink); color: white; }
	.abc-videos .abc-video-controls button:not([aria-disabled="true"]):hover, .abc-video-dialog .abc-video-close:hover { background: #fe9800; color: #182b3b; }
	.abc-videos .abc-video-header .abc-video-archive-link:hover {
		border-radius: 5px 20px 5px 20px;
		background: #4693fd;
	}
	.abc-video-dialog .abc-video-dialog-link:hover { text-decoration-thickness: .18em; }
}
@media (max-width: 54rem) {
	.abc-videos-library .abc-video-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.abc-videos-home .abc-video-list { grid-auto-columns: calc((100% - var(--abc-video-gap)) / 2); }
}
@media (max-width: 38rem) {
	.abc-videos-library .abc-video-list { grid-template-columns: minmax(0, 1fr); }
	.abc-videos-home .abc-video-list { grid-auto-columns: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.abc-videos .abc-video-list { scroll-behavior: auto !important; }
}
