/**
 * Sterling Millwork — Shared layout rules
 *
 * Cross-cutting layout fixes for block patterns used on multiple pages.
 *
 * @package Sterling_Millwork
 * @since 1.0.0
 */

/*
 * Header-to-main breathing room
 * ---------------------------------------------------------------
 * The block editor / parent theme adds a default margin-block-start
 * to <main> via its global blockGap. That's the desired behavior on
 * plain-text pages (About Us, Careers, Contact) where the first
 * block is a heading or paragraph — you want a comfortable gap
 * between the header and the page H1.
 *
 * On pages whose first content block is a full-bleed dark hero
 * (alignfull cover or alignfull dark group), we want the hero to
 * touch the header for an edge-to-edge magazine look. List those
 * pages here.
 *
 * If you add a new page with a flush dark hero, add its body class
 * (page-{slug}) to this selector.
 */
body.page-id-6 main,  /* Corporate Facilities */
body.page-id-4 main,  /* Custom Millwork */
body.page-id-5 main,  /* Carpentry */
body.page-id-3 main,  /* About Us */
body.page-id-11 main,  /* Careers */
body.page-id-13 main,  /* Media Showcase */
body.page-id-251 main,  /* Our Process */
body.page-id-8 main {  /* Portfolio */
	margin-block-start: 0 !important;
}

/*
 * Two-column image + text rows
 * ---------------------------------------------------------------
 * Pattern: a wp:columns row where one column contains ONLY a wp:cover
 * with a min-height (the image) and the other column contains an
 * eyebrow / heading / paragraph / list with verticalAlignment:center.
 *
 * Used on: Custom Millwork, Corporate Facilities, Carpentry.
 *
 * Default WP behavior is align-items:normal (stretch) on the columns,
 * so the columns themselves match the row's tallest column. But the
 * wp-block-cover INSIDE the image column has only min-height:500px and
 * does not auto-fill its parent column — leaving visible whitespace
 * below the image whenever the text column is taller.
 *
 * Fix: force the cover to fill the column's stretched height. We
 * scope this with :only-child so we don't break the home page's
 * 3-column service grid, where each column contains a cover plus
 * heading / paragraph / button siblings that need their own space.
 */
.wp-block-columns > .wp-block-column > .wp-block-cover:only-child {
	height: 100%;
}

/*
 * About Us hero — editorial diagonal split
 * ---------------------------------------------------------------
 * Magazine-style hero. The craftsman portrait sits in the frame
 * with focal point shifted hard to the right (focalPoint x=0.85,
 * y=0.32) so the subject lives in the right ~25-30% of the frame.
 * A diagonal gradient anchors the left side dark for the reading
 * zone (H1, subtitle, intro paragraph) and lets the photograph
 * come through cleanly on the right.
 *
 * Gradient direction: 105deg — bottom-left to top-right, with a
 * slight horizontal bias so the deepest darkness wraps the
 * paragraph at the bottom-left corner and the lightest reveal sits
 * upper-right where the craftsman's face/hands live. Stops shifted
 * right (transition zone pushed from 55%→65%) so the left half
 * stays cleanly dark even after the focal point moved.
 */
.sterling-hero-about {
	position: relative;
}

.sterling-hero-about > .wp-block-cover__background {
	background: linear-gradient(75deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.78) 35%, rgba(0, 0, 0, 0.12) 100%) !important;
	opacity: 1 !important;
}

/*
 * Content positioning — the cover's "center left" content position
 * already pins the inner container to the left, but we constrain
 * the inner group to ~580px and pad it generously off the edge so
 * the text block lives in the left 40-45% of the viewport.
 *
 * The cover's content position is "center left" which vertically
 * centers the inner container; we push the inner content group
 * down with top padding so the heading clears the craftsman's
 * face in the background photograph.
 */
.sterling-hero-about .wp-block-cover__inner-container {
	width: 100%;
	padding-left: clamp(32px, 8vw, 120px);
	padding-right: clamp(24px, 4vw, 60px);
}

.sterling-hero-about-content {
	max-width: 580px;
	margin-left: 0 !important;
	margin-right: auto;
	padding-top: 80px;
}

/*
 * Typography hierarchy — H1 commanding, subtitle italic-elegant,
 * intro paragraph quiet body copy. All white-spectrum with subtle
 * text-shadow for legibility over any photograph variance.
 */
.sterling-hero-about .sterling-hero-about-h1 {
	margin: 0 0 18px 0;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}

.sterling-hero-about .sterling-hero-about-subtitle {
	margin: 0 0 28px 0;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
	max-width: 520px;
}

.sterling-hero-about .sterling-hero-about-intro {
	margin: 0;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
	max-width: 540px;
}

/*
 * Mobile — rotate the gradient to vertical, center the text, let
 * the photograph dim more uniformly behind. The diagonal does not
 * make sense on a narrow viewport.
 */
@media (max-width: 768px) {
	.sterling-hero-about {
		min-height: 80vh !important;
	}

	.sterling-hero-about > .wp-block-cover__background {
		background: linear-gradient(
			to bottom,
			rgba(0, 0, 0, 0.65) 0%,
			rgba(0, 0, 0, 0.75) 50%,
			rgba(0, 0, 0, 0.88) 100%
		) !important;
		opacity: 1 !important;
	}

	.sterling-hero-about .wp-block-cover__inner-container {
		padding-left: 24px;
		padding-right: 24px;
	}

	.sterling-hero-about-content {
		max-width: 100%;
		padding-top: 60px;
	}

	.sterling-hero-about .sterling-hero-about-h1 {
		font-size: 38px !important;
		letter-spacing: 1px !important;
	}

	.sterling-hero-about .sterling-hero-about-subtitle {
		font-size: 17px !important;
	}

	.sterling-hero-about .sterling-hero-about-intro {
		font-size: 16px !important;
	}
}

/*
 * Carpentry hero — editorial split with horizontal gradient (mirrored)
 * ---------------------------------------------------------------
 * The router-trim photograph (carp-04) is a horizontal action scene
 * with the carpenter framed in the left third, leaning over a long
 * bench piece. We pin focalPoint to x=0.30,y=0.45 so the carpenter
 * sits in the left ~30-35% of the visible frame, then anchor the
 * RIGHT half dark for the reading zone (H1, subtitle, intro paragraph).
 *
 * Mirrored layout vs. About Us: gradient runs right-to-left (270deg)
 * so the dark reading anchor sits on the right and the carpenter
 * reads clean on the left. Same opacity stops as About Us for visual
 * rhythm — just flipped on the horizontal axis.
 */
.sterling-hero-carpentry {
	position: relative;
}

.sterling-hero-carpentry > .wp-block-cover__background {
	background: linear-gradient(270deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.92) 35%, rgba(0, 0, 0, 0.30) 100%) !important;
	opacity: 1 !important;
}

.sterling-hero-carpentry .wp-block-cover__inner-container {
	width: 100%;
	padding-left: clamp(24px, 4vw, 60px);
	padding-right: clamp(32px, 8vw, 120px);
}

.sterling-hero-carpentry-content {
	max-width: 580px;
	margin-left: auto !important;
	margin-right: 0;
}

.sterling-hero-carpentry .sterling-hero-carpentry-h1 {
	margin: 0 0 18px 0;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}

.sterling-hero-carpentry .sterling-hero-carpentry-subtitle {
	margin: 0 0 28px 0;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
	max-width: 520px;
}

.sterling-hero-carpentry .sterling-hero-carpentry-rule {
	border: none;
	border-top: 1px solid #c9a84c;
	width: 60px;
	margin: 0 0 28px 0;
	opacity: 0.85;
}

.sterling-hero-carpentry .sterling-hero-carpentry-intro {
	margin: 0;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
	max-width: 540px;
}

@media (max-width: 768px) {
	.sterling-hero-carpentry {
		min-height: 80vh !important;
	}

	.sterling-hero-carpentry > .wp-block-cover__background {
		background: linear-gradient(
			to bottom,
			rgba(0, 0, 0, 0.65) 0%,
			rgba(0, 0, 0, 0.75) 50%,
			rgba(0, 0, 0, 0.88) 100%
		) !important;
		opacity: 1 !important;
	}

	.sterling-hero-carpentry .wp-block-cover__inner-container {
		padding-left: 24px;
		padding-right: 24px;
	}

	.sterling-hero-carpentry-content {
		max-width: 100%;
	}

	.sterling-hero-carpentry .sterling-hero-carpentry-h1 {
		font-size: 38px !important;
		letter-spacing: 1px !important;
	}

	.sterling-hero-carpentry .sterling-hero-carpentry-subtitle {
		font-size: 17px !important;
	}

	.sterling-hero-carpentry .sterling-hero-carpentry-intro {
		font-size: 16px !important;
	}
}

/*
 * Media Showcase hero — typographic, gradient-only
 * ---------------------------------------------------------------
 * The Media Showcase page is editorial — press clippings, magazine
 * features, awards. It is about words, not photographs. Putting a
 * project photo behind it would either compete with the press tiles
 * below (which already contain Sterling's published photography) or
 * force a magazine-spread screenshot into a hero slot where it does
 * not breathe.
 *
 * Instead: a quiet, dark gradient hero with no background image. A
 * subtle radial of warm-gold sits on the right side, suggesting the
 * spotlight that "featured coverage" implies, without imposing a
 * literal photograph. Type carries the page.
 *
 * The gradient layers a vertical dark-to-darker base (#0d0d0d ->
 * #1a1a1a) with a soft gold radial on the right to keep the reading
 * zone on the left clean and let the eye drift toward the page tiles
 * below.
 */
.sterling-hero-media {
	position: relative;
}

.sterling-hero-media > .wp-block-cover__background {
	background:
		radial-gradient(ellipse at 85% 50%, rgba(201, 168, 76, 0.18) 0%, rgba(201, 168, 76, 0) 55%),
		linear-gradient(180deg, #141414 0%, #1a1a1a 100%) !important;
	opacity: 1 !important;
}

.sterling-hero-media .wp-block-cover__inner-container {
	width: 100%;
	padding-left: clamp(32px, 8vw, 120px);
	padding-right: clamp(32px, 4vw, 80px);
}

.sterling-hero-media-content {
	max-width: 720px;
	margin-left: 0 !important;
	margin-right: auto;
}

.sterling-hero-media .sterling-hero-media-eyebrow {
	margin: 0 0 22px 0;
}

.sterling-hero-media .sterling-hero-media-h1 {
	margin: 0 0 18px 0;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}

.sterling-hero-media .sterling-hero-media-subtitle {
	margin: 0 0 28px 0;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
	max-width: 560px;
}

.sterling-hero-media .sterling-hero-media-rule {
	border: none;
	border-top: 1px solid #c9a84c;
	width: 60px;
	margin: 0 0 28px 0;
	opacity: 0.85;
}

.sterling-hero-media .sterling-hero-media-intro {
	margin: 0;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
	max-width: 580px;
}

@media (max-width: 768px) {
	.sterling-hero-media {
		min-height: 72vh !important;
	}

	.sterling-hero-media > .wp-block-cover__background {
		background:
			radial-gradient(ellipse at 50% 100%, rgba(201, 168, 76, 0.15) 0%, rgba(201, 168, 76, 0) 60%),
			linear-gradient(180deg, #141414 0%, #1a1a1a 100%) !important;
		opacity: 1 !important;
	}

	.sterling-hero-media .wp-block-cover__inner-container {
		padding-left: 24px;
		padding-right: 24px;
	}

	.sterling-hero-media-content {
		max-width: 100%;
	}

	.sterling-hero-media .sterling-hero-media-h1 {
		font-size: 38px !important;
		letter-spacing: 1px !important;
	}

	.sterling-hero-media .sterling-hero-media-subtitle {
		font-size: 17px !important;
	}

	.sterling-hero-media .sterling-hero-media-intro {
		font-size: 16px !important;
	}
}

/*
 * Press tile grid — magazine cover cards
 * ---------------------------------------------------------------
 * Each tile displays a magazine cover (portrait JPEG ~750x970), with
 * publication name + issue date + headline excerpt below. Hover lifts
 * the cover slightly and pulls a thin gold rule under the publication
 * name.
 *
 * Layout: 3 columns desktop, 2 columns tablet, 1 column mobile. The
 * covers sit in fixed-aspect frames (3/4 portrait) so the grid stays
 * rhythmic regardless of slight cover crop variance.
 */
.sterling-press-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 48px 36px;
}

.sterling-press-tile {
	display: flex;
	flex-direction: column;
}

.sterling-press-tile-cover {
	position: relative;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: #0d0d0d;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
	transition: transform 220ms ease, box-shadow 220ms ease;
}

.sterling-press-tile-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
	transition: transform 320ms ease;
}

.sterling-press-tile:hover .sterling-press-tile-cover {
	transform: translateY(-4px);
	box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
}

.sterling-press-tile:hover .sterling-press-tile-cover img {
	transform: scale(1.02);
}

.sterling-press-tile-meta {
	margin-top: 22px;
}

.sterling-press-tile-publication {
	display: inline-block;
	color: #c9a84c;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 3px;
	text-transform: uppercase;
	padding-bottom: 6px;
	border-bottom: 1px solid rgba(201, 168, 76, 0.4);
	transition: border-color 220ms ease;
}

.sterling-press-tile:hover .sterling-press-tile-publication {
	border-color: #c9a84c;
}

.sterling-press-tile-date {
	color: #888;
	font-size: 12px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	margin: 12px 0 8px 0;
}

.sterling-press-tile-headline {
	color: #1a1a1a;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 22px;
	font-weight: 400;
	font-style: italic;
	letter-spacing: 0.3px;
	line-height: 1.25;
	margin: 0 0 10px 0;
}

.sterling-press-tile-excerpt {
	color: #555;
	font-size: 14px;
	line-height: 1.7;
	margin: 0;
}

/*
 * On dark backgrounds (used inside dark band sections), invert text
 * colors. The press grid placed on dark calls for white headlines.
 */
.sterling-press-grid.is-on-dark .sterling-press-tile-headline {
	color: #f5f2ed;
}

.sterling-press-grid.is-on-dark .sterling-press-tile-excerpt {
	color: #aaa;
}

.sterling-press-grid.is-on-dark .sterling-press-tile-date {
	color: #999;
}

@media (max-width: 980px) {
	.sterling-press-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 44px 28px;
	}
}

@media (max-width: 600px) {
	.sterling-press-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.sterling-press-tile-cover {
		max-width: 360px;
		margin: 0 auto;
	}

	.sterling-press-tile-headline {
		font-size: 20px;
	}
}

/*
 * Pull-quote band — large editorial blockquote on cream/dark
 * ---------------------------------------------------------------
 * Used between the press grid and the "selected coverage" section
 * to break the visual rhythm and surface a single voice from one of
 * the published features.
 */
.sterling-pullquote {
	max-width: 880px;
	margin: 0 auto;
	text-align: center;
}

.sterling-pullquote-mark {
	color: #c9a84c;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 88px;
	line-height: 1;
	margin: 0 0 16px 0;
	letter-spacing: 0;
}

.sterling-pullquote-text {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 32px;
	font-weight: 400;
	font-style: italic;
	line-height: 1.35;
	letter-spacing: 0.5px;
	margin: 0 0 28px 0;
	color: #1a1a1a;
}

.sterling-pullquote-attribution {
	font-size: 12px;
	letter-spacing: 4px;
	text-transform: uppercase;
	color: #666;
	margin: 0;
}

.sterling-pullquote.is-on-dark .sterling-pullquote-text {
	color: #f5f2ed;
}

.sterling-pullquote.is-on-dark .sterling-pullquote-attribution {
	color: #aaa;
}

@media (max-width: 768px) {
	.sterling-pullquote-text {
		font-size: 24px;
	}

	.sterling-pullquote-mark {
		font-size: 64px;
	}
}

/*
 * Our Process hero — editorial horizontal split
 * ---------------------------------------------------------------
 * The shop-floor overview (shop-18) is a horizontal scene with the
 * action sitting in the right ~60% of the frame. focalPoint pinned
 * at x=0.6,y=0.5 to keep the assembly stations visible. Gradient
 * runs left-to-right (90deg) so the reading anchor sits on the
 * LEFT and the shop floor reveals on the RIGHT. Same opacity stops
 * as the About hero for editorial rhythm — this is the canonical
 * "service / process" hero pattern.
 */
.sterling-hero-process {
	position: relative;
}

.sterling-hero-process > .wp-block-cover__background {
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.92) 35%, rgba(0, 0, 0, 0.30) 100%) !important;
	opacity: 1 !important;
}

.sterling-hero-process .wp-block-cover__inner-container {
	width: 100%;
	padding-left: clamp(32px, 8vw, 120px);
	padding-right: clamp(24px, 4vw, 60px);
}

.sterling-hero-process-content {
	max-width: 600px;
	margin-left: 0 !important;
	margin-right: auto;
}

.sterling-hero-process .sterling-hero-process-eyebrow {
	margin: 0 0 22px 0;
}

.sterling-hero-process .sterling-hero-process-h1 {
	margin: 0 0 18px 0;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}

.sterling-hero-process .sterling-hero-process-subtitle {
	margin: 0 0 28px 0;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
	max-width: 520px;
}

.sterling-hero-process .sterling-hero-process-rule {
	border: none;
	border-top: 1px solid #c9a84c;
	width: 60px;
	margin: 0 0 28px 0;
	opacity: 0.85;
}

.sterling-hero-process .sterling-hero-process-intro {
	margin: 0;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
	max-width: 560px;
}

@media (max-width: 768px) {
	.sterling-hero-process {
		min-height: 80vh !important;
	}

	.sterling-hero-process > .wp-block-cover__background {
		background: linear-gradient(
			to bottom,
			rgba(0, 0, 0, 0.65) 0%,
			rgba(0, 0, 0, 0.75) 50%,
			rgba(0, 0, 0, 0.88) 100%
		) !important;
		opacity: 1 !important;
	}

	.sterling-hero-process .wp-block-cover__inner-container {
		padding-left: 24px;
		padding-right: 24px;
	}

	.sterling-hero-process-content {
		max-width: 100%;
	}

	.sterling-hero-process .sterling-hero-process-h1 {
		font-size: 38px !important;
		letter-spacing: 1px !important;
	}

	.sterling-hero-process .sterling-hero-process-subtitle {
		font-size: 17px !important;
	}

	.sterling-hero-process .sterling-hero-process-intro {
		font-size: 16px !important;
	}
}

/*
 * Portfolio hero — typographic, gradient-only (same family as Media Showcase)
 * ---------------------------------------------------------------
 * The Portfolio page is a browse experience — the project tiles below
 * already carry the imagery. Putting a single project photo in the hero
 * would either play favorites or compete with the grid. Instead: a
 * quiet, dark editorial hero, gradient-only, with a soft warm-gold
 * radial on the right suggesting craft / spotlight without forcing a
 * literal photograph. Type carries the page.
 *
 * Same structural conventions as Media Showcase, repainted for the
 * Portfolio reading zone (slightly wider intro, no eyebrow above H1
 * since the eyebrow lives in its own paragraph block).
 */
.sterling-hero-portfolio {
	position: relative;
}

.sterling-hero-portfolio > .wp-block-cover__background {
	background:
		radial-gradient(ellipse at 85% 50%, rgba(201, 168, 76, 0.18) 0%, rgba(201, 168, 76, 0) 55%),
		linear-gradient(180deg, #141414 0%, #1a1a1a 100%) !important;
	opacity: 1 !important;
}

.sterling-hero-portfolio .wp-block-cover__inner-container {
	width: 100%;
	padding-left: clamp(32px, 8vw, 120px);
	padding-right: clamp(32px, 4vw, 80px);
}

.sterling-hero-portfolio-content {
	max-width: 720px;
	margin-left: 0 !important;
	margin-right: auto;
}

.sterling-hero-portfolio .sterling-hero-portfolio-eyebrow {
	margin: 0 0 22px 0;
}

.sterling-hero-portfolio .sterling-hero-portfolio-h1 {
	margin: 0 0 18px 0;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}

.sterling-hero-portfolio .sterling-hero-portfolio-subtitle {
	margin: 0 0 28px 0;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
	max-width: 560px;
}

.sterling-hero-portfolio .sterling-hero-portfolio-rule {
	border: none;
	border-top: 1px solid #c9a84c;
	width: 60px;
	margin: 0 0 28px 0;
	opacity: 0.85;
}

.sterling-hero-portfolio .sterling-hero-portfolio-intro {
	margin: 0;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
	max-width: 580px;
}

@media (max-width: 768px) {
	.sterling-hero-portfolio {
		min-height: 72vh !important;
	}

	.sterling-hero-portfolio > .wp-block-cover__background {
		background:
			radial-gradient(ellipse at 50% 100%, rgba(201, 168, 76, 0.15) 0%, rgba(201, 168, 76, 0) 60%),
			linear-gradient(180deg, #141414 0%, #1a1a1a 100%) !important;
		opacity: 1 !important;
	}

	.sterling-hero-portfolio .wp-block-cover__inner-container {
		padding-left: 24px;
		padding-right: 24px;
	}

	.sterling-hero-portfolio-content {
		max-width: 100%;
	}

	.sterling-hero-portfolio .sterling-hero-portfolio-h1 {
		font-size: 38px !important;
		letter-spacing: 1px !important;
	}

	.sterling-hero-portfolio .sterling-hero-portfolio-subtitle {
		font-size: 17px !important;
	}

	.sterling-hero-portfolio .sterling-hero-portfolio-intro {
		font-size: 16px !important;
	}
}

/*
 * Portfolio category grid — project tiles within each category section
 * ---------------------------------------------------------------
 * Used inside each category band (Hospitality / Retail / Commercial /
 * Residential) to display 2-4 project tiles. Each tile is a clickable
 * card: image at top (4:3), project title + one-line caption beneath.
 *
 * Default = 4 columns (matches 4 projects per category for the larger
 * groups). The .--two modifier collapses to 2 columns for the residential
 * band, with wider tiles for the smaller set.
 */
.sterling-portfolio-cat-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 36px 28px;
}

.sterling-portfolio-cat-grid--two {
	grid-template-columns: repeat(2, 1fr);
	gap: 40px;
	max-width: 900px;
	margin: 0 auto;
}

.sterling-portfolio-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	transition: transform 220ms ease;
}

.sterling-portfolio-card:hover {
	transform: translateY(-3px);
}

.sterling-portfolio-card-image {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #0d0d0d;
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.14);
	transition: box-shadow 220ms ease;
}

.sterling-portfolio-card:hover .sterling-portfolio-card-image {
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.sterling-portfolio-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 320ms ease;
}

.sterling-portfolio-card:hover .sterling-portfolio-card-image img {
	transform: scale(1.04);
}

.sterling-portfolio-card-meta {
	padding: 18px 4px 0 4px;
}

.sterling-portfolio-card-title {
	color: #1a1a1a;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 22px;
	font-weight: 400;
	letter-spacing: 0.3px;
	line-height: 1.25;
	margin: 0 0 6px 0;
	transition: color 220ms ease;
}

.sterling-portfolio-card:hover .sterling-portfolio-card-title {
	color: #c9a84c;
}

.sterling-portfolio-card-caption {
	color: #555;
	font-size: 13px;
	line-height: 1.6;
	margin: 0;
}

@media (max-width: 1100px) {
	.sterling-portfolio-cat-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 36px 24px;
	}
}

@media (max-width: 600px) {
	.sterling-portfolio-cat-grid {
		grid-template-columns: 1fr;
		gap: 32px;
		max-width: 420px;
		margin: 0 auto;
	}

	.sterling-portfolio-cat-grid--two {
		grid-template-columns: 1fr;
	}

	.sterling-portfolio-card-title {
		font-size: 20px;
	}
}

