.rdp-stack-sticky-ancestor {
	overflow: clip !important;
}

.rdp-stack-ready {
	--rdp-stack-distance: 216vh;
	height: calc(100svh + var(--rdp-stack-distance)) !important;
	min-height: calc(100svh + var(--rdp-stack-distance)) !important;
	position: relative;
	overflow: visible !important;
}

.rdp-stack-ready > .rdp-stack-track,
.rdp-stack-ready .rdp-stack-track {
	height: 100% !important;
	min-height: 100% !important;
	overflow: visible !important;
	position: relative;
}

.rdp-stack-gallery {
	height: 500px !important;
	min-height: 500px !important;
	overflow: clip;
	position: sticky !important;
	top: max(0px, calc((100svh - 500px) / 2));
}

.rdp-stack-companion {
	align-self: flex-start !important;
	position: sticky !important;
	top: var(--rdp-stack-companion-top, 0px);
}

.rdp-stack-gallery > .rdp-stack-card {
	left: 50% !important;
	margin: 0 !important;
	position: absolute !important;
	top: 50% !important;
	width: var(--rdp-stack-card-width) !important;
	transform: translate3d(
		calc(-50% + var(--rdp-stack-x, 0px) + var(--rdp-stack-entry-x, 0vw)),
		calc(-50% + var(--rdp-stack-y, 0px) + var(--rdp-stack-entry-y, 0vh)),
		0
	) rotate(var(--rdp-stack-rotation, 0deg)) !important;
	transform-origin: 50% 50%;
	will-change: transform, opacity;
}


.rdp-stack-ready.rdp-stack-static {
	height: 82svh !important;
	min-height: 620px !important;
}

.rdp-stack-static .rdp-stack-track {
	height: auto !important;
	min-height: 0 !important;
}

.rdp-stack-static .rdp-stack-gallery {
	height: 500px !important;
	min-height: 500px !important;
}

.rdp-stack-static .rdp-stack-gallery {
	position: relative !important;
	top: auto;
}

.rdp-stack-static .rdp-stack-card {
	will-change: auto;
}

.rdp-stack-slideshow .rdp-stack-gallery {
	-webkit-tap-highlight-color: transparent;
	cursor: pointer;
	touch-action: manipulation;
	user-select: none;
}

.rdp-stack-slideshow .rdp-stack-card {
	transition: transform 1000ms cubic-bezier(.16, 1, .3, 1), opacity 320ms ease-out !important;
}

.rdp-stack-slideshow .rdp-stack-gallery:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: -6px;
}

@media (max-width: 767px) {
	.rdp-stack-static .rdp-stack-gallery {
		height: 300px !important;
		margin-left: auto;
		margin-right: auto;
		min-height: 300px !important;
		width: 300px;
	}

	.rdp-stack-gallery > .rdp-stack-card {
		width: 100% !important;
	}

	.rdp-stack-ready.rdp-stack-static {
		height: auto !important;
		min-height: var(--rdp-mobile-section-height, 0px) !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rdp-stack-gallery > .rdp-stack-card {
		transition: none !important;
	}
}
