
/* 3 DOTS LOADER */

.grid {
	position: relative;
	margin: 0 auto;
}

.js .grid::after {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	pointer-events: none;
	background: #ffffff url(../img/loading.svg) no-repeat 50% 75px;
	/*background: #272526 url(../img/loading.svg) no-repeat 50% 75px;*/		
	/* orig :
	background: #252323 url(../img/loading.svg) no-repeat 50% 75px;*/
	background-size: 60px auto;
	-webkit-transition: opacity 0.3s;
	transition: opacity 0.3s;
}

.js .grid--loaded::after {
	opacity: 0;
}

.grid__item {
	width: 350px;
	padding: 10px;
}

.grid__item--current {
	opacity: 0 !important;
}

.img-wrap {
	display: block;
}

.img-wrap:focus,
.img-wrap:hover {
	outline: none;
}

.img-wrap img {
	display: block;
	max-width: 100%;
}

.preview {
	position: fixed;
	z-index: 1000;
	top: 0;
	left: 0;
/*
	top: 0;
	left: 0;
*/
	display: -webkit-flex;
	display: -ms-flex;
	display: flex;
	-ms-flex-pack: center;
	-webkit-justify-content: center;
	justify-content: center;
	-ms-flex-line-pack: center;
	-webkit-align-content: center;
	align-content: center;
	-ms-flex-align: center;
	-webkit-align-items: center;
	align-items: center;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.preview--open {
	pointer-events: auto;
}



/* CIRCLE OVERLAYGAL (generated SVG) */

.overlaygal {
	position: absolute;
	top: 0;
	left: 0;
	pointer-events: none;
}

/* gal BG colour definition - i set it to white */
.overlaygal circle {
	-webkit-transition: fill-opacity 0.3s, -webkit-transform 0s 0.3s;
	transition: fill-opacity 0.3s, transform 0s 0.3s;
	-webkit-transition-timing-function: ease-out;
	transition-timing-function: ease-out;
	-webkit-transform: scale3d(0, 0, 1);
	transform: scale3d(0, 0, 1);
	/*fill: #1f1d1d;*/
	fill: #ffffff;
	fill-opacity: 0;
}

.preview--open .overlaygal circle {
	-webkit-transition: -webkit-transform 0.4s;
	transition: transform 0.4s;
	-webkit-transform: scale3d(1, 1, 1);
	transform: scale3d(1, 1, 1);
	fill-opacity: 1;
}

.clone {
	position: fixed;
	z-index: 110;
	-webkit-transition: -webkit-transform 0.6s cubic-bezier(0.5, 1, 0.2, 1);
	transition: transform 0.6s cubic-bezier(0.5, 1, 0.2, 1);
	-webkit-backface-visibility: hidden;
}

.original {
	position: relative;
	z-index: 120;
	display: block;
	object-fit: contain;
	-webkit-transition: opacity 0.2s;
	transition: opacity 0.2s;
	-webkit-backface-visibility: hidden;
}

.preview--open .animate {
	/* open */
	-webkit-transition: -webkit-transform 0.6s, opacity 0.2s;
	transition: transform 0.6s, opacity 0.2s;
}

.animate {
	/* close */
	-webkit-transition: -webkit-transform 0.3s, opacity 0.2s;
	transition: transform 0.3s, opacity 0.2s;
}

/*
.description {
	color: #fff;
}
*/

.description {
/* 	color: #f9e6e7; */
/*	color: #c6b4b5;
	font-family: "Lato" sans-serif; */
/* 	font-family: "Lato" sans-serif; */	
/*	font-weight: 400;
/	font-size: 0.7rem;*/
/*
    text-align: left;
	letter-spacing: 0.1rem;
*/
/* gives colour to BG of text */	



/* background: rgb(255, 255, 255);  */
/* background: rgba(255, 255, 255, .9);  */


}

.description h3 {
	position: absolute;
	bottom: 0;
	left: 0;
	margin: 0;
/*	padding-bottom: 65px; */
	padding-bottom: 3%;
	padding-left: 3%;	
	width: 100%;
	color: #c6b4b5;
/*	color: #CC7093; */

/*background: rgb(255, 255, 255); */
/*background: rgba(255, 255, 255, .9);*/ 

	text-align: left;
	text-transform: normal;
	letter-spacing: 0.4px;
	font-family: 'Merriweather', sans-serif;
	font-weight: 400; 

	font-size: .6em;
	line-height: 1.28em;

/*	font-size: .7em;
	line-height: 1.24em;*/	
	-webkit-transition: -webkit-transform 0.2s, color 0.2s;
	transition: transform 0.2s, color 0.2s;
}


.js .description--grid {
	display: none;
}

.description--preview {
	position: fixed;
	z-index: 140;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 2em 1em;
	text-align: left;
/*foto caption text align 
	text-align: center;
*/	
	opacity: 0;
	/* gradient bottom margin of big image, so caption is better readable */
	/*background: linear-gradient(180deg, transparent, #1f1d1d);*/
	/*background: linear-gradient(180deg, transparent, #ffffff);*/
	-webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
	transition: opacity 0.3s, transform 0.3s;
	-webkit-transform: translate3d(0, 100%, 0);
	transform: translate3d(0, 100%, 0);
}

.preview--open .description--preview {
	opacity: 1;
	/*opacity: 0.7;*/
	-webkit-transition-delay: 0.2s;
	transition-delay: 0.2s;
	-webkit-transform: translate3d(0, 0, 0);
	transform: translate3d(0, 0, 0);
}



/* CLOSE BUTTON INSIDE GALLERY - orig via fontawesome fa-times / i replaced it w my own cross: pinkie  */

.action {
	/* cross size - orig h/w 80x80 */
	width: 40px;
	height: 40px;
	position: absolute;
	right: 20px;
	top: 20px;
	overflow: hidden;
	border: none;
	background: url(../img/crossgal1.png) no-repeat center center;
	text-indent: 200%;
	color: transparent;
	outline: none;
	z-index: 100;
}

/*.action {
	font-size: 1.5em;
	margin: 0;
	padding: 0;
	cursor: pointer;
	vertical-align: top;
	color: #000;
	border: none;
	background: none;
}*/

.action:hover,
.action:focus {
	color: #f0f5f3;
	outline: none;
	transition-delay: 0s;
	transition-duration: 0.6s;
	transition-property: all;
	transition-timing-function: ease;
}

.action--close {
	position: fixed;
	z-index: 150;
	top: 20px;
	right: 20px;
	/*top: 0;
	right: 0;*/
	padding: 1em;
	opacity: 0;
	-webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
	transition: opacity 0.3s, transform 0.3s;
	-webkit-transform: scale3d(0.6, 0.6, 1);
	transform: scale3d(0.6, 0.6, 1);
}

.preview--image-loaded .action--close {
	opacity: 1;
	-webkit-transform: scale3d(1, 1, 1);
	transform: scale3d(1, 1, 1);
}

.text-hidden {
	position: absolute;
	display: block;
	overflow: hidden;
	width: 0;
	height: 0;
	color: transparent;
}


/* @media screen and (max-width: 410px)*/  
@media only screen and (max-width: 390px){
	.grid__item {
	width: 360px;
		padding: 6px;
	}
	
}

@media only screen and (max-width: 320px){
	.grid__item {
	width: 310px;
		padding: 5px;
	}
}

@media screen and (max-width: 40em) {
	.action {
		width: 30px;
		height: 30px;
		position: absolute;
		right: 12px;
		top: 12px;
		overflow: hidden;
		border: none;
		background: url(../img/crossgal1.png) no-repeat center center;
		text-indent: 200%;
		color: transparent;
		outline: none;
		z-index: 200;
	}
}