.GALLERY .container::before,
.GALLERY .container::after {
	content: "";
	display: block;
	overflow: hidden;
}

.GALLERY:not([data-count="1"]) .container {
	max-width: var(--col-8); margin: 32rem auto 128rem;
}

.GALLERY .b-img {
	border-radius: 16rem;
	overflow: hidden;
	transition: opacity 0.25s, transform 0.25s;
}

.GALLERY .b-columns.alt-flickity .b-img {opacity: 0.5; transform: scale(0.85);}
.GALLERY .b-columns.alt-flickity .b-column.is-selected .b-img {opacity: 1; transform: scale(1.15);}

.GALLERY .container .b-column:nth-child(n+2) {display: none;}
.GALLERY .container.flickity-enabled .b-column {display: block;}

.GALLERY .flickity-viewport {overflow: visible;}
.GALLERY .flickity-page-dots {display: none;}

.GALLERY .flickity-prev-next-button.previous {top: 100%; left: 50%; transform: translate(-72rem, 64rem);}
.GALLERY .flickity-prev-next-button.next {top: 100%; right: 50%; transform: translate(72rem, 64rem);}

/* wp admin preview fix */
.acf-block-preview .GALLERY .b-column .b-img {opacity: 1; transform: scale(1);}
.acf-block-preview .GALLERY .container {margin: 0 auto;}

@media screen and (max-width: 960px) {
	.GALLERY .container {margin: 0 auto !important;}
	.GALLERY .b-img {transform: scale(1) !important; opacity: 1 !important;}
	.GALLERY .flickity-prev-next-button {display: none;}
}



/* animation for single image */

@media screen and (min-width: 961px) {
	.GALLERY[data-count="1"] .container[data-animate] {
		opacity: 0;
		transform: translate(-50rem, 0);
		transition: opacity 0.5s, transform 0.5s;
		transition-delay: 0.5s;
	}

	.GALLERY[data-count="1"] .container[data-animate="true"]{
		opacity: 1;
		transform: translate(0, 0);
	}
}
