﻿@media screen and (min-width: 980px) {
	
	.gallery .item {
		display: inline-block;
		vertical-align: top;
		padding: 6px;
	}
	
	.gallery.gallery_1x4 .item {
		width: 25%;
	}
	
	.gallery.gallery_1x3 .item {
		width: 33.3333333333333333%;
	}
	
}


@media screen and (max-width: 979px) {
	
	.gallery .item {
		width: 48%;
		display: inline-block;
		vertical-align: top;
		margin: 1%;
	}
	
}


@media screen and (max-width: 480px) {
	
	.gallery .item {
		width: 100%;
		max-width: 471px;
		display: block;
		margin: 5px auto;
	}
	
}


/* ГАЛЕРЕЯ */

.gallery {
	background-color: #fff;
	max-width: 1920px;
	margin: 0 auto;
}

.gallery .outer {
    margin-top: 40px;
}

.gallery .outer .item .img-wrap {
    position: relative;
	width: 100%;
}

.gallery .outer .item .img-wrap img {
	z-index: 0;
	width: 100%;
	height: auto;
}

.gallery .outer .item .img-wrap:before {
    z-index: 1;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.05);
    width: 100%;
    height: 100%;
    display: block;
    -webkit-transition-duration: 2s;
    -moz-transition-duration: 2s;
    -o-transition-duration: 2s;
    transition-duration: 2s;
    transition-timing-function: ease;
    -webkit-transition-property: background;
    -moz-transition-property: background;
    -o-transition-property: background;
    transition-property: background;
    -moz-pointer-events: none;
    -webkit-pointer-events: none;
    -ms-pointer-events: none;
    pointer-events: none;
}

.gallery .outer .item .img-wrap:hover:before {
    background-color: rgba(0, 0, 0, 0.2);
}

.gallery .outer .item .img-wrap .caption {
    z-index: 3;
    position: absolute;
    left: 0;
	bottom: 0;
    background: rgba(0,0,0,0.3);
    width: 100%;
	opacity: 0;
	color: rgba(255, 255, 255, 0.73);
	font-size: 13px;
    -webkit-transition: opacity .9s ease;
    -moz-transition: opacity .9s ease;
    -ms-transition: opacity .9s ease;
    -o-transition: opacity .9s ease;
    transition: opacity .9s ease;
    padding: 10px;
}

.gallery .outer .item .img-wrap:hover .caption {
	opacity: 1;
	color: #fff;
}

.gallery .more {
    background-color: #f8f8f8;
    max-width: 200px;
	display: block;
    color: #333;
    font-size: 14px;
	font-weight: 500;
    text-align: center;
    border-radius: 4px;
    padding: 14px 8px 14px 8px;
    margin-top: 45px;
	margin-left: auto;
    margin-right: auto;
}