.projects {
	display: grid;
	grid-template-columns: 25% auto;
	gap: 2.25rem;

	> aside {
		grid-column: 1;
		padding: 16rem 1rem;
		border: 1px solid var(--green);

		> div {
			> h2 {
				font-size: 2rem;
				@media (max-width: 1050px) {
					font-size: 1.5rem;
				}
			}
			> p {
				font-size: 1rem;
			}
		}

		> div:first-child {
			> h2 {
				color: var(--green);
			}

			padding-bottom: 1rem;
		}

		> div:last-child {
			> h2 {
				color: var(--orange);
				text-align: right;
			}
		}
	}

	> section {
		grid-column: 2;
		display: grid;
		grid-template-columns: repeat(4, minmax(12.5rem, 1fr));
		grid-auto-rows: 12.5rem;
		gap: 1rem;
		padding: 1rem;
		border: 1px solid var(--green);

		> .prj-pic {
			min-height: 100%;
			width: 100%;
			position: relative;
			overflow: hidden;
			margin-right: 1rem;
			margin-bottom: 1rem;

			> a {
				display: block;
				height: 100%;
				text-decoration: none;
				color: inherit;

				> img {
					object-fit: cover;
					width: 100%;
					height: 100%;
				}

				> .overlay {
					position: absolute;
					top: 0;
					left: 0;
					height: 100%;
					width: 100%;
					background-color: rgba(102, 100, 81, 0.85);
					color: var(--grey);

					display: flex;
					justify-content: center;
					align-items: center;

					opacity: 1;
					transition: opacity 0.3s ease;
					text-align: center;
					padding: 0.5rem;
				}
			}

			&:hover .overlay {
				opacity: 0;
			}
		}
	}
}

/* Responsiveness */
@media (max-width: 1400px) {
	.projects {
		grid-template-columns: 30% auto;

		> section {
			grid-template-columns: repeat(3, minmax(12.5rem, 1fr));
		}
	}
}

@media (max-width: 1100px) {
	.projects > section {
		grid-template-columns: repeat(2, minmax(12.5rem, 1fr));
		grid-auto-rows: 10rem;
	}
}

@media (max-width: 820px) {
	.projects {
		gap: 1rem;
		grid-template-columns: 100%;
		grid-template-rows: auto;

		> aside {
			grid-column: 1;
			grid-row: 1;
			padding: 1rem;

			> div > p {
				font-size: 0.8rem;
			}
		}

		> section {
			grid-column: 1;
			grid-row: 2;
			padding: 0.5rem;
		}
	}
}

@media (max-width: 500px) {
	.projects > section {
		grid-template-columns: repeat(2, minmax(6rem, 1fr));
		gap: 0.5rem;
		> .prj-pic > a > div {
			font-size: 0.75rem;
		}
	}
}