/* GP THEME TWEAKS */


/* Text wrap balance/pretty */

:is(h1, h2, h3, h4, h5, h6),  balance{
	text-wrap: balance;
}

p, li, blockquote {
	text-wrap: pretty;
}

P:last-child:last-of-type {
	margin-bottom: 0px;
}


/* Line limits */

.line-limit-3, .line-limit-2 {
	display: -webkit-box;
	-wbkit-box-orient: vertical;
	overflow: hidden;
}

.line-limit-3 {
	-webkit-line-clamp: 3;
}

.line-limit-2 {
	-webkit-line-clamp: 2;
}

/* Visually Hidden */
.visually-hiddent:not(:focus):not(:active) {
	clip: rect(0,0,0,0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

/* Default transition */
.transition{ 
	transition: all .25s ease-in-out;
}

/* GP menu accessibility tweak */

#site-navigation ul.sub-menu{
	display: block;
}

#site-navigation li:hover .gp-icon svg{
	transform: rotate(180deg);
}

#site-navigation li:hover .sub-menu{
	visibility: visible;
}	

/* Make a whole card clickable */ 
/* Tutorial: https://youtu.be/HBriBrnRlQE?si=DLiSXEiBHt6lw91l */ 
/* Make sure you only have ONE link inside your card 😅 or this will not work!  */ 

.stretch-link{
	position: relative;
}

.stretch-link a::after{
	content: '';
	position: absolute;
	inset: 0;
}

.stretch-link a:is(:focus-visible)::after{
	outline: 2px solid;
}

.stretch-link a:is(:hover, :focus){
	outline: none;
}
