/*
 * VIDEO ARCHIVE
 */

.video-archive__container {
	display: flex;
	-ms-flex-direction: row;
	-webkit-flex-direction: row;
	flex-direction: row;
	-ms-flex-wrap: wrap;
	-webkit-flex-wrap: wrap;
	flex-wrap: wrap;
	justify-content: flex-start;
}

/* https://stackoverflow.com/questions/18744164/flex-box-align-last-row-to-grid */
.video-archive__container::after {
	content: "";
	flex: auto;
}
.video-archive__video {
	width: 250px;
	margin: 0 5px 25px 0;
}

.video-archive__video-details {
	font-size: 15px;
	font-weight: bold;
	font-family: Roboto, Arial, sans-serif;
	margin: 8px 0;
	text-overflow: ellipsis;
	overflow: hidden;
	max-height: 3.5em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.site-content .entry-content {
	max-width: 1022px;
}

.video-archive-date {
  flex: 0 0 100%; /* Let it fill the entire space horizontally */
  margin: 1em 0 .5em;
}

.video-search-container {
	margin-bottom: 1.5em;
	font-family: Arial;
    font-size: 18px;
}

.video-filter-container label {
    margin-right: 10px;
    margin-bottom: 5px;
    cursor: pointer;
    background: #eee;
    padding: 5px 8px 5px 4px;
    display: inline-block;
    border-radius: 4px;
}

.video-filter-container {
   	margin-bottom: 1.5em;
    font-family: Arial, sans-serif;
    font-size: 17px;
    line-height: 1;
}

.video-filter-container input[type="checkbox"] {
    height: 1em !important;
    margin-bottom: 0 !important;
}

.video-duration {
	position: absolute;
    bottom: 1px;
    right: 2px;
    color: rgba(255, 255, 255, 0.85);
    background-color: rgba(0,0,0,0.5);
    font-family: Roboto, Arial, sans-serif;
    font-size: 12px;
    padding: 1px 4px;
    font-weight: bold;
}

.progress-bar {
	height: 4px;
    background: #BBB;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.progress-bar-inside {
	height: 4px;
	background: red;
	width: 0;
}

.video-archive__thumbnail {
	position: relative;
}

/*
 * SINGLE VIDEO 
 */
.courses-breadcrumbs {
    max-width: 90%;
    margin-bottom: .5em;
}

.single-videos .videos-watch .wistia-video {
	margin: 0;
}

.single-videos .videos-watch .entry-title {
    line-height: 1.3;
    font-size: 28px;
    margin: .5em 0;
    text-transform: none;
}

.columns {
	max-width: 90%;
	margin: 0 auto;
	display: flex;
}

.primary {
	flex: 80%;
}

.secondary {
    flex: 0 0 400px;
    margin-left: 15px;
}

.secondary__video {
	overflow: hidden;
    margin-bottom: 6px;
}

.secondary__thumbnail {
	float: left;
    width: 170px;
    margin-right: 5px;
    position: relative;
    max-width: 40%;
}

.secondary__video-details {
	font-size: 14px;
	font-weight: bold;
	font-family: Roboto, Arial, sans-serif;
	margin: 0 0 8px;
	text-overflow: ellipsis;
	overflow: hidden;
	max-height: 2.85em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.video-duration {
	position: absolute;
    bottom: 1px;
    right: 2px;
    color: rgba(255, 255, 255, 0.85);
    background-color: rgba(0,0,0,0.5);
    font-family: Roboto, Arial, sans-serif;
    font-size: 12px;
    padding: 1px 4px;
    font-weight: bold;
}

.progress-bar {
	height: 4px;
    background: #BBB;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.progress-bar-inside {
	height: 4px;
	background: red;
	width: 0;
}
.video-breadcrumbs {
    max-width: 1022px;
    margin: 0 auto;
    font-size: 20px;
    font-family: Caslon, serif;
}

.video-meta {
	font-family: Caslon, serif;
	font-size: 120%;
}

.wistia_responsive_wrapper.non-members {
    border: 3px solid black;
    font-size: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 30px;
}

@media only screen and (max-width: 1250px) {
	.columns {
		max-width: 95%;
	}
}

@media only screen and (max-width: 1125px) {
	.wistia_responsive_wrapper.non-members {
	    font-size: 17px;
	}
}

@media only screen and (max-width: 1022px) {
	.video-breadcrumbs {
		max-width: 765px;
	}

	.video-archive__container {
		max-width: 765px;
	    margin-left: auto;
	    margin-right: auto;
	}

	.video-archive__container h2 {
		text-align: center;
	}
}

@media only screen and (max-width: 804px) {
	.video-breadcrumbs,
	.video-archive__container {
		max-width: 510px;
	}
}

@media only screen and (max-width: 549px) {
	.video-breadcrumbs {
		max-width: 320px;
		font-size: 19px;
		text-align: center;
	}

	.video-archive__container {
		max-width: 255px;
	}
}

@media only screen and (max-width: 1000px) {
	.wistia_responsive_wrapper.non-members {
	    font-size: 28px;
	}
	
	.columns {
		max-width: 97%;
		display: block;
	}

	.primary,
	.secondary {
		width: 100%;
		margin: 0;
	}

	.secondary {
		margin-top: 2rem;
	}

	.secondary__video-details {
		font-size: 15px;
	}
}

@media only screen and (max-width: 640px) {
	.wistia_responsive_wrapper.non-members {
	    font-size: 17px;
	}

	.video-filter-container {
		border-top: 1px solid grey;
		border-bottom: 1px solid grey;
	}

	.video-meta {
		font-size: 100%;
	}

	.video-filter-text {
		display: block;
	    padding: 10px 0;
	    margin: 5px 0;
	    position: relative;
	    cursor: pointer;
	}

	.video-filter-text:after {
		content: "\4b";
	    font-family: FontAwesome;
	    position: absolute;
	    right: 4px;
	    top: 8px;
	    font-size: 120%;
	}

	.video-filter-container.filter-closed label {
		display: none;
	}

	.video-filter-container.filter-opened .video-filter-text:after {
		content: "\4c";
	}

	.video-filter-container.filter-opened {
		padding-bottom: 6px;
	}

	.video-filter-container label {
	    display: table;
	}

	.single-videos .videos-watch .entry-title {
	    font-size: 19px;
	}
}

@media only screen and (max-width: 450px) {
	.secondary__video-details {
		font-size: 14px;
	}
	.single-videos .videos-watch .entry-title {
	    font-size: 17px;
	}
}

/* playlist styling */
.playlist {
	margin-bottom: .8rem;
}

.playlist a {
	display: block;
	position: relative;
}

.playlist .next-video {
	display: block;
}

.playlist-header {
	display: flex;
	justify-content: space-between;
}

.playlist-header,
.related-videos-title {
	font-family: Montserrat;
	font-weight: bold;
	margin-bottom: 3px;
    font-size: 15px;
    color: #444;
}

.playlist-title {
	flex: 1;
}

.playlist-autoplay-text {
	padding-right: .6rem;
}

.playlist-videos {
	height: auto;
	max-height: 250px;
	border: 7px solid #ddd;
	overflow: scroll;
	position: relative;
	padding: 5px 0 0 25px;
	counter-reset: video-counter;
}

.onoffswitch {
    position: relative; 
    width: 38px;
    -webkit-user-select:none; 
    -moz-user-select:none; 
    -ms-user-select: none;
}

.playlist a.video-link:before {
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    color: #222;
    font-size: 12px;
    content: counter(video-counter);
    counter-increment: video-counter;
    width: 15px;
    text-align: center;
    font-family: Montserrat;
}

.playlist a.video-link.playing:before {
	font-family: FontAwesome;
	content: "\6a";
    color: #666;
    font-size: 12px;
}

::-webkit-scrollbar {
  -webkit-appearance: none;
}

::-webkit-scrollbar:vertical {
	width: 10px;
}

::-webkit-scrollbar:horizontal {
	width: 0;
	height: 0;
}

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

.onoffswitch-checkbox {
    display: none;
}

.onoffswitch-label {
    display: block; overflow: hidden; cursor: pointer;
    border: 2px solid #BBBBBB; 
    border-radius: 30px;
    padding: 0;
}

.onoffswitch-inner {
    display: block; 
    width: 200%; 
    margin-left: -100%;
    transition: margin 0.3s ease-in 0s;
}

.onoffswitch-inner:before, 
.onoffswitch-inner:after {
    display: block; 
    float: left; 
    width: 50%; 
    height: 18px; 
    padding: 0; 
    line-height: 18px;
    font-size: 14px; 
    color: white; 
    font-family: Trebuchet, Arial, sans-serif; 
    font-weight: bold;
    box-sizing: border-box;
}

.onoffswitch-inner:before {
    content: "";
    padding-left: 10px;
    background-color: #34A7C1; 
    color: #FFFFFF;
}

.onoffswitch-inner:after {
    content: "";
    padding-right: 10px;
    background-color: #EEEEEE; 
    color: #999999;
    text-align: right;
}

.onoffswitch-switch {
    display: block; 
    width: 22px; 
    margin: 0px;
    background: #FFFFFF;
    position: absolute; 
    top: 0; 
    bottom: 0;
    right: 16px;
    border: 2px solid #BBBBBB; 
    border-radius: 30px;
    transition: all 0.3s ease-in 0s; 
}

.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
    margin-left: 0;
}

.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
    right: 0px; 
	border: 2px solid #34A7C1;
}

.onoffswitch-checkbox:checked + .onoffswitch-label {
	border: 2px solid #34A7C1;
}
/* end of playlist styling */
