/**
 * jmattphotos — Front Page Styles
 *
 * Homepage-specific: hero, featured collections grid,
 * recent shoots, mixed feed.
 */

/* ─────────────────────────────────────────────────────────────────────────────
   HOMEPAGE HERO
   ───────────────────────────────────────────────────────────────────────────── */

.home-hero {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #111;
}

.home-hero__link {
	display: block;
	text-decoration: none;
}

.home-hero .jmp-picture,
.home-hero .jmp-picture img {
	width: 100%;
	height: 70vh;
	min-height: 400px;
	max-height: 85vh;
	object-fit: cover;
	transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.home-hero:hover .jmp-picture img {
	transform: scale(1.02);
}

/* Editorial caption overlay — bottom-left */
.home-hero__caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: var(--space-2xl) var(--space-lg) var(--space-lg);
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.65) 0%,
		rgba(0, 0, 0, 0.3) 50%,
		transparent 100%
	);
}

@media (min-width: 768px) {
	.home-hero__caption {
		max-width: 55%;
	}
}

.home-hero__title {
	margin: 0 0 var(--space-xs);
	font-family: var(--font-display);
	font-size: clamp(1.75rem, 4vw, 3.5rem);
	font-weight: 600;
	color: #fff;
	line-height: 1.1;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.home-hero__dateline {
	margin: 0;
	font-family: var(--font-ui);
	font-size: 0.8125rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.8);
}

/* ─────────────────────────────────────────────────────────────────────────────
   HOME SECTIONS — SHARED
   ───────────────────────────────────────────────────────────────────────────── */

.home-section {
	padding-top: var(--space-2xl);
}

.home-section__heading {
	font-size: clamp(1.125rem, 2vw, 1.25rem);
	font-family: var(--font-ui);
	font-weight: 500;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--color-text-muted);
	margin-bottom: var(--space-lg);
	padding-bottom: var(--space-sm);
	border-bottom: 1px solid var(--color-rule);
}

/* ─────────────────────────────────────────────────────────────────────────────
   FEATURED COLLECTIONS GRID
   ───────────────────────────────────────────────────────────────────────────── */

.collections-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-sm);
}

@media (min-width: 640px) {
	.collections-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1024px) {
	.collections-grid {
		grid-template-columns: repeat(4, 1fr);
		gap: var(--space-md);
	}
}

.collection-tile {
	display: block;
	text-decoration: none;
	color: inherit;
}

.collection-tile__image {
	overflow: hidden;
	aspect-ratio: 3 / 4;
	margin-bottom: var(--space-sm);
	background: var(--color-rule);
}

.collection-tile__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ease);
}

.collection-tile:hover .collection-tile__img {
	transform: scale(1.04);
}

.collection-tile__placeholder {
	width: 100%;
	height: 100%;
	background: #E0DDD6;
}

.collection-tile__label {
	margin: 0;
	font-family: var(--font-display);
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--color-text);
	transition: color var(--duration) var(--ease);
}

.collection-tile:hover .collection-tile__label {
	color: var(--color-accent);
}

/* ─────────────────────────────────────────────────────────────────────────────
   RECENT SHOOTS GRID
   ───────────────────────────────────────────────────────────────────────────── */

.shoots-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-md);
}

@media (min-width: 768px) {
	.shoots-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.shoot-tile {
	display: block;
	text-decoration: none;
	color: inherit;
}

.shoot-tile__image {
	overflow: hidden;
	aspect-ratio: 1 / 1;
	margin-bottom: var(--space-sm);
	background: var(--color-rule);
}

.shoot-tile__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ease);
}

.shoot-tile:hover .shoot-tile__img {
	transform: scale(1.04);
}

.shoot-tile__placeholder {
	width: 100%;
	height: 100%;
	background: #E0DDD6;
}

.shoot-tile__meta {
	padding: 0;
}

.shoot-tile__name {
	margin: 0 0 var(--space-xs);
	font-family: var(--font-display);
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--color-text);
	transition: color var(--duration) var(--ease);
}

.shoot-tile:hover .shoot-tile__name {
	color: var(--color-accent);
}

.shoot-tile__details {
	margin: 0;
	display: flex;
	align-items: center;
	gap: var(--space-xs);
	font-family: var(--font-ui);
	font-size: 0.8125rem;
	color: var(--color-text-muted);
}

.shoot-tile__sep {
	color: var(--color-rule);
}

/* ─────────────────────────────────────────────────────────────────────────────
   MIXED FEED
   ───────────────────────────────────────────────────────────────────────────── */

.mixed-feed {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-md);
	padding-bottom: var(--space-2xl);
}

@media (min-width: 640px) {
	.mixed-feed {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 1024px) {
	.mixed-feed {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* Article cards in mixed feed inherit article-card styles */
.mixed-feed__item--article .article-card {
	height: 100%;
}

/* Photo items in the mixed feed — full height */
.mixed-feed__item--photo {
	display: block;
}
