.gallery { position: relative; padding: 60px 0;}

.gallery__toggle {
	position: absolute;
	top: 0;
	right: 0;
	-webkit-appearance: none;
}

.gallery__image,
.album-gal__cover {
	position: relative;
	display: block;
	margin: 0;
	padding: 0;
	text-decoration: none;
	border: none;
	border-radius: 10px;
	overflow: hidden;
}

.gallery__images .container-fluid {
	padding: 0;
}

.gallery__image:before,
.album-gal__cover:before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100%;
	height: 100%;
	background: url( '../img/icon_zoom.svg' ) center center no-repeat rgba( 0, 0, 0, .75 );
	background-size: 50px;
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s, visibility .3s;
	-webkit-transform: translate( -50%, -50% );
	        transform: translate( -50%, -50% );
}

.gallery__image:hover:before,
.album-gal__cover:hover:before {
	opacity: 1;
	visibility: visible;
}

.album-gal__cover { display: block; }
.album-gal__details--title { float: left; }
.album-gal__details--count { float: right; }

.gallery__image-container {
	margin-bottom: 30px;
}


@media ( min-width: 601px ) and ( max-width: 767px ) {
	.gallery__image-container:nth-of-type( 2n + 3 ) { clear: both; }
	.gallery--collapse .gallery__image-container:nth-of-type( n + 3 ) { display: none; }
}

@media ( min-width: 768px ) and ( max-width: 1023px ) {
	.gallery__image-container:nth-of-type( 3n + 4 ) { clear: both; }
	.gallery--collapse .gallery__image-container:nth-of-type( n + 4 ) { display: none; }
}

@media ( min-width: 1024px ) {
	.gallery__image-container:nth-of-type( 4n + 5 ) { clear: both; }
	.gallery--collapse .gallery__image-container:nth-of-type( n + 5 ) { display: none; }
}