.e-gallery-container {
	position: relative;
	display: flex;
	flex-wrap: wrap;
}

.e-gallery-container:not(.e-gallery-grid) {
	transition: padding-bottom var(--animation-duration);
}

.e-gallery-item {
	position: relative;
	flex-grow: 0;
	flex-shrink: 0;
	transition-property: all;
	transition-duration: var(--animation-duration);
}

.e-gallery-image {
	background-position: center center;
	background-size: cover;
	width: 100%;
	transform-origin: center top;
	transition: var(--animation-duration);
}

.e-gallery-grid:not(.e-gallery--animated) {
	display: grid;
	grid-gap: var(--vgap) var(--hgap);
	grid-template-columns: repeat(var(--columns), 1fr);
}

.e-gallery-grid .e-gallery-image {
	padding-bottom: var(--aspect-ratio);
}