.vp-regen-wrapper {
	display: block;
	width: 100%;
	font-family: inherit;
	font-size: 16px;
	line-height: 24px;
	color: inherit;
	--vp-radius: 0px;
	margin: 0;
	padding: 0;
	border: none;
	background: none;
	box-shadow: none;
	position: relative;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
.vp-regen-wrapper a,
.vp-regen-wrapper img {
	-webkit-user-drag: none;
	-khtml-user-drag: none;
	-moz-user-drag: none;
	-o-user-drag: none;
	user-drag: none;
}
.vp-regen-wrapper img {
	pointer-events: auto;
}
.vp-regen-wrapper * { 
	box-sizing: border-box; 
}
.vp-regen-wrapper a, 
.vp-regen-wrapper a:hover, 
.vp-regen-wrapper a:active, 
.vp-regen-wrapper a:focus,
.vp-regen-item-title,
.vp-regen-item-title:hover,
.vp-regen-item-desc,
.vp-regen-item-desc:hover {
	color: inherit !important;
	text-decoration: none !important;
	background: none !important;
	border: none !important;
	box-shadow: none !important;
	outline: none !important;
	transition: color 0.3s ease !important;
}

.vp-regen-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 0;
}
.vp-regen-wrapper[data-title-pos="top"] .vp-regen-header {
	margin-bottom: 24px;
}
.vp-regen-wrapper[data-title-pos="bottom"] .vp-regen-header {
	margin-top: 24px;
}
.vp-regen-icon {
	width: 24px;
	height: 24px;
	color: inherit;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.vp-regen-icon svg { width: 100%; height: 100%; fill: currentColor; }
.vp-regen-title {
	font-size: 18px;
	font-weight: 500;
	color: inherit;
	margin: 0;
	padding: 0;
}

.vp-regen-scroll-container {
	position: relative;
	margin: 0;
	padding: 0;
	overflow: hidden;
}
.vp-regen-items {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	padding: 0;
	margin: 0;
	list-style: none;
	scrollbar-width: none;
	-ms-overflow-style: none;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x proximity;
	scroll-behavior: smooth;
}

@media (min-width: 769px) {
	.vp-regen-scroll-container {
		cursor: grab;
	}
	.vp-regen-scroll-container:active {
		cursor: grabbing;
	}
}

@media (max-width: 768px) {
	.vp-regen-scroll-container {
		touch-action: auto;
	}
	.vp-regen-items {
		touch-action: auto;
		will-change: scroll-position;
		scroll-snap-type: x mandatory;
		scroll-padding-left: 0px;
		scroll-padding-right: 0px;
		overscroll-behavior-x: contain;
		overscroll-behavior-y: auto;
		padding-left: 0px;
		padding-right: 0px;
		gap: 0px;
	}
	.vp-regen-items .vp-regen-item {
		flex: 0 0 100%;
		min-width: 100%;
		max-width: 100%;
		scroll-snap-stop: always;
	}
}
.vp-regen-items::-webkit-scrollbar { display: none; }

.vp-regen-items .vp-regen-item {
	min-width: var(--vp-item-min-width, 270px);
}
.vp-regen-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(var(--vp-item-min-width, 270px), 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
}

.vp-regen-item {
	margin: 0;
	padding: 0;
	list-style: none;
	position: relative;
	scroll-snap-align: start;
}
.vp-regen-item a { text-decoration: none; display: block; outline: none; border: none; color: inherit; }
.vp-regen-image-wrapper {
	position: relative;
	overflow: hidden;
	border-radius: var(--vp-radius) !important;
	margin-bottom: 12px;
	aspect-ratio: 16 / 9;
}
.vp-regen-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: all 0.5s ease;
	border-radius: inherit !important;
}

.vp-regen-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 2;
}
.vp-regen-item:hover .vp-regen-overlay { opacity: 1; }
.vp-regen-play-icon {
	width: 50px;
	height: 50px;
	background: rgba(255,255,255,0.9);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #000;
	font-size: 20px;
	transform: scale(0.8);
	transition: transform 0.3s ease;
}
.vp-regen-item:hover .vp-regen-play-icon { transform: scale(1); }

.vp-regen-item-title {
	font-size: 16px;
	font-weight: 500;
	color: inherit !important;
	line-height: 21px;
	margin: 0 0 8px 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.3s ease !important;
}
.vp-regen-item-desc {
	font-size: 14px;
	color: inherit !important;
	opacity: 0.7;
	line-height: 20px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0;
}

.vp-regen-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 32px;
	flex-wrap: wrap;
}
.vp-regen-btn {
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: none;
	border-radius: 4px;
	background-color: #f0f0f0;
	color: #333;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}
.vp-regen-btn:hover { filter: brightness(0.95); }
.vp-regen-btn.active { background-color: #333; color: #fff; }

.vp-regen-wrapper.is-loading .vp-regen-item {
	pointer-events: none;
}
.vp-regen-wrapper.is-loading .vp-regen-image-wrapper,
.vp-regen-wrapper.is-loading .vp-regen-item-title,
.vp-regen-wrapper.is-loading .vp-regen-item-desc {
	background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
	background-size: 200% 100%;
	animation: vp-skeleton 1.5s infinite;
	color: transparent !important;
	border-radius: 4px;
}
.vp-regen-wrapper.is-loading .vp-regen-image { opacity: 0; }

@keyframes vp-skeleton {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}
.vp-regen-wrapper .vp-regen-loader {
	display: none;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 20;
}
.vp-regen-wrapper.is-loading .vp-regen-loader { display: block; }

.vp-regen-loader::after {
	content: "";
	display: block;
	width: 40px;
	height: 40px;
	border: 2px solid rgba(0,0,0,0.1);
	border-top-color: #333;
	border-radius: 50%;
	animation: vp-spin 0.8s linear infinite;
}
@keyframes vp-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-color-scheme: dark) {
	.vp-regen-loader::after {
		border-color: rgba(255,255,255,0.1);
		border-top-color: #fff;
	}
}

.vp-regen-wrapper[data-lightbox="yes"] .vp-regen-item a {
	cursor: pointer;
}

.vp-regen-wrapper[data-vp-type="pagination"] .vp-regen-grid {
	grid-template-columns: repeat(auto-fill, minmax(var(--vp-item-min-width, 270px), 1fr));
}

@media (max-width: 768px) {
	.vp-regen-header { gap: 10px; margin-bottom: 16px; }
	.vp-regen-grid { gap: 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
	.vp-regen-wrapper .vp-regen-title { font-size: 18px; }
	.vp-regen-wrapper .vp-regen-item-title { font-size: 15px !important; line-height: 19px; }
	.vp-regen-wrapper .vp-regen-item-desc { font-size: 13px !important; line-height: 18px; -webkit-line-clamp: 3; }
}
@media (max-width: 480px) {
	.vp-regen-grid { grid-template-columns: 1fr; }
}
