:root {
	--green: #2cb895;
	--green-hover: #3cd0ab;
	--ink: #1a1a1a;
	--body: #333;
	--muted: #767676;
	--line: #e5e5e5;
	--bg-soft: #f7f7f7;
	--radius-pill: 999px;
	--wrap: 1400px;
	--gutter: 5%;
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans,
		Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

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

html {
	overflow-x: clip;
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.618;
	color: var(--body);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

h1,
h2,
h3 {
	color: var(--ink);
	font-weight: 700;
	line-height: 1.2;
	margin: 0;
}

a {
	color: var(--green);
	text-decoration: none;
	transition: color 0.12s linear;
}

a:hover {
	color: var(--green-hover);
}

img {
	display: block;
	max-width: 100%;
}

.wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------------------------------------------------------------- hero */

.hero {
	position: relative;
	color: #fff;
	background: #1a1a1a url("/assets/img/header-bg.jpg") center / cover no-repeat;
	padding: 64px 0 88px;
	isolation: isolate;
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to bottom,
			rgba(0, 0, 0, 0.55) 0%,
			rgba(0, 0, 0, 0.35) 35%,
			rgba(0, 0, 0, 0.85) 100%);
}

.hero__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 72px;
}

.hero__logo {
	display: block;
	flex: none;
	transition: opacity 0.12s linear;
}

.hero__logo img {
	width: 232px;
	height: auto;
	/* The wordmark ships as a flat white PNG, so it can vanish against a pale
	   hero photo. A soft shadow keeps it legible on any frame. */
	filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.45));
}

.hero__logo:hover {
	opacity: 0.85;
}

.hero__nav ul {
	display: flex;
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-weight: 500;
}

.hero__nav a {
	color: rgba(255, 255, 255, 0.85);
}

.hero__nav a:hover,
.hero__nav a[aria-current="page"] {
	color: #fff;
}

.hero__inner {
	max-width: 720px;
}

.hero h1 {
	color: #fff;
	font-size: clamp(2rem, 4.4vw, 3.4rem);
	letter-spacing: -0.02em;
	margin-bottom: 12px;
	text-wrap: balance;
}

.hero__tagline {
	font-size: clamp(1rem, 1.4vw, 1.15rem);
	color: rgba(255, 255, 255, 0.82);
	margin: 0 0 28px;
}

/* -------------------------------------------------------------- search */

.search {
	display: flex;
	background: #fff;
	border-radius: var(--radius-pill);
	padding: 6px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
	max-width: 560px;
}

.search input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 1rem;
	color: var(--ink);
	padding: 10px 18px;
}

.search input::placeholder {
	color: #9a9a9a;
}

.search input:focus {
	outline: none;
}

.search button {
	border: 0;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	color: #fff;
	background: var(--green);
	border-radius: var(--radius-pill);
	padding: 10px 26px;
	transition: background 0.12s linear;
}

.search button:hover {
	background: var(--green-hover);
}

.popular {
	margin: 22px 0 0;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.7);
}

.popular ul {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	vertical-align: middle;
}

.popular a {
	display: inline-block;
	color: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(255, 255, 255, 0.32);
	border-radius: var(--radius-pill);
	padding: 3px 14px;
	font-size: 0.85rem;
	transition: background 0.12s linear, border-color 0.12s linear;
}

.popular a:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.16);
	border-color: rgba(255, 255, 255, 0.6);
}

/* -------------------------------------------------------------- topbar */

.interior {
	padding-top: 78px;
}

.topbar {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 20;
	height: 78px;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--line);
}

.topbar__inner {
	display: flex;
	align-items: center;
	gap: 28px;
	height: 100%;
}

.topbar__logo {
	flex: none;
	transition: opacity 0.12s linear;
}

.topbar__logo img {
	width: auto;
	height: 46px;
}

.topbar__logo:hover {
	opacity: 0.7;
}

.topbar__nav ul {
	display: flex;
	gap: 26px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-weight: 500;
}

.topbar__nav a {
	color: var(--body);
}

.topbar__nav a:hover,
.topbar__nav a[aria-current="page"] {
	color: var(--green);
}

.search--sm {
	flex: 1;
	max-width: 460px;
	margin-right: auto;
	padding: 4px;
	background: var(--bg-soft);
	border: 1px solid var(--line);
	box-shadow: none;
}

.search--sm input {
	padding: 6px 16px;
	font-size: 0.94rem;
}

.search--sm button {
	padding: 7px 20px;
	font-size: 0.9rem;
}

/* ---------------------------------------------------------- photo page */

.shot {
	max-width: 1120px;
	margin: 0 auto;
	padding-top: 36px;
	text-align: center;
}

.shot__figure {
	margin: 0 0 26px;
}

.shot__figure img {
	width: auto;
	max-width: 100%;
	max-height: 76vh;
	margin: 0 auto;
	border-radius: 6px;
	background: var(--bg-soft);
	box-shadow: rgba(0, 0, 0, 0.08) 0 2px 6px, rgba(0, 0, 0, 0.08) 0 12px 28px;
}

.shot__figure video {
	display: block;
	width: min(100%, calc(76vh * var(--ar, 16 / 9)));
	height: auto;
	aspect-ratio: var(--ar, 16 / 9);
	margin: 0 auto;
	border-radius: 6px;
	background: #111;
	box-shadow: rgba(0, 0, 0, 0.08) 0 2px 6px, rgba(0, 0, 0, 0.08) 0 12px 28px;
	object-fit: contain;
}

.shot__ph {
	max-width: 900px;
	margin: 0 auto;
	display: grid;
	place-items: center;
	border-radius: 6px;
	color: #a4a4a4;
	font-size: 0.85rem;
	background: linear-gradient(135deg, #ededed 0%, #f6f6f6 55%, #e7e7e7 100%);
}

.shot__title {
	margin: 0 0 20px;
	font-size: clamp(1.6rem, 3vw, 2.25rem);
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.shot__facts {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 26px;
	margin: 14px 0 26px;
	font-size: 0.9rem;
	color: var(--muted);
}

.shot__facts div {
	display: flex;
	gap: 6px;
}

.shot__facts dt {
	font-weight: 600;
	color: var(--body);
}

.shot__facts dt::after {
	content: ":";
}

.shot__facts dd {
	margin: 0;
}

.btn {
	display: inline-block;
	font-weight: 600;
	font-size: 1.05rem;
	color: #fff;
	background: var(--green);
	border-radius: var(--radius-pill);
	padding: 15px 46px;
	transition: background 0.12s linear, transform 0.12s ease;
}

.btn:hover {
	color: #fff;
	background: var(--green-hover);
	transform: translateY(-1px);
}

.btn--wait {
	color: var(--muted);
	background: var(--bg-soft);
	border: 1px solid var(--line);
	cursor: not-allowed;
}

.btn--wait:hover {
	color: var(--muted);
	background: var(--bg-soft);
	transform: none;
}

.btn--ghost {
	color: var(--ink);
	background: #fff;
	border: 1px solid var(--line);
}

.btn--ghost:hover {
	color: var(--green);
	background: #fff;
	border-color: var(--green);
}

.tags {
	margin-top: 42px;
	padding-top: 26px;
	border-top: 1px solid var(--line);
	text-align: center;
}

.tags h2 {
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 14px;
}

.tags ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tags a {
	display: inline-block;
	color: var(--body);
	background: var(--bg-soft);
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	padding: 5px 16px;
	font-size: 0.88rem;
	transition: color 0.12s linear, border-color 0.12s linear;
}

.tags a:hover {
	color: var(--green);
	border-color: var(--green);
}

.related .section-head {
	margin-bottom: 20px;
}

.related .grid {
	flex-wrap: nowrap;
}

.related .card {
	flex-grow: var(--ar);
	flex-basis: 0;
	min-width: 0;
}


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

.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin: 52px 0 24px;
}

.section-head h2 {
	font-size: 1.35rem;
}

.section-head p {
	margin: 0;
	color: var(--muted);
	font-size: 0.92rem;
}

.section-head a {
	color: var(--muted);
}

.section-head a:hover {
	color: var(--green);
}

/* Justified rows. Each card's flex-basis and flex-grow are both proportional
   to its aspect ratio, so within a row every card resolves to the same height
   and the row fills the width exactly. Straight top and bottom edges, and
   unlike CSS columns the order reads left-to-right. --ar is set per card. */
.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  --row: 260px;
}

.card {
  position: relative;
  margin: 0;
  flex-grow: var(--ar);
  flex-basis: calc(var(--ar) * var(--row));
}

.card::before {
  content: "";
  display: block;
  padding-bottom: calc(100% / var(--ar));
}

/* Zero-height spacers so the final, partly-filled row keeps its natural
   height instead of stretching its few cards across the full width. */
.grid__sizer {
  flex-grow: 1.5;
  flex-basis: calc(1.5 * var(--row));
  height: 0;
}

.card > a {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-soft);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.card > a:hover {
	box-shadow:
		rgba(0, 0, 0, 0.1) 0 2px 2px,
		rgba(0, 0, 0, 0.1) 0 4px 4px,
		rgba(0, 0, 0, 0.1) 0 8px 8px,
		rgba(0, 0, 0, 0.1) 0 16px 16px,
		rgba(0, 0, 0, 0.1) 0 32px 32px,
		rgba(0, 0, 0, 0.1) 0 64px 64px;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__ph {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ededed 0%, #f6f6f6 55%, #e7e7e7 100%);
}

.card__ph span {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-size: 0.72rem;
  color: #a4a4a4;
}

.card__title {
	position: absolute;
	inset: auto 0 0 0;
	padding: 28px 14px 10px;
	color: #fff;
	font-size: 0.88rem;
	font-weight: 500;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent);
	opacity: 0;
	transition: opacity 0.18s ease;
}

.card a:hover .card__title {
	opacity: 1;
}

.card__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 1;
	color: #fff;
	background: rgba(0, 0, 0, 0.55);
	border-radius: var(--radius-pill);
	padding: 3px 10px;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	pointer-events: none;
}

.card__play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 56px;
	height: 56px;
	margin: -28px 0 0 -28px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.42);
	pointer-events: none;
	opacity: 0.92;
	transition: transform 0.18s ease, background 0.18s ease;
}

.card__play::after {
	content: "";
	position: absolute;
	left: 22px;
	top: 18px;
	border-style: solid;
	border-width: 10px 0 10px 16px;
	border-color: transparent transparent transparent #fff;
}

.card--video a:hover .card__play {
	transform: scale(1.06);
	background: rgba(0, 0, 0, 0.55);
}

.related .card__play {
	width: 40px;
	height: 40px;
	margin: -20px 0 0 -20px;
}

.related .card__play::after {
	left: 16px;
	top: 13px;
	border-width: 7px 0 7px 12px;
}

/* Homepage masonry. CSS columns is the no-JS fallback (column-major
   order). JS then absolute-places in shortest-column, left-to-right
   order, matching Unsplash / Pexels. */
.grid--masonry {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	columns: 3;
	column-gap: 24px;
}

.grid--masonry .card {
	flex: none;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 0 0 24px;
	break-inside: avoid;
}

.grid--masonry.is-packed {
	columns: auto;
	position: relative;
}

.grid--masonry.is-packed .card {
	position: absolute;
	margin: 0;
	max-width: none;
	aspect-ratio: var(--ar);
}

.grid--masonry.is-packed .card::before {
	display: none;
}

.archive {
	margin: 0 0 28px;
	padding-top: 36px;
}

.archive h1 {
	font-size: clamp(1.6rem, 3vw, 2.25rem);
	letter-spacing: -0.02em;
	margin: 0;
}

.archive__intro {
	margin: 12px 0 0;
	color: var(--body);
}

.prose {
	max-width: calc(36rem + 100px);
	margin: 0 auto;
	padding: 80px 0 120px;
}

.prose h1 {
	margin: 0 0 2.5rem;
	font-size: clamp(2.4rem, 5vw, 3.6rem);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.03em;
	color: var(--ink);
}

.prose h2 {
	margin: 3.25rem 0 1.25rem;
	font-size: 1.35rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--ink);
}

.prose p,
.prose li {
	margin: 0 0 1.15em;
	font-size: 1.125rem;
	line-height: 1.7;
}

.prose p:last-child {
	margin-bottom: 0;
}

.prose ul {
	margin: 0 0 1.15em;
	padding-left: 1.2em;
}

.prose a {
	font-weight: 500;
}

.prose hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin: 2.5rem 0;
}

.prose--center {
	text-align: center;
	padding-top: 18vh;
	padding-bottom: 18vh;
}

.prose--center h1 {
	margin-bottom: 1rem;
}

.prose__links {
	display: flex;
	justify-content: center;
	gap: 28px;
	margin: 2.25rem 0 0;
}

.faq {
	margin-top: 0.5rem;
}

.faq__list {
	margin-top: 0.5rem;
}

.faq__item {
	padding: 1.35rem 0;
	border-top: 1px solid var(--line);
}

.faq__item:last-child {
	border-bottom: 1px solid var(--line);
}

.faq__item h3 {
	margin: 0 0 0.4rem;
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--ink);
}

.faq__item p {
	margin: 0;
	font-size: 1.05rem;
	color: var(--body);
}

.explore {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.explore a {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	height: 100%;
	padding: 25px 20px;
	background: var(--bg-soft);
	border-radius: 10px;
	color: var(--ink);
	transition: box-shadow 0.12s linear, background 0.12s linear;
}

.explore a:hover {
	color: var(--ink);
	background: color-mix(in srgb, var(--green) 14%, #fff);
	box-shadow:
		0 4px 10px rgba(0, 0, 0, 0.08),
		0 16px 32px rgba(0, 0, 0, 0.1);
}

.explore figure {
	width: 72px;
	height: 72px;
	margin: 0;
	border-radius: 50%;
	overflow: hidden;
	background: var(--line);
	flex: none;
}

.explore img,
.explore__ph {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.explore__name {
	margin-top: 10px;
	font-weight: 700;
	line-height: 1.3;
	text-transform: capitalize;
	color: var(--ink);
}

.explore__count {
	color: var(--muted);
	font-size: 0.9rem;
}

.pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin: 40px 0 8px;
	font-size: 0.95rem;
}

.pagination span {
	color: var(--muted);
}

.pagination a {
	font-weight: 600;
	color: var(--ink);
}

.pagination a:hover {
	color: var(--green);
}

.more {
	display: block;
	margin: 40px auto 0;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	color: var(--ink);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	padding: 12px 36px;
	transition: border-color 0.12s linear, color 0.12s linear;
}

.more:hover {
	color: var(--green);
	border-color: var(--green);
}

/* -------------------------------------------------------------- footer */

.footer {
	margin-top: 72px;
	border-top: 1px solid var(--line);
	padding: 28px 0 44px;
	text-align: center;
	font-size: 0.88rem;
	color: var(--muted);
}

.footer ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 22px;
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
}

.footer a {
	color: var(--body);
}

.footer a:hover {
	color: var(--green);
}

/* --------------------------------------------------------- breakpoints */

@media (max-width: 1200px) {
	.grid {
		--row: 220px;
	}
}

@media (max-width: 860px) {
	.grid {
		--row: 180px;
		gap: 10px;
	}

	.grid--masonry {
		columns: 2;
		column-gap: 16px;
	}

	.grid--masonry .card {
		margin-bottom: 16px;
	}

	.related .grid {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
	}

	.related .card::before {
		padding-bottom: 66.666%;
	}

	.hero {
		padding: 40px 0 64px;
	}

	.hero__nav {
		margin-bottom: 48px;
	}

	.hero__logo img {
		width: 190px;
	}

	.search--sm {
		display: none;
	}

	.search-page .search--sm {
		display: flex;
	}

	.topbar__nav {
		margin-left: auto;
	}

	.explore {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 560px) {
	.grid {
		--row: 150px;
	}

	.grid--masonry {
		columns: 1;
	}

	.related .grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.hero__nav {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
	}

	.search button {
		padding: 10px 20px;
	}

	.popular {
		display: none;
	}

	.interior {
		padding-top: 66px;
	}

	.topbar {
		height: 66px;
	}

	.topbar__logo img {
		height: 38px;
	}

	.topbar__nav ul {
		gap: 18px;
		font-size: 0.94rem;
	}

	.search-page .topbar__nav {
		display: none;
	}

	.shot__figure img {
		max-height: 60vh;
	}

	.shot__figure video {
		width: min(100%, calc(60vh * var(--ar, 16 / 9)));
	}

	.btn {
		display: block;
		padding: 15px 20px;
	}

	.explore {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.explore a {
		padding: 20px 12px;
	}
}

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