.viewbox-image {
	display: block;
	clear: both;
	height: auto;
	width: 100%;
	max-width: 900px;
}
/*--------image ----------*/

.img-responsive p {
	margin: 0px;
	padding: 0px;
}

.img-responsive {
	height: 0px;
	width: 100%;
	overflow: hidden;
	position: relative;
	padding-bottom: 70%;
	margin-bottom: 10px;
}
.img-responsive_cart {
	height: 0px;
	width: 100%;
	overflow: hidden;
	position: relative;
	padding-bottom: 70%;
}
.img-responsive_cart img {
	display: block;
	height: auto;
	width: 100%;
	margin: auto;
}
.img_box img {
	max-height: auto;
	width: auto;
	height: auto;
	min-height: 100%;
	max-width: 100%;
	-moz-transition: all 0.97s ease-out;
	-o-transition: all 0.97s ease-out;
	-webkit-transition: all 0.97s ease-out;
}
.img_box img:hover {
	-webkit-transform: scale(1.10);
 	-moz-transform: scale(1.10);
 	-o-transform: scale(1.10);
}
.img_box img,
.img_box a img {
	position: absolute;
	left: 0px;
	top: 0px;
	right: 0px;
	bottom: 0px;
	margin: auto;
	display: flex;
	align-items: center;
	justify-content: center;		
}
/*For script
.largeImage {
	position: absolute;
	left: 0px;
	top: 0px;
	right: 0px;
	bottom: 0px;
}*/
/*gall img material*/
#panel { position: relative; }
#thumbs {
	overflow: hidden;
}
#thumbs img, .largeImage {
	cursor: pointer;
}

.slider-wrap {
	position: relative;
	width: 100%;
	max-width: 900px;
	overflow: hidden;
	display: block;
	margin-top: 10px;
	margin-bottom: 10px;
	margin-right: auto;
	margin-left: auto;
	padding-right: 35px;
	padding-left: 35px;
	box-sizing: border-box;
}
.slider {
	position: relative;
	margin: auto;
	height: 100px;
}
#thumbs ul {
	margin: 0;
	padding: 0;
}
#thumbs ul li {
	list-style: none;
	width: 100px;
	height: 100px;
	display: flex;
	align-items: center;
	justify-content: center;	
}
#thumbs img {
	display: block;
	max-height: 100%;
	width: auto;
	height: auto;
	max-width: 100%;
}
.slider-arrow {
	position: absolute;
	top: 30px;
	width: 33px;
	height: 33px;
	background: rgba(55, 55, 55, 0.5);
	color: rgba(255, 255, 255, 0.5);
	text-align: center;
	text-decoration: none;
	border-radius: 50%;
	font-size: 20px;
	line-height: 35px;
}
.slider-arrow:hover {
	background: rgba(180, 180, 180, 0.9);
	color: rgba(255, 255, 255, 0.9);
}
.sa-left {
	left: 0;
}
.sa-right {
	right: 0;
}


/*gallery*/
.img-wrapper-gallery .img-descr,
.img-responsive .img-wrapper-gallery .img-descr {
	background: -moz-linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(25,25,25,1) 100%); /* ff3.6+ */
	background: -webkit-gradient(linear, left top, right top, color-stop(0%, rgba(25,25,25,1)), color-stop(100%, rgba(255,255,255,0))); /* safari4+,chrome */
	background: -webkit-linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(25,25,25,1) 100%); /* safari5.1+,chrome10+ */
	background: -o-linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(25,25,25,1) 100%); /* opera 11.10+ */
	background: -ms-linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(25,25,25,1) 100%); /* ie10+ */
	background: linear-gradient(270deg, rgba(255,255,255,0) 0%, rgba(25,25,25,1) 100%); /* w3c */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#191919', endColorstr='#ffffff',GradientType=1 ); /* ie6-9 */ 
	display: block;
	color: #dbe4de;
	white-space: normal;
	position: absolute;
	left: 0px;
	bottom: 15px;
	font-size: 14px;
	line-height: 14px;
	padding-top: 5px;
	padding-right: 10px;
	padding-bottom: 5px;
	padding-left: 10px;
	width: 90%;
	box-sizing: border-box;
}
.img-responsive:hover .img-wrapper-gallery .img-descr {
	

}
/*---------------------*/
.img-wrapper {
	position: relative;
}
.img-wrapper img {
	
}
.img-wrapper .img-descr {
	background: -moz-linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(25,25,25,1) 100%); /* ff3.6+ */
    background: -webkit-gradient(linear, left top, right top, color-stop(0%, rgba(25,25,25,1)), color-stop(100%, rgba(255,255,255,0))); /* safari4+,chrome */
    background: -webkit-linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(25,25,25,1) 100%); /* safari5.1+,chrome10+ */
    background: -o-linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(25,25,25,1) 100%); /* opera 11.10+ */
    background: -ms-linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(25,25,25,1) 100%); /* ie10+ */
    background: linear-gradient(270deg, rgba(255,255,255,0) 0%, rgba(25,25,25,1) 100%); /* w3c */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#191919', endColorstr='#ffffff',GradientType=1 ); /* ie6-9 */ 
	display: block;
	color: #dbe4de;
	white-space: normal;
	position: absolute;
	left: 0px;
	bottom: 15px;
	font-size: 12px;
	line-height: 12px;
	padding-top: 5px;
	padding-right: 10px;
	padding-bottom: 5px;
	padding-left: 10px;

}
.left_img {
	height: auto;
	float: left;
	margin-right: 20px;
	display: block;
}
.right_img {
	float: right;
	display: block;
	margin-left: 20px;
}
.center_img {
	display: block;
	width: 50%;
	padding-top: 5px;
	padding-bottom: 5px;
	height: auto;
	margin-right: 25%;
	margin-left: 25%;
}
.miniature{

}
.no_align,
.photo_100 {
	display: block;
	height: auto;
	width: 100%;
	margin-bottom: 10px;
}
img.left_img,	
img.center_img,
img.right_img,
img.photo_100,
img.no_align {
	height: auto;
	max-width: 100%;
}
/*--------gallery ----------*/
/* ------------- Контейнер с адаптивными блоками------------- */	
.my_gallery a .img-wrapper .img-descr {
	background: rgba(0, 0, 0, 0.8);
	display: none;
	color: #dbe4de;
	white-space: normal;
	position: absolute;
	left: 0px;
	right: 0px;
	bottom: 15px;
	font-size: 12px;
	line-height: 12px;
	padding-top: 5px;
	padding-right: 10px;
	padding-bottom: 5px;
	padding-left: 10px;
}
.my_gallery a:hover .img-wrapper .img-descr {
	display: block;
}

/*my_gallery*/
.my_gallery {
	padding: 0!important;
	column-gap: 10px!important; /* Общее расстояние между колонками */
	font-size: 12px!important;
	-moz-column-gap: 10px!important; /* Расстояние между колонками для Firefox */
	-webkit-column-gap: 10px!important; /* Расстояние между колонками  для Safari, Chrome и iOS */
	margin-top: 0!important;
	margin-right: 0!important;
	margin-bottom: 0!important;
	margin-left: 0!important;
	position: relative;
	z-index: 1;
}
.my_gallery  p {
	display: none;
}
.my_gallery a {
	display: block;
	position: relative;
	height: auto;
	width: 100%;
	padding-bottom: 10px;
}
/* Элементы в виде плиток с содержанием */

.my_gallery a img {
	display: block!important;
	padding: 0%!important;
	width: 100%!important;
	box-sizing: border-box!important; /* Изменения алгоритма расчета ширины и высоты элемента.*/
	-moz-box-sizing: border-box!important; /* Для Firefox */
	-webkit-box-sizing: border-box!important; /* Для Safari, Chrome, iOS иAndroid */
	box-shadow: 2px 2px 4px 0 #ccc!important;
	float: none!important;
	margin-top: 0!important;
	margin-right: 0!important;
	margin-bottom: 0!important;
	margin-left: 0!important;
	clear: both!important;
	height: auto;
	position: relative;
	/*border: 0.1px solid #CCC;*/
	
}

.my_gallery-col-1 {
	-moz-column-count: 1;
	-webkit-column-count: 1;
	column-count: 1;
}
.my_gallery-col-1 .imglightbox {
	display: block;
	margin: auto;
	height: auto;
	width: 100%;
	max-width: 800px;
	float: none;
}
.my_gallery-col-2 {
	-moz-column-count: 2;
	-webkit-column-count: 2;
	column-count: 2;
}
.my_gallery-col-3 {
	-moz-column-count: 3;
	-webkit-column-count: 3;
	column-count: 3;
}
.my_gallery-col-4 {
	-moz-column-count: 4;
	-webkit-column-count: 4;
	column-count: 4;
}
.my_gallery-col-5 {
	-moz-column-count: 5;
	-webkit-column-count: 5;
	column-count: 5;
}
.my_gallery-col-6 {
	-moz-column-count: 6;
	-webkit-column-count: 6;
	column-count: 6;
}


/* Медиа-запросы для различных размеров адаптивного макета */
@media all and (max-width: 1024px) {

}
@media all and (max-width: 980px) {
a.imglightbox .img-wrapper-gallery .img-descr {
	padding: 5px;
	font-size: 11px;
	line-height: 9px;
}
.my_gallery-col-1 a {
	width: 80%!important;
}
.my_gallery-col-6 {
	-moz-column-count: 3;
	-webkit-column-count: 3;
	column-count: 3;
}
}
@media all and (max-width: 800px) {

.left_img,	
.center_img,
.right_img {
	width: 80%;
	display: block;
	height: auto;
	margin-top: auto;
	margin-right: auto;
	margin-bottom: 10px;
	margin-left: auto;
	float: none;
	padding: 0px;
	max-width: 80%;
}
.img-wrapper  {

}
.img-wrapper img {
	display: block!important;
	height: auto!important;
	width: 100%!important;
}
a.imglightbox .img-wrapper-gallery .img-descr {
	padding: 5px;
	font-size: 9px;
	line-height: 9px;
}

}

@media all and (max-width: 600px) {
.my_gallery {
	-moz-column-gap: 5px!important; /* Расстояние между колонками для Firefox */
	-webkit-column-gap: 5px!important; /* Расстояние между колонками  для Safari, Chrome и iOS */
}
.my_gallery a {
	margin-bottom: 5px;
}

.my_gallery-col-4 {
	-moz-column-count: 2;
	-webkit-column-count: 2;
	column-count: 2;
}
.my_gallery-col-5 {
	-moz-column-count: auto;
	-webkit-column-count: auto;
	column-count: auto;
	display: -webkit-flex; /* NEW */
	display: flex;
	-webkit-flex-wrap: wrap; /* NEW */
	flex-wrap: wrap;
	-moz-flex-wrap: wrap;
	-ms-flex-wrap: wrap;
	-o-flex-wrap: wrap;
	width: 100%;
	justify-content: center;
}
.my_gallery-col-5 a.imglightbox {
	flex: 1 1 calc(48% - 30px);
	max-width: 100%;
}

}
/*-------viewbox----------*/
.viewbox-container{
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.7);
	z-index: 700;
}
.viewbox-body{
	position: absolute;
	top: 50%;
	left: 50%;
	background: #fff;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	border-radius: 10px;
	-webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
	-moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
	overflow: auto;
}
.viewbox-header{
	margin: 10px;
}
.viewbox-content{
	margin: 10px;
	width: 300px;
	height: auto;

}
.viewbox-footer{
	margin: 10px;
}
.viewbox-content .viewbox-image{
	width: 100%;
	height: 100%;
}

/* buttons */
.viewbox-button-default{
	cursor: pointer;
    height: 64px;
    width: 64px;
}
.viewbox-button-default > svg{
	width: 100%;
	height: 100%;
	background: inherit;
	fill: inherit;
	pointer-events: none;
	transform: translateX(0px);
}
.viewbox-button-default{
	fill: #999;
}
.viewbox-button-default:hover{
    fill: #fff;
}

.viewbox-button-close{
	position:absolute;
	top:10px;
	right: 10px;
	z-index:9;
}
.viewbox-button-next,
.viewbox-button-prev{
	position:absolute;
	top: 50%;
	height: 128px;
    width: 128px;
	margin: -64px 0 0;
	z-index:9;
}
.viewbox-button-next{
	right: 10px;
}
.viewbox-button-prev{
	left: 10px;
}
@media (max-width: 480px) {

	.viewbox-button-close{
		top: 0;
		right: 0;
	}
	.viewbox-button-next,
	.viewbox-button-prev{
		height: 81px;
    	width: 81px;
		margin-top: -40px;
	}
	.viewbox-button-next{
		right:-15px;
	}
	.viewbox-button-prev{
		left:-15px;
	}
}

/* loader */
.viewbox-container .loader{
	widows: 100%;
	position: absolute;
	left: 50%;
	top: 50%;
	margin:-25px 0 0 -25px;
}
.viewbox-container .loader *{
	margin: 0;
	padding: 0;
}
.viewbox-container .loader .spinner{
	width: 50px;
	height: 50px;
	position: relative;
	margin: 0 auto;
}
.viewbox-container .loader .double-bounce1,
.viewbox-container .loader .double-bounce2{
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background-color: #999;
	opacity: 0.6;
	position: absolute;
	top: 0;
	left: 0;
	-webkit-animation: sk-bounce 2.0s infinite ease-in-out;
	animation: sk-bounce 2.0s infinite ease-in-out;
}
.viewbox-container .loader .double-bounce2 {
	-webkit-animation-delay: -1.0s;
	animation-delay: -1.0s;
}
@-webkit-keyframes sk-bounce{
	0%, 100% { -webkit-transform: scale(0.0) }
	50% { -webkit-transform: scale(1.0) }
}

@keyframes sk-bounce{
	0%, 100% { 
		transform: scale(0.0);
		-webkit-transform: scale(0.0);
	} 50% { 
		transform: scale(1.0);
		-webkit-transform: scale(1.0);
	}
}
