/*
Theme Name: Big Bokeh Photography
Theme URI: https://bigbokeh.com
Author: Haitham
Description: A photography magazine theme. Every photograph is a Photo Story with its own page: the story, the place, the method and the process, with camera and lens details read from the image. Floating polaroid cards, a full-bleed hero and browsing by place, series, theme, camera and lens.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: bigbokeh
*/

:root {
	--bb-bg: #F2EDE4;
	--bb-ink: #1E1D1B;
	--bb-ink-2: #3E3B37;
	--bb-muted: #6B6660;
	--bb-soft: #55514C;
	--bb-line: #D9D3C9;
	--bb-accent: #8A3B2A;
	--bb-white: #FFFFFF;
	--bb-serif: 'Cormorant Garamond', Georgia, serif;
	--bb-sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
	--bb-shadow: 0 40px 70px -28px rgba(20, 18, 15, .55), 0 14px 28px -14px rgba(20, 18, 15, .3);
	--bb-shadow-sm: 0 22px 34px -14px rgba(20, 18, 15, .55);
	--bb-wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bb-bg);
	color: var(--bb-ink);
	font: 400 17px/1.6 var(--bb-sans);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--bb-accent); }
a:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--bb-accent); outline-offset: 3px; }

.screen-reader-text, .bb-skip {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.bb-skip:focus { position: fixed; top: 12px; left: 12px; width: auto; height: auto; clip: auto; z-index: 100; background: #fff; padding: 12px 18px; }

.bb-wrap { width: min(var(--bb-wrap), 100% - 48px); margin-inline: auto; }

/* Type ----------------------------------------------------------- */
.bb-h1, .bb-h2, .bb-story__title { font-family: var(--bb-serif); font-weight: 700; line-height: 1.02; margin: 0; }
.bb-h1 { font-size: clamp(44px, 6vw, 72px); }
.bb-h2 { font-size: clamp(32px, 3.4vw, 44px); margin-bottom: 32px; }
.bb-h2--lg { font-size: clamp(38px, 4vw, 52px); }
.bb-h2--xl { font-size: clamp(44px, 5vw, 64px); margin-bottom: 0; }
.bb-lede { margin: 18px 0 0; font-size: 17px; color: var(--bb-soft); max-width: 560px; }
.bb-label { font: 600 11px/1.4 var(--bb-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--bb-accent); }
.bb-label--muted { color: var(--bb-muted); }
.bb-textlink { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.bb-small { font-size: 14px; color: var(--bb-muted); margin: 12px 0 0; }
.bb-prose { font-size: 18px; line-height: 1.8; color: var(--bb-ink-2); }
.bb-prose > :first-child { margin-top: 0; }
.bb-prose a { color: var(--bb-accent); text-decoration: underline; text-underline-offset: 3px; }
.bb-prose img { margin: 32px 0; box-shadow: var(--bb-shadow); }

/* Header --------------------------------------------------------- */
.bb-header { padding: 32px 24px 0; position: relative; z-index: 20; }
.bb-has-hero .bb-header { position: absolute; top: 8px; left: 0; right: 0; }
.bb-nav {
	max-width: var(--bb-wrap); margin: 0 auto; background: var(--bb-white);
	display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px;
	padding: 22px 32px; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .45);
}
.bb-brand { font: 600 30px/1 var(--bb-serif); letter-spacing: .01em; color: var(--bb-ink); }
.bb-brand em { font-weight: 500; color: var(--bb-muted); }
.bb-nav__menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; flex: 1; font-size: 15px; }
.bb-nav__menu a { display: inline-flex; align-items: center; min-height: 44px; }
.bb-nav__menu .current-menu-item > a, .bb-nav__menu .current_page_item > a { color: var(--bb-accent); }
.bb-search { position: relative; }
.bb-search summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; }
.bb-search summary::-webkit-details-marker { display: none; }
.bb-search form { position: absolute; right: 0; top: 52px; background: #fff; padding: 12px; box-shadow: var(--bb-shadow-sm); width: min(320px, 80vw); }
.bb-search input { width: 100%; border: 1px solid var(--bb-line); padding: 12px 14px; font: inherit; }

/* Hero ----------------------------------------------------------- */
.bb-hero { position: relative; height: min(860px, 100vh); min-height: 640px; background: #10161F; overflow: hidden; color: #fff; }
.bb-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bb-hero__shade { position: absolute; inset: auto 0 0 0; height: 320px; background: linear-gradient(to bottom, rgba(8, 10, 14, 0), rgba(8, 10, 14, .72)); }
.bb-hero__text { position: absolute; left: 0; right: 0; top: 220px; }
.bb-hero__text > * { max-width: 560px; margin-left: 36px; }
.bb-hero__kicker { font: italic 500 22px/1.3 var(--bb-serif); margin-bottom: 14px; }
.bb-hero__title { margin-top: 0; margin-bottom: 0; font: 700 clamp(44px, 5.4vw, 72px)/1.02 var(--bb-serif); letter-spacing: .02em; text-transform: uppercase; text-shadow: 0 2px 24px rgba(0, 0, 0, .5); }
.bb-hero__title a, .bb-hero__more, .bb-mini { color: #fff; }
.bb-hero__title a:hover, .bb-hero__more:hover, .bb-mini:hover { color: #F3D9C9; }
.bb-hero__more { display: inline-block; margin-top: 26px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; border-bottom: 1px solid rgba(255, 255, 255, .7); padding-bottom: 4px; }
.bb-hero__mini { position: absolute; left: 0; right: 0; bottom: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px; }
.bb-mini { display: flex; gap: 18px; align-items: center; }
.bb-mini img { width: 132px; height: 88px; object-fit: cover; flex: none; box-shadow: 0 18px 30px -12px rgba(0, 0, 0, .8); }
.bb-mini > span { display: flex; flex-direction: column; gap: 6px; }
.bb-mini__title { font-size: 16px; font-weight: 500; line-height: 1.35; }
.bb-mini__more { font-size: 13px; opacity: .85; }

/* Sections ------------------------------------------------------- */
.bb-section { padding: 120px 0 0; }
.bb-section--tight { padding-top: 80px; }
.bb-main > .bb-section:last-child, .bb-story > .bb-pager { margin-bottom: 120px; }
.bb-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 64px; }
.bb-grid { display: grid; gap: 72px 64px; }
.bb-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); }
.bb-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 48px; }

/* Polaroid cards ------------------------------------------------- */
.bb-card { display: block; background: var(--bb-white); padding: 16px 16px 0; box-shadow: var(--bb-shadow); color: var(--bb-ink); transition: transform .35s ease, box-shadow .35s ease; }
a.bb-card:hover { color: var(--bb-ink); transform: translateY(-4px) rotate(0deg); box-shadow: 0 50px 80px -28px rgba(20, 18, 15, .6), 0 16px 30px -14px rgba(20, 18, 15, .3); }
.bb-card__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #2b2a28; }
.bb-card__img img, .bb-card__img iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.bb-card__body { display: block; padding: 26px 10px 30px; }
.bb-card__top { display: flex; justify-content: space-between; gap: 12px; }
.bb-card__title { display: block; font: 600 34px/1.1 var(--bb-serif); margin-top: 10px; }
.bb-card__title--sm { font-size: 24px; }
.bb-card__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 13px; color: var(--bb-muted); }
.bb-card--small { padding: 14px 14px 0; }
.bb-card--small .bb-card__body { padding: 20px 8px 24px; }
.bb-card--small .bb-card__title { font-size: 27px; }
.bb-tilt .bb-grid > .bb-card:nth-child(4n+1) { transform: rotate(-1deg); }
.bb-tilt .bb-grid > .bb-card:nth-child(4n+2) { transform: rotate(.8deg); }
.bb-tilt .bb-grid > .bb-card:nth-child(4n+3) { transform: rotate(.6deg); }
.bb-tilt .bb-grid > .bb-card:nth-child(4n+4) { transform: rotate(-.9deg); }
.bb-tilt .bb-grid > a.bb-card:hover { transform: translateY(-4px) rotate(0deg); }

/* Panorama band -------------------------------------------------- */
.bb-band { display: block; width: min(1320px, 100% - 48px); margin: 0 auto; background: #fff; padding: 20px 20px 0; box-shadow: 0 60px 90px -40px rgba(20, 18, 15, .6), 0 18px 36px -18px rgba(20, 18, 15, .3); color: var(--bb-ink); }
.bb-band img { width: 100%; }
.bb-band__cap { display: block; padding: 28px 12px 34px; text-align: center; }
.bb-band__title { display: block; font: 700 44px/1.1 var(--bb-serif); margin-top: 8px; }
.bb-band__meta { display: block; font: 500 20px/1.4 var(--bb-serif); color: var(--bb-soft); margin-top: 6px; }
.bb-band:hover { color: var(--bb-ink); }

/* Feature + notes ------------------------------------------------ */
.bb-split { display: flex; flex-wrap: wrap; gap: 80px; align-items: center; }
.bb-feature { flex: 1 1 440px; max-width: 540px; min-width: 0; position: relative; padding-bottom: 70px; }
.bb-feature__img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; box-shadow: 0 50px 80px -30px rgba(20, 18, 15, .6); }
.bb-feature__panel { position: absolute; left: 56px; right: -56px; bottom: 0; background: rgba(255, 255, 255, .95); padding: 30px 34px; box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .35); display: block; color: var(--bb-ink); }
.bb-feature__title { display: block; font: 600 40px/1.08 var(--bb-serif); margin-top: 10px; }
.bb-feature__kit { display: block; font-size: 13px; color: var(--bb-muted); margin-top: 10px; }
.bb-notes { flex: 999 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 30px; }
.bb-notes .bb-h2 { margin-bottom: 6px; }
.bb-note { display: flex; gap: 24px; align-items: center; }
.bb-note img { width: 160px; height: 110px; object-fit: cover; flex: none; box-shadow: var(--bb-shadow-sm); }
.bb-note__title { display: block; font: 600 25px/1.2 var(--bb-serif); margin-top: 4px; }

/* Browse --------------------------------------------------------- */
.bb-panel { background: #fff; padding: 56px; box-shadow: 0 40px 70px -40px rgba(20, 18, 15, .4); }
.bb-browse { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 40px; }
.bb-browse__label { margin-bottom: 14px; }
.bb-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.bb-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--bb-line); font-size: 14px; background: #fff; }
.bb-chip:hover { border-color: var(--bb-accent); }

/* About ---------------------------------------------------------- */
.bb-about { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.bb-about__img { flex: 1 1 320px; max-width: 420px; }
.bb-about__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: var(--bb-shadow); }
.bb-about__text { flex: 2 1 420px; min-width: 0; font-size: 18px; line-height: 1.7; color: var(--bb-ink-2); }
.bb-about__text p { max-width: 620px; }
.bb-about__sign { font: italic 500 34px/1.2 var(--bb-serif); color: var(--bb-soft); }

/* Story page ----------------------------------------------------- */
.bb-story__head { text-align: center; padding: 88px 0 56px; }
.bb-story__title { font-size: clamp(48px, 6.4vw, 84px); max-width: 1000px; margin: 18px auto 0; }
.bb-story__standfirst { margin: 24px auto 0; max-width: 660px; font: italic 500 26px/1.4 var(--bb-serif); color: var(--bb-soft); }
.bb-story__dateline { margin-top: 26px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--bb-muted); }
.bb-story__photo { width: min(1320px, 100% - 48px); margin: 0 auto; }
.bb-frame { background: #fff; padding: 18px; box-shadow: 0 60px 90px -40px rgba(20, 18, 15, .6), 0 18px 36px -18px rgba(20, 18, 15, .3); }
.bb-frame img { width: 100%; }
.bb-story__photo figcaption { margin-top: 18px; font-size: 13px; color: var(--bb-muted); text-align: right; }
.bb-story__body { display: flex; flex-wrap: wrap; gap: 72px; align-items: flex-start; padding-top: 96px; }
.bb-story__text { flex: 999 1 560px; min-width: 0; }
.bb-story__section { margin-bottom: 64px; }
.bb-story__h { font: 700 42px/1.1 var(--bb-serif); margin: 0 0 18px; }
.bb-story__h span { font-weight: 500; font-style: italic; font-size: 22px; color: var(--bb-accent); margin-right: 8px; }
.bb-beforeafter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.bb-beforeafter .bb-card__body { padding: 14px 4px 16px; }
.bb-story__aside { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.bb-specs { background: #fff; padding: 34px 32px 30px; box-shadow: var(--bb-shadow); }
.bb-tilt .bb-specs { transform: rotate(.8deg); }
.bb-specs__title { font: 700 30px/1 var(--bb-serif); margin: 0 0 22px; }
.bb-specs dl { margin: 0; }
.bb-specs dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid #ECE7DE; font-size: 15px; }
.bb-specs dt { color: var(--bb-muted); }
.bb-specs dd { margin: 0; font-weight: 500; text-align: right; }
.bb-card--static { padding: 14px 14px 0; }
.bb-map { aspect-ratio: 4 / 3; }
.bb-pager { display: flex; justify-content: space-between; gap: 24px; padding-top: 64px; font: 600 22px/1.3 var(--bb-serif); }

/* Archive / pages ------------------------------------------------ */
.bb-archive__head { margin-bottom: 64px; }
.bb-archive__head .bb-label { margin-bottom: 14px; }
.bb-pagination { margin-top: 80px; }
.bb-pagination .nav-links { display: flex; gap: 10px; justify-content: center; }
.bb-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; background: #fff; box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .3); }
.bb-pagination .current { background: var(--bb-ink); color: #fff; }
.bb-page__wrap { max-width: 860px; }
.bb-page__img { margin: 40px 0; }
.bb-page .bb-prose { margin-top: 32px; }
.bb-empty { padding-bottom: 80px; }
.bb-empty p { max-width: 560px; }

/* Footer --------------------------------------------------------- */
.bb-footer { background: var(--bb-ink); color: #D9D3C9; padding: 56px 0 40px; margin-top: 120px; }
.bb-footer a { color: #D9D3C9; }
.bb-footer a:hover { color: #fff; }
.bb-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.bb-footer__brand { font: 500 26px/1 var(--bb-serif); color: #fff; }
.bb-footer__note { margin: 10px 0 0; font-size: 14px; }
.bb-footer__links { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; font-size: 14px; }
.bb-footer__links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.bb-footer__legal { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12px; color: #A8A29A; }
.bb-main > .bb-section:last-child { margin-bottom: 0; }

/* Small screens -------------------------------------------------- */
@media (max-width: 780px) {
	body { font-size: 16px; }
	.bb-nav { padding: 16px 20px; gap: 8px 20px; }
	.bb-brand { font-size: 24px; }
	.bb-nav__menu { order: 3; flex-basis: 100%; gap: 0 20px; font-size: 14px; }
	.bb-header { padding: 16px 12px 0; }
	.bb-hero { height: auto; min-height: 0; padding: 220px 0 40px; }
	.bb-hero__text, .bb-hero__mini { position: relative; top: auto; bottom: auto; }
	.bb-hero__text > * { margin-left: 0; }
	.bb-hero__img { position: absolute; }
	.bb-hero__shade { height: 100%; background: linear-gradient(to bottom, rgba(8, 10, 14, .1), rgba(8, 10, 14, .78)); }
	.bb-hero__mini { margin-top: 40px; gap: 18px; }
	.bb-section { padding-top: 80px; }
	.bb-grid { gap: 48px; }
	.bb-card__title { font-size: 28px; }
	.bb-feature__panel { position: relative; left: auto; right: auto; margin: -60px 16px 0; }
	.bb-feature { padding-bottom: 0; }
	.bb-panel { padding: 32px 24px; }
	.bb-note img { width: 120px; height: 84px; }
	.bb-story__head { padding-top: 56px; }
	.bb-story__body { padding-top: 64px; gap: 48px; }
	.bb-beforeafter { grid-template-columns: 1fr; }
	.bb-tilt .bb-grid > .bb-card { transform: none; }
	.bb-pager { flex-direction: column; font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
