#elements_list {
	display: flex;
	flex-wrap: wrap;
}
#elements_list .element_item {
	display: flex;
	flex-basis: 314px;
	flex-direction: column;
	font-size: 14px;
	margin-top: 20px;
}

.modal-window {
	content: '';
	position: fixed;
	top:0;
	bottom:0;
	right:0;
	left:0;
	margin: auto;
	z-index:10000;
}
.modal-form-container {
	position: absolute;
	max-width:100%;
	height: 100%;
	width:100%;
	top:0;
	bottom:0;
	right:0;
	left:0;
	margin:auto;
	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display:flex;
	align-items: center;
	-webkit-box-align: center;
	-webkit-align-items: center;
	-ms-flex-align: center;
}
.overlay {
	width: 100%;
	height: 100vh;

	position: absolute;
	top: 0;
	left: 0;
	min-height: 708px;
	opacity:100%;
//background: rgba(199, 211, 221, 0.95);
	background: #d7d6d7;
	z-index: -2;
}
.modal-window #container {
	max-width:1520px;
}
#horizontal_scroll {

}
.modal-window #horizontal_scroll h3 {
	margin-bottom:12px;
}
#container #content h1 {
	margin-left:0px;
	margin-block-start:1em;
}
#container #horizontal_scroll_new {
	margin:20px 0 0 0;
}
#horizontal_scroll h3 {
	text-align: left;
	#margin-left: 5%;
	margin-block-start:0;
}

#container #horizontal_scroll ul {
	padding-left: 0;
	display: flex;
}

#container #horizontal_scroll ul li {
	list-style: none;
	margin: auto;
	text-align: center;
	padding-left: 0;
	margin-top: 0;
}
#container #horizontal_scroll ul li img{
	max-width:100%;
	height:100%;
	object-fit:contain;
	#box-shadow: 0px 0px 10px rgb(0 0 0 / 30%);
}
#horizontal_scroll .lSSlideOuter {
	margin:0 -50px;
	padding:0 50px;
}
#horizontal_scroll .lSSlideWrapper {
	overflow:visible;
}
#horizontal_scroll .lSSlideWrapper
#horizontal_scroll .lSAction>a {
	background-repeat: no-repeat;
	background-position: 10px 0px;
	height: 45px;
	width: 30px;
}

#horizontal_scroll .lSAction>.lSPrev,
#horizontal_scroll .lSAction>.lSNext {
	background-image: url("/images/icons/arrow_blue_gray1.svg");
}
#horizontal_scroll .lSAction>.lSPrev {
	left:-50px
}
#horizontal_scroll .lSAction>.lSNext {
	right:-50px;
}
#horizontal_scroll .lSAction>.lSPrev,
#horizontal_scroll .lSAction>.lSNext {
	background-position: 10px 0;
	background-repeat: no-repeat;
}

#horizontal_scroll .lSAction>.lSPrev {
	transform: rotate(180deg);
}
#horizontal_scroll .text-scroll-gallery {
	text-align: left;
	padding: 0 0;
}


#horizontal_scroll_new .text-scroll-gallery {display:none;}
.fancybox-content .text-scroll-gallery {display:block;}
.data-fancybox-next svg{
	display:none;
}

.fancybox-navigation .fancybox-button {
	background:none;
}
.fancybox-navigation .fancybox-button--arrow_right div {
	background: url('/images/icons/arrow.svg') no-repeat center center / contain;
	padding:0px;
	width:30px;
	height:45px;
}
.fancybox-navigation .fancybox-button--arrow_left div {
	background: url('/images/icons/arrow.svg') no-repeat center center / contain;
	padding:0px;
	width:30px;
	height:45px;
	transform:rotate(180deg);
}
.fancybox-is-open .fancybox-bg {
	opacity:100%;
	background: rgba(199, 211, 221, 0.95);
}
.fancybox-thumbs {
	top: auto;
	width: auto;
	bottom: 0;
	left: 0;
	right : 0;
	height: 95px;
	padding: 10px 10px 5px 10px;
	box-sizing: border-box;
	background: rgba(0, 0, 0, 0.3);
}

.fancybox-show-thumbs .fancybox-inner {
	right: 0;
	bottom: 95px;
}
#container ul li {
	list-style-type: none;
}
#container  #horizontal_scroll_new {
	#margin-top:20px;
}
#container #horizontal_scroll_new ul {
	display:flex;
	flex-wrap:wrap;
	list-style-type: none;
	padding-left:0;


}
#container  #horizontal_scroll_new ul li {
	width:calc(25% - 12px);
	list-style-type: none;
	list-style-image:none;
	margin:0;
	padding:0;

	display:flex;
	flex-direction:column;
	justify-content: space-between;
	margin-bottom:20px;
}
#container  #horizontal_scroll_new ul li:not(:nth-child(4n+4)) {
	margin-right:16px;
}
#horizontal_scroll_new ul li img {
	max-width:100%;
	height:auto;
	object-fit: contain;
}
#horizontal_scroll_new ul li a img {
	max-width:100%;
	height:auto;
	object-fit: contain;
	box-shadow: 0 1px 3px rgb(0 0 0 / 12%), 0 1px 2px rgb(0 0 0 / 24%);
}
#horizontal_scroll_new h3 {
	text-align: left;
	#margin-left: 5%;
	font-size:18px;
	font-weight:600;
	margin-block-start:0px;
}
#container  #horizontal_scroll_new ul li:hover> h3 {
	text-decoration:underline;
}
#container  #horizontal_scroll_new ul li:hover> a img {
	box-shadow: 0 1px 5px rgb(0 0 0 / 22%), 0 1px 4px rgb(0 0 0 / 34%);
}
.my-modal-close {
	position: absolute;
	content: '';
	top: 15px;
	right: 15px;
	width: 20px;
	height: 20px;
	z-index: 1000;
	cursor:pointer;
}
.my-modal-close span {
	height:2px;
	width:100%;
	position:absolute;
	top:50%;
	background:#274289;
}
.my-modal-close:hover {
	transform: scale(1.05) rotate(-90deg);
	transition:transform 0.5s ease;
}
.my-modal-close span:first-child {transform:rotate(45deg);}
.my-modal-close span:last-child {transform:rotate(-45deg);}
html.fixed {
	overflow: hidden;
}
@media screen and (max-width: 1600px) {
	.modal-window #container>*:not(#content), #content>* {
		margin:0;
	}
	.modal-window #horizontal_scroll {
		margin:0 40px;
	}
	.modal-window #horizontal_scroll .lSSlideOuter {
		margin:0;
	}
}
@media screen and (max-width: 1000px) {
	#container  #horizontal_scroll_new ul li:not(:nth-child(4n+4)) {
		margin-right:initial;
	}
	#container  #horizontal_scroll_new ul li {
		width:calc(33.33% - 12px);
	}
	#container  #horizontal_scroll_new ul li:not(:nth-child(3n+3)) {
		margin-right:16px;
	}
	#container  #horizontal_scroll_new ul li a img {
		width:100%;
	}
	.modal-window #horizontal_scroll .lSSlideOuter {
		margin:0 10px;
		padding:0;
		margin-bottom:-50px;
		padding-bottom:50px;
	}
	/*.modal-window .lSAction{
		position: absolute;
		bottom: 0;
		height: 40px;
		left: 0;
		right: 0;
		margin: 0 auto;
		width:150px;
		bottom:-40px;
	}*/
	#horizontal_scroll .lSAction>a {
		width:25px;
		height:25px;
		top:-25%;
	}
	#horizontal_scroll .lSAction>.lSPrev {
		left:0;
	}
	#horizontal_scroll .lSAction>.lSNext {
		right:0;
	}
}
@media screen and (max-width: 720px) {
	body #container > #main_block {
		margin:0 10px;
	}
}
@media screen and (max-width:600px) {
	#container  #horizontal_scroll_new ul li:not(:nth-child(3n+3)) {
		margin-right:initial;
	}
	#container  #horizontal_scroll_new ul li {
		width:calc(50% - 8px);
	}
	#container  #horizontal_scroll_new ul li:not(:nth-child(2n+2)) {
		margin-right:16px;
	}
	#horizontal_scroll_new h3 {
		font-size:16px;
	}
}
@media screen and (max-width:400px) {
	#main_block, #main_block #content {
		min-width:initial;
	}
}