/* ==========================================================================
   Staff image library (Ben, 30 Sep 2026): /staff/image-library/

   The supplied Form Agency Image Catalogue's own styling, adapted to sit in the
   Form site and nothing more: the self-hosted Montserrat and Inter the theme
   declares (the supplied page loaded Google Fonts), the site's 16px control
   radius in place of pills, the site's ink focus ring, and a sign-in state. The
   warm background, the Form logo, the large Montserrat title, the filter bar
   and the card grid are the catalogue's own.

   A standalone page (staff-image-library.php): it does not load the theme's
   other stylesheets, so the faces are declared here. No !important.
   ========================================================================== */

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/inter-400.woff2") format("woff2");
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/inter-500.woff2") format("woff2");
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/inter-600.woff2") format("woff2");
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/inter-700.woff2") format("woff2");
}

@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/montserrat-700.woff2") format("woff2");
}

@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 900;
	font-display: swap;
	src: url("../fonts/montserrat-900.woff2") format("woff2");
}

:root {
	--bg: #ece6dd;
	--card: #fcfbfa;
	--ink: #141414;
	--body: #444241;
	--mute: #6b655f;
	--line: rgba(20, 20, 20, 0.14);
	--accent: #e9712f;
	--accent-text: #a83f00;
	--radius: 16px;
	box-sizing: border-box;
}

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 16px/1.55 Inter, system-ui, sans-serif;
}

.top,
.page-head,
main,
.bar-in {
	max-width: 1240px;
	margin: 0 auto;
}

.top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 28px 24px 0;
}

.top-logo {
	display: block;
}

.top-logo img {
	height: 40px;
	width: auto;
	display: block;
}

.top-out {
	color: var(--mute);
	font-size: 14px;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.top-out:hover {
	color: var(--ink);
}

/* The top bar is the page's one <header> (banner landmark); the title block is a plain div so there is not a second banner. */
.page-head,
.gate {
	padding: 56px 24px 32px;
}

.eyebrow {
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--mute);
}

h1 {
	margin: 0 0 20px;
	font: 900 clamp(44px, 7.5vw, 96px) / 0.96 Montserrat, Inter, system-ui, sans-serif;
	letter-spacing: -0.035em;
}

h1 em {
	font-style: normal;
	color: var(--accent);
}

.page-head .lead,
.gate .lead {
	max-width: 560px;
	margin: 0;
	font-size: 18px;
	color: var(--body);
}

.bar {
	position: sticky;
	top: 0;
	z-index: 2;
	background: rgba(236, 230, 221, 0.9);
	backdrop-filter: blur(10px);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	padding: 14px 24px;
}

.bar-in {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 22px;
	align-items: center;
}

.group {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.group > span,
.group > label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--mute);
	margin-right: 2px;
}

button,
select,
input {
	font: inherit;
	color: inherit;
}

.chip {
	border: 1.5px solid var(--ink);
	background: transparent;
	border-radius: var(--radius);
	padding: 6px 16px;
	font-weight: 600;
	cursor: pointer;
}

.chip:hover {
	background: rgba(20, 20, 20, 0.06);
}

.chip[aria-pressed="true"] {
	background: var(--ink);
	color: #ffffff;
}

select,
input[type="search"] {
	border: 1.5px solid var(--ink);
	background: var(--card);
	border-radius: var(--radius);
	padding: 8px 16px;
	font-weight: 500;
}

input[type="search"] {
	min-width: 220px;
}

:focus-visible {
	outline: 3px solid var(--ink);
	outline-offset: 2px;
}

main {
	padding: 24px 24px 72px;
}

.count {
	margin: 0 0 18px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mute);
}

/* The one line that says what the company assignment is: this browser's memory, not the shared catalogue. */
.local-note {
	margin: -6px 0 18px;
	max-width: 720px;
	font-size: 14px;
	color: var(--body);
}

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
	gap: 20px;
}

.card {
	position: relative;
	background: var(--card);
	border: 1px solid rgba(20, 20, 20, 0.08);
	border-radius: 20px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 1px 2px rgba(20, 20, 20, 0.04), 0 14px 34px -18px rgba(20, 20, 20, 0.22);
}

.thumb {
	aspect-ratio: 3 / 2;
	background: #e4ddd2;
	display: block;
	width: 100%;
	object-fit: cover;
}

.thumb.bad {
	visibility: hidden;
}

.body {
	padding: 16px 18px 18px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
}

.co {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent-text);
}

h2 {
	margin: 0;
	font: 700 17px / 1.3 Montserrat, Inter, system-ui, sans-serif;
	letter-spacing: -0.01em;
}

.meta {
	font-size: 13px;
	color: var(--mute);
}

.dl {
	display: flex;
	gap: 8px;
	margin-top: auto;
	padding-top: 14px;
}

.dl a {
	flex: 1;
	text-align: center;
	text-decoration: none;
	border-radius: var(--radius);
	padding: 9px 14px;
	font-weight: 600;
	background: var(--ink);
	color: #ffffff;
}

.dl a:hover {
	background: var(--accent-text);
}

.dl a.off {
	background: transparent;
	color: var(--mute);
	border: 1.5px dashed var(--line);
	pointer-events: none;
}

.empty {
	grid-column: 1 / -1;
	padding: 56px 0;
	text-align: center;
	color: var(--mute);
}

.moved {
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	color: var(--mute);
	margin-left: 8px;
}

.ver,
.mv {
	border: 1.5px solid var(--line);
	background: transparent;
	border-radius: var(--radius);
	padding: 7px 12px;
	font-size: 13px;
	font-weight: 500;
	min-width: 0;
}

.ver {
	flex: 1;
}

.mv {
	width: 100%;
	margin-top: 10px;
	color: var(--mute);
}

.dl button.go {
	border: 0;
	border-radius: var(--radius);
	padding: 9px 18px;
	font-weight: 600;
	background: var(--ink);
	color: #ffffff;
	cursor: pointer;
}

.dl button.go:hover {
	background: var(--accent-text);
}

.more-row {
	text-align: center;
	margin-top: 24px;
}

/* ------------------------------------------------------------- sign-in */

.gate {
	min-height: 60vh;
}

.gate-form {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-width: 420px;
	margin-top: 28px;
}

.gate-form label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--mute);
	margin-top: 8px;
}

.gate-form input[type="text"],
.gate-form input[type="password"] {
	width: 100%;
	border: 1.5px solid var(--ink);
	background: var(--card);
	border-radius: var(--radius);
	padding: 12px 16px;
	font-weight: 500;
}

.gate-form .solid {
	align-self: flex-start;
	margin-top: 16px;
	border: 0;
	border-radius: var(--radius);
	padding: 12px 26px;
	font-weight: 700;
	background: var(--ink);
	color: #ffffff;
	cursor: pointer;
}

.gate-form .solid:hover {
	background: var(--accent-text);
}

.gate-error {
	max-width: 420px;
	margin: 24px 0 0;
	padding: 12px 16px;
	border: 1.5px solid var(--ink);
	border-radius: var(--radius);
	background: var(--card);
	font-weight: 600;
}

.gate-note {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 24px 0 0;
	font-size: 14px;
	color: var(--body);
}

.gate-note a {
	color: var(--ink);
	font-weight: 600;
	text-underline-offset: 3px;
}

@media (max-width: 480px) {
	.top {
		padding: 20px 16px 0;
	}

	.page-head,
	.gate {
		padding: 40px 16px 24px;
	}

	.bar {
		padding: 12px 16px;
	}

	main {
		padding: 20px 16px 56px;
	}

	input[type="search"] {
		min-width: 0;
		width: 100%;
	}
}
