
.pgc-sgb-cb {
	position: relative;
	min-height: 240px;
}

.pgc-sgb-cb img {
	pointer-events: none;
}

.sgb-preloader {
	position: absolute;
	width: 38px;
	height: 38px;
	left: 50%;
	top: 50%;
	-webkit-transform: translateX(-50%) translateY(-50%);
	transform: translateX(-50%) translateY(-50%);
}

.sgb-preloader .sgb-square {
	width: 15px;
	height: 15px;
	margin: 2px;
	float: left;
	opacity: 0;
	background: #d3d3d3;
	animation: sgb-focusfade 2.8s infinite;
}

.sgb-preloader .sgb-square:nth-child(1) {
	animation-delay: .7s;
}

.sgb-preloader .sgb-square:nth-child(2) {
	animation-delay: 1.4s;
}

.sgb-preloader .sgb-square:nth-child(3) {
	animation-delay: 2.8s;
}

.sgb-preloader .sgb-square:nth-child(4) {
	animation-delay: 2.1s;
}

@keyframes sgb-focusfade {
	0% {
		opacity: 0;
	}
	
	30% {
		opacity: 0;
	}
	
	60% {
		opacity: 1;
	}
	
	75% {
		opacity: 1;
	}
}

.no-js .sgb-preloader {
	display: none;
}

.simply-gallery-amp, simpLy-gallery-freedom-block {
	position: relative;
}

.simply-gallery-amp *, .simpLy-gallery-freedom-block * {
	box-sizing: border-box;
}

.simply-gallery-amp .sgb-gallery, .simpLy-gallery-freedom-block .sgb-gallery {
	position: relative;
}

.simply-gallery-amp .sgb-gallery .sgb-item, .simpLy-gallery-freedom-block .sgb-gallery .sgb-item {
	max-width: 250px;
	margin: 1em auto;
}

.sgb-gallery .sgb-item figure {
	margin: 0;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.sgb-gallery .sgb-item-caption {
	background: #eaeaea;
	color: #000;
	font-size: .8em;
	padding: .5em .5em 1em;
	margin: 0;
	text-align: center;
}

.sgb-gallery .sgb-item img, .sgb-gallery .sgb-item video {
	height: 100%;
	width: 100%;
	flex: 1;
	object-fit: cover;
	display: block;
}

.sgb-gallery .sgb-item audio, .sgb-gallery .sgb-item video {
	outline: 0;
}

.sgb-gallery .sgb-item audio {
	width: 100%;
}

.sgb-gallery .sgb-item a {
	height: 100%;
	flex: 1;
	object-fit: cover;
}
