html.rac-mp-open,
html.rac-mp-open body {
	overflow: hidden;
}

.rac-mp {
	position: fixed;
	inset: 0;
	z-index: 1000001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
}

.rac-mp[hidden] {
	display: none !important;
}

.rac-mp__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 16, 16, 0.72);
}

.rac-mp__dialog {
	position: relative;
	z-index: 1;
	width: max-content;
	max-width: calc(100vw - 32px);
	max-height: calc(100vh - 32px);
	overflow: visible;
	background: #fff;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
	padding: 0;
	line-height: 0;
	animation: rac-mp-in 0.22s ease;
}

@keyframes rac-mp-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

button.rac-mp__close {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
	color: #222;
	font-size: 0;
	line-height: 0;
	cursor: pointer;
}

button.rac-mp__close svg {
	display: block;
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
}

.rac-mp__close:hover,
.rac-mp__close:focus {
	color: #111;
}

.rac-mp__frame {
	position: relative;
}

.rac-mp__slides {
	position: relative;
}

.rac-mp__slide {
	display: none;
	margin: 0;
}

.rac-mp__slide.is-active {
	display: block;
}

.rac-mp__slide img {
	display: block;
	width: auto;
	height: auto;
	max-width: min(480px, calc(100vw - 148px));
	max-height: calc(100vh - 32px);
	object-fit: contain;
	background: transparent;
}

.rac-mp__slide:has(.rac-mp__cta) img {
	max-height: calc(100vh - 110px);
}

.rac-mp__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: calc(100% - 24px);
	margin: 12px 12px 14px;
	min-height: 46px;
	padding: 10px 16px;
	border: 2px solid var(--rac-mp-btn, #c0392b);
	color: var(--rac-mp-btn, #c0392b);
	background: #fff;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	text-align: center;
}

.rac-mp__cta:hover,
.rac-mp__cta:focus {
	background: var(--rac-mp-btn, #c0392b);
	color: #fff;
}

button.rac-mp__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: -20px 0 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
	color: #222;
	cursor: pointer;
	line-height: 0;
	font-size: 0;
}

.rac-mp__arrow svg {
	display: block;
	width: 22px;
	height: 22px;
	flex: 0 0 22px;
}

.rac-mp__arrow--prev {
	left: -52px;
}

.rac-mp__arrow--next {
	right: -52px;
}

.rac-mp__arrow:hover,
.rac-mp__arrow:focus {
	background: #fff;
}

.rac-mp__nav {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 12px;
	z-index: 2;
	display: flex;
	justify-content: center;
	gap: 6px;
	margin: 0;
	pointer-events: none;
}

.rac-mp__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.72);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.28);
}

.rac-mp__dot.is-active {
	background: var(--rac-mp-btn, #c0392b);
}

@media (max-width: 600px) {
	.rac-mp {
		padding: 12px 8px;
	}

	.rac-mp__dialog {
		padding: 0;
	}

	.rac-mp__slide img {
		max-width: calc(100vw - 112px);
		max-height: calc(100vh - 16px);
	}

	.rac-mp__arrow--prev {
		left: -46px;
	}

	.rac-mp__arrow--next {
		right: -46px;
	}

	.rac-mp__cta {
		font-size: 16px;
	}
}
