.wp-block-naji-site-hero,
.naji-hero {
	position: relative;
	display: grid;
	min-height: clamp(32rem, 78vh, 60rem);
	overflow: hidden;
	place-items: center;
	background: #131313;
	color: #fff;
	isolation: isolate;
}

.naji-hero__image,
.naji-hero__video,
.naji-hero__overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.naji-hero__image,
.naji-hero__video {
	object-fit: cover;
	z-index: -3;
}

.naji-hero__overlay {
	z-index: -2;
	background: linear-gradient(90deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .18));
}

.naji-hero__inner {
	width: min(100% - 3rem, 74rem);
	padding: 7rem 0;
	z-index: 1;
}

.naji-hero--centered .naji-hero__inner {
	text-align: center;
}

.naji-hero__caption h1,
.naji-hero__caption h2,
.naji-hero__caption p {
	max-width: 44rem;
	margin: 0 0 1rem;
}

.naji-hero--centered .naji-hero__caption h1,
.naji-hero--centered .naji-hero__caption h2,
.naji-hero--centered .naji-hero__caption p {
	margin-right: auto;
	margin-left: auto;
}

.naji-hero__caption h1 {
	font-size: clamp(2.5rem, 6vw, 5.5rem);
	line-height: .98;
}

.naji-hero__caption p {
	font-size: clamp(1.05rem, 2vw, 1.35rem);
	line-height: 1.6;
}

.naji-portfolio,
.naji-content-section,
.naji-skills,
.naji-contact,
.naji-callout {
	width: min(100% - 3rem, 74rem);
	margin: 0 auto;
	padding: clamp(3rem, 7vw, 7rem) 0;
}

.naji-portfolio__title,
.naji-content-section__title,
.naji-skills__title {
	margin: 0 0 2rem;
	font-size: clamp(2rem, 4vw, 3.5rem);
}

.naji-portfolio__filters {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-bottom: 2rem;
}

.naji-portfolio__filter {
	border: 1px solid currentColor;
	border-radius: 999px;
	padding: .5rem .9rem;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.naji-portfolio__filter.is-active,
.naji-portfolio__filter:hover,
.naji-portfolio__filter:focus-visible {
	background: #111;
	color: #fff;
}

.naji-portfolio__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.naji-portfolio__card {
	min-width: 0;
}

.naji-portfolio__card.is-hidden {
	display: none;
}

.naji-portfolio__link {
	position: relative;
	display: block;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
}

.naji-portfolio__media {
	aspect-ratio: 4 / 3;
	background: #e9e9e9;
}

.naji-portfolio__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s ease;
}

.naji-portfolio__overlay {
	position: absolute;
	inset: 0 0 auto;
	display: grid;
	min-height: 100%;
	place-items: center;
	background: rgba(0, 0, 0, .58);
	color: #fff;
	opacity: 0;
	transition: opacity .3s ease;
}

.naji-portfolio__link:hover .naji-portfolio__overlay,
.naji-portfolio__link:focus-visible .naji-portfolio__overlay {
	opacity: 1;
}

.naji-portfolio__link:hover .naji-portfolio__image,
.naji-portfolio__link:focus-visible .naji-portfolio__image {
	transform: scale(1.04);
}

.naji-portfolio__item-title {
	margin: .75rem 0 0;
	font-size: 1rem;
}

.naji-content-section__body,
.naji-callout__body {
	max-width: 52rem;
	font-size: 1.08rem;
	line-height: 1.7;
}

.naji-callout {
	padding-top: 0;
	padding-bottom: 0;
}

.naji-callout__body {
	margin: 0 auto;
	padding: clamp(2rem, 5vw, 4rem);
	border-left: .3rem solid currentColor;
	background: #f4f4f4;
}

.naji-skills__item + .naji-skills__item {
	margin-top: 1.5rem;
}

.naji-skills__labels {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: .45rem;
}

.naji-skills__track {
	overflow: hidden;
	height: .5rem;
	background: #ddd;
}

.naji-skills__value {
	display: block;
	height: 100%;
	background: #111;
}

.naji-contact__form {
	max-width: 42rem;
}

.naji-contact input,
.naji-contact textarea,
.naji-contact select {
	box-sizing: border-box;
	width: 100%;
	padding: .8rem;
	border: 1px solid #aaa;
	border-radius: 0;
}

.naji-contact input[type="submit"] {
	width: auto;
	border-color: #111;
	background: #111;
	color: #fff;
	cursor: pointer;
}

.naji-editor-hero,
.naji-editor-card,
.naji-editor-callout {
	box-sizing: border-box;
	padding: 2rem;
	border: 1px dashed #757575;
	background: #fff;
}

.naji-editor-hero {
	min-height: 18rem;
	background: #171717;
	color: #fff;
}

.naji-editor-label {
	margin-top: 0;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.naji-editor-hero__caption h1 {
	font-size: 3rem;
}

.naji-editor-skill {
	padding: .5rem 0;
	border-bottom: 1px solid #ddd;
}

@media (max-width: 700px) {
	.naji-portfolio__grid {
		grid-template-columns: 1fr;
	}

	.naji-hero__inner,
	.naji-portfolio,
	.naji-content-section,
	.naji-skills,
	.naji-contact,
	.naji-callout {
		width: min(100% - 2rem, 74rem);
	}
}
