.wp-block-gallery.is-slideshow {
	display:block;
	position:relative;
	display: flex;
	flex-direction: column;
}

.wp-block-gallery.is-slideshow .blocks-gallery-grid {
	position:relative;
	display: flex;
	white-space:nowrap;
	flex-wrap: nowrap;
	align-items: center;
	width:100%;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	overflow-x:auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.wp-block-gallery.is-slideshow .blocks-gallery-grid::-webkit-scrollbar {
	display: none;
}

.wp-block-gallery.is-slideshow .wp-block-image {
	position:relative;
	display:inline-block;
	min-width:100%;
	height:0;
	padding-bottom:65%;
	margin:0;
	scroll-snap-align: start;
}

.wp-block-gallery.is-slideshow .wp-block-image img {
	position:absolute !important;
	top:0 !important;
	left:0 !important;
	width:100% !important;
	height:100% !important;
	object-fit: contain !important;
}

.wp-block-gallery.is-slideshow .arrow_prev,
.wp-block-gallery.is-slideshow .arrow_next {
	position:absolute;
	top:50%;
	left:1em;
	transform:translateY(-50%);
	opacity:.4;
	transition:opacity .3s ease-in-out;
	cursor:pointer;
}
.wp-block-gallery.is-slideshow .arrow_prev.hidden,
.wp-block-gallery.is-slideshow .arrow_next.hidden {
	opacity:0 !important;
	pointer-events: none;
}
.wp-block-gallery.is-slideshow .arrow_prev:hover,
.wp-block-gallery.is-slideshow .arrow_next:hover {
	opacity:1;
}
.wp-block-gallery.is-slideshow .arrow_next {
	left:auto;
	right:1em;
}

.wp-block-gallery.is-slideshow .arrow_prev:after,
.wp-block-gallery.is-slideshow .arrow_next:after {
	content:'';
	display:block;
	width:1em;
	height:1em;
	border:.3em solid #000;
	border-bottom:0;
	border-right:0;
	transform: rotate(-45deg);
}
.wp-block-gallery.is-slideshow .arrow_next:after {
	transform: rotate(135deg);
}

.wp-block-gallery.is-slideshow .paging {
	text-align:center;
	margin:5px 0;
}
.wp-block-gallery.is-slideshow .paging span {
    display: inline-block;
    width: .5em;
    height: .5em;
    border-radius: 50%;
    margin: 3px;
    background: #ccc;
}
.wp-block-gallery.is-slideshow .paging span.current {
	background:#000;
}

