/********************************************************************************************************************************************************************
 /$$$$$$$  /$$$$$$$   /$$$$$$     /$$$$$ /$$$$$$$$  /$$$$$$  /$$$$$$$$ /$$$$$$ 
| $$__  $$| $$__  $$ /$$__  $$   |__  $$| $$_____/ /$$__  $$|__  $$__//$$__  $$
| $$  \ $$| $$  \ $$| $$  \ $$      | $$| $$      | $$  \__/   | $$  | $$  \__/
| $$$$$$$/| $$$$$$$/| $$  | $$      | $$| $$$$$   | $$         | $$  |  $$$$$$ 
| $$__  $$| $$__  $$| $$  | $$ /$$  | $$| $$__/   | $$         | $$   \____  $$
| $$  \ $$| $$  \ $$| $$  | $$| $$  | $$| $$      | $$    $$   | $$   /$$  \ $$
| $$  | $$| $$  | $$|  $$$$$$/|  $$$$$$/| $$$$$$$$|  $$$$$$/   | $$  |  $$$$$$/
|__/  |__/|__/  |__/ \______/  \______/ |________/ \______/    |__/   \______/ 
********************************************************************************************************************************************************************/
.projects-container
{
	position: relative;
	height: auto;
	width: calc(100% - 30px);
	max-width: 2000px;
	margin: 0 auto;
	overflow: hidden;
}

.projects-container .project-link:link,
.projects-container .project-link:visited
{
	position: relative;
	display: block;
	overflow: hidden;
	width: 100%;
    max-width: 420px;
    height: 442px;
	background-color: #4c4d4f;
	background-repeat: no-repeat;
	background-size: cover;
	text-decoration: none;
	margin: 0 auto;
	transition: transform 300ms ease;
}

.projects-container .project-link img
{
	position: absolute;
	left: 0;
	top: 0;
	z-index: 1;
	object-fit: cover;
	width: 100%;
	height: 100%;
	transition: transform 800ms ease-out;
}

.projects-container a.project-link
{
	text-decoration: none !important;
}

/* Overlay panel — clipped to bottom strip by default, expands on hover */
.projects-container .project-link .project-hover-details
{
	position: absolute;
	display: flex;
	flex-flow: column;
	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);
	padding: 10px;
	/*
		Calc clips from the top, leaving only the bottom 60px visible.
		60px = ~10px bottom padding + ~40px title height + ~10px top spacing.
	*/
	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(49, 52, 58, 0.85);
}

@media screen and (max-width: 1200px)
{
	.projects-container .project-link .project-hover-details
	{
		clip-path: inset(0% 0 0 0);
	}
}

/* Top section: centres its content within the expanded space */
.projects-container .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)
{
	.projects-container .project-link .project-hover-details .project-hover-top
	{
		flex: 1;
	}
}


.projects-container .project-link:hover .project-hover-details .project-hover-top
{
	flex: 1;
}

/* Project title */
.projects-container .project-link .project-hover-details .title
{
	font-family: var(--secondary-font-family);
	font-size: 28px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--bs-font-color-white);
	padding-top: 10px;
	padding-bottom: 10px;
	text-align: center;
	text-decoration: none;
	width: 100%;
}

@media screen and (max-width: 1200px)
{
	.projects-container .project-link .project-hover-details .title
	{
		margin-bottom: 16px;
	}
}

.projects-container .project-link:hover .project-hover-details .title
{
	margin-bottom: 16px;
}

/* Secondary details — hidden until hover */
.projects-container .project-link .project-hover-details .project-location,
.projects-container .project-link .project-hover-details .project-button,
.projects-container .project-link .project-hover-details .project-hover-category
{
	display: none;
	opacity: 0;
	transition: opacity 400ms;
	margin-bottom: 16px;
}

@media screen and (max-width: 1200px)
{
	.projects-container .project-link .project-hover-details .project-location,
	.projects-container .project-link .project-hover-details .project-button,
	.projects-container .project-link .project-hover-details .project-hover-category
	{
		display: block;
		opacity: 1;
		transition: opacity 400ms;
	}
}

.projects-container .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;
}

.projects-container .project-link:hover .project-hover-details .project-location,
.projects-container .project-link:hover .project-hover-details .project-button,
.projects-container .project-link:hover .project-hover-details .project-hover-category
{
	display: block;
	opacity: 1;
	transition: opacity 400ms;
}

/* Full overlay reveal on hover */
.projects-container .project-link:hover .project-hover-details
{
	justify-content: flex-start;
	clip-path: inset(0% 0 0 0);
}

/* Bottom section stays pinned to the bottom of the overlay */
.projects-container .project-link .project-hover-details .project-hover-bottom
{
	display: block;
	width: 100%;
}

.projects-container .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;
}

.projects-container .projects-arrow
{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;    
    background-color: var(--tertiary-color);
    color: #ffffff;
    cursor: pointer;
    transition: background-color 200ms ease, transform 200ms ease, opacity 200ms ease;
	border: none;
}

.projects-container .projects-arrow img
{
	display: block;
	width: 30px;
	height: 30px;
	object-fit: contain;
}

.projects-container .projects-prev
{
    left: 0;
}

.projects-container .projects-next
{
    right: 0;
}


.projects-container .projects-arrow.swiper-button-disabled
{
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}
