/* SVI Updated — frontend gallery */

.svi-updated-gallery {
	position: relative;
}

.svi-updated-main-image img {
	display: block;
	width: 100%;
	height: auto;
}

.svi-updated-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.svi-updated-thumb-item {
	cursor: pointer;
	border: 2px solid transparent;
	border-radius: 4px;
	overflow: hidden;
	line-height: 0;
	flex: 0 0 auto;
}

.svi-updated-thumb-item img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	display: block;
}

.svi-updated-thumb-item.is-active {
	border-color: currentColor;
}

/* Loop showcase (archive pages) */
.svi-updated-loop-showcase {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
}

.svi-updated-loop-thumb img {
	width: 36px;
	height: 36px;
	object-fit: cover;
	border-radius: 3px;
	display: block;
}

/* Showcase strip under the variation form */
.svi-updated-showcase-under {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 10px 0;
}

.svi-updated-showcase-item {
	padding: 0;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: none;
	cursor: pointer;
	line-height: 0;
}

.svi-updated-showcase-item img {
	width: 48px;
	height: 48px;
	object-fit: cover;
	display: block;
}

/* Lightbox */
.svi-updated-lightbox {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.85);
	z-index: 100000;
	padding: 24px;
}

.svi-updated-lightbox.is-open {
	display: flex;
}

.svi-updated-lightbox-img {
	max-width: 92vw;
	max-height: 92vh;
	object-fit: contain;
}

.svi-updated-lightbox-close {
	position: absolute;
	top: 16px;
	right: 24px;
	width: 40px;
	height: 40px;
	font-size: 28px;
	line-height: 1;
	color: #fff;
	background: none;
	border: none;
	cursor: pointer;
}

.svi-updated-noscroll {
	overflow: hidden;
}
