.wp-block-columns:has(.ngg-galleryoverview) {
	flex-direction: column-reverse;
	align-items: center;
	gap: 2em;
	padding-bottom: 2em;
}

.wp-block-columns:has(.ngg-galleryoverview) > .wp-block-column {
	flex: 0 0 auto !important;
	width: 100%;
	margin: 0 !important;
}

.wp-block-columns:has(.ngg-galleryoverview) > .wp-block-column:not(:has(.ngg-galleryoverview)) {
	max-width: 539px;
	margin: 0 auto !important;
}

.rds-carousel {
	position: relative;
	max-width: calc(4 * 244px + 2 * 52px);
	margin: 0 auto;
	padding: 0 52px;
}

.rds-carousel .ngg-galleryoverview {
	display: flex !important;
	margin: 0;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.rds-carousel .ngg-galleryoverview::-webkit-scrollbar {
	display: none;
}

.rds-carousel .ngg-galleryoverview > :not(.ngg-gallery-thumbnail-box) {
	display: none;
}

.rds-carousel .ngg-gallery-thumbnail-box {
	flex: 0 0 244px;
	width: 244px;
	scroll-snap-align: start;
}

.rds-carousel .ngg-gallery-thumbnail img {
	display: block;
}

.rds-carousel__button {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: var(--ast-global-color-0, #4a6a0a);
	color: #fff;
	cursor: pointer;
	transition: opacity 0.2s ease-out;
}

.rds-carousel__button:hover,
.rds-carousel__button:focus-visible {
	background: var(--ast-global-color-1, #3a5208);
	color: #fff;
}

.rds-carousel__button:focus-visible {
	outline: 2px solid var(--ast-global-color-0, #4a6a0a);
	outline-offset: 2px;
}

.rds-carousel__button[disabled] {
	opacity: 0;
	pointer-events: none;
}

.rds-carousel__button--prev {
	left: 0;
}

.rds-carousel__button--next {
	right: 0;
}

.rds-carousel__button svg {
	width: 20px;
	height: 20px;
}

@media (max-width: 767px) {
	.rds-carousel {
		padding: 0;
	}

	.rds-carousel__button {
		display: none;
	}
}
