.vgc-container {
	display: flex;
	width: 100%;
	height: 600px; /* Default height, controllable via Elementor */
	overflow: hidden;
	gap: 15px; /* Spacing between main and thumbs */
}

.vgc-main-view {
	width: 85%;
	height: 100%;
	position: relative;
	background-color: #f5f5f5; /* Placeholder background */
}

.vgc-main-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: opacity 0.3s ease;
}

.vgc-thumbnails {
	width: 15%;
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: 10px; /* Controllable via Elementor */
	overflow-y: auto;
	padding-right: 5px; /* Space for scrollbar if needed */
}

/* Custom Scrollbar for thumbnails */
.vgc-thumbnails::-webkit-scrollbar {
	width: 6px;
}
.vgc-thumbnails::-webkit-scrollbar-track {
	background: #f1f1f1;
}
.vgc-thumbnails::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 3px;
}
.vgc-thumbnails::-webkit-scrollbar-thumb:hover {
	background: #999;
}


.vgc-thumb {
	width: 100%;
	aspect-ratio: 16/9; /* Adjust as needed or make controllable */
	cursor: pointer;
	border: 3px solid transparent;
	transition: border-color 0.3s ease, opacity 0.3s ease;
	opacity: 0.7;
	flex-shrink: 0; /* Prevent thumbnails from squishing */
}

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

.vgc-thumb:hover {
	opacity: 0.9;
}

.vgc-thumb.active {
	opacity: 1;
	border-color: #000; /* Default active border color, controllable */
}

/* Responsive adjustments */
@media (max-width: 767px) {
	.vgc-container {
		flex-direction: column;
		height: auto; /* Let content dictate height on mobile */
	}

	.vgc-main-view {
		width: 100%;
		height: 400px; /* Fixed height for main image on mobile */
	}

	.vgc-thumbnails {
		width: 100%;
		flex-direction: row;
		overflow-x: auto;
		overflow-y: hidden;
		padding-right: 0;
		padding-bottom: 5px;
		height: auto; /* Auto height for thumb row */
	}

	.vgc-thumb {
		width: 120px; /* Fixed width for horizontal scrolling */
		height: 80px;
	}
}
