.photo-cont {
	text-align: center;
	border-top: 1px solid #bfbfbf;
	padding-top: 30px;
	margin-top: 10px;
	margin-bottom: 7px;
}

.photo-cont .pic-cont {
	display: inline-block;
	vertical-align: top;
	width: 24%;
	min-width: 200px;
	box-sizing: border-box;
	margin-bottom: 20px;
	font-size: 13px;
}

.photo-cont a {
	display: block;
	text-align: center;
	margin: 0 auto;
	position: relative;
	font-size: 13px;
}

.photo-cont a:hover {
	text-decoration: none;
	color: #909090;
}

.photo-cont .text{
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    max-height: 37px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
	padding: 0 10px;
}

.photo-cont .text-cont {
	position:relative;
}

.photo-cont .text:after {
	content: "";
	display: block;
	position: absolute;
	background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 50%);
	width: 60px;
	height: 18px;
	z-index: 499;
	right: 0;
	top: 18px;
}

.photo-cont .al .text:after {
	display: none;
}

.photo-cont .text-link {
	z-index: 500;
	position: relative;
}

.photo-cont .user a {
	margin-top: 8px;
}

.photo-cont img {
	margin-bottom: -8px;
}

.photo-cont .al img,
.photo-cont .user img {
	margin-bottom: 0;
}

.photo-cont span {
	display: block;
	box-sizing: border-box;
	border: 9px solid white;
	position: absolute;
	top: 0;
	width: 100%;
}


.photo-cont .text-link a {
	display: inline-block;
	text-decoration: underline !important;
	margin-top: 0;
}

.photo-cont .next-user-cont {
	text-align: right;
	padding: 0 30px 0 0;
}

.photo-cont .next-user {
	font-weight: 700;
	text-align: center;
	padding: 10px 20px;
	display: inline-block;
	color: white;
}

.photo-cont .next-user:hover {
	color: white;
}

.photo-cont .photo-nadpis {
	font-size: 20px;
	margin-bottom: 30px;
}

@media only screen and (max-width: 950px) { .photo-cont .pic-cont {width: 32%;} .photo-cont .next-user-cont {text-align: center;} .photo-cont .next-user-cont {padding: 20px 0;}}
@media only screen and (max-width: 710px) { .photo-cont .pic-cont {width: 49%;}}
@media only screen and (max-width: 460px) { .photo-cont .pic-cont {width: calc(100% - 40px);}}

.GalleryContainer figure {
    margin: 10px 0;
}