/* KidsHealth Video Player */
.kh-video-container {
	max-width: 600px;
	min-width: 300px;
	width: 100%;
	box-sizing: border-box;
}

.kh-video-player {
	position: relative;
	padding-bottom: 56.25%;
	padding-top: 0;
	height: 0;
	overflow: hidden;
	max-width: 100%;
}

.kh-video-player iframe,
.kh-video-player object,
.kh-video-player embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.player .video-wrapper {
	background-color: #cccccc !important;
}

.kh-video-playlist {
	list-style-type: none !important;
	background: #fff;
	border: 1px solid #cccccc;
	-moz-border-radius: 0px;
	-webkit-border-radius: 0px 0px 3px 3px;
	border-radius: 0px 0px 3px 3px;
	padding: 8px !important;
	max-height: 258px;
	overflow-y: auto !important;
	margin-top: 0 !important;
}

.kh-video-playlist-item {
	cursor: pointer;
	margin: 0 0 5px;
	color: #333333;
	line-height: 0;
	border: 1px solid #cccccc;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	border-radius: 3px;
	width: 100%;
	box-sizing: border-box;
}

.kh-video-playlist-item button {
	cursor: pointer;
	background: #ffffff;
	padding: 5px;
	border: 0;
}

.kh-video-playlist-item button:hover {
	background: #f1f0f0;
}

.kh-video-playlist-item:last-child {
	margin: 0;
}

.kh-video-item-container {
	width: 100%;
}

.kh-video-thumbnail {
	float: left;
	width: 25%;
	border: 1px solid #cccccc;
	box-sizing: border-box;
	margin-right: 8px;
	overflow: hidden;
	line-height: 0;
}

.kh-video-thumbnail img {
	width: 100%;
	max-width: 100% !important;
}

.kh-video-meta-section {
	float: none;
	box-sizing: border-box;
}

.kh-video-playlist-item:after {
	content: ".";
	visibility: hidden;
	display: block;
	height: 0;
	clear: both;
}

.kh-video-title {
	font-size: 11px !important;
	font-weight: 700;
	color: #333333 !important;
	line-height: normal;
	margin: 0 !important;
	background: transparent !important;
}

.kh-video-description {
	font-size: 10px;
	color: #333333;
	line-height: normal;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: left;
}

.kh-video-item-selected button {
	background: #f1f0f0;
}

.kh-video-item-selected .kh-video-thumbnail {
	border: 1px solid #00749E;
}

.kh-video-item-selected .kh-video-title {
	color: #00749E !important;
}

.khad-container .khad-button {
	border: 0;
}

.kh-video-playlist {
	margin: 0 !important;
}

.kh-video-playlist-item {
	padding: 0 !important;
}

.kh-video-playlist-item button {
	border: 0;
}

/* Audio Description Plugin */
.khad-container {
	display: none;
	background-color: #efefef;
	max-height: 35px;
}

.khad-outer {
	padding: 4px;
}

.khad-container .khad-button {
	background: url('https://familysurvey.org/misc/javascript/js_apps/video/ad_icon.png') no-repeat center center;
	display: block;
	width: 29px;
	height: 22px;
	padding: 2px;
	box-sizing: content-box;
	border: 0;
}

.khad-container[ad-enabled="true"] .khad-button {
	background: url('https://familysurvey.org/misc/javascript/js_apps/video/ad_icon_on.png') no-repeat center center;
}

.khad-container .khad-button:hover, .khad-container .khad-button:focus {
	border: 2px solid #9ecaed;
	border-radius: 7px;
	padding: 0;
}

/* Show Overflow Scrollbars for Webkit */
::-webkit-scrollbar {
	-webkit-appearance: none;
	width: 7px;
}

::-webkit-scrollbar-thumb {
	border-radius: 4px;
	background-color: rgba(0, 0, 0, .5);
	-webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5);
}

/* Tablet */
@media only screen and (max-width: 767px) {

}

/* Medium devices - Portrait only */
@media only screen and (min-device-width: 375px) and (max-device-width: 667px) and (-webkit-min-device-pixel-ratio: 2) and (orientation : portrait) {
	.kh-video-title {
		font-size: 12px;
		-webkit-text-size-adjust: none;
	}

	.kh-video-description {
		font-size: 11px;
		-webkit-text-size-adjust: none;
	}
}

/* Medium devices - Landscape only */
@media only screen and (min-device-width: 375px) and (max-device-width: 667px) and (-webkit-min-device-pixel-ratio: 2) and (orientation : landscape) {
	.kh-video-title {
		font-size: 15px;
		-webkit-text-size-adjust: none;
	}

	.kh-video-description {
		font-size: 14px;
		-webkit-text-size-adjust: none;
	}

	.kh-video-playlist {
		max-height: 216px;
	}
}

/* Large devices - Portrait only */
@media only screen and (min-device-width: 320px) and (max-device-width: 736px) and (-webkit-min-device-pixel-ratio: 3) and (orientation : portrait) {
	.kh-video-title {
		font-size: 12px;
		-webkit-text-size-adjust: none;
	}

	.kh-video-description {
		font-size: 11px;
		-webkit-text-size-adjust: none;
	}
}

/* Large devices - Landscape only */
@media only screen and (min-device-width: 320px) and (max-device-width: 736px) and (-webkit-min-device-pixel-ratio: 3) and (orientation : landscape) {
	.kh-video-title {
		font-size: 19px;
		-webkit-text-size-adjust: none;
	}

	.kh-video-description {
		font-size: 18px;
		-webkit-text-size-adjust: none;
	}

	.kh-video-playlist {
		max-height: 232px;
	}
}

/* Extra Large devices - Portrait only */
@media only screen and (min-device-width: 320px) and (max-device-width: 736px) and (-webkit-min-device-pixel-ratio: 4) and (orientation : portrait) {
	.kh-video-title {
		font-size: 15px;
		-webkit-text-size-adjust: none;
	}

	.kh-video-description {
		font-size: 14px;
		-webkit-text-size-adjust: none;
	}
}

/* Extra Large devices - Landscape only */
@media only screen and (min-device-width: 320px) and (max-device-width: 736px) and (-webkit-min-device-pixel-ratio: 4) and (orientation : landscape) {
	.kh-video-title {
		font-size: 19px;
		-webkit-text-size-adjust: none;
	}

	.kh-video-description {
		font-size: 18px;
		-webkit-text-size-adjust: none;
	}

	.kh-video-playlist {
		max-height: 232px;
	}
}

/* iPhone 4/4S - Portrait only */
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (device-aspect-ratio: 2/3) and (orientation : portrait) {
	.kh-video-title {
		font-size: 12px;
		-webkit-text-size-adjust: none;
	}

	.kh-video-description {
		font-size: 11px;
		-webkit-text-size-adjust: none;
	}
}

/* iPhone 4/4S - Landscape only */
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (device-aspect-ratio: 2/3) and (orientation : landscape) {
	.kh-video-playlist {
		max-height: 200px;
	}

	.kh-video-title {
		font-size: 12px;
		-webkit-text-size-adjust: none;
	}

	.kh-video-description {
		font-size: 11px;
		-webkit-text-size-adjust: none;
	}
}

/* iPhone 5/5S - Portrait only */
@media only screen and (min-device-width: 320px) and (max-device-width: 568px) and (device-aspect-ratio: 40/71) and (orientation : portrait) {
	.kh-video-title {
		font-size: 12px;
		-webkit-text-size-adjust: none;
	}

	.kh-video-description {
		font-size: 11px;
		-webkit-text-size-adjust: none;
	}
}

/* iPhone 5/5S - Landscape only */
@media only screen and (min-device-width: 320px) and (max-device-width: 568px) and (device-aspect-ratio: 40/71) and (orientation : landscape) {
	.kh-video-playlist {
		max-height: 200px;
	}

	.kh-video-title {
		font-size: 12px;
		-webkit-text-size-adjust: none;
	}

	.kh-video-description {
		font-size: 11px;
		-webkit-text-size-adjust: none;
	}
}

/* iPhone 6/6S - Landscape only */
@media only screen and (min-device-width: 375px) and (max-device-width: 667px) and (device-aspect-ratio: 375/667) and (orientation : landscape) {
	.kh-video-title {
		font-size: 16px;
		-webkit-text-size-adjust: none;
	}

	.kh-video-description {
		font-size: 15px;
		-webkit-text-size-adjust: none;
	}
}

/* Portrait view on mobile - All screen sizes */
@media only screen and (min-device-width : 320px) and (max-device-width : 736px) and (orientation : portrait) {
	.kh-video-thumbnail {
		position: relative;
		overflow: hidden;
		width: 80px;
		height: 60px;
	}

	.kh-video-thumbnail img {
		position: absolute;
		top: 0;
		left: 0;
		margin-left: -12px;
		width: auto;
		max-width: inherit !important;
		height: 100%;
	}
}

/* Landscape view on mobile - All screen sizes */
@media only screen and (min-device-width : 320px) and (max-device-width : 736px) and (orientation : landscape) {
	.kh-video-container {
		max-width: 100%;
		min-width: 300px;
		background-color: #111;
	}

	.kh-video-player {
		padding-bottom: 32%;
		max-width: 58.5%;
		margin: 0 auto;
	}
}
