*.youtube-videogallery-container {
    display: block;
    list-style: none;
    margin: 0 0 0 0;
    padding: 0 0 0 0;
}

*.youtube-videogallery-item {
	border-radius: 5px;
    display: inline-block;
    line-height: 0;
    list-style: none;
	margin-bottom: 10px !important;
	margin-right: 10px !important;
	overflow: hidden;
}
*.youtube-videogallery-compact {
    font-size: 0;
}
*.youtube-videogallery-compact *.youtube-videogallery-item,
*.youtube-videogallery-compact *.youtube-videogallery-img{
    box-shadow: 0 0 0;
    border-radius: 0;
    margin: 0 0 0 0;
}
*.youtube-videogallery-compact *.youtube-videogallery-title {
    font-size: 11px;
}
a.youtube-videogallery-link {
    display: inline-block;
	position: relative;
	width:188px !important;
}
a.youtube-videogallery-link:hover img.youtube-videogallery-play, 
a.youtube-videogallery-link:focus img.youtube-videogallery-play {
	opacity: 1;
}
*.youtube-videogallery-play {
	left:50%;
	opacity: 0.7;
	position: absolute;
	top:50%;
	z-index: 1;
}
*.youtube-videogallery-title {
    background: #000;
    background-color: rgba(0,0,0,0.7);
    bottom: 0;
    color:#fff;
    display: block;
    max-height: 1.5em;
    left:0;
    line-height: 150%;
    overflow: hidden;
    position: absolute;
    text-align: center;
    width: 100%;
    z-index: 1;
}
*.youtube-videogallery-allowtitle *.youtube-videogallery-title {
    max-height: 100%;
}
*.youtube-videogallery-img {
	border-radius: 5px;
}
*.youtube-videogallery-screen-reader-only {
    position: absolute;
    left:-9999px;
}
ul.youtube-videogallery  li:nth-child(5){ margin-right:0 !important;}
ul.youtube-videogallery  li:nth-child(10){ margin-right:0 !important;}
ul.youtube-videogallery  li:nth-child(15){ margin-right:0 !important;}
ul.youtube-videogallery  li:nth-child(20){ margin-right:0 !important;}
ul.youtube-videogallery  li:nth-child(25){ margin-right:0 !important;}
ul.youtube-videogallery  li:nth-child(30){ margin-right:0 !important;}
ul.youtube-videogallery { margin:0 !important;}
div.youtube-videogallery-bodycover {
    background-color: #000;
    height: 100%;
    left:0;
    opacity: 0;
    position: absolute;
    top:0;
    width:100%;
    z-index: 100;
}
div.youtube-videogallery-display {
    background-color: #000;
    border-radius: 5px;
    box-shadow: 3px 3px 7px #000;
    left:50%;
    opacity: 0;
    padding: 3px;
    position: fixed;
    top:50%;
    z-index: 101;
}
div.youtube-videogallery-bodycover,
div.youtube-videogallery-display {
    transition: all 300ms;
    transform: scale(0);
    -webkit-transform: scale(0);
}
body.youtube-videogallery-active div.youtube-videogallery-bodycover,
body.youtube-videogallery-active div.youtube-videogallery-display {
    display: block;
    transform: scale(1);
    -webkit-transform: scale(1);
}
body.youtube-videogallery-active div.youtube-videogallery-bodycover {opacity: 0.5}
body.youtube-videogallery-active div.youtube-videogallery-display { opacity: 1}
.youtube-videogallery-img{  height: 168px !important;width: 188px !important;}
@media only screen and (max-width:780px) {
	   *.youtube-videogallery-item{ margin-bottom:0 !important; margin-right:0 !important;}
	.youtube-videogallery-img{width: 100% !important; height:100% !important;}
	a.youtube-videogallery-link{width: 90% !important; margin-left: 5%!important; margin-right: 5%!important;}
	*.youtube-videogallery-img{border-radius: 0px;}
	.youtube-videogallery{    padding-top: 15px !important;}
	.fancybox-inner{ height:auto !important;}
	}