/*
Theme Name: Compcard
Theme URI: https://thebighead.ca/free-themes/compcard
Author: The Big Head
Author URI: https://thebighead.ca/
Description: A portfolio theme for working models. Masonry galleries filtered by tag, polaroid digitals, a printable 5.5 × 8.5 in comp card, measurements in imperial and metric, agencies, availability, a booking form with built-in spam protection and schema.org Person data — with four colour presets and three hero layouts. No page builder, no web fonts, no external requests.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: compcard
Update URI: false
Tags: portfolio, photography, grid-layout, one-column, two-columns, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, block-patterns, block-styles, wide-blocks, editor-style, translation-ready

Compcard is free software distributed under the terms of the GNU GPL.
*/

/* ==========================================================================
   Tokens. Every colour, font, gap and radius below reads from these; the
   Customizer rewrites them in one inline block (functions.php).
   ========================================================================== */

:root {
	--cc-bg: #f7f4ef;
	--cc-ink: #151515;
	--cc-accent: #a4452c;
	--cc-muted: color-mix(in srgb, var(--cc-ink) 62%, var(--cc-bg));
	--cc-line: color-mix(in srgb, var(--cc-ink) 14%, var(--cc-bg));
	--cc-surface: color-mix(in srgb, var(--cc-ink) 4%, var(--cc-bg));

	--cc-font-display: Didot, "Bodoni 72", "Bodoni MT", "Bodoni Moda", "Libre Bodoni", "Playfair Display", Georgia, "Times New Roman", serif;
	--cc-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--cc-wrap: 1320px;
	--cc-narrow: 720px;
	--cc-pad: clamp(18px, 4vw, 48px);
	--cc-cols: 3;
	--cc-gap: 14px;
	--cc-radius: 0px;
	--cc-overlay: 0.3;
	--cc-focus: 50% 50%;
	--cc-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ==========================================================================
   Foundation
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 90px; }

body {
	margin: 0;
	background: var(--cc-bg);
	color: var(--cc-ink);
	font-family: var(--cc-font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

img, video, iframe, svg { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--cc-accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--cc-ink); }
:focus-visible { outline: 2px solid var(--cc-accent); outline-offset: 3px; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--cc-font-display);
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: -0.01em;
	margin: 0 0 .5em;
	color: var(--cc-ink);
	text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 1.6rem + 3.8vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 1.35rem + 1.8vw, 2.8rem); }
h3 { font-size: clamp(1.35rem, 1.2rem + .6vw, 1.7rem); }
h4 { font-size: 1.2rem; }

p, ul, ol, dl, figure, blockquote, table, pre { margin: 0 0 1.25em; }

blockquote {
	margin-inline: 0;
	padding: .2em 0 .2em 1.2em;
	border-left: 2px solid var(--cc-accent);
	font-family: var(--cc-font-display);
	font-size: 1.35em;
	line-height: 1.35;
}

hr { border: 0; border-top: 1px solid var(--cc-line); margin: 2.5em 0; }

table { width: 100%; border-collapse: collapse; font-size: .95em; }
th, td { padding: .6em .8em; border-bottom: 1px solid var(--cc-line); text-align: left; vertical-align: top; }

code, pre { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .9em; }
pre { padding: 1em; background: var(--cc-surface); overflow-x: auto; }

::selection { background: var(--cc-accent); color: var(--cc-bg); }

.wrap { width: 100%; max-width: var(--cc-wrap); margin-inline: auto; padding-inline: var(--cc-pad); }
.cc-narrow { max-width: calc(var(--cc-narrow) + 2 * var(--cc-pad)); }
.cc-wide { max-width: var(--cc-wrap); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}
.skip-link:focus {
	position: fixed !important;
	top: 12px; left: 12px;
	z-index: 1000;
	width: auto; height: auto;
	clip: auto;
	padding: 12px 18px;
	background: var(--cc-ink);
	color: var(--cc-bg);
	text-decoration: none;
}

/* Small capitals label — the typographic voice of fashion editorial. */
.cc-kicker, .is-style-kicker, .wp-block-heading.is-style-kicker {
	font-family: var(--cc-font-body) !important;
	font-size: .72rem !important;
	font-weight: 600;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--cc-muted);
	margin-bottom: 1em;
}

.cc-lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); line-height: 1.6; color: var(--cc-ink); max-width: 58ch; }
.cc-empty { color: var(--cc-muted); padding: 2em 0; }

/* ==========================================================================
   Buttons and forms
   ========================================================================== */

.button, button.button, .wp-block-button__link, input[type="submit"], .comment-form .submit, .search-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	min-height: 48px;
	padding: .8em 1.7em;
	border: 1px solid var(--cc-ink);
	border-radius: min(var(--cc-radius), 999px);
	background: var(--cc-ink);
	color: var(--cc-bg);
	font-family: var(--cc-font-body);
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s var(--cc-ease), color .2s var(--cc-ease), border-color .2s var(--cc-ease);
}
.button:hover, .wp-block-button__link:hover, input[type="submit"]:hover, .comment-form .submit:hover, .search-submit:hover {
	background: var(--cc-accent);
	border-color: var(--cc-accent);
	color: var(--cc-bg);
}
.button--ghost, .is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--cc-ink);
}
.button--ghost:hover { background: var(--cc-ink); border-color: var(--cc-ink); color: var(--cc-bg); }
.button .cc-icon { width: 18px; height: 18px; }

input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="password"], input[type="tel"], input[type="number"], select, textarea {
	width: 100%;
	min-height: 48px;
	padding: .7em .9em;
	border: 1px solid var(--cc-line);
	border-radius: min(var(--cc-radius), 12px);
	background: var(--cc-bg);
	color: var(--cc-ink);
	font: inherit;
	font-size: 16px; /* 16px stops iOS zooming into a field */
}
input:focus, select:focus, textarea:focus { border-color: var(--cc-ink); outline: 2px solid var(--cc-accent); outline-offset: 1px; }
label { display: block; margin-bottom: .35em; font-size: .82rem; font-weight: 600; letter-spacing: .04em; }

.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-form .search-field { flex: 1 1 auto; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
	position: relative;
	z-index: 50;
	background: var(--cc-bg);
	border-bottom: 1px solid var(--cc-line);
}
.has-sticky-header .site-header { position: sticky; top: 0; }
.admin-bar.has-sticky-header .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar.has-sticky-header .site-header { top: 46px; } }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--cc-line), 0 8px 24px -18px rgba(0, 0, 0, .35); }

.site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 76px;
	padding-block: 14px;
}

.site-branding { display: flex; align-items: center; gap: 14px; min-width: 0; }
.custom-logo { max-height: 56px; width: auto; }
.site-title {
	margin: 0;
	font-family: var(--cc-font-display);
	font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
	line-height: 1;
	letter-spacing: .02em;
	text-transform: uppercase;
}
.site-title a { color: var(--cc-ink); text-decoration: none; }
.site-description { margin: 4px 0 0; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cc-muted); }

.main-navigation ul { display: flex; flex-wrap: wrap; gap: 2px 26px; margin: 0; padding: 0; list-style: none; }
.main-navigation li { position: relative; }
.main-navigation a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--cc-ink);
	font-size: .92rem;
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 0 1px no-repeat;
	transition: background-size .3s var(--cc-ease);
}
.main-navigation a:hover, .main-navigation .current-menu-item > a, .main-navigation .current_page_item > a {
	background-size: 100% 1px;
}
.nav-upper .main-navigation a { font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }

.main-navigation .sub-menu {
	position: absolute;
	top: 100%;
	left: -16px;
	display: none;
	min-width: 200px;
	flex-direction: column;
	gap: 0;
	padding: 10px 16px;
	background: var(--cc-bg);
	border: 1px solid var(--cc-line);
}
.main-navigation li:hover > .sub-menu, .main-navigation li:focus-within > .sub-menu, .main-navigation li.is-open > .sub-menu { display: flex; }
.submenu-toggle { display: none; }

.menu-toggle {
	display: none;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 4px;
	border: 0;
	background: none;
	color: var(--cc-ink);
	font: 600 .72rem/1 var(--cc-font-body);
	letter-spacing: .18em;
	text-transform: uppercase;
	cursor: pointer;
}
.menu-toggle-bars { display: grid; gap: 6px; width: 24px; }
.menu-toggle-bars span { display: block; height: 1.5px; background: currentColor; transition: transform .25s var(--cc-ease); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* Centred header: name on its own line, menu centred underneath. */
.header-center .site-header-inner { flex-direction: column; justify-content: center; text-align: center; gap: 6px; padding-block: 22px 8px; }
.header-center .site-branding { flex-direction: column; }
.header-center .main-navigation ul { justify-content: center; }

@media (max-width: 600px) {
	/* One line for the name on a phone; the tagline returns on larger screens. */
	.site-description { display: none; }
	.site-title { font-size: 1.3rem; white-space: nowrap; }
	.custom-logo { max-height: 40px; }
	.cc-hero--full { min-height: 76vh; }
}

@media (max-width: 900px) {
	.site-header-inner, .header-center .site-header-inner { flex-direction: row; text-align: left; padding-block: 10px; }
	.header-center .site-branding { flex-direction: row; }
	.menu-toggle { display: inline-flex; }
	.main-navigation {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		padding: 12px var(--cc-pad) 24px;
		background: var(--cc-bg);
		border-bottom: 1px solid var(--cc-line);
	}
	.main-navigation.is-open { display: block; }
	.main-navigation ul { flex-direction: column; gap: 0; }
	.main-navigation a { width: 100%; min-height: 52px; border-bottom: 1px solid var(--cc-line); background: none; }
	.nav-upper .main-navigation a { font-size: .8rem; }
	.main-navigation .sub-menu { position: static; display: none; padding: 0 0 0 16px; border: 0; }
	.main-navigation li.is-open > .sub-menu { display: flex; }
	.submenu-toggle {
		display: inline-grid;
		place-items: center;
		position: absolute;
		top: 4px;
		right: 0;
		width: 44px;
		height: 44px;
		border: 0;
		background: none;
		color: var(--cc-ink);
		cursor: pointer;
	}
	body.menu-open { overflow: hidden; }
}

/* ==========================================================================
   Hero — three layouts
   ========================================================================== */

.cc-hero { position: relative; overflow: hidden; }
.cc-hero-media { margin: 0; }
.cc-hero-img { width: 100%; height: 100%; object-fit: cover; object-position: var(--cc-focus); }
.cc-hero-name { margin: 0; font-size: clamp(3rem, 1.4rem + 8.5vw, 9.5rem); line-height: .92; letter-spacing: -0.02em; }
.cc-hero-line { margin: .9em 0 0; font-size: clamp(1rem, .95rem + .4vw, 1.25rem); max-width: 40ch; }
.cc-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.8em 0 0; }

/* Full bleed: the photo fills the screen, the name sits in the lower left. */
.cc-hero--full { display: grid; min-height: min(92vh, 980px); }
.cc-hero--full .cc-hero-media { position: absolute; inset: 0; }
.cc-hero--full .cc-hero-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, calc(var(--cc-overlay) * .4)) 0%, rgba(0, 0, 0, calc(var(--cc-overlay) * 1.6)) 100%);
}
.cc-hero--full .cc-hero-copy {
	position: relative;
	align-self: end;
	width: 100%;
	max-width: var(--cc-wrap);
	margin-inline: auto;
	padding: 120px var(--cc-pad) clamp(40px, 7vw, 90px);
	color: #fff;
}
.cc-hero--full .cc-hero-name, .cc-hero--full .cc-kicker { color: #fff; }
.cc-hero--full .cc-kicker { opacity: .9; }
.cc-hero--full .button { background: #fff; border-color: #fff; color: #111; }
.cc-hero--full .button:hover { background: var(--cc-accent); border-color: var(--cc-accent); color: #fff; }
.cc-hero--full .button--ghost { background: transparent; color: #fff; }
.cc-hero--full.cc-hero--no-image { min-height: 70vh; background: var(--cc-ink); }

/* Split: name left, a tall portrait right. */
.cc-hero--split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: stretch;
	min-height: min(88vh, 940px);
}
.cc-hero--split .cc-hero-copy { align-self: center; padding: 60px var(--cc-pad) 60px max(var(--cc-pad), calc((100vw - var(--cc-wrap)) / 2 + var(--cc-pad))); }
.cc-hero--split .cc-hero-media { order: 2; height: 100%; }
.cc-hero--split.cc-hero--no-image { grid-template-columns: 1fr; }

/* Magazine cover: the name enormous across the top, the photo below it. */
.cc-hero--stacked { display: flex; flex-direction: column; padding-top: clamp(24px, 4vw, 56px); }
.cc-hero--stacked .cc-hero-copy { order: -1; width: 100%; max-width: var(--cc-wrap); margin-inline: auto; padding: 0 var(--cc-pad) clamp(20px, 3vw, 36px); text-align: center; }
.cc-hero--stacked .cc-hero-name { font-size: clamp(3.4rem, 1rem + 12vw, 13rem); text-transform: uppercase; letter-spacing: -0.03em; }
.cc-hero--stacked .cc-hero-line { margin-inline: auto; }
.cc-hero--stacked .cc-hero-actions { justify-content: center; }
.cc-hero--stacked .cc-hero-media { max-width: var(--cc-wrap); width: calc(100% - 2 * var(--cc-pad)); margin: 0 auto; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--cc-radius); }

@media (max-width: 900px) {
	.cc-hero--split { grid-template-columns: 1fr; min-height: 0; }
	.cc-hero--split .cc-hero-media { order: -1; height: auto; aspect-ratio: 4 / 5; max-height: 78vh; }
	.cc-hero--split .cc-hero-copy { padding: 32px var(--cc-pad) 44px; }
	.cc-hero--full { min-height: 82vh; }
	.cc-hero--stacked .cc-hero-media { aspect-ratio: 4 / 5; }
}

/* ==========================================================================
   Sections
   ========================================================================== */

.cc-section { padding-block: clamp(48px, 7vw, 104px); }
.cc-section + .cc-section { border-top: 1px solid var(--cc-line); }
.cc-section--stats { padding-block: 0; border-bottom: 1px solid var(--cc-line); }
.cc-section--stats + .cc-section { border-top: 0; }
.cc-section--intro .entry-content { max-width: 760px; margin-inline: auto; font-size: 1.1rem; }

.cc-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; margin-bottom: clamp(20px, 3vw, 36px); }
.cc-section-title { margin: 0; }
.cc-section-title--small {
	margin: 2em 0 .8em;
	font-family: var(--cc-font-body);
	font-size: .74rem;
	font-weight: 600;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--cc-muted);
}
.cc-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: var(--cc-ink);
	font-size: .74rem;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	text-decoration: none;
}
.cc-more .cc-icon { width: 18px; transition: transform .25s var(--cc-ease); }
.cc-more:hover .cc-icon { transform: translateX(4px); }

/* ==========================================================================
   Measurements
   ========================================================================== */

.cc-stats { margin: 0; }
.cc-stat dt { font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--cc-muted); }
.cc-stat dd { margin: 0; font-family: var(--cc-font-display); font-size: 1.2rem; line-height: 1.3; }

/* One line across the page, like the back of a card. */
.cc-stats--strip { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 28px; padding-block: 26px; }
.cc-stats--strip .cc-stat { min-width: 90px; }

/* A two-column table for the About and Digitals pages. */
.cc-stats--table { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.cc-stats--table .cc-stat { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--cc-line); }
.cc-stats--table .cc-stat dd { font-size: 1.05rem; text-align: right; }

/* Tight, for the comp card. */
.cc-stats--card { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; }
.cc-stats--card .cc-stat dd { font-size: .98rem; }

@media (max-width: 600px) {
	.cc-stats--strip { justify-content: flex-start; gap: 16px 22px; }
	.cc-stats--strip .cc-stat { min-width: 0; flex: 1 1 calc(50% - 22px); }
	.cc-stats--table { grid-template-columns: 1fr; }
}

/* Availability badge */
.cc-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 1.4em 0; font-size: .86rem; }
.cc-status strong { font-weight: 600; letter-spacing: .04em; }
.cc-status-dot { width: 9px; height: 9px; border-radius: 50%; background: #2f9e5b; box-shadow: 0 0 0 4px color-mix(in srgb, #2f9e5b 18%, transparent); }
.cc-status--limited .cc-status-dot { background: #d48b14; box-shadow: 0 0 0 4px color-mix(in srgb, #d48b14 18%, transparent); }
.cc-status--booked .cc-status-dot { background: #c2413a; box-shadow: 0 0 0 4px color-mix(in srgb, #c2413a 18%, transparent); }
.cc-status-note, .cc-status-travel { color: var(--cc-muted); }
.cc-status-travel::before { content: "·"; margin-right: 10px; }

/* Agencies */
.cc-agencies { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.cc-agencies li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 18px; padding: 14px 0; border-bottom: 1px solid var(--cc-line); }
.cc-agency-market { font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--cc-muted); }
.cc-agency-name { font-family: var(--cc-font-display); font-size: 1.2rem; color: var(--cc-ink); text-decoration: none; }
a.cc-agency-name { display: inline-flex; align-items: center; min-height: 44px; }
.cc-agencies li { align-items: center; padding: 6px 0; }
a.cc-agency-name:hover { color: var(--cc-accent); }
.cc-section--agencies .cc-agencies { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); column-gap: 32px; }

/* ==========================================================================
   The work grid
   ========================================================================== */

.cc-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 clamp(18px, 2.4vw, 28px); }
.cc-filters button {
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid var(--cc-line);
	border-radius: 999px;
	background: transparent;
	color: var(--cc-ink);
	font: 600 .7rem/1 var(--cc-font-body);
	letter-spacing: .16em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .2s var(--cc-ease), color .2s var(--cc-ease), border-color .2s var(--cc-ease);
}
.cc-filters button:hover { border-color: var(--cc-ink); }
.cc-filters button.is-active { background: var(--cc-ink); border-color: var(--cc-ink); color: var(--cc-bg); }

/* Masonry: every photo keeps its own proportions. */
.cc-grid { column-count: var(--cc-cols); column-gap: var(--cc-gap); }
.cc-grid .cc-card { break-inside: avoid; margin: 0 0 var(--cc-gap); }

/* Uniform tiles. */
.grid-portrait .cc-grid, .grid-square .cc-grid { display: grid; grid-template-columns: repeat(var(--cc-cols), minmax(0, 1fr)); gap: var(--cc-gap); column-count: initial; }
.grid-portrait .cc-grid .cc-card, .grid-square .cc-grid .cc-card { margin: 0; }
.grid-portrait .cc-card-media img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.grid-square .cc-card-media img { aspect-ratio: 1; object-fit: cover; width: 100%; }

@media (max-width: 1100px) { .cc-grid { column-count: min(var(--cc-cols), 3); } .grid-portrait .cc-grid, .grid-square .cc-grid { grid-template-columns: repeat(min(var(--cc-cols), 3), minmax(0, 1fr)); } }
@media (max-width: 700px) { .cc-grid { column-count: 2; } .grid-portrait .cc-grid, .grid-square .cc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.cc-card.is-hidden { display: none; }
.cc-card-link { display: block; color: var(--cc-ink); text-decoration: none; }
.cc-card-media { position: relative; margin: 0; overflow: hidden; border-radius: var(--cc-radius); background: var(--cc-surface); }
.cc-card-media img { width: 100%; transition: transform .9s var(--cc-ease), filter .6s var(--cc-ease); }
.hover-zoom .cc-card-link:hover .cc-card-media img, .hover-zoom .cc-card-link:focus-visible .cc-card-media img { transform: scale(1.045); }
.hover-grayscale .cc-card-media img { filter: grayscale(1); }
.hover-grayscale .cc-card-link:hover .cc-card-media img, .hover-grayscale .cc-card-link:focus-visible .cc-card-media img { filter: none; }
.cc-card-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 10px 2px 0; }
.cc-card-title { font-family: var(--cc-font-display); font-size: 1.05rem; line-height: 1.25; }
.cc-card-tags { font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--cc-muted); }
.no-captions .cc-card-caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ==========================================================================
   Comp card
   ========================================================================== */

.cc-compcard { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); max-width: 1000px; margin-inline: auto; }
.cc-cc-side {
	position: relative;
	aspect-ratio: 5.5 / 8.5;
	overflow: hidden;
	background: #fff;
	color: #111;
	box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 24px 50px -30px rgba(0, 0, 0, .45);
}
.cc-cc-front img, .cc-cc-cover { width: 100%; height: 100%; object-fit: cover; }
.cc-cc-front .cc-cc-name {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	margin: 0;
	padding: 60px 7% 7%;
	background: linear-gradient(transparent, rgba(0, 0, 0, .55));
	color: #fff;
	font-family: var(--cc-font-display);
	font-size: clamp(1.6rem, 1rem + 2.4vw, 2.8rem);
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: .02em;
}
.cc-cc-back { display: grid; grid-template-rows: minmax(0, 1fr) auto; padding: 6%; gap: 5%; }
.cc-cc-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4%; min-height: 0; }
.cc-cc-photos img { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.cc-cc-photos--1 { grid-template-columns: 1fr; }
.cc-cc-photos--3 img:first-child { grid-row: span 2; }
.cc-cc-info .cc-cc-name--small { margin: 0 0 .6em; font-family: var(--cc-font-display); font-size: 1.3rem; text-transform: uppercase; letter-spacing: .04em; color: #111; }
.cc-cc-info .cc-stat dt { color: #6a6a6a; font-size: .56rem; }
.cc-cc-info .cc-stat dd { color: #111; font-size: .86rem; }
.cc-cc-agency { margin: .8em 0 0; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: #444; }
.cc-cc-placeholder { display: grid; place-items: center; height: 100%; padding: 12%; text-align: center; color: #666; background: #f1f1f1; font-size: .9rem; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 700px) {
	.cc-compcard { grid-template-columns: 1fr; max-width: 420px; }
}

/* Print: each side of the card is one 5.5 × 8.5 in page; nothing else prints. */
@media print {
	@page { size: 5.5in 8.5in; margin: 0; }
	body.page-template-comp-card * { visibility: hidden; }
	body.page-template-comp-card .cc-compcard, body.page-template-comp-card .cc-compcard * { visibility: visible; }
	body.page-template-comp-card .cc-compcard { position: absolute; top: 0; left: 0; display: block; max-width: none; margin: 0; }
	body.page-template-comp-card .cc-cc-side { width: 5.5in; height: 8.5in; aspect-ratio: auto; box-shadow: none; break-after: page; page-break-after: always; }
	body.page-template-comp-card .cc-cc-side:last-child { break-after: auto; page-break-after: auto; }
	.site-header, .site-footer, .cc-noprint { display: none !important; }
	.cc-cc-front .cc-cc-name { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ==========================================================================
   Digitals — polaroids
   ========================================================================== */

.cc-digitals-row { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(24px, 4vw, 56px); align-items: start; padding-bottom: clamp(48px, 7vw, 96px); }
.cc-digitals-stats { position: sticky; top: 110px; }
@media (max-width: 900px) { .cc-digitals-row { grid-template-columns: 1fr; } .cc-digitals-stats { position: static; } }
/* The sidebar is 300px: one measurement per row, or the values wrap mid-number. */
.cc-digitals-stats .cc-stats--table { grid-template-columns: 1fr; }

.cc-digitals .wp-block-gallery figure.wp-block-image,
.cc-digitals .entry-content > .wp-block-image,
.is-style-polaroid.wp-block-gallery figure.wp-block-image,
.wp-block-image.is-style-polaroid {
	padding: 10px 10px 42px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 16px 30px -18px rgba(0, 0, 0, .45);
	transition: transform .35s var(--cc-ease);
}
.cc-digitals .wp-block-gallery figure.wp-block-image:nth-child(3n+1), .is-style-polaroid.wp-block-gallery figure.wp-block-image:nth-child(3n+1) { transform: rotate(-1.6deg); }
.cc-digitals .wp-block-gallery figure.wp-block-image:nth-child(3n+2), .is-style-polaroid.wp-block-gallery figure.wp-block-image:nth-child(3n+2) { transform: rotate(1.2deg); }
.cc-digitals .wp-block-gallery figure.wp-block-image:nth-child(3n), .is-style-polaroid.wp-block-gallery figure.wp-block-image:nth-child(3n) { transform: rotate(-.6deg); }
.cc-digitals .wp-block-gallery figure.wp-block-image:hover, .is-style-polaroid.wp-block-gallery figure.wp-block-image:hover { transform: rotate(0) translateY(-4px); z-index: 2; }
.cc-digitals .wp-block-gallery figcaption, .is-style-polaroid figcaption, .wp-block-image.is-style-polaroid figcaption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 8px;
	margin: 0 !important;
	padding: 0 !important;
	background: none !important;
	color: #333 !important;
	font-family: "Marker Felt", "Bradley Hand", "Segoe Print", cursive;
	font-size: .9rem !important;
	text-align: center;
	text-shadow: none !important;
}

/* ==========================================================================
   About, booking and other page layouts
   ========================================================================== */

.cc-about-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: start; padding-block: clamp(40px, 6vw, 88px); }
.cc-section--about .cc-about-row { padding-block: 0; }
.cc-about-figure { margin: 0; position: sticky; top: 110px; }
.cc-about-photo { width: 100%; border-radius: var(--cc-radius); }
.cc-about-copy .page-title { margin-bottom: .4em; }
@media (max-width: 900px) { .cc-about-row { grid-template-columns: 1fr; } .cc-about-figure { position: static; max-width: 520px; } }

.cc-booking-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; padding-block: clamp(40px, 6vw, 88px); }
@media (max-width: 900px) { .cc-booking-row { grid-template-columns: 1fr; } }

.cc-booking { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; padding: clamp(20px, 3vw, 36px); background: var(--cc-surface); border: 1px solid var(--cc-line); border-radius: var(--cc-radius); }
.cc-booking .cc-field--full { grid-column: 1 / -1; margin: 0; }
.cc-booking .cc-field { margin: 0; }
.cc-consent { display: flex; gap: 12px; align-items: flex-start; }
.cc-consent input { width: 22px; height: 22px; min-height: 0; margin-top: 2px; flex: none; accent-color: var(--cc-ink); }
.cc-consent label { font-weight: 400; font-size: .86rem; letter-spacing: 0; }
.cc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) { .cc-booking { grid-template-columns: 1fr; } }

.cc-notice { margin: 0 0 20px; padding: 14px 18px; border-left: 3px solid; border-radius: var(--cc-radius); background: var(--cc-surface); }
.cc-notice p { margin: 0; }
.cc-notice--ok { border-color: #2f9e5b; }
.cc-notice--error { border-color: #c2413a; }

.cc-showreel { background: #0b0b0b; color: #f2efe9; padding-bottom: clamp(48px, 7vw, 96px); }
.cc-showreel .page-title { color: #f2efe9; }
.cc-showreel .page-header { padding-top: clamp(40px, 6vw, 88px); }

.cc-cta { text-align: center; }
.cc-cta .cc-lead { margin-inline: auto; }
.cc-cta .cc-status { justify-content: center; }
.cc-cta .cc-social { justify-content: center; margin-top: 18px; }

.cc-404 { padding-block: clamp(60px, 10vw, 140px); }

/* ==========================================================================
   Pages, posts and the journal
   ========================================================================== */

.page-header { padding-block: clamp(36px, 5vw, 72px) clamp(16px, 2vw, 28px); }
.page-title { margin: 0; }
.cc-intro { max-width: 720px; margin-top: 1em; font-size: 1.08rem; }
.entry-header { padding-block: clamp(36px, 5vw, 72px) 18px; }
.entry-title { margin: 0; }
.entry-hero { margin-block: 0 2em; }
.entry-hero img { width: 100%; border-radius: var(--cc-radius); }
.entry-content { padding-bottom: clamp(36px, 5vw, 72px); }
.entry-content > * + h2 { margin-top: 1.6em; }
.entry-content .alignwide { width: min(100vw - 2 * var(--cc-pad), 1100px); margin-inline: calc((min(100vw - 2 * var(--cc-pad), 1100px) - 100%) / -2); max-width: none; }
.entry-content .alignfull { width: 100vw; margin-inline: calc(50% - 50vw); max-width: none; }
.entry-content .wp-block-gallery { gap: var(--cc-gap); }
.entry-content img { border-radius: var(--cc-radius); }
.cc-shoot .entry-content .wp-block-image, .cc-shoot .entry-content .wp-block-gallery { margin-bottom: var(--cc-gap); }

.entry-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 1em; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--cc-muted); }
.entry-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1.2em; }
.entry-tags a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid var(--cc-line); border-radius: 999px; color: var(--cc-ink); font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; }
.entry-tags a:hover { border-color: var(--cc-ink); }

.cc-journal { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(24px, 3vw, 40px); }
.cc-entry-card .entry-header { padding: 16px 0 6px; }
.cc-entry-card .entry-title { font-size: 1.45rem; }
.cc-entry-card .entry-title a { color: var(--cc-ink); text-decoration: none; }
.cc-entry-card .entry-title a:hover { color: var(--cc-accent); }
.cc-entry-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--cc-radius); }
.cc-entry-card .entry-summary { color: var(--cc-muted); font-size: .96rem; }

.cc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; padding-bottom: 60px; }
body:not(.no-sidebar) .cc-layout { grid-template-columns: minmax(0, 1fr) 300px; }
@media (max-width: 900px) { body:not(.no-sidebar) .cc-layout { grid-template-columns: 1fr; } }

.widget { margin-bottom: 2em; font-size: .95rem; }
.widget-title { font-family: var(--cc-font-body); font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--cc-muted); }
.widget ul { padding-left: 1.1em; }

.post-navigation { display: block; padding-block: 28px 64px; border-top: 1px solid var(--cc-line); }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 20px; }
.post-navigation a { display: flex; flex-direction: column; gap: 4px; color: var(--cc-ink); text-decoration: none; }
.post-navigation .nav-next { margin-left: auto; text-align: right; }
.post-navigation .nav-label { font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--cc-muted); }
.post-navigation .nav-title { font-family: var(--cc-font-display); font-size: 1.25rem; }

.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 36px; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--cc-line); color: var(--cc-ink); text-decoration: none; }
.pagination .page-numbers.current { background: var(--cc-ink); color: var(--cc-bg); border-color: var(--cc-ink); }

.comments-area { padding-block: 24px 64px; border-top: 1px solid var(--cc-line); }
.comment-list { padding-left: 0; list-style: none; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--cc-line); }
.comment-meta { font-size: .86rem; }
.comment-author .avatar { float: left; margin-right: 12px; border-radius: 50%; }

/* WordPress core classes */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption, .wp-block-image figcaption, .wp-element-caption { font-size: .82rem; color: var(--cc-muted); margin-top: .6em; }
.sticky, .bypostauthor, .gallery-caption { outline: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { padding-block: clamp(48px, 6vw, 80px) 36px; border-top: 1px solid var(--cc-line); text-align: center; }
.footer-name { margin: 0 0 18px; font-family: var(--cc-font-display); font-size: clamp(2rem, 1.4rem + 3vw, 3.6rem); line-height: 1; text-transform: uppercase; }
.footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px; margin-bottom: 36px; text-align: left; }
.footer-navigation ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; margin: 18px 0; padding: 0; list-style: none; }
.footer-navigation a { display: inline-flex; align-items: center; min-height: 44px; color: var(--cc-ink); font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; }
.site-copyright { margin: 18px 0 4px; font-size: .82rem; color: var(--cc-muted); }
.theme-credit { margin: 0; font-size: .74rem; color: var(--cc-muted); }
.theme-credit a { color: var(--cc-muted); }
.theme-credit a:hover { color: var(--cc-ink); }
.site-footer--canvas { padding-block: 28px; }

/* Social icons */
.cc-social { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-social--footer { justify-content: center; }
.cc-social a { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--cc-line); border-radius: 50%; color: var(--cc-ink); transition: border-color .2s var(--cc-ease), background-color .2s var(--cc-ease), color .2s var(--cc-ease); }
.cc-social a:hover { background: var(--cc-ink); border-color: var(--cc-ink); color: var(--cc-bg); }
.cc-social .cc-icon { width: 19px; height: 19px; }

/* ==========================================================================
   Lightbox (assets/js/theme.js)
   ========================================================================== */

.cc-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) 64px;
	align-items: center;
	background: rgba(8, 8, 8, .96);
	color: #fff;
	opacity: 0;
	transition: opacity .25s var(--cc-ease);
}
.cc-lightbox.is-open { opacity: 1; }
.cc-lightbox[hidden] { display: none; }
.cc-lightbox figure { grid-column: 2; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cc-lightbox img { max-width: 100%; max-height: 86vh; width: auto; object-fit: contain; }
.cc-lightbox figcaption { font-size: .82rem; color: rgba(255, 255, 255, .75); text-align: center; }
.cc-lightbox button {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border: 1px solid rgba(255, 255, 255, .3);
	border-radius: 50%;
	background: rgba(0, 0, 0, .3);
	color: #fff;
	font-size: 1.3rem;
	cursor: pointer;
}
.cc-lightbox button:hover { background: #fff; color: #111; }
.cc-lb-prev { justify-self: center; }
.cc-lb-next { justify-self: center; grid-column: 3; }
.cc-lb-close { position: absolute; top: 16px; right: 16px; }
.cc-lb-count { position: absolute; top: 28px; left: 24px; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.has-lightbox .cc-lightbox-group img { cursor: zoom-in; }
@media (max-width: 700px) {
	.cc-lightbox { grid-template-columns: 0 minmax(0, 1fr) 0; }
	.cc-lb-prev, .cc-lb-next { position: absolute; bottom: 20px; }
	.cc-lb-prev { left: 20px; }
	.cc-lb-next { right: 20px; }
}

/* ==========================================================================
   Presets and motion
   ========================================================================== */

/* Noir: the photographs sit on black, the text is warm white. */
.preset-noir .cc-cc-side { box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .9); }
.preset-noir .cc-hero--full .button { background: var(--cc-accent); border-color: var(--cc-accent); color: #111; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
	.cc-digitals .wp-block-gallery figure.wp-block-image, .is-style-polaroid.wp-block-gallery figure.wp-block-image { transform: none !important; }
}
