.gallery-slider-wrap {
	position: relative;
}

.gallery-slider {
	text-align: center;
}

.gallery-slider .moduletitle {
	text-align: center;
	margin-bottom: 30px;
}

.gallery-slider .modulelinks {
	margin: 10px auto 0;
}

.gallery-slider .gallery-slider__items {
	list-style: none outside none;
	margin: 0;
	padding-left: 0;
}

.gallery-slider .gallery-slider__items:not(.slick-slider) .gallery-slider__item:nth-child(n+4) {
	display: none;
}

.gallery-slider .gallery-slider__item {
	flex: 1 1 auto;
	position: relative;
}

.gallery-slider .gallery-slider__item  .flexi-item-edit {
	position: absolute;
	top: 0;
	left: 0;
}

.gallery-slider .gallery-slider__figure {
	position: relative;
	padding-top: 100%;
	transition: all 300ms ease;
}

.gallery-slider .gallery-slider__image {
	height: 100% !important;
	left: 0;
	object-fit: cover;
	position: absolute;
	top: 0;
	width: 100%;
}

.gallery-slider-module__control:hover,
.gallery-slider-module__control:focus,
.gallery-slider-module__control:active {
	color: var(--brand-primary);
	transition: all 300ms ease;
}

@media (max-width: 1200px) {
	.bottom-pane .gallery-slider:last-child {
		margin-bottom: -40px;
	}
}

@media (min-width: 1200px) {
	.bottom-pane .gallery-slider {
		margin-left: 30px;
		margin-right: 30px;
	}

	.bottom-pane .gallery-slider:last-child {
		margin-bottom: -30px;
	}
}

@media (min-width: 1600px) {
	.bottom-pane .gallery-slider:last-child {
		margin-bottom: -60px;
	}
}

/* 2 images */
.gallery-slider__items--2 {
	container-name: galleryslidertwo;
	container-type: inline-size;
}

.gallery-slider__items--2 .gallery-slider__figure {
	padding-top: 60%;
}

@container galleryslidertwo (min-width: 992px) {
	.gallery-slider__items--2 .gallery-slider__item {
		padding: 0 25px;
	}

	.gallery-slider__items--2 .gallery-slider__item  .flexi-item-edit {
		left: 25px;
	}
}

/* 3 images */
.gallery-slider__items--3 {
	container-name: gallerysliderthree;
	container-type: inline-size;

	.bottom-pane & {
		margin-left: 0;
		margin-right: 0;
	}
}

@container gallerysliderthree (min-width: 992px) {
	.gallery-slider__items--3 .moduletitle {
		margin-bottom: 60px;
	}
}

@container gallerysliderthree (min-width: 1200px) {
	.gallery-slider__items--3 .moduletitle {
		margin-bottom: 60px;
	}

	.gallery-slider__items--3 .slick-track {
		display: flex;
		align-items: center;
		gap: 30px;
		padding-bottom: 50px;
		padding-top: 50px;
	}

	.gallery-slider__items--3 .gallery-slider__item.slick-center .gallery-slider__figure {
		padding-top: calc(100% + 100px);
		margin-top: -50px;
		margin-bottom: -50px;
		transition: all 300ms ease;
	}

	.gallery-slider__items--3 .gallery-slider-module__controls {
		position: absolute;
		bottom: 0;
		width: calc(33.333cqw + 50px);
		left: 50%;
		display: grid;
		grid-template-columns: 25px 1fr 25px;
		grid-template-areas: "left center right";
		transform: translateX(-50%);
	}

	.gallery-slider__items--3 .gallery-slider-module__control {
		background: transparent;
		padding: 10px;
		border: 0 none;
		transition: all 300ms ease;
		grid-area: left;
		padding: 0;
		font-size: 24px;
		text-align: right;
	}

	.gallery-slider__items--3 .gallery-slider-module__control--next {
		grid-area: right;
		text-align: left;
	}
}