/* ChristianVideos.tv - rows of swipeable posters (used with /Slider/snap-touch.js).
   2026-10-19: the file used to be wrapped in <style> tags and carried unused demo rules. The wrapper made the browser drop its
   first rule (html {box-sizing: border-box}), so every box has always been content-box; the sizes below depend on that,
   so do NOT add a box-sizing rule without re-checking the layout (docs/PROJECT_DOCUMENTATION.md section 8.3). */

body {background-color: black;}

.slider {
	position: relative;
	overflow: hidden;
	padding-left: 50%;
	padding-right: 50%;
}

.slider::before, .slider::after {
	content: "";
	pointer-events: none;
	z-index: 1;
	position: absolute;
	top: 0;
	bottom: 0;
	width: 5%;
	height: 100%;
}

.slider::before {left: 0; background: -webkit-linear-gradient(right, rgba(255, 255, 255, 0) 0%, black 100%); background: linear-gradient(to left, rgba(255, 255, 255, 0) 0%, black 100%);        }
.slider::after {right: 0; background: -webkit-linear-gradient(left, rgba(255, 255, 255, 0) 0%, black 100%);  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, black 100%);        }

.slider.active * {
	cursor: grab;
	cursor: -moz-grab;
	cursor: -webkit-grab;
}

.slider.active *:active {
	cursor: grabbing;
	cursor: -moz-grabbing;
	cursor: -webkit-grabbing;
}

.slides {
	margin-left: -125px;  /* Adjust to initially move the Slides to the Left, -100 -----------*/
	margin-right: -100px; /* was -100 */
	white-space: nowrap;
	font-size: 0;
}

.slide a {
	display: block;
	width: 100%;
	height: 100%;
}

/* keyboard focus ring (mouse and touch users never see it) */
.slide a:focus-visible {
	outline: 3px solid #ffd54a;
	outline-offset: -3px;
}

.SlideTitleText {
	font-family: 'Pacifico', cursive;
	font-size: 2em;
	color: #8a8a8a;
	text-align: center;
}
.pic145 {
	width: 145px;
	height: 191px;
	padding: 2px;
	border-radius: 6px; /* very slightly rounded cards (the 2 px padding is black, so about 4 px show) */
	-webkit-user-drag: none;
}
.slide {
	margin-right: 3px; /* Adjust the value as needed to Separated the Slides */
	position: relative;
	display: inline-block;
	width: 145px;
	height: 191px;
	border: 2px solid black;
	border-radius: 8px;
	background: black;
}
/* the card chosen last (clicked, or the one a menu is open for): a light border; the colour only changes, so nothing moves */
.slide.chosen {
	border-color: #e8e8e8;
}
/* long press on a phone opens the card menu: no system callout, no text selection */
.slide a, .slide img {
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	user-select: none;
}
.icons {
	height: 32px;
	width: 32px;
	object-fit: contain; /* kids.png is 138x128: keep its proportions instead of squashing it */
}

/* text for screen readers and search engines only (the page heading) */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* posters of the lower rows stay hidden (so they are not fetched) until the loader at the bottom of index.html shows them;
   the "js" class is set in the <head>, so without scripts every poster is simply visible */
.js .defer {
	display: none;
}

/* free place for the My Favorites row until it is built (the row is 241 px high: title 44 + cards 197) - set by the "fav" class in the <head> */
.fav #FavSpace {
	height: 241px;
}

/* the page keeps its place when the My Favorites row appears above it (/Slider/cards.js scrolls by the row's height itself) */
html {
	overflow-anchor: none;
}

/* card menu and toast (built by /Slider/cards.js when first needed) */
.cv-backdrop {
	position: fixed;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 998;
	background: transparent;
}
.cv-backdrop.cv-dim {
	background: rgba(0, 0, 0, 0.6);
}
.cv-menu {
	position: fixed;
	z-index: 999;
	min-width: 230px;
	max-width: 92vw;
	padding: 6px 0;
	background: #1c1c1c;
	color: #f2f2f2;
	border: 1px solid #5a5a5a;
	border-radius: 10px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.75);
	font: 16px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	overflow: hidden;
}
.cv-backdrop[hidden], .cv-menu[hidden] {
	display: none;
}
.cv-menu-title {
	padding: 6px 16px 8px;
	margin-bottom: 4px;
	border-bottom: 1px solid #3a3a3a;
	color: #a8a8a8;
	font-size: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.cv-menu button {
	display: block;
	width: 100%;
	padding: 11px 16px;
	background: none;
	border: 0;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}
.cv-menu:focus {
	outline: none;
}
.cv-menu button:hover, .cv-menu button:focus {
	background: #343434;
	outline: none;
}
.cv-menu button:focus-visible {
	outline: 2px solid #ffd54a;
	outline-offset: -2px;
}
/* on a touch screen the menu is a sheet at the bottom: easy to reach, big targets */
.cv-menu.cv-sheet {
	left: 0;
	right: 0;
	bottom: 0;
	max-width: none;
	padding-bottom: env(safe-area-inset-bottom, 0px);
	border-width: 1px 0 0 0;
	border-radius: 16px 16px 0 0;
}
.cv-sheet .cv-menu-title {
	padding: 12px 20px 12px;
	font-size: 15px;
}
.cv-sheet button {
	padding: 16px 20px;
	font-size: 18px;
}
.cv-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 1000;
	max-width: 90vw;
	padding: 12px 18px;
	background: #2a2a2a;
	color: #f2f2f2;
	border: 1px solid #5a5a5a;
	border-radius: 24px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
	font: 15px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	text-align: center;
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 12px);
	transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.cv-toast.cv-show {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}
.cv-toast button {
	margin-left: 12px;
	padding: 4px 12px;
	background: transparent;
	border: 1px solid #ffd54a;
	border-radius: 14px;
	color: #ffd54a;
	font: inherit;
	cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
	.cv-toast {
		transition: none;
	}
}
