/******************************************************************************
 /$$$$$$$  /$$$$$$$   /$$$$$$     /$$$$$ /$$$$$$$$  /$$$$$$  /$$$$$$$$ /$$$$$$
| $$__  $$| $$__  $$ /$$__  $$   |__  $$| $$_____/ /$$__  $$|__  $$__//$$__  $$
| $$  \ $$| $$  \ $$| $$  \ $$      | $$| $$      | $$  \__/   | $$  | $$  \__/
| $$$$$$$/| $$$$$$$/| $$  | $$      | $$| $$$$$   | $$         | $$  |  $$$$$$
| $$____/ | $$__  $$| $$  | $$ /$$  | $$| $$__/   | $$         | $$   \____  $$
| $$      | $$  \ $$| $$  | $$| $$  | $$| $$      | $$    $$   | $$   /$$  \ $$
| $$      | $$  | $$|  $$$$$$/|  $$$$$$/| $$$$$$$$|  $$$$$$/   | $$  |  $$$$$$/
|__/      |__/  |__/ \______/  \______/ |________/ \______/    |__/   \______/
*****************************************************************************/
ul.project-category-selection
{
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
	padding: 0 !important;
	gap: 30px;
	margin: 0 auto 100px auto;
}

@media screen and (max-width:768px)
{
	ul.project-category-selection
	{
		flex-flow: column nowrap;
		justify-content: center;
		text-align: center;
		align-items: center;
		margin: 0 auto 60px auto;
		gap: 5px;
	}
}

ul.project-category-selection li
{
	list-style: none;
	width: 100%;
	max-width: 240px;
	margin-bottom: 15px;
}

@media screen and (max-width:768px)
{
	ul.project-category-selection li
	{
		margin: 0 0 15px 0;
	}
}

ul.project-category-selection li::before
{
	display: none !important;
}

ul.project-category-selection li:last-of-type
{
	margin-right: 0;
}

ul.project-category-selection li button
{
	position: relative;
	display: block;
	font-family: var(--primary-font-family);
	font-size: 16px;
	font-weight: normal;
	color: var(--bs-font-color) !important;
	background-color: var(--bs-background-color-light-gray);
	font-weight: 600;
	padding: 15px 8px;
	text-decoration: none;
	border: none !important;
	width: 100%;
	max-width: 240px !important;
	text-align: center;
	transition: color 200ms;
}

ul.project-category-selection li button:hover
{
	color: var(--primary-color) !important;
}

ul.project-category-selection li button.selected
{
	background-color: var(--primary-color) !important;
	color: var(--bs-font-color-white) !important;
	
}

#project_listing_container
{
	position: relative;
	z-index: 1;
	margin: 0 auto 90px auto;
	width: 100%;
	max-width: 2000px;
}

#project_output_container
{
	max-width: 1530px;
}

.project-link:link,
.project-link:active,
.project-link:visited
{
	position: relative;
	display: block;
	width: 100%;
	height: 0;
	margin-bottom: 30px;
	padding-top: 90%;
	background-color: #666569;
	background-size: cover;
	background-position: center center;
	text-decoration: none;
	transition: transform 300ms ease;
}

@media screen and (max-width: 1200px)
{
	.project-link
	{
		height: auto;
	}
}

.project-link:hover
{
	height: auto;
}


.project-link .project-hover-details
{
	position: absolute;
	display: flex;
	flex-flow: column;
	/* flex-end keeps the title in the visible bottom strip before hover */
	justify-content: flex-end;
	align-items: center;
	z-index: 2;
	top: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	text-align: center;
	font-family: var(--secondary-font-family);
	font-size: 28px;
	color: var(--bs-font-color-white);	
	opacity: 1;
	padding: 10px;
	/*
		Calc clips from the top, leaving only the bottom 60px visible.
		60px = ~10px bottom padding + ~40px title height + ~10px top spacing.
		This prevents the empty overlay from showing above the title before hover.
	*/
	clip-path: inset(calc(100% - 60px) 0 0 0);
	transition: clip-path 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
	background: rgba(17, 17, 17, 0.85);
}

/* Expand top section to fill available space so its content centres within it */
.project-link .project-hover-details .project-hover-top
{
	display: flex;
	flex-flow: column;
	align-items: center;
	justify-content: center;
	width: 100%;
}

@media screen and (max-width: 1200px)
{
	.project-link .project-hover-details .project-hover-top
	{
		flex: 1;
	}
}


.project-link:hover .project-hover-details .project-hover-top
{
	flex: 1;
}

.project-link:hover .project-hover-details .title
{
	margin-bottom: 16px;
}

@media screen and (max-width: 1200px)
{
	.project-link .project-hover-details .title
	{
		margin-bottom: 16px;
	}
}

.project-link .project-hover-details .project-location,
.project-link .project-hover-details .project-button,
.project-link .project-hover-details .project-hover-category
{
	display: none;
	opacity: 0;
	transition: opacity 400ms;
	margin-bottom: 16px;
}

.project-link .project-hover-details .project-location
{
	font-family: var(--primary-font-family);
	font-size: 16px;
	font-weight: 400;
	font-style: normal;
	color: var(--bs-font-color-white);
	line-height: 1.5;
	margin-bottom: 16px;
}

@media screen and (max-width: 1200px)
{
	.project-link .project-hover-details .project-location,
	.project-link .project-hover-details .project-button,
	.project-link .project-hover-details .project-hover-category
	{
		display: block;
		opacity: 1;
		transition: opacity 400ms;
	}
}

.project-link:hover .project-hover-details .project-location,
.project-link:hover .project-hover-details .project-button,
.project-link:hover .project-hover-details .project-hover-category
{
	display: block;
	opacity: 1;
	transition: opacity 400ms;
}



.project-link:hover .project-hover-details
{
	top: 0;
	bottom: 0;
	justify-content: flex-start;
	clip-path: inset(0% 0 0 0);
}

@media screen and (max-width: 1200px)
{
	.project-link .project-hover-details
	{
		top: 0;
		bottom: 0;
		justify-content: flex-start;
		clip-path: inset(0% 0 0 0);
	}
}


/* Bottom section stays at the bottom of the stretched container */
.project-link .project-hover-details .project-hover-bottom
{
	display: block;
	width: 100%;
}

.project-link .project-hover-details .project-hover-bottom span
{
	font-family: var(--primary-font-family);
	font-size: 13px;
	font-weight: 400;
	font-style: normal;
	color: var(--bs-font-color-white);
	line-height: 1.5;
	text-transform: uppercase;
	margin: 16px auto;
}