.rp-projgallery {
	width: 100%;
}

.rp-projgallery-main {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 6px;
	background: #eee;
}

.rp-projgallery-main-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.5s ease;
}

.rp-projgallery-main-img.active {
	opacity: 1;
}

.rp-projgallery-thumbs {
	display: flex;
	gap: 12px;
	margin-top: 14px;
	overflow-x: auto;
	cursor: grab;
	scroll-behavior: smooth;
	scrollbar-width: none;    /* Firefox */
	-ms-overflow-style: none; /* IE/Edge legacy */
	user-select: none;
}

.rp-projgallery-thumbs::-webkit-scrollbar {
	display: none; /* Chrome/Safari */
}

.rp-projgallery-thumbs.rp-dragging {
	cursor: grabbing;
	scroll-behavior: auto;
}

.rp-projgallery-thumb {
	flex: 0 0 calc((100% - (var(--rp-thumb-visible, 4.5) - 1) * 12px) / var(--rp-thumb-visible, 4.5));
	height: 90px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 6px;
	overflow: hidden;
	cursor: pointer;
	background: none;
	opacity: 0.6;
	transition: opacity 0.2s ease, border-color 0.2s ease;
}

.rp-projgallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rp-projgallery-thumb:hover {
	opacity: 0.85;
}

.rp-projgallery-thumb.active {
	opacity: 1;
	border-color: #38B44A;
}

@media (max-width: 640px) {
	.rp-projgallery-thumbs {
		gap: 8px;
	}
}
