/*
 * [category_grid] styles.
 *
 * To customize, copy this file to your theme as
 *   item-catalog/category-grid.css
 * and edit that copy. The theme copy loads instead of this one, and plugin
 * updates won't overwrite it.
 */

 .ic-category-grid{
	clear: both;
	padding-top: 50px;
 }

.gallery-grid {
	--col: 300px; /* item width */
	--gap: 5px;
	display: grid;
	grid-template-columns: repeat(auto-fill, var(--col));
	gap: var(--gap);
	justify-content: center;
	justify-items: center;
	margin-inline: auto;
}

.gallery {
	display: flex;
	flex-direction: column;
}

/* Same-size image area on every card, image centered inside it */
.gallery-image-link {
	aspect-ratio: 1 / 1; /* adjust to taste, e.g. 4 / 3 */
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	flex-grow: 1;
}

div.gallery img,
.gallery-image-link img {
	max-width: 100%;
	max-height: 100%;
	width: auto !important;
	height: auto !important;
	object-fit: contain;
	aspect-ratio: 1 / 1;
}

/* Title sits right under the image, button pinned to the bottom */
.gallery .desc {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 0 20px 30px;
}

.gallery .desc p {
	margin: auto 0 0; /* margin-top: auto pushes the button down */
	padding-top: 20px;
}

/* ---------- Added for the shortcode's markup ---------- */

.gallery-heading {
	text-align: center;
	font-family: "garamond", Sans, sans-serif;
	font-size: 2.5em;
	color: #cdcdcd;
	margin-bottom: 15px;
}

.gallery-title {
	margin: 0;
	font-size: 1em;
	font-weight: inherit;
}

.gallery-title a {
	color: inherit;
	text-decoration: none;
	text-transform: capitalize;
}

.gallery-title a:hover,
.gallery-title a:focus-visible {
	text-decoration: underline;
}

.gallery-price {
	margin-top: .25em;
}

/* Visually hidden text for screen readers */
.ic-category-grid .ic-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Editor-only notice for missing item IDs */
.ic-notice {
	padding: .5em .75em;
	border-left: 3px solid #b32d2e;
	background: #fcf0f1;
	font-size: .875em;
}

.cart_cta{
	background-color: #efefef;
	border: 1px solid #efefef;
	color: #222;
	border-radius: 4px;
	padding: 12px 16px;
	font-size: 20px;
	text-transform: capitalize;
	&:hover{
		background-color: #000;
		color: #efefef;
		border: 1px solid #666;
	}
}