
/**
 * CONTENTS
 *
 * 1. Styling Reset 
 *
 * 2. Gallery list 
 *
 * 3. Gallery view 
 *
 */




/*------------------------------------*\
	#1. Styling Reset 
\*------------------------------------*/

.gallery-list,
.gallery,
.gallery__image {
  display: block;
	padding: 0;
	margin: 0; 
	list-style: none;
	position: relative;
}




/*------------------------------------*\
	#2. Gallery List  
\*------------------------------------*/

.gallery-list {
	overflow: auto;
	padding-bottom: 30px;
}

.gallery {
	position: relative;
	float: left;
	padding-bottom: 75px;
}

.gallery__image {
	background: #eee;
	height: auto;
	width: 100%;
	margin-bottom: 10px;
	color: #aaa;
	text-align: center;
	vertical-align: middle;
	font-size: 13px;
	border: 10px solid #fff;
	box-shadow: 0 2px 4px #aaa;	
}

.gallery__intro {
	font-style: italic;
	font-size: 21px;
	line-height: 1.2em;
	text-align: center;
	min-height: 100px;
	color: #000;
	margin: 0 10px 0 10px; 
}

.gallery__options {
	position: absolute; 
	border-top: 1px solid black;
	font-size: 12px; 
	text-transform: uppercase;
}
	
.gallery__options .social--share {
	margin-right: 0;
}

.gallery__options a {
	color: #000;
}

	.gallery__options a:hover {

	}	
	
	/* Styling up to 720px wide */
	@media all and (max-width: 620px) { 	
		.gallery-list {
			padding: 10px 5px 20px 5px;
		}

		.gallery {
			width: 100%;
			max-width:400px;
      margin:0 auto;
			display:block;
			float:none;
		}
		
		.gallery__options {
			height: 40px; 
			bottom: 10px;
			left: 20px;
			width: calc(100% - 40px);
			padding-top: 10px;
		}
	}
	
	/* Styling between 720 and 950 px wide */
	@media all and (min-width: 621px) and (max-width: 860px) { 
		.gallery-list {
			padding: 10px 5px 20px 5px;
		}

		.gallery {
			width: calc((100% - 30px) / 2);
			margin-right: 20px;
			margin-bottom: 20px;
		}
		
		.gallery:nth-child(2n+2){
			margin-right: 0;
		}
		
		.gallery:nth-child(2n+3){
			clear: left;
		}
		
		.gallery__options {
			height: 40px; 
			bottom: 10px;
			left: 20px;
			width: calc(100% - 40px);
			padding-top: 10px;
		}
	}
	
	/* Styling over 1420 px wide */
	@media all and (min-width: 861px) and (max-width: 1280px) { 
		.gallery-list {
			padding: 10px 5px 20px 5px;
		}

		.gallery {
			width: calc((100% - 50px) / 3);
			margin-right: 20px;
			margin-bottom: 20px;
		}
		
		.gallery:nth-child(3n+3){
			margin-right: 0;
		}
		
		.gallery:nth-child(3n+4){
			clear: left;
		}
		
		.gallery__options {
			height: 40px; 
			bottom: 10px;
			left: 20px;
			width: calc(100% - 40px);
			padding-top: 10px;
		}
	}

	/* Styling over 1420 px wide */
	@media all and (min-width: 1281px) { 

		.gallery-list {
			padding: 10px 5px 20px 5px;
		}

		.gallery {
			width: calc((100% - 70px) / 4);
			margin-right: 20px;
			margin-bottom: 20px;
		}
		
		.gallery:nth-child(4n+4){
			margin-right: 0;
		}
		
		.gallery:nth-child(4n+5){
			clear: left;
		}
		
		.gallery__options {
			height: 40px; 
			bottom: 10px;
			left: 20px;
			width: calc(100% - 40px);
			padding-top: 10px;
		}
		
	

}





/*------------------------------------*\
	#3. Gallery view  
\*------------------------------------*/


.gallery-view,
.gallery-view__list,
.gallery-view__image,
.gallery-view__image__link,
.gallery-view__picture {
	display: block;
	padding: 0;
	margin: 0;
	list-style: none;
}









