/* =========================================================
   BIG4 Product Image Gallery — base styles
   Note: All colors/sizes/spacing seen here are *defaults only*.
   Elementor injects widget-specific CSS (via {{WRAPPER}} selectors)
   that overrides these based on the user's panel settings.
   ========================================================= */

.big4-gallery-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
}

.big4-gallery-wrapper * {
	box-sizing: border-box;
}

/* ---------- Main image row ---------- */
.big4-main-image-row {
	display: flex;
	width: 100%;
	justify-content: center;
}

.big4-main-image {
	position: relative;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.big4-main-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	transition-property: opacity, transform;
	transition-duration: 300ms;
	transition-timing-function: ease;
	will-change: opacity;
}

/* Fade effect applied by JS during image swap */
.big4-main-image img.big4-fade-out {
	opacity: 0;
}

/* ---------- Thumbnails row ---------- */
.big4-thumbnails {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 15px;
	margin-top: 20px;
	width: 100%;
}

.big4-thumb {
	width: 70px;
	height: 70px;
	border-radius: 50%;
	overflow: hidden;
	cursor: pointer;
	border: 3px solid transparent;
	background-color: #f5f5f5;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color 200ms ease, transform 150ms ease;
	flex-shrink: 0;
}

.big4-thumb:hover {
	transform: translateY(-2px);
}

.big4-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
}

.big4-thumb.active {
	border-color: #00b4d8;
}

.big4-thumb:focus-visible {
	outline: 2px solid #00b4d8;
	outline-offset: 2px;
}

/* ---------- Built-in responsive fallbacks ----------
   (Real responsive control is handled by Elementor's
   generated per-breakpoint CSS from add_responsive_control) */
@media (max-width: 767px) {
	.big4-thumbnails {
		gap: 10px;
	}
}
