/* Home Brew — portfolio project layout ([hb_project] shortcode). Scoped under .hb-project */

.hb-project {
	--hb-accent: #dc8400;
	--hb-muted: rgba(0, 0, 0, 0.72);
	--hb-gap: 1.25rem;
	box-sizing: border-box;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem 2rem;
}

.hb-project *,
.hb-project *::before,
.hb-project *::after {
	box-sizing: inherit;
}

/* Hero */

.hb-project-hero {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.75rem;
	align-items: start;
	margin-bottom: 2.5rem;
}

@media (min-width: 56rem) {
	.hb-project-hero {
		grid-template-columns: minmax(0, 1fr) minmax(280px, 42%);
		gap: 2rem;
	}
}

.hb-project-hero__title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.5rem, 3.5vw, 2rem);
	line-height: 1.2;
	font-weight: 700;
	color: #000;
}

.hb-project-hero__scope {
	margin-bottom: 1.25rem;
}

.hb-project-hero__scope-body {
	color: var(--hb-muted);
}

.hb-project-hero__cta-wrap {
	margin: 0;
}

.hb-project-hero__cta {
	display: inline-block;
	padding: 0.85rem 1.5rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: none;
	text-transform: uppercase;
	color: #fff;
	background: var(--hb-accent);
	border-radius: 4px;
	transition: opacity 0.15s ease;
}

.hb-project-hero__cta:hover,
.hb-project-hero__cta:focus {
	color: #fff;
	opacity: 0.92;
}

.hb-project-hero__media {
	margin: 0;
	overflow: hidden;
	border-radius: 8px;
}

.hb-project-hero__img {
	display: block;
	width: 100%;
	height: auto;
	max-height: min(75vh, 640px);
	object-fit: cover;
}

/* Project details grid */

.hb-project-details {
	margin-bottom: 2.5rem;
}

.hb-project-details__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem 0.75rem;
}

@media (min-width: 36rem) {
	.hb-project-details__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.hb-project-details__item {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.hb-project-details__figure {
	margin: 0;
	overflow: hidden;
	border-radius: 4px;
	aspect-ratio: 4 / 3;
	background: #e8eaed;
}

.hb-project-details__figure .hb-project__zoom {
	display: block;
	width: 100%;
	height: 100%;
	cursor: zoom-in;
}

.hb-project-details__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hb-project-details__label {
	margin: 0.35rem 0 0;
	font-size: 16px;
	line-height: 1.3;
}

@media (max-width: 35.99rem) {
	.hb-project-details__label {
		font-size: 10px;
	}
}

/* About + work split */

.hb-project-split {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	margin-bottom: 2.5rem;
}

@media (min-width: 48rem) {
	.hb-project-split {
		grid-template-columns: minmax(0, 75%) minmax(0, 25%);
		gap: 2.5rem;
	}
}

.hb-project-about__title {
	margin: 0 0 0.85rem;
	font-size: inherit;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hb-project-testimonial {
	position: relative;
	margin: 1.25rem 0 0;
	padding: 1.25rem 2.25rem 2rem 4.75rem;
	background: rgba(220, 132, 0, 0.1);
	border: none;
	border-radius: 6px;
}

.hb-project-testimonial::before {
	content: "\201C";
	position: absolute;
	left: 0.75rem;
	top: 0.35rem;
	font-size: 6.5rem;
	line-height: 1;
	color: var(--hb-accent);
	font-family: Georgia, serif;
}

.hb-project-testimonial p {
	margin: 0 0 0.5rem;
	font-style: italic;
}

.hb-project-testimonial__placeholder {
	opacity: 0.65;
}

.hb-project-testimonial__name {
	display: block;
	font-size: 12px;
	font-weight: 700;
	font-style: normal;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.hb-project blockquote cite::before,
.hb-project blockquote small::before {
	content: none;
	display: none;
}

.hb-project-work {
	background: #f5f5f5;
	padding: 1.25rem 1rem;
	border-radius: 6px;
}

.hb-project-work__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.55rem 1.5rem;
}

.hb-project-work__list li {
	position: relative;
	min-width: 0;
	padding-left: 25px;
	line-height: 1.45;
	font-size: 18px;
}

.hb-project-work__list li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 0.7em;
	width: 1.1em;
	height: 1.1em;
	font-size: 0.65em;
	line-height: 1.1em;
	text-align: center;
	color: #fff;
	background: var(--hb-accent);
	border-radius: 50%;
}

/* GLightbox zoom link (gallery + details) */

.hb-project__zoom {
	display: block;
	text-decoration: none;
	color: inherit;
	cursor: zoom-in;
}

.hb-project__zoom:focus-visible {
	outline: 2px solid var(--hb-accent);
	outline-offset: 2px;
}

.gslide-image img {
	width: 70%;
	max-width: 70%;
	height: auto;
	margin-left: auto;
	margin-right: auto;
	display: block;
}
