@font-face {
  font-family: "Droid Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/droid-serif-latin-400.woff2") format("woff2");
}

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/oswald-latin-400.woff2") format("woff2"),
    url("../fonts/oswald-latin-ext-400.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #070707;
  --panel: #0e0e0e;
  --ink: #d7d2c8;
  --muted: #8a8580;
  --paper: #f3efe6;
  --line: #2a2a2a;
  --accent: #e23b2e;
  --header-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

html {
  background: var(--bg);
}

html.i18n-wait #menu_wrapper,
html.i18n-wait #content,
html.i18n-wait .description,
html.i18n-wait .site-credit,
html.i18n-wait .brand-name {
  visibility: hidden;
}

body {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.6 "Droid Serif", Georgia, serif;
}

a {
  color: var(--paper);
  text-decoration: none;
}

a:hover {
  color: #fff;
}

#nav-col {
  position: sticky;
  top: 0;
  align-self: start;
  z-index: 40;
  max-height: calc(100dvh - var(--header-h) - 96px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 8px 18px 48px 28px;
}

#menu-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0 0 18px;
  background: var(--bg);
  color: var(--paper);
  border: 0;
  font-family: Oswald, sans-serif;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 10px 0;
  cursor: pointer;
}

#menu-toggle::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

body.nav-open #menu-toggle::before {
  height: 0;
  box-shadow: none;
  width: 18px;
  border-top: 1px solid currentColor;
  transform: rotate(45deg);
}

#header {
  position: relative;
  flex: 0 0 var(--header-h);
  height: var(--header-h);
  overflow: hidden;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
  pointer-events: none;
}

#masthead {
  min-height: var(--header-h);
  width: min(1440px, 100%);
  margin: 0 auto;
}

#branding {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 0 0 28px;
  pointer-events: auto;
}

.site-credit {
  margin: 0;
  text-align: right;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.4;
  flex: 0 1 auto;
}

#branding a {
  text-decoration: none;
}

#branding h1,
#branding .brand-name {
  font-family: Oswald, sans-serif;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: 0.08em;
  color: var(--paper);
  margin: 0;
  line-height: 1;
}

#branding .description {
  display: none;
}

#wrapper {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0 auto;
  padding-top: 0;
  width: min(1440px, 100%);
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: start;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background: #070707;
}

::-webkit-scrollbar-track {
  background: #070707;
}

::-webkit-scrollbar-thumb {
  background: #5c5854;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #8a8580;
}

::-webkit-scrollbar-corner {
  background: #070707;
}

@supports not selector(::-webkit-scrollbar) {
  * {
    scrollbar-width: thin;
    scrollbar-color: #5c5854 #070707;
  }
}

body.nav-open #wrapper {
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
}

#menu_wrapper {
  display: none;
  padding: 0;
}

body.nav-open #menu_wrapper {
  display: block;
}

.sf-menu,
.sf-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sf-menu {
  display: block;
}

.sf-menu a {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink);
  font-family: Oswald, sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1.35;
  padding: 7px 0;
}

.sf-menu > li > a {
  color: var(--paper);
  font-size: 15px;
}

.sf-menu .sub-menu {
  display: none;
  position: static;
  width: auto;
  margin: 0 0 6px;
  padding: 0 0 0 12px;
  border-left: 1px solid var(--line);
  background: none;
  box-shadow: none;
}

.sf-menu li.open > .sub-menu {
  display: block;
}

.sf-menu .sub-menu a {
  color: var(--muted);
  font-size: 13px;
  padding: 5px 0;
}

.sf-menu .expander {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: -2px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}

.sf-menu .current > a,
.sf-menu a:hover,
.sf-menu .expander:hover {
  color: #fff;
}

.sf-menu .current > a {
  color: var(--paper);
}

.menu-shirts > a {
  color: var(--accent) !important;
}

#wrapper-content-spacer {
  display: none;
}

#main {
  background: transparent;
  min-height: 0;
}

#container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 96px;
}

#content {
  color: var(--ink);
  position: relative;
}

#content p {
  line-height: 1.7;
  margin: 0 0 1.15em;
}

#content ul {
  margin: 0 0 1.4em;
  padding: 0 0 0 1.2em;
}

#content li {
  line-height: 1.6;
  margin: 0 0 0.75em;
}

#content h1,
.entry-title {
  font-family: Oswald, sans-serif;
  font-weight: 400;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: 0.02em;
  color: var(--paper);
  margin: 0 0 28px;
  line-height: 1.05;
}

#content h2 {
  font-family: Oswald, sans-serif;
  font-weight: 400;
  font-size: clamp(22px, 3vw, 32px);
  color: var(--paper);
  margin: 2em 0 0.6em;
}

.tutorial-warn {
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  margin: 0 0 1.4em;
  color: var(--paper);
  background: #140b0a;
}

.tutorial-specs {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 6px 18px;
  margin: 0 0 1.6em;
  max-width: 480px;
  font-size: 16px;
}

.tutorial-specs dt {
  font-family: Oswald, sans-serif;
  color: var(--paper);
  letter-spacing: 0.04em;
  margin: 0;
}

.tutorial-specs dd {
  margin: 0;
}

.gallery.tutorial-gallery {
  margin: 12px 0 28px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.gallery.tutorial-gallery a {
  aspect-ratio: auto;
  background: #0a0a0a;
}

.gallery.tutorial-gallery img,
#content .gallery.tutorial-gallery img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
}

.gallery.tutorial-gallery.tutorial-lead {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery.tutorial-gallery.tutorial-lead a {
  aspect-ratio: 1 / 1;
  height: auto;
  cursor: pointer;
}

.gallery.tutorial-gallery.tutorial-lead img,
#content .gallery.tutorial-gallery.tutorial-lead img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

#content img {
  max-width: 100%;
  height: auto;
}

.intro-split {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 8px 32px;
  align-items: start;
  margin: 0 0 28px;
}

.intro-split figure {
  margin: 0;
}

.intro-split img {
  display: block;
  width: 100%;
  height: auto;
}

.intro-copy p:last-child {
  margin-bottom: 0;
}

.sadhu-lead {
  margin: 0 0 36px;
}

.sadhu-lead img {
  float: left;
  width: min(420px, 46%);
  height: auto;
  margin: 6px 28px 16px 0;
}

.sadhu-lead::after {
  content: "";
  display: block;
  clear: both;
}

@media (max-width: 720px) {
  .sadhu-lead img {
    float: none;
    display: block;
    width: min(420px, 100%);
    margin: 0 0 18px;
  }
}

@media (max-width: 720px) {
  .intro-split {
    grid-template-columns: min(320px, 46%) minmax(0, 1fr);
    gap: 16px;
  }
}

#content iframe {
  max-width: 100%;
}

.video-lead {
  margin: 0 0 16px;
  line-height: 1.25;
}

.wp-block-gallery.is-layout-flex {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 1.4em;
}

.wp-block-gallery .wp-block-image {
  margin: 0;
}

#content .wp-block-gallery img {
  width: 100%;
  height: 180px;
  max-width: none;
  object-fit: cover;
  display: block;
}

.video-embed {
  position: relative;
  width: min(100%, calc((100dvh - var(--header-h) - 280px) * 16 / 9));
  aspect-ratio: 16 / 9;
  background: #000;
  margin: 0 0 2em;
}

.video-embed iframe,
.video-embed .yt-slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-embed.video-pending > img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-embed.is-playing > img {
  display: none;
}

#myShop {
  min-height: 70vh;
  margin: 8px 0 2em;
}

.video-consent img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-consent-ui {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: rgba(0, 0, 0, 0.55);
  text-align: center;
}

.video-consent-ui button {
  font-family: Oswald, sans-serif;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  border: 0;
  padding: 12px 22px;
  cursor: pointer;
}

.video-consent-ui button:hover {
  color: #fff;
  filter: brightness(1.08);
}

.video-consent-ui p {
  max-width: 42ch;
  margin: 0;
  color: #cfc9bf;
  font-size: 14px;
  text-shadow: none;
}

.video-consent-ui a {
  color: var(--paper);
  text-decoration: underline;
}

#content .size-full {
  max-width: min(100%, 860px);
}

#content table {
  border-collapse: collapse;
  width: 100%;
}

#content td {
  padding: 12px 16px 12px 0;
  vertical-align: top;
}

.footer_container {
  flex: 0 0 auto;
  margin: 0;
  border-top: 1px solid var(--line);
  background: #070707;
  z-index: 3;
}

#footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 6px 0 8px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

#footer p {
  margin: 0;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex: 0 0 auto;
}

.lang-switch a,
.lang-switch button {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 2px 8px;
  color: var(--muted);
  font-family: Oswald, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
}

.lang-switch a:hover,
.lang-switch button:hover,
.lang-switch a.is-active,
.lang-switch button.is-active {
  color: var(--paper);
  box-shadow: inset 0 -2px 0 currentColor;
}

#footer p a {
  color: var(--muted);
}

#footer p a:hover {
  color: var(--paper);
}

body.is-home {
  background: var(--bg);
}

body.is-home .home-hero {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 0;
  width: min(1440px, 100%);
  height: 100%;
  transform: translateX(-50%);
  object-fit: cover;
  object-position: 50% 42%;
  pointer-events: none;
}

body.is-home #wrapper {
  padding-top: 0;
  position: relative;
  z-index: 1;
}

body.is-home #nav-col {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.35) 80%, transparent);
}

body.is-home #menu-toggle {
  background: transparent;
}

body.is-home .site-credit {
  color: #cfc9bf;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
}

body.is-home #main {
  min-height: 0;
  display: block;
  background: none;
}

body.is-home .footer_container {
  position: relative;
  z-index: 1;
}

body.is-home #container {
  padding: 12px 0 48px 64px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.22) 55%, transparent 100%);
}

body.is-home #content p,
body.is-home #content h1 {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7);
}

body.is-home #content {
  text-align: left;
}

body.is-home #content p,
body.is-home #content h1 {
  text-align: left !important;
}

body.is-home #content h1 {
  font-size: clamp(64px, 14vw, 160px);
  margin: 0 0 12px;
}

body.is-home #content p:first-child {
  font-family: Oswald, sans-serif;
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 8px;
}

body.is-home #content p {
  max-width: 92ch;
  font-size: 17px;
  color: #cfc9bf;
}

.home-featured {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 48px;
}

.home-featured a {
  position: relative;
  display: block;
  overflow: hidden;
  background: #000;
  aspect-ratio: 1 / 1;
}

#content .home-featured img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: grayscale(0.15);
  image-rendering: auto;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.home-featured a:hover img {
  transform: scale(1.06);
  filter: grayscale(0);
}

.home-featured span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 12px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  font-family: Oswald, sans-serif;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: #fff;
}

.ngg-galleryoverview {
  display: contents;
}

.ngg-navigation,
.slideshowlink,
.ngg-clear {
  display: none;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin: 36px 0 48px;
}

.album-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: #000;
  color: #fff !important;
}

.album-card img,
#content .album-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  image-rendering: auto;
  transition: transform 0.5s ease;
}

.album-card-wide img,
#content .album-card-wide img {
  object-fit: contain;
  background: #000;
}

.album-card:hover img {
  transform: scale(1.05);
}

.album-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 16px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  font-family: Oswald, sans-serif;
  font-size: 18px;
  color: #fff;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 6px;
  margin: 28px 0 48px;
}

.gallery a {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111;
  line-height: 0;
  aspect-ratio: 4 / 5;
}

.gallery img,
#content .gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.gallery a:hover img {
  transform: scale(1.04);
}

.gallery a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
}

.fates-intro {
  margin: 18px 0 42px;
  max-width: none;
}

.fates-intro h2 {
  font-family: Oswald, sans-serif;
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--paper);
  margin: 0 0 22px;
}

.fates-intro p {
  color: #c4c1bc;
  font-size: 17px;
  line-height: 1.75;
  margin: 0 0 1.25em;
}

.fates-intro p:last-child {
  font-style: italic;
  color: var(--paper);
  margin-top: 1.6em;
}

.gallery.gallery-wide {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.gallery.gallery-wide .gallery-pair {
  display: flex;
  gap: 20px;
  width: 100%;
  align-items: stretch;
}

.gallery.gallery-wide .gallery-pair a {
  flex: var(--ar, 1) var(--ar, 1) 0;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0d0d;
  border: 1px solid #222;
  border-radius: 2px;
  padding: 6px;
  aspect-ratio: auto;
  line-height: 0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.gallery.gallery-wide .gallery-pair a:hover {
  transform: translateY(-3px);
  border-color: #555;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.65);
}

.gallery.gallery-wide .gallery-pair.gallery-single {
  justify-content: center;
}

.gallery.gallery-wide .gallery-pair.gallery-single a {
  flex: 0 1 560px;
  max-width: 560px;
}

.gallery.gallery-wide img,
#content .gallery.gallery-wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery.gallery-wide a:hover img {
  transform: none;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px 20px;
}

.blog-card {
  background: #0c0c0c;
  border: 1px solid #3a3a3a;
}

.blog-card .body {
  padding: 16px 16px 18px;
}

.blog-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  image-rendering: auto;
}

.blog-card h2 {
  font-size: 24px;
  margin: 0 0 8px;
}

.blog-card h2 a {
  color: var(--paper);
  font-family: Oswald, sans-serif;
}

.meta {
  font-family: Oswald, sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.email-obf {
  display: inline;
  cursor: default;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.email-obf::after {
  user-select: none;
  -webkit-user-select: none;
}

.studio-nap {
  margin-top: 28px;
  font-size: 15px;
}

.studio-nap a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-lead {
  max-width: 46ch;
  margin: 0 0 24px;
  color: var(--muted);
}

.contact-form label {
  display: block;
  margin: 0 0 18px;
  font-size: 15px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  max-width: 560px;
  display: block;
  margin-top: 8px;
  padding: 12px 14px;
  background: #111;
  border: 1px solid var(--line);
  color: var(--paper);
  font: 16px/1.4 "Droid Serif", serif;
}

.contact-form button,
.contact-form input[type="submit"] {
  background: var(--paper);
  color: #111;
  border: 0;
  font-family: Oswald, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
  padding: 12px 28px;
  cursor: pointer;
}

.contact-form button:hover {
  background: #fff;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 48px 72px 56px;
}

.lightbox.open {
  display: flex;
}

body.lb-open {
  overflow: hidden;
}

.lb-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(1040px, 100%);
  max-height: 100%;
  min-height: 0;
}

.lightbox img {
  max-width: 100%;
  max-height: 86vh;
  object-fit: contain;
}

.lightbox.has-caption img {
  max-height: 52vh;
}

.lightbox.is-fullscreen img {
  max-width: 100%;
  max-height: 92vh;
}

.lightbox.is-fullscreen.has-caption img {
  max-height: 50vh;
}

.lb-caption {
  display: none;
  margin: 14px 0 0;
  width: 100%;
  max-height: 32vh;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 14px;
  color: #f3f3f3;
  font-family: "Droid Serif", Georgia, serif;
  font-size: 15px;
  line-height: 1.55;
  text-align: left;
  white-space: pre-line;
}

.lightbox.has-caption .lb-caption {
  display: block;
}

.lightbox .lb-close,
.lightbox .lb-prev,
.lightbox .lb-next,
.lightbox .lb-full {
  position: absolute;
  background: transparent;
  color: #fff;
  border: 0;
  cursor: pointer;
  font-family: Oswald, sans-serif;
}

.lightbox .lb-close {
  top: 18px;
  right: 22px;
  font-size: 36px;
  line-height: 1;
}

.lightbox .lb-prev,
.lightbox .lb-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  line-height: 1;
}

.lightbox .lb-prev {
  left: 16px;
}

.lightbox .lb-next {
  right: 16px;
}

.lightbox .lb-full {
  top: 22px;
  left: 22px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lightbox .lb-meta {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  color: #aaa;
  font-family: Oswald, sans-serif;
  font-size: 13px;
  letter-spacing: 0.16em;
}

.aligncenter {
  margin-left: auto;
  margin-right: auto;
}

.alignleft {
  float: left;
  margin: 0 20px 16px 0;
}

@media (max-width: 900px) {
  #branding {
    padding: 0 20px;
  }

  .site-credit {
    font-size: 10px;
    max-width: 58%;
  }

  #container,
  #footer,
  body.is-home #container {
    width: calc(100% - 32px);
  }

  body.is-home #container {
    padding-left: 0;
  }

  .wp-block-gallery.is-layout-flex {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .home-featured {
    grid-template-columns: 1fr 1fr;
  }

  body.nav-open #wrapper,
  #wrapper {
    grid-template-columns: 1fr;
  }

  #nav-col {
    position: static;
    max-height: none;
    padding: 0 16px 12px;
  }

  body.nav-open #wrapper {
    overflow: hidden;
  }

  body.nav-open #nav-col {
    position: fixed;
    inset: 0;
    z-index: 80;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0 22px 32px;
    border-bottom: 0;
    background: var(--bg);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  body.nav-open #menu-toggle,
  body.nav-open.is-home #menu-toggle {
    position: sticky;
    top: 0;
    z-index: 2;
    margin: 0 -22px 8px;
    padding: 18px 22px 14px;
    background: var(--bg);
  }

  body.nav-open .sf-menu > li > a {
    font-size: 18px;
    padding: 11px 0;
  }

  body.nav-open .sf-menu .sub-menu a {
    color: var(--ink);
    font-size: 16px;
    padding: 8px 0;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .gallery.tutorial-lead {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .album-card img,
  #content .album-card img {
    height: 200px;
  }
}

@media (max-width: 640px) {
  .gallery.gallery-wide {
    gap: 20px;
  }
  .gallery.gallery-wide .gallery-pair {
    flex-direction: column;
    gap: 20px;
  }
  .gallery.gallery-wide .gallery-pair a {
    flex: auto;
    width: 100%;
    max-width: 100%;
  }
  .gallery.gallery-wide img,
  #content .gallery.gallery-wide img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

