/**
 * Flxpnt variation gallery — public-facing styles.
 */

/* Main wrapper for the variation gallery (replaces the original gallery). */
.flxpnt-variation-gallery-wrap {
	position: relative;
	margin-bottom: 1.5em;
}

/* Main image container. */
.flxpnt-variation-gallery__main {
	position: relative;
	overflow: hidden;
	margin-bottom: 10px;
}

.flxpnt-variation-gallery__main img {
	display: block;
	width: 100%;
	height: auto;
	cursor: zoom-in;
}

/* Thumbnails row. */
.flxpnt-variation-gallery__thumbs {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap;
	gap: 8px;
	clear: both;
}

.flxpnt-variation-thumb {
	flex: 0 0 auto;
	width: 80px;
	height: 80px;
	border: 2px solid transparent;
	overflow: hidden;
	cursor: pointer;
	opacity: 0.6;
	transition: border-color 0.2s, opacity 0.2s;
	display: inline-block;
}

.flxpnt-variation-thumb:hover {
	opacity: 0.9;
}

.flxpnt-variation-thumb.flxpnt-thumb-active {
	border-color: #333;
	opacity: 1;
}

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

/* Responsive: shrink thumbnails on small screens. */
@media (max-width: 480px) {
	.flxpnt-variation-thumb {
		width: 60px;
		height: 60px;
	}
}
