.gallery-swipe-viewport {
	overflow: hidden;
	position: relative;
	touch-action: pan-y pinch-zoom;
}

.gallery-swipe-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	overflow: hidden;
	z-index: 2;
	visibility: hidden;
	pointer-events: none;
}

.gallery-swipe-viewport.is-swiping .gallery-swipe-overlay {
	visibility: visible;
	pointer-events: auto;
}

.gallery-swipe-viewport.is-swiping {
	touch-action: none;
	overscroll-behavior: contain;
}

.gallery-swipe-track {
	display: flex;
	flex-direction: row;
	height: 100%;
	will-change: transform;
}

.gallery-swipe-cell {
	flex: 0 0 33.333%;
	width: 33.333%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}

.gallery-swipe-cell img,
.gallery-swipe-clone {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	display: block;
	pointer-events: none;
	user-select: none;
	-webkit-user-drag: none;
}

.gallery-swipe-host-hidden {
	visibility: hidden !important;
}

figure.picbox .picbox-main.gallery-swipe-viewport {
	display: inline-block;
	max-width: 100%;
}

.imgboxinlineimgwrap.gallery-swipe-viewport .gallery-swipe-cell img {
	width: 100%;
	height: auto;
	max-height: 100%;
	border-radius: var(--ubs-image-radius, 0) !important;
}
