.ssl-scroll-container {
	margin-left: 50%;
	position: relative;
	translate: -50% 0;
	width: 100vw;
}

.ssl-scroll-container.ssl-device-desktop {
	display: block;
}

@media (max-width: 767px) {
	.ssl-scroll-container.ssl-device-desktop {
		display: none !important;
	}
}

.ssl-scroll-container.ssl-device-mobile {
	display: none;
}

@media (max-width: 767px) {
	.ssl-scroll-container.ssl-device-mobile {
		display: block !important;
	}
}

.ssl-sticky-window {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	width: 100%;
	height: 100vh;
	height: 100dvh;
	overflow: hidden;
	background-color: transparent;
}

.ssl-scroll-container.ssl-height-100 .ssl-sticky-window {
	height: 100vh;
	height: 100dvh;
}

.ssl-scroll-container.ssl-height-50 .ssl-sticky-window {
	height: 50vh;
	height: 50dvh;
}

.ssl-scroll-container.ssl-height-auto .ssl-sticky-window {
	height: auto;
	max-height: 100vh;
	max-height: 100dvh;
}

.ssl-scroll-container.ssl-height-100 .ssl-canvas,
.ssl-scroll-container.ssl-height-50 .ssl-canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100% !important;
	object-fit: contain;
	display: block;
	z-index: 1;
}

.ssl-scroll-container.ssl-height-auto .ssl-canvas {
	position: relative;
	width: 100%;
	height: auto;
	max-height: 100vh;
	max-height: 100dvh;
	display: block;
}

.ssl-canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	z-index: 1;
}

.ssl-overlays-wrapper {
	position: absolute;
	top: 0;
	left: 50%;
	width: calc( 100% - 4rem );
	height: 100%;
	max-width: 1800px;
	pointer-events: none;
	translate: -50% 0;
	z-index: 2;
}

.ssl-overlay-item {
	position: absolute;
	max-width: 600px;
	width: 100%;
	color: #ffffff;
	pointer-events: auto;
	opacity: 1;
	will-change: opacity, transform;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	transform: translateZ(0);
}

/* Initial Placement Positions */
.ssl-overlay-item[data-position="top-left"],
.ssl-overlay-item.ssl-pos-top-left {
	top: 10%;
	left: 0;
}

.ssl-overlay-item[data-position="top-right"],
.ssl-overlay-item.ssl-pos-top-right {
	top: 10%;
	right: 0;
	left: auto;
}

.ssl-overlay-item[data-position="bottom-left"],
.ssl-overlay-item.ssl-pos-bottom-left {
	bottom: 10%;
	top: auto;
	left: 0;
}

.ssl-overlay-item[data-position="bottom-right"],
.ssl-overlay-item.ssl-pos-bottom-right {
	bottom: 10%;
	top: auto;
	right: 0;
	left: auto;
}

.ssl-overlay-item.is-active {
	opacity: 1;
}

/* Gutenberg Editor Specific Styles */
.ssl-editor-wrapper {
	border: 1px solid #ccc;
	padding: 15px;
	background: #fdfdfd;
	border-radius: 4px;
}

.ssl-editor-repeater-item {
	background: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	padding: 12px;
	margin-bottom: 12px;
}

.ssl-editor-preview-canvas-box {
	position: relative;
	width: 100%;
	height: 350px;
	background: #EDEDED;
	border-radius: 4px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 10px;
}

.ssl-editor-preview-canvas-box img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
