/*
Theme Name: This Is Fine Studio
Theme URI: https://example.com/
Author: Darcy Anderson
Author URI: https://example.com/
Description: Streamlined grid-based portfolio theme for This Is Fine Design Studio — full-width top nav over a 20/80 two-column layout.
Version: 0.50
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: tif
*/

/* -------------------------------------------------------------------------
 * Base
 * ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: #4A4A4A;
	color: #F2F2F2;
	font-family: 'Open Sans', Arial, sans-serif;
	line-height: 1.6;
}
img, svg { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; color: #2B2B2B; padding: .75rem 1.25rem; z-index: 1000; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* -------------------------------------------------------------------------
 * Page shell: full-width nav (10%) over a 20 / 80 two-column body
 * ---------------------------------------------------------------------- */
/* Usable viewport height. When logged in, WordPress's admin bar (32px, or 46px
   on narrow screens) shifts the page down; subtract it so the full-height
   layout still fits and doesn't cause a slight vertical scroll. */
:root { --tif-vh: 100vh; }
body.admin-bar { --tif-vh: calc(100vh - 32px); }
@media screen and (max-width: 782px) {
	body.admin-bar { --tif-vh: calc(100vh - 46px); }
}

.site {
	min-height: var(--tif-vh);
	display: grid;
	grid-template-rows: calc(var(--tif-vh) * 0.1) 1fr;
}

/* --- Top navigation --- */
.site-header {
	grid-row: 1;
	position: sticky;
	top: 0;
	z-index: 50;
	height: calc(var(--tif-vh) * 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	background: #4A4A4A;
	overflow: hidden;
}
/* Cyclic, swipeable nav carousel — the active page rotates to dead-center. */
.main-nav {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	user-select: none;
}
.nav-viewport {
	flex: 1 1 auto;
	overflow: hidden;
	cursor: grab;
	/* Fade the edges so the loop's clone items dissolve into the background
	   instead of reading as duplicates in the leftover space. */
	-webkit-mask-image: linear-gradient(to right, transparent 21%, #000 25%, #000 75%, transparent 79%);
	mask-image: linear-gradient(to right, transparent 21%, #000 25%, #000 75%, transparent 79%);
}
.nav-viewport:active { cursor: grabbing; }
.nav-ring {
	display: flex;
	align-items: center;
	will-change: transform;
}
.nav-ring li {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
}
.nav-ring a {
	display: block;
	/* 25px each side => 50px gap between adjacent items. */
	padding: 0 25px;
	font-family: 'Oswald', Arial, sans-serif;
	font-weight: 300;
	text-transform: uppercase;
	letter-spacing: .12em;
	font-size: 16px;
	color: #9a9a9a;
	white-space: nowrap;
	transition: color .3s ease;
}
/* On first paint, snap without animating. */
.nav-ring.nav-noanim a { transition: none; }
/* Size graduates with distance from the centered (selected) item:
   36 (center) -> 20 (±1) -> 18 (±2) -> 16 (outer). */
.nav-ring li.is-d1 a { font-size: 20px; }
.nav-ring li.is-d2 a { font-size: 18px; }
.nav-ring li.is-d3 a { font-size: 16px; }
.nav-ring li.is-hot a { color: #fff; }
/* The active item gets a FIXED box (text centered), so its edges always
   sit just past the arrows. The ±1 items (25px inner padding) then land a
   constant 20px outside the arrows, no matter how wide the active word is —
   so short words like FAQ never collide with the arrows. */
.nav-ring li.is-center a {
	font-weight: 700;
	font-size: 36px;
	color: #fff;
	width: var(--nav-center-w, 278px);
	padding: 0;
	text-align: center;
}
/* Arrows sit at a fixed offset from dead-center (inner edge at 120px, 24px
   wide => outer edge at 144px; the ±1 items start at 164px = +20px). */
.nav-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 24px;
	box-sizing: border-box;
	text-align: center;
	color: #fff;
	font-size: 1.6rem;
	line-height: 1;
	padding: .25rem 0;
	opacity: .85;
}
.nav-arrow:hover { opacity: 1; }
.nav-arrow--prev { right: calc(50% + 120px); left: auto; }
.nav-arrow--next { left: calc(50% + 120px); right: auto; }

/* Hamburger — a backup / mobile-friendly way into every page, far right. */
.nav-hamburger {
	position: absolute;
	right: 1.75rem;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 30px;
	height: 22px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 0;
}
.nav-hamburger span {
	display: block;
	width: 100%;
	height: 2px;
	background: #fff;
	transition: transform .3s ease, opacity .3s ease;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* "Go" cue under the centered nav item — jumps to whatever page is centered. */
.nav-go {
	position: absolute;
	left: 50%;
	bottom: 4px;
	transform: translateX(-50%);
	z-index: 5;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 1px;
	padding: 0;
	font-family: 'Oswald', Arial, sans-serif;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .18em;
	font-size: .58rem;
	line-height: 1;
	color: #9a9a9a;
	cursor: pointer;
	transition: color .2s ease, transform .2s ease;
}
.nav-go:hover { color: #fff; }
.nav-go__label { text-indent: .18em; }
.nav-go__arrow {
	width: 0; height: 0;
	border-left: .3rem solid transparent;
	border-right: .3rem solid transparent;
	border-top: .34rem solid currentColor; /* points down */
}
.nav-go:hover .nav-go__arrow { animation: nav-go-bob .6s ease-in-out infinite; }
@keyframes nav-go-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(2px); } }
@media (prefers-reduced-motion: reduce) { .nav-go:hover .nav-go__arrow { animation: none; } }

/* Dropdown panel with the full page list. Fixed so it clears the header's
   overflow:hidden; slides down from just under the nav on the right. */
.nav-menu-panel {
	position: fixed;
	top: calc(var(--tif-vh) * 0.1);
	right: 0;
	width: 260px;
	max-width: 82vw;
	background: #3A3A3A;
	z-index: 60;
	padding: .75rem 0;
	box-shadow: 0 12px 32px rgba(0, 0, 0, .4);
}
.nav-menu-panel[hidden] { display: none; }
.nav-menu-panel ul { display: flex; flex-direction: column; }
.nav-menu-panel a {
	display: block;
	padding: .8rem 1.75rem;
	font-family: 'Oswald', Arial, sans-serif;
	font-weight: 300;
	text-transform: uppercase;
	letter-spacing: .12em;
	font-size: 16px;
	color: #bdbdbd;
	transition: color .2s ease, background .2s ease;
}
.nav-menu-panel a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav-menu-panel .current-menu-item a,
.nav-menu-panel .current_page_item a { color: #fff; font-weight: 600; }

/* --- Body: two columns --- */
.site-body {
	grid-row: 2;
	display: grid;
	grid-template-columns: 20% 80%;
	align-items: stretch;
}

/* Left brand column — name/tagline pinned at top, mascot vertically
   centered to the page, copyright mounted directly below the image. */
.brand-col {
	border-right: 1px solid rgba(255, 255, 255, .25);
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	position: sticky;
	top: calc(var(--tif-vh) * 0.1);
	height: calc(var(--tif-vh) * 0.9);
}
/* Title sits immediately above the mascot, as part of the centered group.
   Column padding is removed; text blocks carry it so they stay off the
   divider, while the mascot only insets 1% each side (so it runs large). */
.brand-col__head {
	width: 100%;
	padding: 0 1.25rem;
	margin-bottom: 1.25rem;
}
.brand-col__center {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.brand-col__name {
	font-family: 'Oswald', Arial, sans-serif;
	font-weight: 300;
	text-transform: uppercase;
	letter-spacing: .22em;
	font-size: 1.4rem;
	margin: 0;
}
.brand-col__mascot { width: 100%; padding: 0 1%; }
.brand-col__mascot img { width: 100%; max-width: none; max-height: 42vh; object-fit: contain; margin: 0 auto; }
.brand-col__mascot-placeholder { font-size: 4rem; }
.brand-col__tagline {
	font-family: 'Oswald', Arial, sans-serif;
	text-transform: uppercase;
	letter-spacing: .15em;
	font-size: 1rem;
	color: #F2F2F2;
	margin: .6rem 0 0;
}
.brand-col__copyright {
	width: 100%;
	padding: 0 1.25rem;
	margin-top: 1.5rem;
	font-family: 'Oswald', Arial, sans-serif;
	font-weight: 300;
	font-size: .7rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: #8f8f8f;
	line-height: 2.2;
}
.brand-col__copyright p { margin: 0; }

/* Three-column variant (Quote): 20% / 50% / 30% */
body.has-three-col .site-body {
	grid-template-columns: 20% 50% 30%;
}
/* Portfolio: narrower gallery column (filter + thumbnails) gives the center
   viewer more room. */
body.is-portfolio .site-body {
	grid-template-columns: 20% 60% 20%;
}
/* Portfolio locks to the viewport: the viewer and the gallery each scroll
   inside their own column, so the page itself never scrolls. */
body.is-portfolio .site { height: var(--tif-vh); }
body.is-portfolio .site-body { height: calc(var(--tif-vh) * 0.9); overflow: hidden; }

/* Right content column — 5% padding left and right */
.content-col {
	padding: 2.5rem 5% 4rem;
	min-width: 0;
}
.content-col--side {
	border-left: 1px solid rgba(255, 255, 255, .25);
}
.page-title {
	font-family: 'Oswald', Arial, sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .02em;
	font-size: clamp(2.5rem, 5vw, 4.5rem);
	line-height: 1;
	margin: 0 0 1.25rem;
}
.content-box {
	border: 1px solid rgba(255, 255, 255, .25);
	border-left: 0;
	border-bottom: 0;
	padding: clamp(1.5rem, 3vw, 3rem);
}
.content-box p {
	font-family: 'Open Sans', sans-serif;
	font-size: 1.05rem;
	line-height: 1.9;
	text-align: justify;
	margin: 0 0 1.6rem;
}
.content-box p:last-child { margin-bottom: 0; }

/* Scroll-down cue */
.scroll-cue {
	display: flex;
	justify-content: center;
	margin-top: 1.5rem;
	color: rgba(255, 255, 255, .5);
}

/* -------------------------------------------------------------------------
 * Portfolio page — middle viewer + right filters/gallery
 * ---------------------------------------------------------------------- */
/* The viewer fills its column height and centres its content; it scrolls
   internally if a project's content runs long. position:relative anchors the
   floating filter to the top-right of the viewer. */
/* "safe center" keeps content centred when it fits, but falls back to
   top-alignment when it's taller than the viewport — otherwise flex centering
   pushes the top (the H1) up behind the header where it can't be scrolled to. */
.pf-viewer { position: relative; display: flex; flex-direction: column; justify-content: safe center; height: calc(var(--tif-vh) * 0.9); overflow-y: auto; }

/* Intro text box — shown on load (landing page) until a project is picked. */
.pf-intro { display: none; }
.pf-intro.is-active { display: block; }
.pf-page-title {
	max-width: 60rem;
	margin: 0 auto .9rem;
	font-family: 'Oswald', Arial, sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	line-height: 1;
	font-size: clamp(2rem, 4vw, 3.5rem);
	color: #fff;
}

/* Signature box beneath the intro content (text + image set per-page via ACF).
   The block hugs the right; the sign-off text is centred over the signature. */
.pf-signature {
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, .15);
}
.pf-signature__block {
	width: fit-content;
	max-width: 140px;
	margin-left: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .5rem;
}
.pf-signature__text {
	margin: 0;
	font-family: 'Open Sans', sans-serif;
	font-size: 1rem;
	color: #e8e8e8;
	text-align: center;
}
.pf-signature__img { display: block; max-width: 140px; height: auto; }
.pf-intro__inner {
	border: 1px solid rgba(255, 255, 255, .25);
	border-left: 0;
	border-bottom: 0;
	padding: clamp(1.75rem, 4vw, 3.25rem);
	max-width: 60rem;
	margin: 0 auto;
	font-family: 'Open Sans', sans-serif;
	font-size: 1rem;
	line-height: 1.8;
	color: #e8e8e8;
}
.pf-intro__inner > :first-child { margin-top: 0; }
.pf-intro__inner > :last-child { margin-bottom: 0; }
.pf-intro__inner p { margin: 0 0 1.1rem; }
.pf-intro__inner h1,
.pf-intro__inner h2,
.pf-intro__inner h3 {
	font-family: 'Oswald', Arial, sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	line-height: 1.1;
	margin: 0 0 1rem;
}
.pf-intro__inner h1 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
.pf-intro__inner h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.pf-intro__inner a { color: #fff; text-decoration: underline; }

.pf-slide { display: none; }
/* Middle column split 60 / 40: image left, project info right. */
.pf-slide.is-active {
	display: grid;
	grid-template-columns: 60% 40%;
	gap: 2rem;
	align-items: center;
}

/* Left: the image (click to open the lightbox). Frame is open on the left,
   no mat (page background shows through), 5% padding on the other 3 sides. */
.pf-slide__media {
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 5% 5% 5% 0;
	border: 1px solid rgba(255, 255, 255, .25);
	border-left: 0;
	background: transparent;
}
.pf-image { max-width: 100%; max-height: 66vh; width: auto; height: auto; display: block; object-fit: contain; }
img.pf-image { cursor: zoom-in; }
.pf-image--placeholder { width: 100%; aspect-ratio: 4 / 5; background: rgba(255, 255, 255, .06); }

/* Right: the project info panel */
.pf-slide__info { min-width: 0; }
.pf-eyebrow {
	font-family: 'Open Sans', sans-serif;
	font-style: italic;
	font-size: .85rem;
	color: #9a9a9a;
	margin: 0 0 .3rem;
}
.pf-title {
	font-family: 'Oswald', Arial, sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .02em;
	font-size: clamp(1.6rem, 2.6vw, 2.6rem);
	line-height: 1.05;
	margin: 0 0 .25rem;
}
.pf-client {
	font-family: 'Oswald', Arial, sans-serif;
	text-transform: uppercase;
	letter-spacing: .08em;
	font-size: 1rem;
	color: #aeaeae;
	margin: 0 0 .9rem;
}
.pf-rating { display: flex; align-items: center; gap: .6rem; margin: 0 0 1.25rem; }
.pf-stars { color: #fff; font-size: 1.05rem; letter-spacing: .12em; }
.pf-star--empty { color: #8f8f8f; }
.pf-rating__meta {
	font-family: 'Oswald', Arial, sans-serif;
	text-transform: uppercase;
	letter-spacing: .08em;
	font-size: .62rem;
	color: #9a9a9a;
}
.pf-desc-text {
	font-family: 'Open Sans', sans-serif;
	font-size: .95rem;
	line-height: 1.7;
	text-align: justify;
	max-height: 32vh;
	overflow: hidden;
	margin: 0 0 1.25rem;
	-webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent);
	mask-image: linear-gradient(to bottom, #000 78%, transparent);
}
.pf-desc-text p { margin: 0 0 1rem; }
.pf-cta {
	font-family: 'Oswald', Arial, sans-serif;
	text-transform: uppercase;
	letter-spacing: .08em;
	font-size: .85rem;
	color: #aeaeae;
	margin: 0;
}
.pf-cta a { color: #fff; font-weight: 600; text-decoration: underline; margin-left: .4rem; }

/* Right column: the filter sits in a darkened left sub-column; the thumbnails
   fill the rest and scroll (between the top/bottom buttons) inside the viewport.
   Same two-column shape in both collapsed and expanded states. */
.pf-side {
	position: relative;
	height: calc(var(--tif-vh) * 0.9);
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto 1fr auto;
	column-gap: 1rem;
	padding: 1rem 5% 1rem 0;
}
.pf-side .pf-scroll--up   { grid-column: 2; grid-row: 1; }
.pf-side .pf-grid-scroll  { grid-column: 2; grid-row: 2; }
.pf-side .pf-scroll--down { grid-column: 2; grid-row: 3; }
.pf-grid-scroll { min-height: 0; overflow-y: auto; scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; }
.pf-grid-scroll::-webkit-scrollbar { width: 0; height: 0; display: none; }

/* Scroll buttons pinned at the top and bottom of the thumbnail column. */
.pf-scroll {
	flex: 0 0 auto;
	height: 1.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, .05);
	border: 1px solid rgba(255, 255, 255, .18);
	color: #cfcfcf;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, opacity .2s ease;
}
.pf-scroll:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.pf-scroll--up::before { content: '\25B2'; font-size: .7rem; line-height: 1; }
.pf-scroll--down::before { content: '\25BC'; font-size: .7rem; line-height: 1; }
.pf-scroll.is-disabled { opacity: .25; pointer-events: none; }

/* Toggle tab on the left edge of the gallery — expands it to fill the whole
   content area (out to the mascot column). */
.pf-gallery-toggle {
	position: absolute;
	top: 50%;
	left: 0;
	transform: translate(-100%, -50%);
	width: 1.9rem;
	height: 3rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #3A3A3A;
	color: #fff;
	border-radius: .35rem 0 0 .35rem;
	cursor: pointer;
	z-index: 41;
	transition: background .2s ease, height .2s ease;
}
.pf-gallery-toggle:hover { background: #2B2B2B; }
.pf-gallery-toggle::before { content: '\25C0'; font-size: .8rem; line-height: 1; }
/* When open, the tab is a clear "close" (×) handle on the left edge of the gallery. */
.pf-side.is-expanded .pf-gallery-toggle { height: 4.5rem; }
.pf-side.is-expanded .pf-gallery-toggle::before { content: '\00D7'; font-size: 1.5rem; }

/* Expanded: cover the viewer + gallery area (from the brand column to the
   right edge) with a larger multi-column grid. Opens to the left — the panel's
   left edge sweeps in from the gallery column out to the brand column. */
@keyframes pf-gallery-open {
	from { left: 82%; opacity: 0; }
	to   { left: 20%; opacity: 1; }
}
/* Closing plays the open animation in reverse (JS holds .is-expanded and adds
   .is-closing for the duration, then collapses). */
@keyframes pf-gallery-close {
	from { left: 20%; opacity: 1; }
	to   { left: 82%; opacity: 0; }
}
.pf-side.is-expanded.is-closing {
	animation: pf-gallery-close .4s cubic-bezier(.22, .61, .36, 1) both;
}
/* Expanded: the same filter-left / thumbnails-right shape (inherited from
   .pf-side), just mounted as a fixed overlay from the brand column to the right
   edge, with more thumbnail columns. */
.pf-side.is-expanded {
	position: fixed;
	top: calc(var(--tif-vh) * 0.1);
	left: 20%;
	right: 0;
	bottom: 0;
	z-index: 40;
	background: #4A4A4A;
	/* visible (not hidden) so the × close tab, which sits just outside the left
	   edge, isn't clipped; the grid + filter scroll internally on their own. */
	overflow: visible;
	padding: 2.5rem 3% 2.5rem 0;
	column-gap: 2.5rem;
	animation: pf-gallery-open .4s cubic-bezier(.22, .61, .36, 1) both;
}
@media (prefers-reduced-motion: reduce) {
	.pf-side.is-expanded,
	.pf-side.is-expanded.is-closing { animation: none; }
}
.pf-side.is-expanded .pf-grid {
	grid-template-columns: repeat(5, 1fr);
	max-width: none;
}
/* -------------------------------------------------------------------------
 * Gallery filter — a darkened left sub-column inside the thumbnail div (so it
 * never overlaps the viewer and shows the same whether the gallery is collapsed
 * or expanded). Each group (Type / Media / Subject) collapses independently.
 * Right-aligned so the labels sit against the thumbnails.
 * ---------------------------------------------------------------------- */
.pf-filter-float {
	grid-column: 1;
	grid-row: 1 / 4;
	align-self: stretch;
	overflow-y: auto;
	scrollbar-width: none;
	text-align: right;
	background: rgba(0, 0, 0, .16);
	padding: 1rem .9rem;
}
.pf-filter-float::-webkit-scrollbar { width: 0; height: 0; display: none; }
.pf-filter-float__toggle {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: .5rem;
	margin-left: auto;
	font-family: 'Oswald', Arial, sans-serif;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .15em;
	font-size: .85rem;
	color: #f2f2f2;
	cursor: pointer;
}
.pf-filter-float__caret {
	width: 0; height: 0;
	border-left: .3rem solid transparent;
	border-right: .3rem solid transparent;
	border-top: .35rem solid currentColor;
	transition: transform .2s ease;
}
.pf-filter-float:not(.is-open) .pf-filter-float__caret { transform: rotate(-90deg); }
.pf-filter-float__body { display: none; margin-top: .85rem; }
.pf-filter-float.is-open .pf-filter-float__body { display: block; }

.pf-fgroup { margin-bottom: .85rem; }
.pf-fgroup__head {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: .5rem;
	width: 100%;
	font-family: 'Oswald', Arial, sans-serif;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: .12em;
	font-size: 1rem;
	color: #e8e8e8;
	cursor: pointer;
}
.pf-fgroup__caret {
	width: 0; height: 0;
	border-left: .28rem solid transparent;
	border-right: .28rem solid transparent;
	border-bottom: .32rem solid currentColor; /* points up when open */
	transition: transform .2s ease;
}
.pf-fgroup.is-collapsed .pf-fgroup__caret { transform: rotate(180deg); }
.pf-fgroup__list {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: .05rem;
	margin: .4rem 0 0;
}
.pf-fgroup.is-collapsed .pf-fgroup__list { display: none; }

.pf-filter {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: .35rem;
	font-family: 'Oswald', Arial, sans-serif;
	font-weight: 300;
	text-transform: uppercase;
	letter-spacing: .1em;
	font-size: .75rem;
	color: #b8b8b8;
	cursor: pointer;
	transition: color .15s ease;
}
.pf-filter:hover { color: #fff; }
.pf-filter__mark { color: #7f7f7f; transition: color .15s ease; }
.pf-filter__mark::before { content: '\2014\2002\203A'; } /* — › */
.pf-filter.is-active { color: #fff; }
.pf-filter.is-active .pf-filter__mark { color: #fff; }
.pf-filter.is-active .pf-filter__mark::before { content: '\2014\2002\2713'; } /* — ✓ */

.pf-grid {
	display: grid;
	/* Collapsed gallery: small thumbnails (3-up). Expanded overrides to 5-up. */
	grid-template-columns: repeat(3, 1fr);
	gap: .5rem;
}
.pf-thumb {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .2);
	opacity: .6;
	transition: opacity .2s ease, border-color .2s ease;
}
.pf-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pf-thumb__placeholder { display: block; width: 100%; height: 100%; background: rgba(255, 255, 255, .06); }
.pf-thumb:hover { opacity: 1; }
.pf-thumb.is-active { opacity: 1; border-color: #fff; }
.pf-thumb.is-hidden { display: none; }

/* Lightbox — full-screen dark backdrop, image as large as fits, with
   zoom (buttons + wheel) and drag-to-pan. */
.pf-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2.5vmin;
	overflow: hidden;
	background: rgba(0, 0, 0, .93);
	cursor: zoom-out;
}
.pf-lightbox[hidden] { display: none; }
.pf-lightbox__img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	cursor: default;
	transform-origin: center center;
	transition: transform .15s ease;
	box-shadow: 0 0 40px rgba(0, 0, 0, .5);
	-webkit-user-select: none;
	user-select: none;
}
.pf-lightbox.is-zoomed .pf-lightbox__img { cursor: grab; }
.pf-lightbox.is-panning .pf-lightbox__img { cursor: grabbing; transition: none; }
.pf-lightbox__close {
	position: absolute;
	top: 1.25rem;
	right: 1.75rem;
	z-index: 2;
	font-size: 2.6rem;
	line-height: 1;
	color: #fff;
	opacity: .8;
	transition: opacity .2s ease;
}
.pf-lightbox__close:hover { opacity: 1; }

.pf-lightbox__controls {
	position: absolute;
	bottom: 1.75rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	display: flex;
	gap: .5rem;
}
.pf-lb-btn {
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	line-height: 1;
	color: #fff;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: 4px;
	transition: background .2s ease;
}
.pf-lb-btn:hover { background: rgba(255, 255, 255, .24); }
.pf-lb-btn[data-zoom="reset"] { font-size: 1.25rem; }

/* -------------------------------------------------------------------------
 * Responsive: stack the two columns on narrow screens
 * ---------------------------------------------------------------------- */
@media (max-width: 900px) {
	.site { grid-template-rows: 72px 1fr; }
	.site-header { height: 72px; }
	.nav-ring a { padding: 0 14px; }
	.nav-ring li.is-d1 a { font-size: 16px; }
	.nav-ring li.is-d2 a { font-size: 15px; }
	.nav-ring li.is-d3 a { font-size: 14px; }
	.nav-ring li.is-center a { font-size: 24px; width: 150px; }
	.nav-arrow { display: none; }
	.nav-hamburger { right: 1.25rem; }
	.nav-menu-panel { top: 72px; width: 100%; max-width: none; }
	.site-body,
	body.has-three-col .site-body { grid-template-columns: 1fr; }
	.brand-col { position: static; height: auto; justify-content: normal; padding: 1.5rem 0; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .25); }
	.brand-col__mascot { max-width: 260px; }
	.content-col { padding: 2rem 1.25rem 3rem; }
	.content-col--side { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .25); }
}
