#videos {
    display: flex;
    display: -webkit-flex;
    flex-flow: row wrap;
    -webkit-flex-flow: row wrap;
	margin: 7px auto 0 auto;
	padding:7px;
	width:100%;
	justify-content: space-around;
	align-items: stretch;
}

h2 {
	font-size:1.4rem;
	font-weight:600;
    padding: 3px;
	display:block;
	width:100%;
	text-shadow: 2px 2px 4px #bbb;
}

/*------------------------------------------------------------GALERIA-----------------*/

div.rthumbnail {
	display: inline-block;
	padding:0;
	padding-bottom:5px;
	margin: 0 1% 21px;
	border: thin solid #d9d9d9;
	background-color:#;
	width:31.333%;;
	text-align:center;
}

div.rthumbnail a {
	font-weight:400;
	font-size:1.1rem;
	color:#666;
	line-height:1.5;
}

div.rthumbnail a:hover{ /* style for thumbsnail DIVs that appear initially on the page */
	color:#AD0049;
}

div.rthumbnail div.rcaption{
	display: none;
}

div.responsivegallery{ /* style for responsive gallery UI */
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	position: fixed;
	display: none;
	z-index: 1000;
}

div.responsivegallery:before{ /* gallery overlay */
	content: '';
	display: block;
	position: absolute;
	width: 100%;
	height: 100%;
	cursor: zoom-out;
	top: 0;
	left: 0;
	background: rgba(102,102,102,0.85);
	/*opacity: 0.5;*/
	z-index: -1;
}

div.responsivegallery div.galleryinner{
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	margin: auto;
	text-align: center;
	vertical-align: middle;
	white-space: nowrap;
}

div.responsivegallery div.galleryinner:before{ /* technique to vertical align elements */
	content: '';
	display: inline-block;
	height: 100%;
	vertical-align: middle;
}

div.responsivegallery div.figurearea{
	position: relative;
	max-width: 100%;
	vertical-align: middle;
	display: inline-block;
	z-index: 1000;
}

div.responsivegallery div.figurearea.isvideo{
	width: 90%;
}

/* video container CSS */

.jkvideocontainer *{
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	width: 100%;
}


.jkvideowrapper{
	position: relative;
	padding-bottom: 56.25%; /* 16:9 ratio. See https://css-tricks.com/NetMag/FluidWidthVideo/Article-FluidWidthVideo.php */
	height: 0;
}


.jkvideowrapper iframe{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 10;
}


div.responsivegallery div.figurearea .thecaption{
	text-align: left;
	position: absolute;
	bottom: 0;
	font-weight:500;
	font-size: 1.1rem;
	padding: 0px;
	width: 100%;
	white-space: normal;
}

.thecaption a {
	font-weight:500;
	color: #0073C4;
}

.thecaption a:hover {
	color: #0096FF;
}

div.responsivegallery div.figurearea.isvideo .thecaption{
	position: relative;	
}

div.responsivegallery div.figurearea .thecaption:before{ /* caption overlay */
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	display: block;
	background: white;
	top: 0;
	left: 0;
	opacity: 0.8;
}

div.responsivegallery div.figurearea .thecaption div.captioninner{
	position: relative;
	padding: 3px;
	color: black;
	overflow: hidden;
}

div.responsivegallery div.figurearea .thecaption div.captioninner span.counter{
	float: right;
	font-size: 0.9em;
	font-weight: 500;
	display: block;
	height: 100%;
	line-height: 100%;
	background: #2D2D2D;
	color: white;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	line-height: 40px;
	text-align: center;
	box-shadow: 0 0 3px gray;
}

div.responsivegallery div.close{
	font-family: 'Open Sans', Verdana, sans-serif;
	font-size:2rem;
	font-weight:600;
	color: white;
	position: absolute;
	right: 14px;
	top: 14px;
	padding: 10px;
	width: 40px;
	height: 40px;
	border-radius: 25%;
	background: #0073C4;
	font-size: 1.2rem;
	z-index: 1000;
	cursor: pointer;
	-webkit-transition: background 0.3s;
	-moz-transition: background 0.3s;
	transition: background 0.3s;
}

div.responsivegallery div.close:hover{
	background: #99B000;
}

div.responsivegallery div.close span{
	line-height: 40px;
}

div.responsivegallery div.leftnav,
div.responsivegallery div.rightnav{
	font-family: 'Open Sans', Verdana, sans-serif;
	font-size:2rem;
	font-weight:600;
	color: white;
	position: absolute;
	left: 5px;
	top: 50%;
	width: 40px;
	height: 40px;
	background: #0073C4;
	border-radius: 25%;
	text-align: center;
	line-height: 40px;
	margin-top: -25px;
	cursor: pointer;
	z-index: 1000;
}

div.responsivegallery div.rightnav{
	right: 5px;
	left:auto;
}


div.responsivegallery div.loadingdiv,
div.responsivegallery div.errordiv{
	width: 100px;
	height: 100px;
	border-radius: 10px;
	position: absolute;
	display: none;
	top: 50%;
	left: 50%;
	margin-top: -50px;
	margin-left: -50px;
	opacity: 0.6;
	text-align: center;
	z-index: 1000;
	background: black;
}

div.responsivegallery div.loadingdiv span,
div.responsivegallery div.errordiv span{
	vertical-align: middle;
	color: red;
	font-size: 3em;
	line-height: 90px;
}

div.responsivegallery div.loadingdiv span{ /* rotating loading DIV */
	-webkit-animation: rotate 2s linear infinite;
	animation: rotate 2s linear infinite;
	font-size: 3.5em;
	color: white;
	display: inline-block;
}

@-webkit-keyframes rotate{
	0%{
		-webkit-transform: rotate(0deg);
	}
	100%{
		-webkit-transform: rotate(360deg);
	}
}

@keyframes rotate{
	0%{
			transform: rotate(0deg);
	}
	100%{
		transform: rotate(360deg);
	}
}


div.responsivegallery div.leftnav:hover,
div.responsivegallery div.rightnav:hover{
	background: #99B000;
	color: white;
}

@media screen and (max-width: 660px){ 
div.rthumbnail{ 
	margin:6px auto;
	text-align:center;
}
}


@media screen and (max-width: 480px){ 


#videos {
	margin: 4px auto;
	padding:2px;
	width:100%;
	justify-content: space-around;
	align-items: stretch;
}

h2 {
	font-size:1.3rem;
	font-weight:400;
	color:#fff;
	text-align:center;
	text-shadow: none;
}


div.rthumbnail {
	width:48%;
	padding:0;
	padding-bottom:7px;
	margin:7px 1%;
	border: none;
	background-color:#fff;
	text-align:center;
}
div.rthumbnail 1mg {

}


div.rthumbnail p {
	line-height:1;
}


div.rthumbnail a {
	font-weight:400;
	font-size:.9rem;
	c
}

.uno { 
	display:none;
}

}