/* Figma 8866:29730 / 8940:24801; product-page gallery keeps its existing layout. */
.furpsy-gallery-open {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	padding: 0;
	background: transparent;
	cursor: pointer;
}
.furpsy-gallery-open:focus-visible {
	outline: 2px solid var(--furpsy-color-primary-30);
	outline-offset: -2px;
}
.furpsy-gallery-lightbox {
	box-sizing: border-box;
	position: fixed;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 24px 0;
	border: 0;
	background: transparent;
	overflow: hidden;
	opacity: 0;
	transition: opacity 200ms ease-in-out;
}
.furpsy-gallery-lightbox[open] {
	display: grid;
	place-items: center;
}
.furpsy-gallery-lightbox::backdrop {
	background: var(--furpsy-color-opacity-black-60);
	opacity: 0;
	transition: opacity 200ms ease-in-out;
}
.furpsy-gallery-lightbox.is-open,
.furpsy-gallery-lightbox.is-open::backdrop { opacity: 1; }
.furpsy-gallery-lightbox__content {
	width: min(656px, calc(100vw - 128px));
	transform: translateY(17px) scale(0.99);
	transition: transform 200ms ease-in-out;
}
.is-open .furpsy-gallery-lightbox__content { transform: translateY(13px); }
.furpsy-gallery-lightbox__frame {
	position: relative;
	width: var(--lightbox-image-width, 1px);
	height: var(--lightbox-image-height, 1px);
	margin-inline: auto;
	background: transparent;
}
.furpsy-gallery-lightbox__viewport {
	position: absolute;
	top: 50%;
	left: 50%;
	width: var(--lightbox-stage-width);
	height: 100%;
	transform: translate(-50%, -50%);
	overflow: hidden;
	touch-action: pan-y pinch-zoom;
}
.furpsy-gallery-lightbox__track { display: flex; height: 100%; }
.furpsy-gallery-lightbox__slide {
	display: flex;
	flex: 0 0 100%;
	min-width: 0;
	height: 100%;
	align-items: center;
	justify-content: center;
}
.furpsy-gallery-lightbox__slide img {
	display: block;
	flex-shrink: 0;
	width: var(--lightbox-slide-width);
	height: var(--lightbox-slide-height);
	object-fit: contain;
	user-select: none;
}
.furpsy-gallery-lightbox__slide--video { position: relative; }
.furpsy-gallery-lightbox__slide--video img { object-fit: cover; }
.furpsy-gallery-lightbox__slide video,
.furpsy-gallery-lightbox__slide iframe {
	display: block;
	flex-shrink: 0;
	width: var(--lightbox-slide-width);
	height: var(--lightbox-slide-height);
	border: 0;
	background: var(--furpsy-color-grey-100);
}
.furpsy-gallery-lightbox__play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 64px;
	height: 64px;
	padding: 0;
	border: 0;
	border-radius: 40px;
	transform: translate(-50%, -50%);
	background: var(--furpsy-color-opacity-black-40) url('../../icons/gallery-play.svg') center / 40px 40px no-repeat;
	cursor: pointer;
	transition: background-color 200ms ease-in-out;
}
.furpsy-gallery-lightbox__play:hover { background-color: var(--furpsy-color-opacity-black-60); }
.furpsy-gallery-lightbox__play:focus-visible {
	outline: 2px solid var(--furpsy-color-primary-30);
	outline-offset: 2px;
}
.furpsy-gallery-lightbox__thumb-track .furpsy-gallery-lightbox__thumb--video { position: relative; }
.furpsy-gallery-lightbox__thumb--video::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 32px;
	height: 32px;
	border-radius: 40px;
	transform: translate(-50%, -50%);
	background: var(--furpsy-color-opacity-black-40) url('../../icons/gallery-play.svg') center / 20px 20px no-repeat;
	pointer-events: none;
}
.furpsy-gallery-lightbox .furpsy-gallery-lightbox__close {
	position: absolute;
	top: 8px;
	right: 8px;
}
.furpsy-gallery-lightbox .furpsy-gallery-lightbox__close:not(:hover):not(:active) {
	background-color: var(--furpsy-color-opacity-white-100);
}
.furpsy-gallery-lightbox__arrow {
	position: absolute;
	top: calc(50% - 20px);
}
.furpsy-gallery-lightbox__arrow--left { left: -56px; }
.furpsy-gallery-lightbox__arrow--right { right: -56px; }
.furpsy-gallery-lightbox__arrow:disabled { visibility: hidden; }
.furpsy-gallery-lightbox__thumbnails {
	position: relative;
	height: 96px;
	margin-top: 8px;
}
.furpsy-gallery-lightbox__thumb-track {
	position: relative;
	display: flex;
	gap: 8px;
	height: 96px;
	overflow-x: auto;
	overscroll-behavior: contain;
	scrollbar-width: none;
}
.furpsy-gallery-lightbox__thumb-track::-webkit-scrollbar { display: none; }
.furpsy-gallery-lightbox__thumb-track button {
	box-sizing: border-box;
	flex: 0 0 96px;
	width: 96px;
	height: 96px;
	border: 0;
	padding: 0;
	background: var(--furpsy-color-grey-5);
	cursor: pointer;
	outline: 2px solid transparent;
	outline-offset: -2px;
	transition: outline-color 200ms ease-in-out, opacity 200ms ease-in-out;
}
.furpsy-gallery-lightbox__thumb-track img {
	display: block;
	width: 96px;
	height: 96px;
	object-fit: cover;
}
.furpsy-gallery-lightbox__thumb-track button:where(:hover, :focus-visible, [aria-current='true']) {
	outline-color: var(--furpsy-color-primary-30);
}
.furpsy-gallery-lightbox__thumbnails::before,
.furpsy-gallery-lightbox__thumbnails::after {
	content: '';
	position: absolute;
	top: 0;
	width: 82px;
	height: 96px;
	z-index: 1;
	pointer-events: none;
	opacity: 0;
	transition: opacity 200ms ease-in-out;
}
.furpsy-gallery-lightbox__thumbnails::before {
	left: 0;
	background: linear-gradient(to right, var(--furpsy-color-opacity-black-80), transparent);
}
.furpsy-gallery-lightbox__thumbnails::after {
	right: 0;
	background: linear-gradient(to left, var(--furpsy-color-opacity-black-80), transparent);
}
.furpsy-gallery-lightbox__thumbnails[data-previous='true']::before,
.furpsy-gallery-lightbox__thumbnails[data-next='true']::after { opacity: 1; }
.furpsy-gallery-lightbox .furpsy-nav-icon-button,
.furpsy-gallery-lightbox .furpsy-slider-arrow {
	transition-duration: 200ms;
	transition-timing-function: ease-in-out;
}
@media (prefers-reduced-motion: reduce) {
	.furpsy-gallery-lightbox,
	.furpsy-gallery-lightbox::backdrop,
	.furpsy-gallery-lightbox__content,
	.furpsy-gallery-lightbox button,
	.furpsy-gallery-lightbox__thumbnails::before,
	.furpsy-gallery-lightbox__thumbnails::after,
	.furpsy-gallery-lightbox__play { transition: none; }
}
