.wp-block-meme-panel-slider-slider.mps-slider,
.mps-slider {
	box-sizing: border-box;
	max-width: var(--mps-max-width, 760px);
	margin: 1.5rem auto;
	font: inherit;
}

.mps-slider *,
.mps-slider *::before,
.mps-slider *::after {
	box-sizing: border-box;
}

.mps-stage {
	position: relative;
	overflow: hidden;
	border-radius: 16px;
	background: #111;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
	cursor: pointer;
}

.mps-slider[data-click-next="0"] .mps-stage {
	cursor: default;
}

.mps-stage:focus {
	outline: 3px solid currentColor;
	outline-offset: 4px;
}

.mps-slide {
	display: none;
	margin: 0;
}

.mps-slide.is-active {
	display: block;
}

.mps-image-frame {
	line-height: 0;
}

.mps-image {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	user-select: none;
}

.mps-has-ratio .mps-image-frame {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: var(--mps-ratio, 1 / 1);
	background: #111;
}

.mps-has-ratio .mps-image {
	width: 100%;
	height: 100%;
	object-fit: var(--mps-fit, contain);
}

.mps-caption {
	padding: 0.75rem 1rem;
	font-size: 0.95rem;
	line-height: 1.45;
	color: #fff;
	background: rgba(0, 0, 0, 0.78);
}

.mps-caption a {
	color: inherit;
	text-decoration: underline;
}

.mps-nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	font: inherit;
	font-size: 2rem;
	line-height: 1;
	color: #fff;
	background: rgba(0, 0, 0, 0.55);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
	transform: translateY(-50%);
	cursor: pointer;
}

.mps-nav:hover,
.mps-nav:focus-visible {
	background: rgba(0, 0, 0, 0.8);
}

.mps-nav:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.mps-prev {
	left: 0.75rem;
}

.mps-next {
	right: 0.75rem;
}

.mps-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: 0.75rem;
	font-size: 0.95rem;
	line-height: 1.3;
}

.mps-counter {
	white-space: nowrap;
	opacity: 0.78;
}

.mps-dots {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.45rem;
	flex-wrap: wrap;
}

.mps-dot {
	width: 0.7rem;
	height: 0.7rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: currentColor;
	opacity: 0.28;
	cursor: pointer;
}

.mps-dot.is-active {
	opacity: 1;
	transform: scale(1.2);
}

.mps-empty {
	padding: 0.75rem 1rem;
	border: 1px dashed currentColor;
	border-radius: 8px;
}

@media (max-width: 600px) {
	.wp-block-meme-panel-slider-slider.mps-slider,
	.mps-slider {
		margin: 1rem auto;
	}

	.mps-stage {
		border-radius: 12px;
	}

	.mps-nav {
		width: 38px;
		height: 38px;
		font-size: 1.7rem;
	}

	.mps-prev {
		left: 0.5rem;
	}

	.mps-next {
		right: 0.5rem;
	}
}
