/* El slider lo maneja WooCommerce Blocks. Acá solo: cursor de zoom en la
   imagen principal + lightbox en carrusel a pantalla completa. */

.wc-block-product-gallery-large-image__wrapper,
.wc-block-product-gallery-large-image__wrapper img {
	cursor: zoom-in;
}

.ff-gallery-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.92);
	padding: 16px;
}

.ff-gallery-lightbox[hidden] {
	display: none;
}

.ff-gallery-lightbox__figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	max-width: min(1100px, 100%);
	max-height: 100%;
	margin: 0;
}

.ff-gallery-lightbox__img {
	display: block;
	max-width: 100%;
	max-height: calc(100dvh - 140px);
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 6px;
	background: #F7F7F7;
}

.ff-gallery-lightbox__counter {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	margin: 0;
	color: #fff;
	font-size: 0.875rem;
	font-variant-numeric: tabular-nums;
}

.ff-gallery-lightbox__close,
.ff-gallery-lightbox__nav {
	position: absolute;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.ff-gallery-lightbox__close {
	top: 12px;
	right: 12px;
}

.ff-gallery-lightbox__prev {
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
}

.ff-gallery-lightbox__next {
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
}

.ff-gallery-lightbox__close:hover,
.ff-gallery-lightbox__nav:hover {
	background: rgba(255, 255, 255, 0.22);
}

.ff-gallery-lightbox__close:focus-visible,
.ff-gallery-lightbox__nav:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.ff-gallery-lightbox__nav:disabled {
	opacity: 0.4;
	cursor: default;
}

body.ff-gallery-open {
	overflow: hidden;
}
