/* Hit Warehouse Modern — layout, shared across color themes */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Bebas+Neue&display=swap');

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	position: relative;
}

/* Subtle film-grain texture over the whole page, tiled via SVG noise */
body::before {
	content: '';
	position: fixed;
	inset: 0;
	z-index: 9999;
	pointer-events: none;
	opacity: 0.035;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

.wrap {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ---------- Header / Hero ---------- */

#site-header {
	position: relative;
	padding: 88px 0 56px;
	overflow: hidden;
}
#site-header.is-subpage { padding: 36px 0 28px; }

#site-header::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 900px 500px at 15% -10%, var(--glow-1) 0%, transparent 60%),
		radial-gradient(ellipse 700px 500px at 90% 0%, var(--glow-2) 0%, transparent 55%);
	pointer-events: none;
	z-index: 0;
}
#site-header .wrap { position: relative; z-index: 1; }

.hero-grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 48px;
	align-items: center;
}
@media (max-width: 860px) {
	.hero-grid { grid-template-columns: 1fr; }
}

.featured-card {
	position: relative;
	display: block;
	border-radius: 18px;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
}
.featured-card:hover { transform: translateY(-4px) scale(1.01); }
.featured-card img { width: 100%; height: 100%; object-fit: cover; }
.featured-label {
	position: absolute;
	top: 16px; left: 16px;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 6px 12px;
	border-radius: 999px;
	z-index: 2;
}
.featured-caption {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 40px 20px 18px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.featured-caption strong { font-size: 1.05rem; }
.featured-caption span:last-child { font-size: 0.8rem; opacity: 0.75; }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	padding: 6px 14px;
	border-radius: 999px;
	margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.site-title {
	margin: 0 0 14px;
	font-family: 'Bebas Neue', 'Inter', sans-serif;
	font-size: clamp(2.4rem, 6vw, 4.4rem);
	font-weight: 400;
	letter-spacing: 0.01em;
	line-height: 1.02;
	text-transform: uppercase;
}
.site-title a { display: inline-block; }
#site-header.is-subpage .site-title { font-size: clamp(1.8rem, 4.5vw, 3rem); margin-bottom: 4px; }

.site-tagline { max-width: 62ch; font-size: 1.05rem; opacity: 0.82; }
.breadcrumb { font-size: 0.82rem; margin-bottom: 14px; opacity: 0.6; letter-spacing: 0.01em; }
.breadcrumb a:hover { text-decoration: underline; }

.searchbox { margin-bottom: 22px; }
.searchbox #search_form > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.searchbox input[type="text"], .searchbox input:not([type]) {
	font-family: inherit;
	font-size: 0.9rem;
	padding: 10px 16px;
	border-radius: 999px;
	border: 1px solid rgba(255,255,255,0.18);
	background: rgba(255,255,255,0.1);
	color: var(--text);
	min-width: 220px;
}
.searchbox input[type="text"]::placeholder { color: rgba(255,255,255,0.5); }
/* Advanced field-picker (icon + checkbox panel) removed per request — search
   already runs across all fields by default, so this just simplifies the UI. */
.searchbox .toggle_searchextrashow,
.searchbox #searchextrashow {
	display: none !important;
}
.searchbox input[type="submit"], .searchbox button {
	font-family: inherit;
	font-size: 0.85rem;
	font-weight: 600;
	padding: 10px 20px;
	border-radius: 999px;
	border: none;
	background: var(--accent);
	color: #fff;
	cursor: pointer;
	margin-left: 8px;
}

.imgnav { display: flex; gap: 20px; font-size: 0.88rem; font-weight: 600; margin-top: 10px; }
.imgnav a { display: flex; align-items: center; gap: 6px; opacity: 0.85; }
.imgnav a:hover { opacity: 1; }

/* ---------- Album page layout ----------
   Description stays first in the HTML source (so it's still immediately
   available to crawlers/screen readers), but is visually pushed below the
   photo/sub-album grids via flex order — purely a presentation change. */
.album-main { display: flex; flex-direction: column; }
.album-main .album-desc { order: 2; }
.album-main .pagelist { order: 3; }

/* ---------- Album desc block ---------- */

.album-desc { max-width: 76ch; margin: 0 0 40px; font-size: 1.02rem; }
.album-desc h2 { font-size: 1.2rem; margin: 0 0 8px; font-weight: 700; }
.album-desc h4, .album-desc h5 { margin: 6px 0; font-weight: 500; opacity: 0.85; font-size: 0.92rem; }
.album-desc a { text-decoration: underline; text-underline-offset: 2px; }

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

.section-label {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	opacity: 0.55;
	margin: 0 0 18px;
}

/* Justified-row mosaic.
   Each tile's flex-basis and flex-grow are proportional to its own aspect
   ratio, so a row always fills the full width while every frame keeps its
   proportions. Because width is proportional to ratio, height works out
   equal across a row without being imposed: the row decides the height, the
   photograph decides the width, and nothing is cropped. */
.album-grid {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 28px;
	margin: 8px 0 44px;
}
/* Absorbs the leftover space on the final row so a lone tile is not stretched
   across the full width. */
.album-grid::after {
	content: '';
	flex: 1000000 0 0;
}
.album-card {
	--r: 1.5;
	flex: var(--r) 1 calc(var(--r) * 230px);
	/* Below the natural basis of the narrowest frame, so it only guards against
	   a pathological ratio instead of flattening the last row's heights. */
	min-width: 170px;
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	transition: transform 0.28s cubic-bezier(.2,.8,.2,1), box-shadow 0.28s ease;
	will-change: transform;
}
.album-card:hover { transform: translateY(-6px); }
/* No aspect-ratio box and no object-fit: the image's own width/height
   attributes reserve the space and set the shape. overflow stays only to clip
   the hover scale. */
.album-card-thumb { display: block; overflow: hidden; position: relative; }
.album-card-thumb img { display: block; width: 100%; height: auto; transition: transform 0.5s cubic-bezier(.2,.8,.2,1); }
.album-card:hover .album-card-thumb img { transform: scale(1.07); }
.album-card-body { padding: 18px 20px 20px; }
.album-card-body h2 { margin: 0 0 6px; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.album-card-body h2 a { transition: color 0.15s ease; }
.album-card-date { font-size: 0.78rem; opacity: 0.55; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
.album-card-desc {
	font-size: 0.9rem;
	opacity: 0.72;
	margin-top: 8px;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.album-card-body h2 {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

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

/* Same justified rows as the album mosaic. These were square-cropped, which
   cut the top and bottom off every landscape frame and the sides off every
   portrait one. */
.image-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 8px 0 44px;
}
.image-grid::after {
	content: '';
	flex: 1000000 0 0;
}
.image-grid-item {
	--r: 1.5;
	flex: var(--r) 1 calc(var(--r) * 170px);
	min-width: 100px;
	display: block;
	border-radius: 10px;
	overflow: hidden;
	position: relative;
}
.image-grid-item img { display: block; width: 100%; height: auto; transition: transform 0.35s ease, filter 0.35s ease; }
.image-grid-item:hover img { transform: scale(1.06); }
.image-grid-item::after {
	content: '';
	position: absolute; inset: 0;
	box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
	border-radius: 10px;
}

/* ---------- Single image ---------- */

.image-stage { text-align: center; margin: 16px 0 32px; }
.image-stage img { margin: 0 auto; border-radius: 14px; max-height: 82vh; width: auto; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.55); }
.image-meta { max-width: 76ch; margin: 0 auto 48px; font-size: 0.98rem; }

/* ---------- Pagination / nav ---------- */

.pagelist { margin: 36px 0; font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.pagelist a { font-weight: 600; opacity: 0.85; }
.pagelist a:hover { opacity: 1; }

/* ---------- About / bio section ---------- */

.about-bio {
	max-width: 72ch;
	margin: 56px 0 40px;
	padding-top: 44px;
	border-top: 1px solid var(--border);
}
.about-bio h2 { font-size: 1.5rem; margin: 0 0 16px; letter-spacing: -0.01em; }
.about-bio h3 { font-size: 1.1rem; margin: 28px 0 10px; }
.about-bio p { margin: 0 0 16px; font-size: 1rem; }
.about-bio a { text-decoration: underline; text-underline-offset: 2px; }
.about-bio em { font-style: italic; opacity: 0.9; }

/* ---------- Footer ---------- */

#credit { padding: 40px 0 60px; font-size: 0.82rem; opacity: 0.65; text-align: center; }
#credit a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Cookie consent (visual tie-in, structure from plugin) ---------- */
#cookie-law-info-bar, .cookieconsent-bar {
	font-family: 'Inter', sans-serif !important;
	border-radius: 12px !important;
}

@media (max-width: 640px) {
	#site-header { padding: 56px 0 32px; }
	/* One album per row on a phone: the card carries a title, a date and a
	   description, none of which survive a half-width column. Photographs have
	   no text, so they stay justified, just shorter. */
	.album-grid { gap: 16px; }
	.album-card { flex: 1 1 100%; min-width: 0; }
	.image-grid { gap: 8px; }
	.image-grid-item { flex: var(--r) 1 calc(var(--r) * 110px); min-width: 90px; }
}


/* ============================================================
   PAGER + PHOTOS-PER-PAGE
   The pager now sits under the photo grid rather than beneath
   tags/maps/comments, so it needs to read as a deliberate control
   rather than a footnote.
============================================================ */
.pagelist--pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 20px;
	margin: 28px 0 8px;
	padding: 14px 0;
	border-top: 1px solid rgba(255, 255, 255, .09);
	border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.pagelist--extras {
	margin-top: 28px;
}

.perpage {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	margin-left: auto;
}

.perpage-label {
	opacity: .65;
	text-transform: uppercase;
	letter-spacing: .06em;
	font-size: 11px;
}

.perpage-opt {
	display: inline-block;
	min-width: 30px;
	padding: 4px 9px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, .16);
	text-align: center;
	text-decoration: none;
	line-height: 1.4;
}

.perpage-opt:hover {
	border-color: rgba(255, 255, 255, .4);
}

.perpage-opt.is-on {
	background: rgba(255, 255, 255, .12);
	border-color: rgba(255, 255, 255, .34);
	font-weight: 600;
}

@media (max-width: 600px) {
	.pagelist--pager {
		justify-content: center;
	}
	.perpage {
		margin-left: 0;
		width: 100%;
		justify-content: center;
	}
}