@charset "UTF-8";

/* ==========================================================================
   feed.css — dense square grid of loose artworks (Instagram-feed style).
   Chronological, tap to enlarge, optional year filter. No dependencies.
   ========================================================================== */

.feed-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 18px;
	padding: 34px 0 18px;
}

.feed-head h1 {
	margin: 0;
	font-family: var(--sans);
	font-weight: 800;
	font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.1rem);
	letter-spacing: -.02em;
}

.feed-head .count {
	font-family: var(--mono);
	font-size: .72rem;
	letter-spacing: .04em;
	color: var(--ink-soft);
}

.feed-years {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	padding: 0 0 20px;
	font-family: var(--mono);
	font-size: .72rem;
	letter-spacing: .05em;
}

.feed-years button {
	background: none;
	border: 0;
	padding: 0 0 3px;
	font: inherit;
	letter-spacing: inherit;
	color: var(--ink-soft);
	cursor: pointer;
	border-bottom: 1px solid transparent;
}

.feed-years button:hover,
.feed-years button:focus-visible { color: var(--ink); }

.feed-years button.is-active {
	color: var(--ink);
	border-bottom-color: var(--ink);
}

/* ---- grid ------------------------------------------------------------- */

.feed-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 4px;
	margin-bottom: 40px;
}

.feed__item {
	position: relative;
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	background: #cdcecd;
	cursor: zoom-in;
}

.feed__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	opacity: 0;
	transition: opacity .4s ease;
}

.feed__item img.is-loaded { opacity: 1; }
.feed__item:hover img { opacity: .82; }

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

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

@media (prefers-reduced-motion: reduce) {
	.feed__item img { opacity: 1; transition: none; }
}

/* ---- homepage strip --------------------------------------------------- */

.home-feed {
	margin: 64px 0 0;
	padding-top: 26px;
	border-top: 1px solid var(--line);
}

.home-feed__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	margin-bottom: 16px;
}

.home-feed__head h2 {
	margin: 0;
	font-family: var(--mono);
	font-weight: 500;
	font-size: .7rem;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.home-feed__head a {
	font-family: var(--mono);
	font-size: .7rem;
	letter-spacing: .04em;
	color: var(--ink-soft);
	text-decoration: none;
}

.home-feed__head a:hover { color: var(--ink); }

.feed-strip {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 132px;
	grid-template-rows: 132px 132px;
	gap: 4px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	padding-bottom: 2px;
}

.feed-strip::-webkit-scrollbar { display: none; }

.feed-strip__item {
	scroll-snap-align: start;
	position: relative;
	padding: 0;
	border: 0;
	background: #cdcecd;
	aspect-ratio: 1;
	overflow: hidden;
	cursor: zoom-in;
}

.feed-strip__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	opacity: 0;
	transition: opacity .4s ease;
}

.feed-strip__item img.is-loaded { opacity: 1; }
.feed-strip__item:hover img { opacity: .82; }

@media (max-width: 640px) {
	.feed-strip {
		grid-auto-columns: 108px;
		grid-template-rows: 108px 108px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.feed-strip__item img { opacity: 1; transition: none; }
}

/* ---- paging lightbox ---------------------------------------------------- */

.fx {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 5vmin;
	background: rgba(18, 18, 18, .94);
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s ease;
}

.fx.is-open {
	opacity: 1;
	pointer-events: auto;
}

.fx img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.fx__btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: 0;
	color: #fff;
	font-family: var(--mono);
	font-size: 1.4rem;
	line-height: 1;
	padding: 20px 16px;
	cursor: pointer;
	opacity: .65;
}

.fx__btn:hover { opacity: 1; }
.fx__prev { left: 4px; }
.fx__next { right: 4px; }

.fx__close {
	position: absolute;
	top: 14px;
	right: 16px;
	background: none;
	border: 0;
	color: #fff;
	font-family: var(--mono);
	font-size: .76rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	cursor: pointer;
	padding: 8px;
}

.fx__meta {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 14px;
	text-align: center;
	color: #fff;
	font-family: var(--mono);
	font-size: .66rem;
	letter-spacing: .06em;
	opacity: .65;
}

@media (prefers-reduced-motion: reduce) {
	.fx { transition: none; }
}
