/* body {
font-family: sans-serif;
color:#ededed;
font-size: 0.75em;
position: relative;
} */

small {
	color: #9B9B9B;
}

img {
	max-width: 100%;
}


.videoteka {
	color: #fff;
	font-family: Tahoma, Arial, sans-serif;
	font-size: 0.85em;
	line-height: 1.2em;
	padding: 60px 0 45px 0;
	margin-bottom: 15px;
		background-position: center;
	background-image: url("https://images.pexels.com/photos/255464/pexels-photo-255464.jpeg?auto=compress&cs=tinysrgb&dpr=3&h=750&w=1260");
	background-attachment: fixed;
	background-size: 1260px;
}

.videoteka .container-video {
	width: 100%;
	height: auto;
	background-color:
		rgba(0, 0, 0, 0.8);
	border-radius: 0;
}

.container-video {
	position: relative;
	max-width: 80%;
	margin: auto;
}


/* * Examples * */

.example{
	padding:20px;
}
.example .loading {
	display: inline-block;
	width: 20px;
	height: 20px;
	margin-left: 5px;
	background: url(loading.gif) no-repeat;
	vertical-align: middle;
}

.pagination-video {
	display: block;
	padding: 15px 0 15px 0;
	text-align: center;
}

.pagination-video .page {
	display: inline-block;
	font-size: 2em;
	line-height: 1.6em;
	color: #fff;
	height: 2em;
	width: 2em;
	margin: 0 1px;
	/*border: 1px solid #fff; */
	border-radius: 50%;
	cursor: pointer;
	background-color: rgba(0, 0, 0, 0.8);
	transition: background-color 0.4s;
}

.pagination-video .page:hover {
	background-color: rgba(255, 255, 255, 0.4);
}

.pagination-video span {
	vertical-align: middle;
	cursor: pointer;
}

.pagination-video span.disabled {
	cursor: default;
}

.pagination-video span:hover:not(.disabled) {
	color: #fff;
	background-color: #c6c6c6;
}

.example-container {
	overflow: hidden;
	margin: 0;
}

.example-container iframe,
.example-container img {
	display: block;
}


.example-container .video-item {
	float: left;
	box-sizing: border-box;
	padding: 5px;
	cursor: pointer;   	
}

/* Example 4 - Gallery with videos opening through the Fancybox */

#example4 .video-item {
	width: 33%;
}

/* tukaj je bil problem z nth child, ki je bil nastavljen, da počisti float na vsak 6 element, kar seveda služi samo v primeru dveh vrstic, zdaj je narejeno tako, da počisti float na koncu vsake vrstice s 3imi elementi ... */

#example4 .video-item:nth-child(3n+1) {
	clear:both;
}

#example4 .video-item .title {
	color: #fff;
	display: block;
	margin: 5px 5px 5px 5px;
}

@media (max-width: 960px) {

	.videoteka {
		padding: 40px 0 25px 0;
	}

	.container-video {
		max-width: 90%;
	}

	#example4 .video-item {
		width: 50%;
	}

	#example4 .video-item:nth-child(2n+1) {
		clear:both;
	}

	#example4 .video-item:nth-child(3n+1) {
		clear:right;
	}

}

