.waku-custom-gallery-wrapper {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.waku-main-image-container img {
	width: 100%;
	height: auto;
	border-radius: 4px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
	transition: opacity 0.2s ease-in-out;
	display: block;
}

.waku-thumbnails-scroll-container {
	position: relative;
	display: flex;
	align-items: center;
	margin-top: 10px;
}

.waku-thumbnails-container {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	scroll-behavior: smooth;
	-ms-overflow-style: none;  /* IE and Edge */
	scrollbar-width: none;  /* Firefox */
	flex: 1;
	padding: 5px 0;
}

.waku-thumbnails-container::-webkit-scrollbar {
	display: none;
}

.waku-thumb {
	border-radius: 4px;
	border: 2px solid transparent;
	cursor: pointer;
	overflow: hidden;
	transition: all 0.3s ease;
	flex-shrink: 0;
	transform: none !important;
	/* Opacity is now handled via Elementor controls and :not(.waku-active-thumb) selector */
}

.waku-thumb.waku-active-thumb {
	opacity: 1 !important; /* Active is always fully visible */
}

.waku-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
	transform: none !important;
	transition: none !important;
}

.waku-thumb:hover, .waku-thumb.waku-active-thumb {
	border-color: #e50000;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
	transform: none !important;
}

.waku-thumb:hover img, .waku-thumb.waku-active-thumb img {
	transform: none !important;
}

.waku-scroll-btn {
	background: rgba(255, 255, 255, 0.8);
	border: 1px solid #ddd;
	border-radius: 50%;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	position: absolute;
	z-index: 2;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	transition: background 0.2s;
}

.waku-scroll-btn:hover {
	background: #fff;
}

.waku-scroll-left {
	left: -15px;
}

.waku-scroll-right {
	right: -15px;
}

/* Hide scroll buttons on mobile or if not needed initially */
@media (max-width: 768px) {
	.waku-scroll-btn {
		display: none;
	}
}