html,
body {
	overflow-x: hidden;
	max-width: 100%;
}

/* Elementor / shortcode outer alignment */
.elementor-widget-shortcode,
.elementor-widget-shortcode .elementor-widget-container {
	width: 100%;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
	box-sizing: border-box;
	overflow-x: clip;
}

/* Main slider box: this is the card/ring basis for current script.js */
.slider3d {
	position: relative;
/* 	width: min(100vmin, 320px);
	height: min(46vmin, 420px); */
	max-width: 520px;
	max-height: 620px;
	margin: 0 auto;
	padding: 10px;
	perspective: 1400px;
	perspective-origin: 50% 56%;
	transition: perspective-origin .5s, perspective .5s;
	user-select: none;
	box-sizing: border-box;
	overflow: visible;
}

/* Inner 3D wrapper */
.slider3d_wrap {
	position: relative;
	width: 100%;
	height: 100%;
	transform-style: preserve-3d;
	will-change: transform;
	transition: transform 0.75s;
}

/* Cards */
.slider3d_wrap > * {
	box-sizing: border-box;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: 10px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	overflow: hidden;
	cursor: default;
}

/* If a slide is wrapped in a link (see note below), make it behave
   like the plain div did visually, plus a pointer + subtle hover */
.slider3d_wrap > a {
	display: block;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.25s ease, filter 0.25s ease;
}
.slider3d_wrap > a:hover {
	filter: brightness(1.08);
}

/* Optional soft shadow */
.slider3d_wrap > *::after {
	content: "";
	position: absolute;
	inset: 0;
	box-shadow: inset 0 -70px 55px rgba(0, 0, 0, 0.28);
	pointer-events: none;
}

/* Slide labels */
.wp3dslider-slide-label {
	position: absolute;
	bottom: 14px;
	left: 0;
	right: 0;
	z-index: 2;
	text-align: center;
	color: #fff;
	font-weight: 600;
	font-size: clamp(11px, 1.2vw, 16px);
	line-height: 1.2;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
	padding: 0 10px;
	pointer-events: none;
}

/* ==========================================================
   Root wrapper from shortcode
   CHANGED: removed max-width: 1140px cap so the component
   spans the full width of whatever section/container it's
   placed in. If the Elementor section itself is "Boxed",
   this will still be boxed — set the SECTION to "Full Width"
   in Elementor if you want true edge-to-edge on the page.
========================================================== */
.wp3dslider-root {
	position: relative;
	width: 100%;
	max-width: 100%;   /* was 1140px */
	margin-left: auto;
	margin-right: auto;
	padding-top: 10px;
	padding-bottom: 30px;
	box-sizing: border-box;
	overflow: visible;
}

/* Bottom label text, if enabled in plugin admin */
.wp3dslider-label {
	margin-top: 18px;
	text-align: center;
	font-size: clamp(16px, 2vw, 24px);
	font-weight: 600;
	color: #111;
}

/* ---------- Arrows ---------- */
.slider3d_left,
.slider3d_right {
	position: absolute;
	top: 50%;
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	background: rgba(255, 255, 255, 0.92);
	border-radius: 50%;
	color: #ff6600;
	font-size: 0;
	font-weight: bold;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
	z-index: 10;
}

.slider3d_left:hover,
.slider3d_right:hover {
	background: #ff6600;
	color: #fff;
	transform: scale(1.08);
}

.slider3d_left {
	left: 16px;
}

.slider3d_right {
	right: 16px;
}

.slider3d_left::before,
.slider3d_right::before {
	font-size: 22px;
	line-height: 1;
}

.slider3d_left::before {
	content: "‹";
}

.slider3d_right::before {
	content: "›";
}

/* ---------- Controls panel, if present ---------- */
.ctrl {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	margin: auto;
	min-height: 100px;
	width: 100%;
	max-width: 370px;
	height: 20vmin;
	user-select: none;
}

.visibility {
	position: absolute;
	top: 0;
	left: 0;
}

.visibility label {
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
}

.perspOrig {
	padding: 4px;
	top: 45px;
	left: 0;
}

.perspOrig input {
	width: 45px;
	text-align: center;
	outline: none;
	border: none;
	cursor: default;
}

.ctrl p {
	text-align: center;
	padding-bottom: 1vmin;
	cursor: default;
}

.perspOrig span {
	position: relative;
	top: 2px;
	left: 2px;
}

input::selection {
	background-color: #fff;
}

.perspValue {
	position: absolute;
	top: 45px;
	right: 5px;
}

[type="range"] {
	width: min(210px, 100%);
}

.slideAmount {
	position: absolute;
	top: 0;
	right: 65px;
}

.slideAmount :not([class]) {
	position: relative;
	bottom: 2px;
	cursor: default;
}

/* ---------- Tablet ---------- */
@media (max-width: 768px) {
	.elementor-widget-shortcode,
	.elementor-widget-shortcode .elementor-widget-container {
		padding-left: 16px;
		padding-right: 16px;
	}

	.slider3d {
		width: min(42vmin, 260px);
		height: min(60vmin, 370px);
		max-width: 260px;
		max-height: 370px;
		perspective: 1200px;
		perspective-origin: 50% 56%;
	}

	.wp3dslider-root {
		padding-bottom: 24px;
	}

	.slider3d_left,
	.slider3d_right {
		width: 38px;
		height: 38px;
	}

	.slider3d_left {
		left: 8px;
	}

	.slider3d_right {
		right: 8px;
	}
}

/* ---------- Mobile ---------- */
@media (max-width: 480px) {
	.elementor-widget-shortcode,
	.elementor-widget-shortcode .elementor-widget-container {
		padding-left: 12px;
		padding-right: 12px;
	}

	.slider3d {
		width: min(54vmin, 220px);
		height: min(78vmin, 320px);
		max-width: 220px;
		max-height: 320px;
		padding: 6px;
		perspective: 1000px;
	}

	.wp3dslider-slide-label {
		bottom: 10px;
		font-size: 11px;
		padding: 0 6px;
	}

	.slider3d_left,
	.slider3d_right {
		width: 34px;
		height: 34px;
	}

	.slider3d_left::before,
	.slider3d_right::before {
		font-size: 20px;
	}

	.ctrl {
		height: auto;
		min-height: 80px;
	}
}