/* NOTE CATEGORY LISTING AND TERM LISTING HAVE THE SAME CSS SO SYNC THESE TWO 06-08-22 */

/* All Layouts */
.cp-list .cp-list__title {
	font-size: 1.25rem;
	text-transform: uppercase;
	font-weight: 800;
	text-align: center;
	font-family: var(--wp--preset--font-family--sans-serif);
}

@media only screen and (max-width: 767px) {
	.cp-list .cp-list__title {
		margin-bottom: 16px;
	}
}
@media only screen and (min-width: 768px) {
	.cp-list .cp-list__title {
		margin-bottom: 24px;
	}
}


/* Large Image */
.cp-list.layout-alpha .cp-list__inner {
	display: grid;
}

.cp-list.layout-alpha .cp-list__inner .cat {
	text-decoration: none;
}

.cp-list.layout-alpha .cp-list__inner .cat:hover .cat__name {
	transform: translateY(-5px);
	border-radius: 6px;
}

.cp-list.layout-alpha .cp-list__inner .cat img {
	border-radius: 6px;
	width: 100%;
}

.cp-list.layout-alpha .cp-list__inner .cat__name {
	display: block;
	text-transform: uppercase;
	text-align: center;
	font-weight: 800;
	color: #000000;
	background: white;
	border-top-left-radius: 6px;
	border-top-right-radius: 6px;
	margin-left: auto;
	margin-right: auto;
	position: relative;
	line-height: var(--wp--custom--line-height--tiny);
	transition: all 0.1s ease-in-out;
}


@media only screen and (max-width: 767px) {

	.cp-list.layout-alpha .cp-list__inner {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
		column-gap: 32px;
		row-gap: 24px;
	}

	.cp-list.layout-alpha .cp-list__inner .cat__name {
		font-size: 1rem;
		padding: 9px;
		width: 89%;
		margin-top: -34px;
	}

}

@media only screen and (min-width: 768px) {

	.cp-list.layout-alpha .cp-list__inner {
		grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
		column-gap: 32px;
	}

	.cp-list.layout-alpha .cp-list__inner .cat__name {
		font-size: 1.25rem;
		padding: 9px;
		width: 72%;
		margin-top: -39px;
	}

}

/* -------------------------------------------------------- */
/* Small Image */
.cp-list.layout-beta .cp-list__inner {
	display: grid;
}

.cp-list.layout-beta .cp-list__inner .cat {
	text-decoration: none;
}

.cp-list.layout-beta .cp-list__inner .cat img {
	border-radius: 6px;
	width: 100%;
	margin-bottom: 10px;
}

.cp-list.layout-beta .cp-list__inner .cat__name {
	display: block;
	text-transform: uppercase;
	text-align: center;
	font-weight: 800;
	color: #000000;
	line-height: var(--wp--custom--line-height--tiny);
}

@media only screen and (max-width: 767px) {

	.cp-list.layout-beta .cp-list__inner {
		grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
		column-gap: 8px;
		row-gap: 24px;
	}

	.cp-list.layout-beta .cp-list__inner .cat__name {
		font-size: 0.75rem;
	}

}

@media only screen and (min-width: 768px) {

	.cp-list.layout-beta .cp-list__inner {
		grid-template-columns: repeat( 6, minmax( 0, 1fr ) );
		column-gap: 32px;
		row-gap: 24px;
	}

	.cp-list.layout-beta .cp-list__inner .cat__name {
		font-size: 1rem;
	}

}


/* -------------------------------------------------------- */

/* red primary, light blue - blue, purple - secondary , dark blue tertiary, green - green, orange - orange, red - red, yellow - yellow */

/* Large Icon and Small Icon Colors */
.cp-list .cp-list__inner .cat:nth-child(8n + 1) .category-icon .highlight {
	fill: var(--wp--preset--color--primary);
}
.cp-list .cp-list__inner .cat:nth-child(8n + 2) .category-icon .highlight {
	fill: var(--wp--custom--color--blue);
}
.cp-list .cp-list__inner .cat:nth-child(8n + 3) .category-icon .highlight {
	fill: var(--wp--preset--color--secondary);
}
.cp-list .cp-list__inner .cat:nth-child(8n + 4) .category-icon .highlight {
	fill: var(--wp--preset--color--tertiary);
}
.cp-list .cp-list__inner .cat:nth-child(8n + 5) .category-icon .highlight {
	fill: var(--wp--custom--color--green);
}
.cp-list .cp-list__inner .cat:nth-child(8n + 6) .category-icon .highlight {
	fill: var(--wp--custom--color--orange);
}
.cp-list .cp-list__inner .cat:nth-child(8n + 7) .category-icon .highlight {
	fill: var(--wp--custom--color--red);
}
.cp-list .cp-list__inner .cat:nth-child(8n + 8) .category-icon .highlight {
	fill: var(--wp--custom--color--yellow);
}

/* Large Icon */
.cp-list.layout-gamma .cp-list__inner {
	display: grid;
}

.cp-list.layout-gamma .cp-list__inner .cat {
	text-decoration: none;
}

.cp-list.layout-gamma .cat__icon-container {
	display: block;
	text-align: center;
	line-height: 0;
}

.cp-list.layout-gamma .cat:hover svg {
	transform: scale(1.05);
}

.cp-list.layout-gamma .cp-list__inner .cat__name {
	display: block;
	text-transform: uppercase;
	text-align: center;
	font-weight: 800;
	color: #000000;
	line-height: var(--wp--custom--line-height--tiny);
	/* padding: 0 10px; */
}

@media only screen and (max-width: 767px) {

	.cp-list.layout-gamma .cp-list__inner {
		grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
		column-gap: 6px;
		row-gap: 28px;
	}

	.cp-list.layout-gamma .category-icon {
		width: 60px;
		height: 60px;
	}

	.cp-list.layout-gamma .cp-list__inner .cat__name {
		font-size: 0.75rem;
		margin-top: 9px;
	}

}

@media only screen and (min-width: 768px) {

	.cp-list.layout-gamma .cp-list__inner {
		grid-template-columns: repeat( 6, minmax( 0, 1fr ) );
		column-gap: 32px;
		row-gap: 32px;
	}

	.cp-list.layout-gamma .category-icon {
		width: 72px;
		height: 72px;
	}

	.cp-list.layout-gamma .cp-list__inner .cat__name {
		font-size: 1rem;
		margin-top: 12px;
	}

}



/* -------------------------------------------------------- */
/* Small Icon */
.cp-list.layout-delta .cp-list__inner {
	display: grid;
}

.cp-list.layout-delta .cp-list__inner .cat {
	text-decoration: none;
}

.cp-list.layout-delta .cat__icon-container {
	display: block;
	text-align: center;
	line-height: 0;
}

.cp-list.layout-delta .cat:hover svg {
	transform: scale(1.05);
}

.cp-list.layout-delta .cat__icon-container.all-recipes { /* special one */
	background-color: var(--wp--preset--color--quaternary);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-left: auto;
	margin-right: auto;
}

.cp-list.layout-delta .cp-list__inner .cat__name {
	display: block;
	text-transform: uppercase;
	text-align: center;
	font-weight: 800;
	color: #000000;
	line-height: var(--wp--custom--line-height--tiny);
	margin-top: 9px;
}

@media only screen and (max-width: 767px) {

	.cp-list.layout-delta .cp-list__inner {
		grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
		column-gap: 6px;
		row-gap: 28px;
	}

	.cp-list.layout-delta .category-icon {
		width: 60px;
		height: 60px;
	}

	.cp-list.layout-delta .cat__icon-container.all-recipes { /* special one */
		width: 60px;
		height: 60px;
	}

	.cp-list.layout-delta .cp-list__inner .cat__name {
		font-size: 0.75rem;
		margin-top: 12px;
	}

}

@media only screen and (min-width: 768px) {

	.cp-list.layout-delta .cp-list__inner {
		grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
		column-gap: 32px;
		row-gap: 32px;
	}

	.cp-list.layout-delta .category-icon {
		width: 72px;
		height: 72px;
	}

	.cp-list.layout-delta .cat__icon-container.all-recipes { /* special one */
		width: 72px;
		height: 72px;
	}

	.cp-list.layout-delta .cp-list__inner .cat__name {
		font-size: 1rem;
	}

}

@media only screen and (min-width: 1200px) {
	.cp-list.layout-delta .cp-list__inner {
		grid-template-columns: repeat( 9, minmax( 0, 1fr ) );
		column-gap: 32px;
		row-gap: 32px;
	}
}
