/*!
 * 프레스런 플러그인 | Copyright (c) 2026 프레스런(PressLearn). All rights reserved.
 * 비공개 독점 소프트웨어입니다. 프레스런의 서면 동의 없이 복제·수정·변조·재배포할 수 없습니다(LICENSE.txt).
 */
/*
 * 다이나믹 배너. AL Pack 과 같은 클래스(pl-dynamic-*)·모양이라 테마에서 꾸민 CSS 가 그대로 맞습니다.
 */
.pl-dynamic-area {
	display: inline-block;
	position: relative;
	overflow: hidden;
}

.pl-dynamic-cover {
	position: absolute;
	top: 0;
	left: -40px;
	width: 100%;
	height: 100%;
	display: none;
	z-index: 1;
	touch-action: pan-x;
	user-select: none;
	cursor: grab;
}

.pl-dynamic-cover.enable {
	display: block !important;
	animation: sliding 1.5s ease-in-out infinite;
}

.pl-dynamic-cover.dragging {
	animation: none !important;
	cursor: grabbing;
}

.pl-dynamic-cover::after {
	content: attr(data-message);
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.7);
	color: white;
	padding: 8px 12px;
	border-radius: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	transition: opacity 0.3s;
}

.pl-dynamic-cover img {
	max-width: 100%;
	height: auto;
}

@keyframes sliding {
	0% {
		transform: translate3d(-7%, 0, 0);
	}

	20% {
		transform: translate3d(-10%, 0, 0);
	}

	40% {
		transform: translate3d(-5%, 0, 0);
	}

	60% {
		transform: translate3d(-10%, 0, 0);
	}

	80% {
		transform: translate3d(-5%, 0, 0);
	}

	100% {
		transform: translate3d(-7%, 0, 0);
	}
}
