/* Ingi Bjarni EPK — [project_cards] homepage grid.
   Everything is scoped under .epk-cards so it doesn't fight Astra's styles.
   Palette and fonts mirror the EPK pages; the Playfair/Open Sans families are the
   ones the theme already loads (we don't re-import fonts here). */

.epk-cards {
	--epk-ink: #1c2733;
	--epk-ink-soft: #55636e;
	--epk-accent: #2f5566;
	--epk-hair: #d6dee1;
	--epk-band: #eef3f5;

	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* 3 → 2 → 1 across */
	gap: 24px;
	max-width: 1100px;
	margin: 0 auto;
}
.epk-cards * { box-sizing: border-box; }

/* The whole card is a single link */
.epk-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--epk-hair);
	border-radius: 6px;
	overflow: hidden;
	text-decoration: none;
	color: var(--epk-ink);
	transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.epk-card:hover, .epk-card:focus {
	box-shadow: 0 6px 22px rgba(28, 39, 51, .12);
	transform: translateY(-2px);
	border-color: var(--epk-accent);
}
.epk-card:focus-visible { outline: 2px solid var(--epk-accent); outline-offset: 2px; }

/* Photo — cropped to a consistent 3:2 box so portrait & landscape sit uniformly */
.epk-card-media {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	background: var(--epk-band);
	overflow: hidden;
}
.epk-card-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* No-photo placeholder: a neutral band with a faint mark (never a broken image) */
.epk-card-ph {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: var(--epk-band);
	color: #b9c6cc;
}
.epk-card-ph::before { content: "\266A"; font-size: 38px; line-height: 1; } /* ♪ */

/* Text block */
.epk-card-text {
	display: flex;
	flex-direction: column;
	padding: 15px 18px 18px;
}
.epk-card-name {
	font-family: "Playfair Display", "EPK Playfair", Georgia, serif;
	font-weight: 700;
	font-size: 21px;
	line-height: 1.15;
	color: var(--epk-ink);
}
.epk-card-tagline {
	font-family: "Open Sans", "EPK Open Sans", -apple-system, system-ui, sans-serif;
	font-size: 14px;
	line-height: 1.45;
	color: var(--epk-ink-soft);
	margin-top: 6px;
}
.epk-card-view {
	font-family: "Open Sans", "EPK Open Sans", -apple-system, system-ui, sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--epk-accent);
	margin-top: 12px;
}
.epk-card:hover .epk-card-view, .epk-card:focus .epk-card-view { text-decoration: underline; }
