.product-gallery__photo { cursor: zoom-in; }

.gallery-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	background: rgba(0, 0, 0, .86);
}
.gallery-lightbox.is-open { display: block; }
.gallery-lightbox__scroll {
	position: absolute;
	inset: 0;
	display: flex;
	overflow: auto;
	padding: 28px 16px;
	-webkit-overflow-scrolling: touch;
}
.gallery-lightbox__frame {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin: auto;
	max-width: 100%;
}
.gallery-lightbox__figure {
	position: relative;
	flex: 0 1 auto;
	min-width: 0;
}
.gallery-lightbox__img {
	display: block;
	max-width: min(100%, 82vw);
	max-height: 86vh;
	margin: 0 auto;
	object-fit: contain;
	background: #fff;
	border-radius: 10px;
	cursor: zoom-in;
}
.gallery-lightbox.is-zoomed .gallery-lightbox__img {
	max-width: none;
	max-height: none;
	cursor: zoom-out;
}
.gallery-lightbox__btn {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0 0 3px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: #1b1b1b;
	font: 400 28px/1 system-ui, sans-serif;
	cursor: pointer;
	transition: background-color .15s ease, transform .15s ease;
}
.gallery-lightbox__btn:hover,
.gallery-lightbox__btn:focus-visible {
	background: #fff;
	outline: none;
	transform: scale(1.06);
}
.gallery-lightbox__close {
	position: absolute;
	top: -12px;
	right: -12px;
	z-index: 1;
	width: 36px;
	height: 36px;
	padding: 0 0 2px;
	font-size: 24px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}
.gallery-lightbox.is-single .gallery-lightbox__prev,
.gallery-lightbox.is-single .gallery-lightbox__next { display: none; }
.gallery-lightbox.is-zoomed .gallery-lightbox__prev,
.gallery-lightbox.is-zoomed .gallery-lightbox__next { display: none; }

@media (max-width: 640px) {
	.gallery-lightbox__scroll { padding: 20px 12px; }
	.gallery-lightbox__img { max-width: 100%; max-height: 80vh; }
	.gallery-lightbox__prev,
	.gallery-lightbox__next {
		position: absolute;
		top: 50%;
		z-index: 1;
		width: 38px;
		height: 38px;
		margin-top: -19px;
		background: rgba(255, 255, 255, .8);
	}
	.gallery-lightbox__prev { left: 8px; }
	.gallery-lightbox__next { right: 8px; }
	.gallery-lightbox__close { top: -10px; right: -6px; }
}
body.has-lightbox { overflow: hidden; }

.product-gallery__stage { position: relative; }
.gallery-lens {
	position: absolute;
	z-index: 2;
	display: none;
	width: 190px;
	height: 190px;
	border: 2px solid #fff;
	border-radius: 50%;
	background-color: #fff;
	background-repeat: no-repeat;
	box-shadow: 0 6px 22px rgba(0, 0, 0, .28);
	pointer-events: none;
}
.gallery-lens.is-on { display: block; }

/* While the lens is on, the lens is the pointer. */
.product-gallery__stage.is-lens,
.product-gallery__stage.is-lens .product-gallery__photo { cursor: none; }
