/* container wrapper */
.image-layout
{
	position: relative;
	display: block;
	overflow: visible;
}

/* images */
.image-layout .images
{
	position: relative;
	display: block;
	overflow: visible;
	margin-right: -1em;
}

/* image centered */
.image-layout.above-center .images,
.image-layout.below-center .images
{
	text-align: center;
}

/* images left */
/*
.image-layout.above-left .images,
.image-layout.below-left .images,
*/
.image-layout.intext-left .images,
.image-layout.intext-left-nowrap .images
{
	float: left;
}
.image-layout.intext-left .images,
.image-layout.intext-left-nowrap .images
{
	padding-right: 1em;	
}

/* images right */
/*
.image-layout.above-right .images,
.image-layout.below-right .images,
*/
.image-layout.intext-right .images,
.image-layout.intext-right-nowrap .images
{
	float: right;
}
.image-layout.intext-right .images,
.image-layout.intext-right-nowrap .images
{
	padding-left: 1em;	
}

/* limit column size for intext */
.image-layout.intext-left .images,
.image-layout.intext-left-nowrap .images,
.image-layout.intext-right .images,
.image-layout.intext-right-nowrap .images {
	max-width: 50% !important;
}

.image-layout .image
{
	position: relative;
	display: inline-block;
	overflow: visible;
	padding: 0 1em 1em 0;
	box-sizing: border-box;
	vertical-align: top;
	max-width: 100%;
}

.image-layout .cols-2 .image { width: 50%; }
.image-layout .cols-3 .image { width: 33.3334%; }
.image-layout .cols-4 .image { width: 25%; }
.image-layout .cols-5 .image { width: 20%; }
.image-layout .cols-6 .image { width: 16.6667%; }
.image-layout .cols-7 .image { width: 14.2857%; }
.image-layout .cols-8 .image { width: 12.5%; }
:not(.navigation-block) > .image-layout .image:first-child:last-child { width: auto; }

.image-layout .image a,
.image-layout .image img
{
	position: relative;
	max-width: 100%;
	height: auto;
	float: left;
}

/* image wrapper */
.image-layout .image .image-wrapper
{
	float: left;
	max-width: 100%;
}
.image-layout .image .caption-wrapper
{
	max-width: 100%;
}


/* caption */
.images .image .caption
{
	position: relative;
	display: block;
	clear: both;
	background: #EEEEEE;
	/*color: #FFFFFF;*/
	box-sizing: border-box;
	padding: 0.4rem 0.8rem;
	font-size: 0.8rem;
	text-align: left;
	overflow-wrap: break-word;
	word-wrap: break-word;
	hyphens: auto;
}
.images .image .caption a
{
	float: none;
}


/* go gallery */
.go-gallery
{
	position: fixed;
	display: block;
	overflow: visible;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.75);
	opacity: 0;
	visibility: hidden;
	transition: opacity .5s ease, visibility .5s ease;
	/* enable gpu acceleration */
   -webkit-transform: translate3d(0, 0, 0);
   -moz-transform: translate3d(0, 0, 0);
   -ms-transform: translate3d(0, 0, 0);
   transform: translate3d(0, 0, 0);
   z-index: 11;
}
.go-gallery.open
{
	visibility: visible;
	opacity: 1;
}


/* go gallery stage */
.go-gallery .stage
{
	position: absolute;
	display: block;
	overflow: visible;
	width: 0;
	height: 0;
	left: 0;
	top: 0;
	border: 0;
	margin: 0;
	padding: 0;
	opacity: 0;
	background-color: rgba(0, 0, 0, 0.5);
	box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.5);
	transition: opacity 0.3s ease, left 0s ease 0.3s, top 0s ease 0.3s, width 0.3s ease, height 0.3s ease, margin 0.3s ease;
}
.go-gallery.open .stage
{
	opacity: 1;
	transition: opacity 0.25s ease, left 0.5s ease, top 0.5s ease, width 0.5s ease, height 0.5s ease, margin 0.5s ease;
}
.go-gallery .stage.no-transition
{
	transition: none;
}

.go-gallery .stage .image
{
	position: relative;
	display: block;
	float: left;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: #FFFFFF;
}


/* loading */
.go-gallery .loading
{
	position: absolute;
	display: block;
	border-radius: 10px;
	left: 50%;
	top: 50%;
	width: 60px;
	height: 60px;
	margin: -30px 0 0 -30px;
	opacity: 1;
	transition: opacity 0.1s ease;
}

.go-gallery .loading:before,
.go-gallery .loading:after
{
	content: '';
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background-color: #FFFFFF;
	opacity: 0.6;
	position: absolute;
	top: 0;
	left: 0;
	-webkit-animation: gallery-loading-bounce 2.0s infinite ease-in-out;
	animation: gallery-loading-bounce 2.0s infinite ease-in-out;
}

.go-gallery .loading:after
{
	-webkit-animation-delay: -1.0s;
	animation-delay: -1.0s;
	background-color: #000000;
}

@-webkit-keyframes gallery-loading-bounce
{
	0%,
	100%
	{
		-webkit-transform: scale(0.0);
	}
	50%
	{
		-webkit-transform: scale(1.0);
	}
}

@keyframes gallery-loading-bounce
{
	0%,
	100%
	{
		transform: scale(0.0);
		-webkit-transform: scale(0.0);
	}
	50% { 
		transform: scale(1.0);
		-webkit-transform: scale(1.0);
	}
}


/* buttons */
.go-gallery .previous-button,
.go-gallery .next-button,
.go-gallery .close-button
{
	position: absolute;
	display: block;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(160, 0, 0, 0.75);
	color: #FFFFFF;
	transition: background 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
	opacity: 0.75;
	cursor: pointer;
}
.go-gallery .previous-button:hover,
.go-gallery .next-button:hover,
.go-gallery .close-button:hover
{
	opacity: 1;
	transform: scale(1.25);
	background: #AA0101;	
}

.go-gallery .previous-button
{
	top: 50%;
	margin-top: -16px;
	left: 10px;
}
.go-gallery .previous-button:before,
.go-gallery .previous-button:after
{
	content: '';
	position: absolute;
	display: block;
	width: 35%;
	height: 10%;
	top: 50%;
	left: 0%;
	margin-top: -5%;
	margin-left: 28%;
	border-radius: 1px;
	background: #FFFFFF;
}
.go-gallery .previous-button:before
{
	transform: rotate(45deg);
	top: 60%;
}
.go-gallery .previous-button:after
{
	transform: rotate(-45deg);
	top: 40%;
}

.go-gallery .next-button
{
	top: 50%;
	margin-top: -16px;
	right: 10px;
}
.go-gallery .next-button:before,
.go-gallery .next-button:after
{
	content: '';
	position: absolute;
	display: block;
	width: 35%;
	height: 10%;
	top: 50%;
	left: 0%;
	margin-top: -5%;
	margin-left: 38%;
	border-radius: 1px;
	background: #FFFFFF;
}
.go-gallery .next-button:before
{
	transform: rotate(-45deg);
	top: 60%;
}
.go-gallery .next-button:after
{
	transform: rotate(45deg);
	top: 40%;
}

.go-gallery .close-button
{
	top: 10px;
	right: 10px;
}
.go-gallery .close-button:before,
.go-gallery .close-button:after
{
	content: '';
	position: absolute;
	display: block;
	width: 50%;
	height: 10%;
	top: 50%;
	left: 0%;
	margin-top: -5%;
	margin-left: 25%;
	border-radius: 1px;
	background: #FFFFFF;
}
.go-gallery .close-button:before
{
	transform: rotate(45deg);
}
.go-gallery .close-button:after
{
	transform: rotate(-45deg);
}

.go-gallery .previous-wrapper,
.go-gallery .next-wrapper
{
	position: absolute;
	display: block;
	width: 33%;
	height: 100%;
	top: 0;
	opacity: 0;
	color: #FFFFFF;
	transition: opacity 0.3s ease;
	cursor: pointer;
}
.go-gallery .previous-wrapper
{
	left: 0;
}
.go-gallery .next-wrapper
{
	right: 0;
}
.go-gallery .previous-wrapper:hover,
.go-gallery .next-wrapper:hover
{
	opacity: 1;
}