.aboutme {
	background-color: #cccccc;
	color: white;
	width: 100%;
	height: 95vh;
	background-image:
		linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
		url("../../../pages/aboutme/img/factory.jpg");
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.aboutme h2 {
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), -1px -1px 2px rgba(0, 0, 0, 0.6);
	color: white;
	font-size: 32px;
	z-index: 0;
}

.aboutme p {
	text-indent: 2em;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), -1px -1px 2px rgba(0, 0, 0, 0.6);
	color: white;
	font-size: 2vh;
	margin: 1.25vh;
	z-index: 0;
}

.project {
	background-color: #ffffff;
	width: 100%;
	padding: 1.2rem 0 2rem;
	height: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.project h2 {
	width: 100%;
	margin-top: 0.15em;
	text-align: center;
	color: steelblue;
	border-top: solid;
	border-bottom: solid;
	border-width: 0.15em;
	border-color: steelblue;
	font-size: 32px;
	z-index: 0;
}

.project .project-gallery {
	width: 100%;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.85rem;
	padding: 1rem;
}

.project .project-item {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
	padding: 0.7rem;
	border-radius: 0.9rem;
	background: #ffffff;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
	border: 1px solid #dce6ee;
}

.project .project-trigger {
	position: relative;
	width: 100%;
	padding: 0;
	border: none;
	border-radius: 0.8rem;
	overflow: hidden;
	background: #f5f7fa;
}

.project .project-trigger-text {
	position: absolute;
	left: 50%;
	bottom: 0.6rem;
	transform: translateX(-50%);
	padding: 0.4rem 0.7rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.95);
	color: steelblue;
	font-size: 0.8rem;
}

.project .project-item h3 {
	color: black;
	font-size: 1rem;
	margin-top: 0.75rem;
	z-index: 0;
}

.project .project-item p {
	color: black;
	font-size: 0.9rem;
	line-height: 1.6;
	margin-top: 0.4rem;
	z-index: 0;
}

.project .project-item img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
}

.project-modal {
	position: fixed;
	inset: 0;
	z-index: 15000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.project-modal[hidden] {
	display: none;
}

.project-modal .project-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 15, 24, 0.7);
	backdrop-filter: blur(4px);
}

.project-modal .project-modal-dialog {
	position: relative;
	width: min(100%, 32rem);
	max-height: 88vh;
	padding: 1rem;
	border-radius: 1rem;
	background: #ffffff;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	overflow-y: auto;
}

.project-modal .project-modal-close {
	position: absolute;
	top: 0.8rem;
	right: 0.8rem;
	width: 2.2rem;
	height: 2.2rem;
	border: none;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.08);
	font-size: 1.4rem;
}

.project-modal .project-modal-media {
	position: relative;
	background: #edf3f8;
	border-radius: 0.9rem;
	overflow: hidden;
}

.project-modal .project-modal-media img {
	width: 100%;
	max-height: 45vh;
	object-fit: contain;
	display: block;
}

.project-modal .project-modal-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 2.4rem;
	height: 2.4rem;
	border: none;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.58);
	color: #ffffff;
	font-size: 1.6rem;
	line-height: 1;
}

.project-modal .project-modal-prev {
	left: 0.5rem;
}

.project-modal .project-modal-next {
	right: 0.5rem;
}

.project-modal .project-modal-body {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
}

.project-modal .project-modal-body h3 {
	color: steelblue;
	font-size: 1.25rem;
}

.project-modal .project-modal-body p {
	color: #334155;
	font-size: 0.95rem;
	line-height: 1.6;
}

.project-modal .project-modal-strip {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.6rem;
}

.project-modal .project-modal-thumb {
	padding: 0;
	border: 2px solid transparent;
	border-radius: 0.7rem;
	overflow: hidden;
	background: #f8fafc;
}

.project-modal .project-modal-thumb.is-active {
	border-color: steelblue;
}

.project-modal .project-modal-thumb img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

body.project-modal-open {
	overflow: hidden;
}
