/* Toro Torito — Tienda: galería de fotos del producto. */

.woocommerce-product-gallery {
	--ttt-tinta: var(--wp--preset--color--tinta, var(--wp--preset--color--contrast, #3a3836));
	--ttt-linea: var(--wp--preset--color--linea, rgba(58, 56, 54, .28));
	--ttt-ladrillo: var(--wp--preset--color--ladrillo, var(--wp--preset--color--accent, #a24a32));
	--ttt-papel: var(--wp--preset--color--papel, #fffaf5);
	position: relative;
	margin-bottom: 2rem;
}

.woocommerce-product-gallery__wrapper { margin: 0; }

.woocommerce-product-gallery__image img,
.woocommerce-product-gallery .flex-viewport img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--ttt-linea);
	background: var(--ttt-papel);
}

/* Miniaturas debajo, en fila, con línea fina; la elegida en ladrillo. */
.woocommerce-product-gallery .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr));
	gap: .6rem;
	list-style: none;
	margin: .9rem 0 0;
	padding: 0;
}
.woocommerce-product-gallery .flex-control-thumbs li { margin: 0; padding: 0; width: auto !important; float: none !important; }
.woocommerce-product-gallery .flex-control-thumbs img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border: 1px solid var(--ttt-linea);
	opacity: .65;
	cursor: pointer;
	transition: opacity .15s, border-color .15s;
}
.woocommerce-product-gallery .flex-control-thumbs img:hover,
.woocommerce-product-gallery .flex-control-thumbs img.flex-active {
	opacity: 1;
	border-color: var(--ttt-ladrillo);
	outline: 1px solid var(--ttt-ladrillo);
}

/* Botón para ver en grande. */
.woocommerce-product-gallery__trigger {
	position: absolute;
	top: .75rem;
	right: .75rem;
	z-index: 9;
	width: 2.4rem;
	height: 2.4rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--ttt-papel);
	border: 1px solid var(--ttt-tinta);
	border-radius: 50%;
	text-indent: -9999px;
	overflow: hidden;
}
.woocommerce-product-gallery__trigger::before {
	content: "";
	position: absolute;
	width: .8rem;
	height: .8rem;
	border: 2px solid var(--ttt-tinta);
	border-radius: 50%;
	top: .6rem;
	left: .6rem;
	text-indent: 0;
}
.woocommerce-product-gallery__trigger::after {
	content: "";
	position: absolute;
	width: 2px;
	height: .5rem;
	background: var(--ttt-tinta);
	transform: rotate(-45deg);
	top: 1.35rem;
	left: 1.55rem;
}
.woocommerce-product-gallery__trigger:hover { border-color: var(--ttt-ladrillo); }

/* Visor a pantalla completa con el fondo del sitio. */
.pswp__bg { background: var(--wp--preset--color--durazno, var(--wp--preset--color--base, #f8e6d8)) !important; opacity: .97 !important; }
.pswp__top-bar,
.pswp__caption { background: transparent !important; }
.pswp__counter,
.pswp__caption__center { color: #3a3836 !important; font-family: var(--wp--preset--font-family--montserrat, "Montserrat", sans-serif); }
.pswp__button { filter: invert(1) brightness(.25); }
