/*
Theme Name: Haiiro Photo
Theme URI: https://foto.haiiro.com/
Author: ED + Codex
Description: Minimal custom photography theme for foto.haiiro.com.
Version: 0.1.65
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: haiiro-photo
*/

@font-face {
	font-display: swap;
	font-family: "Oswald";
	font-style: normal;
	font-weight: 300 700;
	src: url("./assets/fonts/oswald-latin-variable.woff2") format("woff2");
}

:root {
	--haiiro-accent: #f96e5b;
	--haiiro-paper: #ffffff;
	--haiiro-ink: #676767;
	--haiiro-muted: #aaaaaa;
	--haiiro-line: #eeeeee;
	--haiiro-tag: #444444;
	--haiiro-menu-hover-bg: #444444;
	--haiiro-menu-hover-text: #ffffff;
	--haiiro-submenu-bg: #444444;
	--haiiro-submenu-divider: #555555;
	--haiiro-submenu-hover: #ffffff;
	--haiiro-submenu-text: #999999;
	--haiiro-shell: 1120px;
	--haiiro-body-font: Helvetica, Arial, sans-serif;
	--haiiro-condensed-font: Oswald, "Arial Narrow", Arial, sans-serif;
}

html.haiiro-dark {
	color-scheme: dark;
	--haiiro-paper: #171717;
	--haiiro-ink: #d7d7d7;
	--haiiro-muted: #9a9a9a;
	--haiiro-line: #343434;
	--haiiro-tag: #3f3f3f;
	--haiiro-menu-hover-bg: #3f3f3f;
	--haiiro-menu-hover-text: #ededed;
	--haiiro-submenu-bg: #2d2d2d;
	--haiiro-submenu-divider: #424242;
	--haiiro-submenu-hover: #ededed;
	--haiiro-submenu-text: #a8a8a8;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--haiiro-paper);
	color: var(--haiiro-ink);
	display: flex;
	flex-direction: column;
	font-family: var(--haiiro-body-font);
	font-size: 12px;
	font-weight: 400;
	min-height: 100vh;
	line-height: 17px;
	margin: 0;
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	transition: background-color 180ms ease, color 180ms ease;
}

body.admin-bar {
	--haiiro-admin-offset: 32px;
}

a {
	color: var(--haiiro-accent);
	text-decoration: none;
	text-underline-offset: 0.18em;
}

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

.haiiro-wrap {
	margin-inline: auto;
	max-width: var(--haiiro-shell);
	padding-inline: clamp(16px, 4vw, 32px);
	width: 100%;
}

.site-header {
	background: var(--haiiro-paper);
	border: 0;
	border-bottom: 1px solid var(--haiiro-line);
	height: 80px;
	overflow: visible;
	padding-block: 17px 12px;
	position: sticky;
	top: var(--haiiro-admin-offset, 0);
	transition: height 180ms ease, padding 180ms ease, border-color 180ms ease, background-color 180ms ease;
	z-index: 50;
}

body.single-gallery .site-header {
	border-bottom-color: transparent;
	height: 80px;
	overflow: hidden;
	padding-block: 17px 12px;
	transform: translateY(0);
}

body.single-gallery.haiiro-header-collapsed .site-header {
	height: 36px;
	padding-block: 0;
	transform: none;
}

body.single-gallery .site-header:focus-within,
body.single-gallery .site-header.is-open,
body.single-gallery .site-header.is-revealed {
	border-bottom-color: var(--haiiro-line);
	height: 80px;
	padding-block: 17px 12px;
	transform: translateY(0);
}

.site-header__inner {
	align-items: center;
	display: flex;
	gap: 24px;
	justify-content: space-between;
	min-height: 51px;
	transition: min-height 180ms ease;
}

body.single-gallery.haiiro-header-collapsed .site-header__inner {
	min-height: 36px;
}

body.single-gallery .site-header:focus-within .site-header__inner,
body.single-gallery .site-header.is-open .site-header__inner,
body.single-gallery .site-header.is-revealed .site-header__inner {
	min-height: 51px;
}

.haiiro-wordmark {
	background: url("./assets/images/h-logo.png") no-repeat 0 0 / 117.5px 36.5px;
	display: block;
	flex: 0 0 auto;
	height: 36.5px;
	overflow: hidden;
	transform-origin: left center;
	transition: transform 180ms ease;
	text-indent: -9999px;
	width: 117.5px;
}

body.single-gallery.haiiro-header-collapsed .haiiro-wordmark {
	transform: scale(0.5);
}

body.single-gallery .site-header:focus-within .haiiro-wordmark,
body.single-gallery .site-header.is-open .haiiro-wordmark,
body.single-gallery .site-header.is-revealed .haiiro-wordmark {
	transform: scale(1);
}

.site-nav {
	align-items: stretch;
	display: flex;
	font-family: var(--haiiro-condensed-font);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 17px;
	margin-left: auto;
	transition: opacity 160ms ease, transform 160ms ease;
	text-transform: uppercase;
}

body.single-gallery.haiiro-header-collapsed .site-nav {
	opacity: 0;
	pointer-events: none;
	transform: translateY(-8px);
}

body.single-gallery .site-header:focus-within .site-nav,
body.single-gallery .site-header.is-open .site-nav,
body.single-gallery .site-header.is-revealed .site-nav {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.site-nav__item {
	position: relative;
}

.site-nav__item:not(:first-child)::before {
	color: var(--haiiro-line);
	content: "|";
	font-family: Helvetica, Arial, sans-serif;
	font-size: 12px;
	font-weight: 400;
	left: 0;
	line-height: 17px;
	pointer-events: none;
	position: absolute;
	top: 14px;
	z-index: 1;
}

.site-nav__link,
.site-nav__button {
	align-items: center;
	background: transparent;
	border: 0;
	color: var(--haiiro-ink);
	cursor: pointer;
	display: flex;
	font: inherit;
	height: 45px;
	padding: 14px 15px;
	text-transform: uppercase;
	transition: background-color 140ms ease, color 140ms ease;
}

.site-nav__item:not(:first-child) > .site-nav__link,
.site-nav__item:not(:first-child) > .site-nav__button {
	margin-left: 10px;
	padding-inline: 14.25px;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
	background: rgba(103, 103, 103, 0.13);
	color: var(--haiiro-ink);
}

.site-nav__item.is-active > .site-nav__link {
	position: relative;
}

.site-nav__item.is-active > .site-nav__link::after {
	background: #999999;
	bottom: 6px;
	content: "";
	height: 2px;
	left: 14px;
	position: absolute;
	right: 14px;
}

html.haiiro-dark .site-nav__link:hover,
html.haiiro-dark .site-nav__link:focus-visible {
	background: rgba(255, 255, 255, 0.1);
}

.haiiro-dark-mode-toggle {
	justify-content: center;
	min-width: 45px;
}

.haiiro-dark-mode-toggle::after {
	background: currentColor;
	content: "";
	display: inline-block;
	height: 12px;
	-webkit-mask: url("./assets/images/dark.svg") center / contain no-repeat;
	mask: url("./assets/images/dark.svg") center / contain no-repeat;
	transition: transform 180ms ease;
	width: 12px;
}

html.haiiro-dark .haiiro-dark-mode-toggle::after {
	transform: rotate(180deg);
}

.haiiro-dark-mode-toggle:hover::after,
.haiiro-dark-mode-toggle:focus-visible::after {
	transform: rotate(180deg);
}

html.haiiro-dark .haiiro-dark-mode-toggle:hover::after,
html.haiiro-dark .haiiro-dark-mode-toggle:focus-visible::after {
	transform: rotate(360deg);
}

.site-nav-toggle {
	align-items: center;
	background: transparent;
	border: 0;
	color: var(--haiiro-ink);
	display: none;
	height: 44px;
	justify-content: center;
	padding: 10px;
	width: 44px;
}

.site-nav-toggle__icon {
	fill: none;
	height: 24px;
	stroke: currentColor;
	stroke-linecap: square;
	stroke-width: 1.5;
	width: 24px;
}

.site-nav-toggle__close-icon {
	display: none;
}

.site-header.is-open .site-nav-toggle__menu-icon {
	display: none;
}

.site-header.is-open .site-nav-toggle__close-icon {
	display: block;
}

.site-main {
	flex: 1;
	padding-block: 14px 64px;
}

body.home .site-main {
	display: flex;
	padding-bottom: 14px;
}

body.home .site-main > .haiiro-wrap {
	display: flex;
	flex: 1;
	flex-direction: column;
}

.photo-kicker {
	border-bottom: 1px solid var(--haiiro-line);
	border-top: 1px solid var(--haiiro-line);
	font-family: var(--haiiro-condensed-font);
	font-size: 16px;
	font-weight: 300;
	letter-spacing: 0;
	line-height: 20px;
	margin: 0 0 14px;
	padding: 10px 0 9px;
	text-transform: uppercase;
}

body.home .photo-kicker {
	display: none;
}

.gallery-header h1 {
	color: var(--haiiro-ink);
	font-family: var(--haiiro-condensed-font);
	font-size: 16px;
	font-weight: 300;
	letter-spacing: 0;
	line-height: 20px;
	margin: 0;
	text-transform: uppercase;
}

.gallery-breadcrumb a {
	color: inherit;
	text-decoration: none;
}

.gallery-home-link {
	align-items: center;
	display: inline-flex;
	gap: 4px;
}

.gallery-home-link__icon {
	fill: none;
	height: 14px;
	stroke: currentColor;
	stroke-width: 1.5;
	width: 14px;
}

.gallery-breadcrumb a:hover,
.gallery-breadcrumb a:focus-visible {
	color: var(--haiiro-muted);
}

.gallery-header p {
	color: var(--haiiro-muted);
	font-size: 14px;
	line-height: 20px;
	margin: 6px 0 0;
	max-width: 620px;
}

.photo-filters {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	justify-content: flex-start;
	margin: auto 0 0;
	padding-top: 28px;
}

.photo-filter {
	background: var(--haiiro-tag);
	border: 1px solid var(--haiiro-tag);
	color: #fff;
	cursor: pointer;
	font-family: inherit;
	font-size: 10px;
	line-height: 16px;
	margin: 0 4px 4px 0;
	padding: 3px 7px;
	text-transform: uppercase;
	transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.photo-filter:hover,
.photo-filter:focus-visible,
.photo-filter.is-active {
	background: var(--haiiro-accent);
	border-color: var(--haiiro-accent);
	color: #fff;
}

.gallery-masonry {
	column-count: 4;
	column-gap: 18px;
}

.gallery-masonry.is-row-ordered {
	align-items: start;
	column-count: unset;
	column-gap: unset;
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-masonry__column {
	min-width: 0;
}

.gallery-card {
	break-inside: avoid;
	color: inherit;
	display: block;
	margin: 0 0 18px;
	position: relative;
	overflow: hidden;
}

.gallery-card__media {
	background: var(--haiiro-paper);
	border: 1px solid var(--haiiro-line);
	min-height: 180px;
	overflow: hidden;
	position: relative;
}

html.haiiro-dark .gallery-card__media {
	background: #000;
}

.gallery-card__media::after {
	color: var(--haiiro-muted);
	content: "";
	font-size: 10px;
	left: 12px;
	letter-spacing: 0;
	line-height: 14px;
	position: absolute;
	text-transform: uppercase;
	top: 10px;
}

.gallery-card.has-cover .gallery-card__media::after {
	display: none;
}

.gallery-card.has-cover .gallery-card__media {
	aspect-ratio: var(--gallery-cover-ratio);
	min-height: 0;
}

.gallery-card__media img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

html.haiiro-photo-js .gallery-card__image,
html.haiiro-photo-js .photo-grid img {
	opacity: 0;
	transform: translateY(4px) scale(0.995);
	transition:
		opacity 560ms cubic-bezier(0.16, 1, 0.3, 1) var(--image-reveal-delay, 0ms),
		transform 700ms cubic-bezier(0.16, 1, 0.3, 1) var(--image-reveal-delay, 0ms);
}

html.haiiro-photo-js .gallery-card__image.is-loaded,
html.haiiro-photo-js .photo-grid img.is-loaded {
	opacity: 1;
	transform: none;
}

.gallery-card__copy {
	background: rgba(255, 255, 255, 0.84);
	bottom: 0;
	left: 0;
	min-height: 82px;
	padding: 10px 12px 8px;
	position: absolute;
	right: 0;
	transform: translateY(calc(100% - 36px));
	transition: background-color 180ms ease, color 180ms ease, transform 240ms ease-out;
}

html.haiiro-dark .gallery-card__copy {
	background: rgba(23, 23, 23, 0.92);
}

.gallery-card:hover .gallery-card__copy,
.gallery-card:focus-visible .gallery-card__copy {
	background: rgba(0, 0, 0, 0.8);
	color: #fff;
	transform: translateY(0);
}

.gallery-card__heading {
	align-items: baseline;
	display: flex;
	gap: 8px;
	justify-content: space-between;
}

.gallery-card__title {
	color: inherit;
	font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
	font-size: 20px;
	font-weight: 300;
	letter-spacing: 0;
	line-height: 22px;
	margin: 0;
	min-width: 0;
	text-transform: uppercase;
}

.gallery-card__context {
	color: var(--haiiro-muted);
	flex: 0 0 auto;
	font-family: var(--haiiro-condensed-font);
	font-size: 10px;
	font-weight: 700;
	line-height: 12px;
	margin: 0;
	text-align: right;
	text-transform: uppercase;
}

.gallery-card__meta {
	color: var(--haiiro-muted);
	font-size: 10px;
	font-weight: 400;
	line-height: 13px;
	margin: 6px 0 0;
	text-transform: uppercase;
}

.gallery-card__tags {
	color: var(--haiiro-muted);
	font-size: 9.5px;
	font-weight: 700;
	line-height: 12px;
	margin: 3px 0 0;
	text-transform: uppercase;
}

.gallery-card__count {
	color: var(--haiiro-muted);
	display: block;
	font-size: 10px;
	font-weight: 700;
	line-height: 12px;
	margin: 3px 0 0;
	text-transform: uppercase;
}

.gallery-card:hover .gallery-card__meta,
.gallery-card:focus-visible .gallery-card__meta,
.gallery-card:hover .gallery-card__count,
.gallery-card:focus-visible .gallery-card__count,
.gallery-card:hover .gallery-card__context,
.gallery-card:focus-visible .gallery-card__context {
	color: rgba(255, 255, 255, 0.72);
}

.gallery-card:hover .gallery-card__tags,
.gallery-card:focus-visible .gallery-card__tags {
	color: rgba(255, 255, 255, 0.88);
}

.placeholder-tall .gallery-card__media {
	aspect-ratio: 3 / 4.15;
}

.placeholder-mid .gallery-card__media {
	aspect-ratio: 4 / 4.65;
}

.placeholder-wide .gallery-card__media {
	aspect-ratio: 4 / 3;
}

.gallery-header {
	align-items: baseline;
	border-bottom: 1px solid var(--haiiro-line);
	border-top: 1px solid var(--haiiro-line);
	display: grid;
	gap: 20px;
	grid-template-columns: minmax(0, 1fr) minmax(260px, auto);
	margin-bottom: 22px;
	padding: 14px 0;
}

.gallery-meta {
	color: var(--haiiro-muted);
	display: block;
	font-size: 10px;
	line-height: 20px;
	text-align: right;
	text-transform: uppercase;
	white-space: nowrap;
}

.gallery-meta a {
	color: inherit;
}

.photo-grid {
	align-items: flex-start;
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	overflow: hidden;
}

.photo-grid figure {
	aspect-ratio: var(--photo-ratio, 3 / 2);
	flex: 0 0 auto;
	height: clamp(194px, 16vw, 242px);
	margin: 0;
	overflow: hidden;
	position: relative;
}

.photo-grid figure::after {
	box-shadow: inset 0 0 0 4px #fff;
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
	transition: box-shadow 480ms cubic-bezier(0.16, 1, 0.3, 1);
	z-index: 1;
}

.photo-grid figure:focus-within::after {
	box-shadow: inset 0 0 0 0 transparent;
}

@media (hover: hover) and (pointer: fine) {
	.photo-grid figure:hover::after {
		box-shadow: inset 0 0 0 0 transparent;
	}
}

.photo-grid img {
	background: #f4f4f1;
	border: 1px solid var(--haiiro-line);
	cursor: pointer;
	height: 100%;
	max-width: none;
	width: 100%;
}

html.haiiro-dark .photo-grid figure,
html.haiiro-dark .photo-grid img {
	background: #000;
	border-color: #000;
}

html.haiiro-dark .photo-grid figure::after {
	box-shadow: inset 0 0 0 4px #2a2a2a;
}

.photo-grid.is-justified {
	display: block;
}

.photo-grid__row {
	display: flex;
	gap: 14px;
	margin: 0 0 14px;
	width: 100%;
}

.photo-grid.is-justified figure {
	display: block;
	margin: 0;
}

.photo-grid.is-justified img {
	height: 100%;
	object-fit: contain;
	width: 100%;
}

.photo-grid__placeholder {
	aspect-ratio: 4 / 3;
	background:
		repeating-linear-gradient(135deg, rgba(103, 103, 103, 0.14) 0, rgba(103, 103, 103, 0.14) 1px, transparent 1px, transparent 12px),
		#f4f4f1;
	border: 1px solid var(--haiiro-line);
}

.photo-grid__placeholder:nth-child(3n+1) {
	aspect-ratio: 3 / 4;
}

.photo-grid__placeholder:nth-child(4n) {
	aspect-ratio: 1 / 1;
}

.photo-lightbox {
	align-items: center;
	background: rgb(255, 255, 255);
	display: none;
	inset: 0;
	justify-content: center;
	padding: 96px 64px;
	position: fixed;
	z-index: 100;
}

html.haiiro-dark .photo-lightbox {
	background: rgb(0, 0, 0);
}

.photo-lightbox.is-open {
	display: flex;
}

.idle-slideshow {
	background: var(--haiiro-paper);
	display: none;
	inset: 0;
	position: fixed;
	z-index: 9999;
}

.idle-slideshow.is-open {
	display: block;
}

.idle-slideshow img {
	height: 100%;
	left: 0;
	object-fit: contain;
	opacity: 0;
	position: absolute;
	top: 0;
	transition: opacity 700ms ease;
	width: 100%;
}

.idle-slideshow img.is-active {
	opacity: 1;
}

.photo-lightbox__image {
	left: 50%;
	max-height: calc(100vh - 192px);
	max-width: calc(100vw - 128px);
	opacity: 0;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	transition: opacity 440ms ease;
}

.photo-lightbox__image.is-active {
	opacity: 1;
}

.photo-lightbox button {
	align-items: center;
	background: transparent;
	border: 0;
	color: var(--haiiro-ink);
	cursor: pointer;
	display: flex;
	font-family: var(--haiiro-condensed-font);
	height: 22px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	transition: color 180ms ease, opacity 180ms ease;
	width: 22px;
}

.photo-lightbox button:hover,
.photo-lightbox button:focus-visible {
	color: var(--haiiro-muted);
}

.photo-lightbox__icon {
	display: inline-block;
	fill: none;
	height: 20px;
	stroke: currentColor;
	stroke-width: 1.5;
	vertical-align: top;
	width: 20px;
}

.photo-lightbox.is-ui-hidden button {
	opacity: 0;
	pointer-events: none;
}

.photo-lightbox__controls {
	align-items: center;
	bottom: 60px;
	display: flex;
	gap: 8px;
	left: 50%;
	position: absolute;
	transform: translateX(-50%);
}

.photo-lightbox__play {
	align-items: center;
	background: transparent !important;
	color: var(--haiiro-ink) !important;
	display: inline-flex;
	height: 22px;
	justify-content: center;
	padding: 0;
	width: 22px !important;
}

.photo-lightbox__loop-icon {
	background: currentColor;
	display: block;
	height: 20px;
	-webkit-mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMjAwIDEyMDAiPgoJPHRpdGxlPkxvb3A8L3RpdGxlPgoJPHBhdGggZD0ibTgxNi45OCA5ODguNjloLTQzMy4zMWMtMTEzLjE2IDAtMjE3LjY5LTYwLjM3NS0yNzQuMjYtMTU4LjM0LTU2LjUzMS05Ny45NjktNTYuNTMxLTIxOC43MiAwLTMxNi42OSA1Ni41NzgtOTcuOTY5IDE2MS4xMS0xNTguMzQgMjc0LjI2LTE1OC4zNGgxNTIuMzRsLTk2Ljk4NC05OS45ODRoLTAuMDQ2ODc1Yy01LjEwOTQtNS4wNjI1LTcuOTY4OC0xMS45NTMtNy45Njg4LTE5LjE3MiAwLTcuMTcxOSAyLjg1OTQtMTQuMTA5IDcuOTY4OC0xOS4xNzIgMTAuNjQxLTEwLjQ1MyAyNy43MDMtMTAuNDUzIDM4LjM0NCAwbDE0Mi4zMSAxNDQuNjYgMC4wNDY4NzUgMC4wNDY4NzVjMTAuNDA2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KPC9zdmc+Cg==") center / contain no-repeat;
	transition: opacity 180ms ease;
	width: 20px;
}

.photo-lightbox__play.is-playing .photo-lightbox__loop-icon {
	opacity: 0.5;
}

.photo-lightbox__close {
	position: absolute;
}

.photo-lightbox__close .photo-lightbox__icon {
	height: 16px;
	width: 16px;
}

.photo-lightbox:not(.is-image-ready) button {
	opacity: 0;
	pointer-events: none;
}

.back-to-top {
	align-items: center;
	background: transparent;
	border: 0;
	color: inherit;
	cursor: pointer;
	display: inline-flex;
	font: 20px/1 var(--haiiro-condensed-font);
	height: 32px;
	justify-content: center;
	padding: 0;
	width: 32px;
}

.back-to-top span {
	display: inline-block;
	font-size: 22px;
	transform: rotate(-90deg);
}

.back-to-top:hover,
.back-to-top:focus-visible {
	background: var(--haiiro-menu-hover-bg);
	color: var(--haiiro-menu-hover-text);
}

.site-footer {
	border-top: 1px solid var(--haiiro-line);
	color: var(--haiiro-muted);
	font-size: 10px;
	margin-top: 2rem;
	padding-block: 0.5rem;
}

body.home .site-footer {
	margin-top: 0;
}

.site-footer__inner {
	align-items: center;
	display: flex;
	justify-content: space-between;
}

.site-footer__inner p {
	margin: 0;
	text-align: center;
}

.site-footer a {
	color: inherit;
	display: inline-flex;
	padding: 0.3em 0.55em;
}

.site-footer a:hover,
.site-footer a:focus-visible {
	background: var(--haiiro-accent);
	color: #fff;
}

@media (max-width: 980px) {
	.gallery-masonry {
		column-count: 3;
	}

	.gallery-masonry.is-row-ordered {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.photo-grid {
		gap: 12px;
	}

	.photo-grid__row {
		gap: 12px;
		margin-bottom: 12px;
	}

	.photo-grid img {
		height: clamp(176px, 21vw, 218px);
	}
}

@media (max-width: 720px) {
	html.haiiro-mobile-menu-open {
		overflow: hidden;
	}

	body.admin-bar {
		--haiiro-admin-offset: 46px;
	}

	.site-header {
		height: auto;
		overflow: visible;
		padding-block: 12px 10px;
		transform: none;
	}

	.site-header.is-open {
		z-index: 100000;
	}

	body.single-gallery .site-header,
	body.single-gallery.haiiro-header-collapsed .site-header {
		height: auto;
		overflow: visible;
		padding-block: 12px 10px;
		transform: none;
	}

	.site-header__inner {
		align-items: center;
	}

	body.single-gallery.haiiro-header-collapsed .site-header__inner {
		min-height: 51px;
	}

	body.single-gallery.haiiro-header-collapsed .haiiro-wordmark {
		transform: none;
	}

	.site-nav-toggle {
		display: inline-flex;
		flex: 0 0 44px;
		position: relative;
		z-index: 100001;
	}

	.site-nav {
		-webkit-backdrop-filter: blur(9px);
		align-items: center;
		backdrop-filter: blur(9px);
		background: color-mix(in srgb, var(--haiiro-paper) 76%, transparent);
		display: none;
		flex-direction: column;
		height: 100vh;
		height: 100svh;
		inset: 0;
		margin-left: 0;
		overflow-y: auto;
		padding:
			max(72px, calc(env(safe-area-inset-top) + 56px))
			16px
			max(76px, calc(env(safe-area-inset-bottom) + 60px));
		opacity: 1;
		pointer-events: auto;
		position: fixed;
		transform: none;
		width: 100%;
		z-index: 100000;
		justify-content: center;
	}

	.site-header.is-open .site-nav {
		display: flex;
	}

	.site-header.is-open .site-nav-toggle {
		position: fixed;
		right: 16px;
		top: max(14px, env(safe-area-inset-top));
	}

	.site-header.is-open .haiiro-wordmark,
	body.single-gallery .site-header.is-open .haiiro-wordmark {
		left: 50%;
		position: fixed;
		top: max(18px, env(safe-area-inset-top));
		transform: translateX(-50%);
		z-index: 100001;
	}

	.site-nav__item:not(:first-child)::before {
		display: none;
	}

	.site-nav__item {
		width: min(100%, 320px);
	}

	.site-nav__link,
	.site-nav__button {
		align-items: center;
		display: flex;
		font-size: 16px;
		height: auto;
		justify-content: center;
		margin-left: 0 !important;
		min-height: 52px;
		padding: 12px 14px !important;
		text-align: center;
		width: 100%;
	}

	.site-nav__theme {
		bottom: max(24px, env(safe-area-inset-bottom));
		height: 44px;
		left: 50%;
		position: fixed;
		transform: translateX(-50%);
		width: 44px;
		z-index: 100001;
	}

	.site-nav__theme .haiiro-dark-mode-toggle {
		height: 44px;
		min-height: 44px;
		min-width: 44px;
		padding: 0 !important;
		width: 44px;
	}

	.photo-intro,
	.gallery-header {
		display: block;
	}

	.photo-filters {
		justify-content: flex-start;
	}

	.gallery-meta {
		margin-top: 12px;
		text-align: left;
		white-space: normal;
	}

	.gallery-masonry {
		column-count: 1;
	}

	.gallery-masonry.is-row-ordered {
		grid-template-columns: 1fr;
	}

	.photo-grid {
		display: grid;
		gap: 14px;
		grid-template-columns: 1fr;
	}

	.photo-grid.is-justified {
		display: grid;
	}

	.photo-grid__row {
		display: contents;
	}

	.photo-grid figure,
	.photo-grid.is-justified figure {
		aspect-ratio: auto;
		display: block;
		height: auto !important;
		margin: 0;
		width: 100% !important;
	}

	.photo-grid img {
		height: auto;
		width: 100%;
	}

	.photo-lightbox {
		padding:
			max(88px, calc(env(safe-area-inset-top) + 72px))
			32px
			max(88px, calc(env(safe-area-inset-bottom) + 72px));
		touch-action: pan-y;
	}

	.photo-lightbox__controls {
		bottom: max(20px, env(safe-area-inset-bottom));
		gap: 4px;
	}

	.photo-lightbox__image {
		max-height: calc(100svh - 176px);
		max-width: calc(100vw - 64px);
	}

	.photo-lightbox button,
	.photo-lightbox__play {
		height: 44px;
		width: 44px !important;
	}

	.site-footer__inner {
		align-items: flex-start;
		display: grid;
		gap: 6px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html.haiiro-photo-js .gallery-card__image,
	html.haiiro-photo-js .photo-grid img {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

.haiiro-scramble-shell {
	display: inline-block;
	position: relative;
	white-space: pre;
}

.haiiro-scramble-measure {
	visibility: hidden;
}

.haiiro-scramble-visual {
	display: flex;
	inset: 0;
	position: absolute;
	white-space: pre;
}

.haiiro-scramble-character {
	display: inline-block;
	flex-grow: 0;
	flex-shrink: 0;
	text-align: center;
}
