/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/


#category-showcase {
	background-color: hwb(240 97% 2%);
	padding: 25px 0;
	font-family: 'Montserrat';
	width: 100%;
}

.category-showcase__menu {
	display: flex;
	position: relative;
}

.category-showcase__menu__item {
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: center;
	align-content: center;
	text-align: center;
	border-bottom: 1px solid #E6E6E6;
	text-decoration: none;
	color: inherit;
}

.category-showcase__menu__item svg,
.category-showcase__menu__item img,
.category-showcase__menu__item__img {
	width: 72px;
	height: 72px;
	margin: 0 auto 15px auto;
	object-fit: contain;
}

.category-showcase__menu__item__heading {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 600;
	font-size: 16px;
	margin: 0;
	white-space: nowrap;
	margin-bottom: 14px;
}

.category-showcase__menu__item__count {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 500;
	font-size: 12px;
	padding-bottom: 15px;
	/* height:20px; */
	white-space: nowrap;
}

.category-showcase__menu__item--active {
	border-bottom: 3px solid #00A26B;
}

.category-showcase__menu__item--active>h3 {
	color: #00A26B;
}


.category-showcase__articles {
	display: grid;
	grid-template-columns: 30% 30% 30%;
	row-gap: 48px;
	column-gap: 48px;
	box-sizing: border-box;
	margin-top: 25px;
}

.category-showcase__articles a {
	text-decoration: none;
	color: inherit;
}

.category-showcase__article__title {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 600;
	font-size: 22px;
	color: #2A3033;
	margin-bottom: 5px;
}

.category-showcase__article__description {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 400;
	font-size: 16px;
	color: #595959;
	margin-bottom: 10px;
}

.category-showcase__articles img {
	width: 100%;
	height: 250px;
	object-fit: cover;
}

.category-showcase__article {
	position: relative;
	box-sizing: border-box;
	width: 100%;
}

.category-showcase__article:nth-child(3n+1)::after {
	height: 100%;
	width: 100%;
	position: absolute;
	pointer-events: none;
	content: '';
	left: 25px;
	top: 0px;
	border-right: 1px #D9D9D9 solid;

}

.category-showcase__article:nth-child(3n+2)::after {
	height: 100%;
	width: 100%;
	position: absolute;
	pointer-events: none;
	content: '';
	left: 25px;
	top: 0px;
	border-right: 1px #D9D9D9 solid;

}


.category-showcase__article__category {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 600;
	font-size: 14px;
	color: #00A26B;
	text-transform: uppercase;
	margin-bottom: 5px;
}

.category-showcase__pagination {
	margin: 0 auto;
}

.category-showcase__articles {
    display: grid;
    grid-template-columns: 30% 30% 30%;
    row-gap: 48px;
    column-gap: 48px;
    box-sizing: border-box;
    margin-top: 25px;
    /*padding-left: 25px;*/
}

@media only screen and (min-width: 981px) {
	.category-showcase__articles {
    padding-left: 25px;
}
}

@media(max-width:980px) {

	.category-showcase__articles {
		grid-template-columns: 1fr;
		row-gap: 10px;
	}

	.category-showcase__menu__item__heading {
		white-space: normal;
	}

	.category-showcase__menu {
		/* height: 1030px; */
	}

	.category-showcase__menu__item__count {
		margin-top: auto;

	}

	.category-showcase__menu__item__count:nth-of-type(1) {}


	.prev {
		display: inline !important;
		margin: 10px 5px !important;
	}

	.generate-columns-container {
		padding-left: 0px !important;
	}

	.category-showcase__menu {
		max-width: 100%;
		width: 100%;
		overflow: scroll;
	}

	.category-showcase__menu__item svg,
	.category-showcase__menu__item img,
	.category-showcase__menu__item__img {
		width: 60px;
		height: 60px;
	}

	.category-showcase__menu__item {
		padding: 0 30px;
	}

	.category-showcase__article {
		width: 90%;
		border-bottom: 1px #D9D9D9 solid;
		margin: 0 auto;
		border-right: none;
	}

}

@media(max-width:770px) {



	.category-showcase__menu__item svg,
	.category-showcase__menu__item img,
	.category-showcase__menu__item__img {
		width: 40px;
		height: 40px;
	}

	.category-showcase__menu__item {
		padding: 0 20px;
	}

}



.category-image .gb-inside-container {
	position: relative;
}

.category-image img {
	border-radius: 5px;
}

.category-image .gb-inside-container::after {
	content: "";
	background: #00A26B;
	position: absolute;
	left: -20px;
	top: -20px;
	clip-path: polygon(100% 0, 0 0, 0 100%);
	height: 108%;
	border-bottom-left-radius: 15px;
	border-top-left-radius: 5px;
	width: 100%;
	z-index: -99;
}

.category-showcase-shortcode {
	background-color: transparent;
}