/* ── WCPGW: WC Product Gallery Widget v1.1 ── */

.wcpgw-wrapper {
	width: 100%;
}

/* Hauptbild */
.wcpgw-main-image-wrap {
	position: relative;
	width: 100%;
	overflow: hidden;
	display: block;
}

.wcpgw-main-image-wrap img.wcpgw-main-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

/* Zoom */
.wcpgw-zoom-enabled:hover img.wcpgw-main-img {
	transform: scale(1.08);
}

/* Lightbox Link */
.wcpgw-main-image-wrap .wcpgw-lb-link {
	display: block;
	width: 100%;
	height: 100%;
}

/* Bildunterschrift */
.wcpgw-caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 8px 12px;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	font-size: 14px;
	text-align: center;
	pointer-events: none;
}

/* Thumbnails */
.wcpgw-thumbnails {
	display: flex;
	flex-wrap: wrap;
	--wcpgw-thumb-gap: 8px;
	gap: var(--wcpgw-thumb-gap);
}

.wcpgw-thumb-item {
	cursor: pointer;
	overflow: hidden;
	flex-shrink: 0;
	opacity: 0.65;
	transition: opacity 0.2s ease;
	aspect-ratio: 1 / 1;
}

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

.wcpgw-thumb-item:hover,
.wcpgw-thumb-item.active {
	opacity: 1;
}
