.js-file-popup {
	display: none;
	position: absolute;
	z-index: 9999;
	background: #ffffff;
	height: auto;
	left: -105px;
	top: 76px;
}

.js-file-popup:before {
	content: ' ';
	width: 100%;
	height: 20px;
	position: absolute;
	top: -16px;
	bottom: initial;
}

.js-file-popup:after {
	content: ' ';
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 20px 15px 0px 15px;
	border-color: #97bf0e transparent transparent transparent;
	position: absolute;
	left: 48%;
	top: -10px;
	transform: rotate(180deg);
}

.js-file-popup.reversed:before {
	content: ' ';
	width: 100%;
	height: 20px;
	position: absolute;
	top: initial;
	bottom: -16px;
}

.js-file-popup.reversed:after {
	content: ' ';
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 20px 15px 0px 15px;
	border-color: #97bf0e transparent transparent transparent;
	position: absolute;
	left: 48%;
	bottom: -10px;
	top: initial;
	transform: rotate(0deg);
}


.js-file-popup.reversed {
	bottom: 76px;
	top: initial;
}

	.clear {
		clear: both;
	}

#fotoview {
	background: #ffffff; z-index: 5000; display: none; border: 1px solid #8ca5a2; position: absolute; right: 345px; top: 0px;  height: 200px; width: 433px;
}

.foto_arrow{
	position:absolute;
	right: -7px;
	width:7px;
	height:14px;
	display:block;

}

.foto_arrow_left{
	position:absolute;
	left: -7px;
	width:7px;
	height:14px;
	display:block;

}

#ft_photos {
	position: relative;
	width: 700px;
	height: 535px;
	border: 10px solid #97bf0e;
	padding: 10px;
}

#ft_photos.no-photos {
	height: 455px;
}

#ft_photos .panel {
	position: absolute;
	background-color: white;
	border: 1px solid #ae976d;
	padding: 8px;
	/* padding-left: 20px; */
	/* padding-right: 20px; */
	width: 660px;
	height: 415px;
	border-radius: 0;
	margin-bottom: 0;

	top: 86px;
}

#ft_photos .filmstrip {
	position: absolute;

	width: 660px;
	background-color: white;
	padding: 20px;
	padding-left: 0;
	padding-bottom: 0;
	padding-right: 0;
	top: 0;
}

.js-file-popup.reversed #ft_photos .filmstrip {
	top: 426px;
}

.js-file-popup.reversed #ft_photos .panel {
	top: initial;
}

#ft_photos .filmstrip img:hover {
	border: 1px solid #ae976d;
}

#ft_photos .filmstrip img {
	float: left;
	margin-right: 9px;
	cursor: pointer;
	border: 1px solid #97bf0e;
	width: 85px;
	height: 55px;
}

@media (max-width: 1279px) {
	.js-file-popup{
		/*left: calc(-100% - 20px);*/
		top: 86px;
		right: 50%;
		left:auto;
		-webkit-transform: translateX(50%);
		-moz-transform: translateX(50%);
		-ms-transform: translateX(50%);
		-o-transform: translateX(50%);
		transform: translateX(50%);
	}
	#ft_photos{
		width: 500px;
		height: auto;
	}
	#ft_photos:before{
		content: '';
		display: block;
		position: relative;
		width: calc(100% - 20px);
		padding-bottom: 65%;
	}
	#ft_photos .panel{
		width: calc(100% - 20px);
		height: auto;
		top: 10px;
	}
	#ft_photos .panel img{
		width: 100%;
		height: auto;
	}
	.js-file-popup.reversed #ft_photos .filmstrip,
	#ft_photos .filmstrip{
		position: relative;
		top: auto;
		width: calc(100% - 20px);
	}
	.js-file-popup.reversed #ft_photos .panel{
		top: 10px;
	}
}
@media (max-width: 899px) {
	#ft_photos{
		width: 350px;
		height: auto;
	}
	#ft_photos:before {
		padding-bottom: 66%;
	}
}
@media (max-width: 767px) {
	.js-file-popup{
		display: none !important;
	}
}