/**
 * ProductTextures Shortcode Styles
 *
 * @package EchelonCore\Shortcode\ProductTextures
 */

.product-textures {
	width: 100%;
	margin-top: var(--wp--preset--spacing--xs);
}

.product-textures__name {
	margin: 0 0 16px;
}

.product-textures__description {
	margin-bottom: 24px;
}

.product-textures__description > :last-child {
	margin-bottom: 0;
}

body .product-textures__gallery {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax(150px, 1fr) );
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.product-textures__item,
.product-textures__figure {
	margin: 0;
}

.product-textures__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border: 2px solid var(--global-palette12);
	padding: 3px;
}

.product-textures__caption {
	margin-top: 8px;
	text-align: center;
}
