html {
	scroll-padding-top: 1rem;
}

body {
	overflow-x: hidden;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

/* LANDING PAGE */
.film-hero {
	position: relative;
	overflow: hidden;
}

.film-hero::before {
	content: "";
	position: absolute;
	z-index: 0;
	pointer-events: none;
	background: radial-gradient(circle at 76% 20%,
			rgba(15, 92, 118, 0.28),
			transparent 34%), linear-gradient(115deg,
			rgba(1, 5, 8, 0.98) 0%,
			rgba(4, 24, 34, 0.96) 66%,
			rgba(2, 12, 18, 0.98) 100%);
}

.film-hero > * {
	position: relative;
	z-index: 1;
}

.journal-bar {
	align-items: stretch !important;
}

.journal-bar > .wp-block-column {
	min-width: 0;
}

.hero-site-title {
	margin: 0 !important;
	font-size: clamp(3.75rem, 8vw, 8rem) !important;
	font-weight: 400;
	line-height: .85;
	letter-spacing: -.045em;
}

.hero-site-title a {
	color: inherit;
	text-decoration: none;
}

.top-youtube-link {
	margin-top: 1.1rem !important;
	margin-bottom: 0 !important;
	text-transform: uppercase;
	letter-spacing: .08em;
}

.top-youtube-link a {
	color: inherit;
	text-underline-offset: .3em;
}

.film-hero-title {
	margin: 0 !important;
	font-size: clamp(1.4rem, 2.7vw, 3.25rem) !important;
	font-weight: 400;
	line-height: 1;
	letter-spacing: -.025em;
}

/* SPLIT PHOTOS / VIDEOS BUTTON */
.section-jump-column {
	display: flex !important;
	align-self: stretch !important;
}

.section-jump-panel {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 !important;
	width: 100%;
	margin: 0 !important;
	border: 1px solid currentColor;
}

.section-jump-panel > * {
	margin-block-start: 0 !important;
}

.section-jump-link {
	display: flex !important;
	min-width: 0;
	margin: 0 !important;
}

.section-jump-link + .section-jump-link {
	border-left: 1px solid currentColor;
}

.section-jump-link a {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: space-between;
	gap: .5rem;
	min-width: 0;
	min-height: clamp(5rem, 8vw, 7rem);
	box-sizing: border-box;
	padding: clamp(0.75rem, 1.5vw, 1.25rem);
	color: inherit;
	font-size: clamp(0.65rem, 0.8vw, 0.85rem);
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: .06em;
	transition: background-color 180ms ease, color 180ms ease;
}

.section-jump-link a::after {
	content: "↓";
	flex: 0 0 auto;
	font-size: clamp(1.2rem, 2vw, 1.8rem);
	font-weight: 400;
	line-height: 1;
}

.section-jump-link a:hover,
.section-jump-link a:focus-visible {
	background-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

.section-jump-link a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* FEATURED FILM */
.featured-film {
	flex: 0 0 auto !important;
	width: 100%;
	max-width: none !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

.featured-film .wp-block-embed__wrapper {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
}

.featured-film iframe {
	position: absolute;
	width: 100%;
	height: 100%;
	border: 0;
}

/* PHOTOS HEADER */
#photo-overview,
#video-overview {
	scroll-margin-top: 1rem;
}

.photos-library-header {
	position: relative;
	z-index: 5;
	border-top: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
}

.photos-kicker {
	margin: 0 0 .5rem !important;
	text-transform: uppercase;
	letter-spacing: .08em;
}

.photos-title {
	margin: 0 0 .75rem !important;
	font-size: clamp(2rem, 6vw, 5rem) !important;
	font-weight: 400;
	line-height: .95;
	letter-spacing: -.035em;
}

.photos-intro {
	max-width: 42rem;
	margin: 0 !important;
	line-height: 1.4;
}

/* PHOTOGRAPH FEED */
.fotograma-feed {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

.fotograma-feed .wp-block-post-template {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}

.fotograma-feed .wp-block-post {
	position: sticky !important;
	top: 0;
	z-index: 1;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	background-color: var(--wp--preset--color--base);
}

.fotograma-feed .wp-block-post > .wp-block-group {
	min-height: 100svh !important;
	padding-top: .75rem !important;
	padding-bottom: .75rem !important;
	gap: .75rem !important;
	background-color: var(--wp--preset--color--base) !important;
}

/* Compact title/date/description area */
.fotograma-feed
.wp-block-post
> .wp-block-group
> .wp-block-columns {
	display: grid !important;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	align-items: start !important;
	gap: clamp(1rem, 3vw, 3rem) !important;
	padding-top: .65rem !important;
	padding-bottom: .65rem !important;
	margin: 0 !important;
}

/* Hide repeated nature + and empty column */
.fotograma-feed
.wp-block-post
> .wp-block-group
> .wp-block-columns
> .wp-block-column:nth-child(1),
.fotograma-feed
.wp-block-post
> .wp-block-group
> .wp-block-columns
> .wp-block-column:nth-child(2) {
	display: none !important;
}

.fotograma-feed
.wp-block-post
> .wp-block-group
> .wp-block-columns
> .wp-block-column:nth-child(3),
.fotograma-feed
.wp-block-post
> .wp-block-group
> .wp-block-columns
> .wp-block-column:nth-child(4) {
	display: block !important;
	width: auto !important;
	flex-basis: auto !important;
	margin: 0 !important;
}

.fotograma-feed .wp-block-post-title,
.fotograma-feed .wp-block-post-date,
.fotograma-feed .wp-block-post-excerpt,
.fotograma-feed .wp-block-post-excerpt p {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	line-height: 1.25 !important;
}

.fotograma-feed .wp-block-post-date {
	margin-top: .15rem !important;
}

.fotograma-feed .wp-block-post-title a,
.fotograma-feed .wp-block-post-date a {
	color: inherit;
	text-decoration: none;
}

.fotograma-feed .wp-block-post-title a:hover,
.fotograma-feed .wp-block-post-date a:hover {
	text-decoration: underline;
	text-underline-offset: .25em;
}

.fotograma-feed .wp-block-post-excerpt__more-link {
	display: none !important;
}

/* Uncropped photographs */
.fotograma-feed .wp-block-cover {
	flex: 1 1 auto !important;
	width: 100%;
	min-height: 26rem;
	margin: 0 !important;
	padding: 0 !important;
	background-color: var(--wp--preset--color--base) !important;
}

.fotograma-feed .wp-block-cover__image-background {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
	object-position: center center !important;
}

.fotograma-feed .wp-block-cover__background {
	opacity: 0 !important;
}

.fotograma-feed .wp-block-cover__inner-container {
	pointer-events: none;
}

/* PAGINATION */
.archive-pagination-panel {
	position: relative;
	z-index: 5;
	border-top: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
}

.archive-pagination-panel .wp-block-query-pagination {
	width: 100%;
	max-width: none;
	margin: 0 !important;
}

.archive-pagination-panel
.wp-block-query-pagination-previous,
.archive-pagination-panel
.wp-block-query-pagination-next {
	flex: 1 1 0;
}

.archive-pagination-panel
.wp-block-query-pagination-next {
	text-align: right;
}

.archive-pagination-panel a {
	color: inherit;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.archive-pagination-panel a:hover,
.archive-pagination-panel a:focus-visible {
	text-decoration: underline;
	text-underline-offset: .3em;
}

/* FILMS LIBRARY */
.films-library {
	position: relative;
	z-index: 5;
	border-top: 1px solid currentColor;
}

.films-heading {
	max-width: 52rem !important;
	margin-right: auto !important;
	margin-left: 0 !important;
}

.film-kicker {
	margin: 0 0 .5rem !important;
	text-transform: uppercase;
	letter-spacing: .08em;
}

.films-title {
	margin: 0 0 .75rem !important;
	font-size: clamp(2.4rem, 7vw, 6rem) !important;
	font-weight: 400;
	line-height: .92;
	letter-spacing: -.04em;
}

.films-intro {
	max-width: 42rem;
	margin: 0 !important;
	line-height: 1.4;
}

.films-grid {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(2rem, 4vw, 4rem) clamp(1rem, 2.5vw, 2.5rem) !important;
	margin-top: clamp(2rem, 5vw, 5rem) !important;
}

.film-card {
	min-width: 0;
	margin: 0 !important;
}

.film-card figure {
	width: 100%;
	margin: 0 !important;
}

.film-card .wp-block-embed__wrapper {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
}

.film-card iframe {
	position: absolute;
	width: 100%;
	height: 100%;
	border: 0;
}

.film-card-title {
	margin-top: .65rem !important;
	margin-bottom: 0 !important;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.films-footer {
	margin-top: clamp(3rem, 7vw, 7rem) !important;
	padding-top: 1.25rem;
	border-top: 1px solid currentColor;
}

.films-footer p {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

.films-footer a {
	color: inherit;
	text-underline-offset: .3em;
}

/* PHONES */
@media (max-width: 781px) {
	.film-hero .journal-bar {
		gap: 1.25rem !important;
		padding-top: 1rem !important;
		padding-bottom: 1rem !important;
	}
	
	.film-hero
				.journal-bar
				> .wp-block-column:nth-child(2) {
		display: none !important;
	}
	
	.hero-site-title {
		font-size: clamp(3.75rem, 17vw, 5.5rem) !important;
	}
	
	.film-hero-title {
		font-size: clamp(1.35rem, 6vw, 2rem) !important;
	}
	
	.section-jump-panel {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	
	.section-jump-link a {
		min-height: 3.5rem;
		padding: .7rem;
		font-size: .7rem;
		letter-spacing: .035em;
	}
	
	.section-jump-link a::after {
		font-size: 1rem;
	}
	
	.photos-library-header {
		padding-top: 2rem !important;
		padding-bottom: 2rem !important;
	}
	
	.photos-title {
		font-size: clamp(2rem, 11vw, 3.25rem) !important;
	}
	
	.fotograma-feed
				.wp-block-post
				> .wp-block-group
				> .wp-block-columns {
		grid-template-columns: 1fr;
		gap: .35rem !important;
	}
	
	.fotograma-feed
				.wp-block-post
				> .wp-block-group {
		padding-top: .65rem !important;
		padding-bottom: .65rem !important;
		gap: .65rem !important;
	}
	
	.fotograma-feed .wp-block-cover {
		min-height: 24rem;
	}
	
	.films-library {
		padding-top: 3rem !important;
		padding-bottom: 3rem !important;
	}
	
	.films-title {
		font-size: clamp(2.4rem, 13vw, 4rem) !important;
	}
	
	.films-grid {
		grid-template-columns: 1fr;
		gap: 2.25rem !important;
	}
}

/* PORTRAIT IPAD */
@media (orientation: portrait) and (max-width: 1100px) {
	.film-hero {
		min-height: 0 !important;
		height: auto !important;
		padding-bottom: clamp(0.75rem, 3vw, 1.5rem) !important;
	}
	
	.film-hero .featured-film {
		flex: none !important;
		margin-bottom: 0 !important;
	}
}

/* Smaller single-line title on landscape iPads */
@media (min-width: 782px) and (max-width: 1400px) and (orientation: landscape) {
	.hero-site-title {
		font-size: clamp(3.4rem, 5vw, 4.3rem) !important;
		white-space: nowrap !important;
	}
	
	.hero-site-title a {
		white-space: nowrap !important;
	}
}

/* Smaller single-line title on portrait iPads */
@media (min-width: 782px) and (max-width: 1100px) and (orientation: portrait) {
	.hero-site-title {
		font-size: clamp(2.8rem, 4.6vw, 3.1rem) !important;
		line-height: .9 !important;
		white-space: nowrap !important;
	}
	
	.hero-site-title a {
		white-space: nowrap !important;
	}
}

/* Restore the subtle blue glow behind the landing header */
.film-hero {
	background-color: #02070b !important;
	background-image: radial-gradient(ellipse at 72% 22%,
		rgba(0, 91, 125, 0.34) 0%,
		rgba(0, 48, 70, 0.20) 34%,
		rgba(0, 0, 0, 0) 72%) !important;
}