/* projectspage.css — grid of project cards matching site look */

.projects-header {
	text-align: center;
	max-width: 1000px;
	margin: 0 auto 1.25rem;
	padding: 0 12px;
}

.projects-header h1 {
	margin: 0 0 6px;
	font-family: 'Changa One', sans-serif;
	font-weight: 400;
	line-height: 1.02;
	color: #464d3a;
  padding-bottom: 12px;
}

.projects-header .lead {
	margin: 0;
	color: #60684f;
	font-family: 'Montserrat', sans-serif;
	font-size: clamp(0.95rem, 2.2vw, 1.20rem);
  padding-bottom: 24px;
}

.project-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr); /* strict 3 columns on wide viewports */
	gap: 18px;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 12px 18px;
}

.project-card {
	background: #ffffff; /* polaroid white like .project-showcase */
	border-radius: 8px;
	padding: 14px; /* inner frame so image doesn't touch edges */
	box-shadow: 0 10px 30px rgba(0,0,0,0.13);
	border: 1px solid rgba(0,0,0,0.06);
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	gap: 12px;
	transition: transform 0.22s ease, box-shadow 0.22s ease;
  z-index: 999;
}

.project-card:hover,
.project-card:focus {
	transform: translateY(-8px) scale(1.02);
	box-shadow: 0 18px 40px rgba(0,0,0,0.16);
}

/* image fills the card */
.project-image {
	width: 100%;
	height: auto;
	object-fit: cover;
	display: block;
	border-radius: 6px;
	background: #eee; /* fallback while image loads */
	box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* meta overlay at bottom */
.project-meta {
	position: relative;
	padding: 0; /* spacing handled by card gap */
	background: transparent;
	color: #464d3a; /* match title green */
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 6px;
}

.project-title {
	font-family: 'Changa One', sans-serif;
	font-weight: 400;
	font-size: 1.10rem;
	letter-spacing: 0.10em;
  padding-bottom: 6px;
	color: #464d3a;
	display: block;
  
}

.project-desc {
	font-family: 'Montserrat', sans-serif;
	font-size: 0.95rem;
	color: #464d3a;
	line-height: 1.3;
	display: block;
}

.project-card:focus-visible {
	outline: 3px solid rgba(106,111,79,0.12);
	outline-offset: 6px;
}

/* Ensure the page title sits comfortably below header */
.center-wrapper.nav-card-section {
	padding-top: clamp(220px, 16vh, 360px);
}

/* Disable full-page snap scrolling for the Projects page so the page scrolls normally */
.snap-container {
	height: auto !important;
	overflow: visible !important;
	scroll-snap-type: none !important;
}

.snap-section {
	height: auto !important;
	min-height: auto !important;
}

@media (max-width: 900px) {
	.center-wrapper.nav-card-section { padding-top: 80px; }
	.project-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
	.project-grid { grid-template-columns: 1fr; }
	.project-grid { gap: 12px; }
}


