.wp-block-tpx-image-gallery-with-thumbnails.tpx-image-gallery {
	--tpx-gallery-styles-ready: 1;
	--tpx-gallery-gap: 6px;
	--tpx-gallery-slide-width: min(1250px, calc(100% - clamp(72px, 8vw, 160px)));
	box-sizing: border-box;
	color: var(--wp--preset--color--white, #fff);
	overflow: hidden;
	position: relative;
	width: 100%;
}

.wp-block-tpx-image-gallery-with-thumbnails.tpx-image-gallery[data-show-siblings="false"] {
	--tpx-gallery-gap: 0px;
	--tpx-gallery-slide-width: 100%;
}

.tpx-image-gallery .tpx-image-gallery__viewport {
	cursor: grab;
	overflow: hidden;
	position: relative;
	touch-action: pan-y;
	width: 100%;
}

.tpx-image-gallery.is-dragging .tpx-image-gallery__viewport {
	cursor: grabbing;
}

.tpx-image-gallery .tpx-image-gallery__track {
	min-height: var(--tpx-gallery-track-height, var(--tpx-gallery-slide-height, 680px));
	position: relative;
	width: 100%;
}

.tpx-image-gallery .tpx-image-gallery-slide {
	box-sizing: border-box;
	color: var(--wp--preset--color--white, #fff);
	left: calc((100% - var(--tpx-gallery-slide-width)) / 2);
	margin: 0;
	min-height: var(--tpx-gallery-slide-height, 680px);
	overflow: hidden;
	pointer-events: none;
	position: absolute;
	top: 0;
	transform: translate3d(var(--tpx-gallery-slide-x, 0), 0, 0);
	transition: transform var(--tpx-gallery-transition-duration, 760ms) cubic-bezier(0.625, 0.05, 0, 1);
	width: var(--tpx-gallery-slide-width);
	will-change: transform;
}

.tpx-image-gallery .tpx-image-gallery-slide.is-active:not([data-gallery-copy]) {
	pointer-events: auto;
}

.tpx-image-gallery .tpx-image-gallery-slide__media,
.tpx-image-gallery .tpx-image-gallery-slide__overlay {
	inset: 0;
	position: absolute;
}

.tpx-image-gallery .tpx-image-gallery-slide__media {
	background: var(--wp--preset--color--almost-black, #212121);
	overflow: hidden;
	transform: translate3d(var(--tpx-gallery-parallax-x, 0), 0, 0) scale(1.16);
	transition: transform var(--tpx-gallery-transition-duration, 760ms) cubic-bezier(0.625, 0.05, 0, 1);
	will-change: transform;
}

.tpx-image-gallery .tpx-image-gallery-slide__picture {
	display: block;
	height: 100%;
	width: 100%;
}

.tpx-image-gallery .tpx-image-gallery-slide__image {
	display: block;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
	user-select: none;
	width: 100%;
}

.tpx-image-gallery .tpx-image-gallery-slide__overlay {
	background: var(--tpx-gallery-overlay-gradient, var(--tpx-gallery-overlay-color, #000));
	opacity: var(--tpx-gallery-overlay-opacity, 0.2);
	pointer-events: none;
	z-index: 1;
}

.tpx-image-gallery .tpx-image-gallery-slide__content {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	height: 100%;
	justify-content: center;
	min-height: inherit;
	padding: clamp(32px, 5vw, 88px);
	position: relative;
	z-index: 2;
}

.tpx-image-gallery .tpx-image-gallery-slide__content > :first-child {
	margin-block-start: 0;
}

.tpx-image-gallery[data-gallery-initialised="true"] .tpx-image-gallery-slide > .tpx-image-gallery-slide__content {
	opacity: 0;
	transition: opacity var(--tpx-gallery-transition-duration, 760ms) ease;
}

.tpx-image-gallery[data-gallery-initialised="true"] .tpx-image-gallery-slide.is-active > .tpx-image-gallery-slide__content {
	opacity: 1;
}

.tpx-image-gallery[data-show-siblings="true"] .tpx-image-gallery-slide {
	aspect-ratio: 1250 / 650;
	max-width: 1250px;
	min-height: 0;
}

.tpx-image-gallery[data-show-siblings="true"] .tpx-image-gallery-slide__content {
	inset: 0;
	min-height: 0;
	position: absolute;
}

.tpx-image-gallery .tpx-image-gallery-slide__content > :last-child {
	margin-block-end: 0;
}

.tpx-image-gallery .tpx-image-gallery__controls {
	inset: 50% 0 auto;
	pointer-events: none;
	position: absolute;
	transform: translateY(-50%);
	z-index: 4;
}

.tpx-image-gallery .tpx-image-gallery__button {
	align-items: center;
	appearance: none;
	background: rgba(0, 0, 0, 0.42);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	height: 48px;
	justify-content: center;
	opacity: 0;
	padding: 0;
	pointer-events: auto;
	position: absolute;
	transform: translateY(-50%);
	transition: opacity 180ms ease, background-color 180ms ease;
	width: 48px;
}

.tpx-image-gallery:hover .tpx-image-gallery__button,
.tpx-image-gallery:focus-within .tpx-image-gallery__button {
	opacity: 1;
}

.tpx-image-gallery .tpx-image-gallery__button:hover {
	background: rgba(0, 0, 0, 0.68);
}

.tpx-image-gallery .tpx-image-gallery__button:focus-visible {
	opacity: 1;
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.tpx-image-gallery .tpx-image-gallery__button--previous {
	left: clamp(14px, 2.5vw, 42px);
}

.tpx-image-gallery .tpx-image-gallery__button--next {
	right: clamp(14px, 2.5vw, 42px);
}

.tpx-image-gallery .tpx-image-gallery__arrow {
	fill: none;
	height: 24px;
	stroke: currentColor;
	stroke-linecap: square;
	stroke-linejoin: miter;
	stroke-width: 1.5;
	width: 24px;
}

.tpx-image-gallery .tpx-image-gallery__thumbnails {
	align-items: center;
	bottom: clamp(20px, 3vw, 38px);
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	left: 50%;
	max-width: calc(100% - 40px);
	pointer-events: none;
	position: absolute;
	transform: translateX(-50%);
	z-index: 5;
}

.tpx-image-gallery[data-show-thumbnails="false"] .tpx-image-gallery__thumbnails {
	display: none;
}

.tpx-image-gallery .tpx-image-gallery__thumbnail {
	appearance: none;
	aspect-ratio: 1.45;
	background: rgba(0, 0, 0, 0.28);
	border: 1px solid rgba(255, 255, 255, 0.32);
	border-radius: 3px;
	box-sizing: border-box;
	cursor: pointer;
	flex: 0 0 auto;
	overflow: hidden;
	padding: 0;
	pointer-events: auto;
	transition: border-color 180ms ease, transform 180ms ease;
	width: clamp(54px, 5vw, 72px);
}

.tpx-image-gallery .tpx-image-gallery__thumbnail:hover {
	border-color: rgba(255, 255, 255, 0.7);
	transform: translateY(-2px);
}

.tpx-image-gallery .tpx-image-gallery__thumbnail.is-active {
	border-color: #fff;
}

.tpx-image-gallery .tpx-image-gallery__thumbnail:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.tpx-image-gallery .tpx-image-gallery__thumbnail-image {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.tpx-image-gallery[data-show-arrows="false"] .tpx-image-gallery__controls,
.tpx-image-gallery[data-slide-count="1"] .tpx-image-gallery__controls,
.tpx-image-gallery[data-slide-count="1"] .tpx-image-gallery__thumbnails {
	display: none;
}

@media (max-width: 781px) {
	.tpx-image-gallery .tpx-image-gallery-slide__picture {
		--tpx-gallery-image-position: var(--tpx-gallery-mobile-position, 50% 50%);
	}

	.wp-block-tpx-image-gallery-with-thumbnails.tpx-image-gallery {
		--tpx-gallery-slide-width: min(1250px, calc(100% - 32px));
	}

	.wp-block-tpx-image-gallery-with-thumbnails.tpx-image-gallery[data-show-siblings="false"] {
		--tpx-gallery-slide-width: 100%;
	}

	.tpx-image-gallery[data-show-siblings="true"] .tpx-image-gallery-slide {
		aspect-ratio: 650 / 900;
	}

	.tpx-image-gallery .tpx-image-gallery-slide__content {
		padding: 28px;
		padding-bottom: 60px;
	}

	.tpx-image-gallery .tpx-image-gallery__button {
		height: 42px;
		opacity: 1;
		width: 42px;
	}

	.tpx-image-gallery .tpx-image-gallery__button--previous {
		left: 22px;
	}

	.tpx-image-gallery .tpx-image-gallery__button--next {
		right: 22px;
	}

	.tpx-image-gallery .tpx-image-gallery-slide__media {
		transform: translate3d(var(--tpx-gallery-parallax-x, 0), 0, 0) scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.tpx-image-gallery .tpx-image-gallery-slide,
	.tpx-image-gallery .tpx-image-gallery-slide__media,
	.tpx-image-gallery .tpx-image-gallery-slide__content,
	.tpx-image-gallery .tpx-image-gallery__button,
	.tpx-image-gallery .tpx-image-gallery__thumbnail {
		transition-duration: 0.01ms !important;
	}
}

/* Pagination matches the homepage media-gallery-dotnav dimensions. */
.tpx-image-gallery .tpx-image-gallery__pagination {
	align-items: center;
	box-sizing: border-box;
	color: #000;
	display: flex;
	height: 48px;
	justify-content: center;
	padding: 12px 40px;
    position: absolute;
    inset: auto 0 0;
    z-index: 9;
}

.tpx-image-gallery .tpx-image-gallery__dots {
	align-items: center;
	display: flex;
	justify-content: center;
	max-width: 100%;
}

.tpx-image-gallery .tpx-image-gallery__dot {
	appearance: none;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-sizing: content-box;
	cursor: pointer;
	display: block;
	flex: 0 0 auto;
	height: 8px;
	margin: 0;
	padding: 8px;
	position: relative;
	transition: width 250ms linear;
	width: 8px;
}

.tpx-image-gallery .tpx-image-gallery__dot[hidden] {
	display: none;
}

.tpx-image-gallery .tpx-image-gallery__dot::before,
.tpx-image-gallery .tpx-image-gallery__dot > span {
    background: #e5e5e5;
    border: 1px solid #ffffff50;
    box-shadow: 0 0 50px;
	border-radius: 999px;
	content: '';
	height: 8px;
	left: 8px;
	position: absolute;
	top: 8px;
	transform: scale(var(--tpx-gallery-dot-scale, 1));
	width: calc(100% - 16px);
}

.tpx-image-gallery .tpx-image-gallery__dot > span {
	background: #939399;
	opacity: 0;
	width: 8px;
}

.tpx-image-gallery .tpx-image-gallery__dot.is-active {
	width: 32px;
}

.tpx-image-gallery .tpx-image-gallery__dot.is-active > span {
	opacity: 1;
}

.tpx-image-gallery .tpx-image-gallery__playback {
	align-items: center;
	appearance: none;
	background: rgba(210, 210, 215, 0.64);
	border: 0;
	border-radius: 50%;
	color: rgba(0, 0, 0, 0.48);
	cursor: pointer;
	display: flex;
	height: 24px;
	justify-content: center;
	margin: 0;
	padding: 0;
	position: absolute;
	right: 12px;
	width: 24px;
}

.tpx-image-gallery .tpx-image-gallery__playback svg {
	fill: currentColor;
	height: 24px;
	width: 24px;
}

.tpx-image-gallery .tpx-image-gallery__playback:hover {
	color: #000;
}

.tpx-image-gallery .tpx-image-gallery__dot:focus-visible,
.tpx-image-gallery .tpx-image-gallery__playback:focus-visible {
	outline: 2px solid #0071e3;
	outline-offset: 2px;
}

.tpx-image-gallery .tpx-image-gallery__playback:disabled {
	cursor: default;
	opacity: 0.5;
}

.tpx-image-gallery .tpx-image-gallery__pause-icon,
.tpx-image-gallery .is-playing .tpx-image-gallery__play-icon {
	display: none;
}

.tpx-image-gallery .is-playing .tpx-image-gallery__pause-icon {
	display: block;
}

.tpx-image-gallery.has-pagination .tpx-image-gallery__controls {
	top: calc((100% - 48px) / 2);
}

.tpx-image-gallery.has-pagination .tpx-image-gallery__thumbnails {
	bottom: calc(48px + clamp(20px, 3vw, 38px));
}

@media (prefers-reduced-motion: reduce) {
	.tpx-image-gallery .tpx-image-gallery__dot {
		transition: none;
	}
}
