/* ==========================================================================
   Projects Grid - Shortcode [projects_grid]
   ========================================================================== */

.projects-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0rem;
}

/* Card */
.projects-grid .project-card {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	text-decoration: none;
	background-color: #f0f0f0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* Overlay */
.projects-grid .project-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 1.5rem;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 1;
}

.projects-grid .project-card:hover .project-overlay,
.projects-grid .project-card:focus .project-overlay {
	opacity: 1;
}

/* Testi overlay */
.project-title {
	margin: 0 0 0.5rem 0;
	font-size: clamp(1.125rem, 2vw, 1.5rem);
	font-weight: 600;
	color: #fff;
}

.project-location {
	margin: 0 0 0.25rem 0;
	font-size: clamp(0.875rem, 1.5vw, 1rem);
	color: rgba(255, 255, 255, 0.9);
}

.project-settori {
	margin: 0,1rem;
	font-size: clamp(0.75rem, 1.25vw, 0.875rem);
	color: rgba(255, 255, 255, 0.75);
	text-transform: uppercase;
}

/* ==========================================================================
   Responsive - Mobile (< 480px)
   ========================================================================== */

@media (max-width: 480px) {
	.projects-grid {
		grid-template-columns: 1fr;
	}
}
