.clearline { clear: both; }

.sGallery .title {
    background-color: #F6F6F6;
    border: 1px solid #D8D8D8;
    border-radius: 8px;
    color: #444444;
    float: left;
    font-weight: bold;
    margin: 15px 0;
    overflow: hidden;
    padding: 8px;
    text-align: left;
    width: 98%;
}
.sGallery.tile {
    margin: 5px 0;
    padding: 0;
}
.sGallery.tile a {
    display: inline-block;
    margin: 0 5px 5px 0;
    position: relative;
}
.sGallery.mosaic {
	box-sizing: content-box;
}

.sGallery.mosaic a, .sGallery.dynmosaic a {
    display: block;
    float: left;
    margin: 0;
    padding: 0;
    position: relative;
}
.sGallery.tile img {
    background-color: #FFFFFF;
    border: 1px solid #CCCCCC;
    margin: 0;
    padding: 2px;
}

.sGallery .playbg {
    background: none repeat scroll 0 0 rgba(0, 0, 0, 0.5);
    bottom: 7px;
    left: 3px;
    position: absolute;
    right: 3px;
    top: 3px;
    z-index: 100;
}

.sGallery .playimg {
    background: url("ytplay.png") no-repeat scroll 50% 50% rgba(0, 0, 0, 0);
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 101;
}

.sGallery.mosaic div.wrap, .sGallery.dynmosaic div.wrap {
    overflow: hidden;
    position: relative;
    margin: 0 0 10px 0;
}

.sGallery.mosaic img, .sGallery.dynmosaic img {
    margin: 0;
    padding: 0;
    position: absolute;
    left: 0;
}

.sGallery .more {
	text-align: right;
	padding: 5px 0;
}

.sGallery .more a {
	background-color: #90bee9;
    border: medium none;
    border-radius: 4px;
    color: #fff;
    font: bold 12px/14px "Trebuchet MS",Helvetica,sans-serif;
    margin: 0 8px 0 0;
    padding: 2px 5px;
    text-align: center;
    text-decoration: none
}

.sGallery .more a:hover { background-color:#555555; }

.sGallery.table {
	display: block;
	height: 100%;
	width: 100%;
}

.sgallerytbl {
	width: 100%;
	height: 100%;
	border-collapse: collapse;
    border-spacing: 0;
}

.sgallerytbl td {
	padding: 3px;
	margin: 0;
	position: relative;
	width: 25%;
	height: 33.33%;
	vertical-align: top;
}

.sgallerytbl td > a {
	display: block;
	height: 100%;
	width: 100%;
}

.sgallerytbl td > a > div {
	display: block;
	height: 100%;
	width: 100%;
	background-position: 50% 0;
    background-repeat: no-repeat;
}

.sGallery.wall, .sgal-image-wall { display: block; width: 100%; height: 100%; }

.sgal-image-wall .sgal-image-wall-item-link {
    float: left;
    width: 20%;
    display: block;
    position: relative;
    margin-bottom: 4px;
}

.sgal-image-wall .sgal-image-wall-item-link img {
	display: block;
	width: 100%;
	height: auto;
}

.sgal-column-width { width: 20%; }
/*.sgal-image-wall img.sgal-image-wall-item { width: 20%; }*/

@media screen and (max-width: 720px) {
  /* 10 columns for larger screens */
	.sgal-column-width { width: 10%; }
}


.sGallery.dynmosaic, .sGallery.dyntile {
	display: block;
    height: 100%;
    margin: 0;
    overflow: hidden;
    padding: 0;
    width: 100%;
}

.sGallery.dynmosaic a, .sGallery.dyntile a {
    display: block;
    float: left;
    margin: 0 0 7px 0;
    padding: 0;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.sGallery.dynmosaic div.wrap, .sGallery.dyntile div.wrap {
    overflow: hidden;
    position: relative;
    margin: 0 7px 0 0;
	background-attachment: scroll;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.sGallery.dyntile div.imgtitle {
	margin: 3px 20px 0 0;
	color: #eee;
	text-align: center;
}
.sGallery.dynmosaic .playbg, .sGallery.dyntile .playbg {
    background: none repeat scroll 0 0 rgba(0, 0, 0, 0.5);
    bottom: 0;
    left: 0;
    position: absolute;
    right: 7px;
    top: 0;
    z-index: 100;
}

.sGallery.film {
	width: 100%;
	height: 100%;
}

.sGallery.film ul.filmitems a {
	display:block;
	height: 100%;
}

.sGallery.film ul.filmitems, .sGallery.film ul.filmitems li {
	margin:0;
	padding:0;
	list-style-type:none;
	overflow:hidden;
	background: none repeat scroll 0 0 rgba(0, 0, 0, 0);
	height: 100%;
}

.sGallery.film ul.filmitems li img {
	height: 100%;
}

.sGallery.film .btnNext {
    background: url("next.png") no-repeat scroll 0 0 transparent;
    height: 25px;
    margin: -12.5px 0 0;
    position: absolute;
    right: -28px;
    top: 50%;
    width: 25px;
    z-index: 200
}

.sGallery.film .btnPrev {
    background: url("prev.png") no-repeat scroll 0 0 transparent;
    height: 25px;
    margin: -12.5px 0 0;
    position: absolute;
    left: -28px;
    top: 50%;
    width: 25px;
    z-index: 200
}