/*
Theme Name: MF1.10 Journal
Author: Dimitri Karakostas
Description: Traditional PHP WordPress theme for Memory Fog. Gutenberg is disabled for pages and posts.
Version: 1.10.2
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: memory-fog-catalogue-classic
*/
:root{--ink:#171717;--muted:#686862;--line:#d7d7d2;--max:1320px;--content:760px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fff;color:var(--ink);font-family:"Iowan Old Style",Baskerville,"Times New Roman",serif;font-size:18px;line-height:1.52;-webkit-font-smoothing:antialiased}a{color:inherit;text-underline-offset:.18em}img{max-width:100%;height:auto;display:block}.site-shell{width:min(var(--max),calc(100% - 3rem));margin:auto}.site-header{border-bottom:1px solid var(--line);padding:1.1rem 0}.header-inner{display:flex;justify-content:space-between;align-items:center;gap:2rem}.site-title,.main-nav a,.has-sans-font-family,.mf-kicker{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif}.site-title{font-size:.85rem;font-weight:500;letter-spacing:.22em;text-transform:uppercase;text-decoration:none}.main-nav ul{display:flex;gap:1.3rem;list-style:none;padding:0;margin:0}.main-nav a,.has-small-font-size,.mf-kicker{font-size:.74rem;letter-spacing:.08em;text-transform:uppercase}.wp-block-group.alignwide,.alignwide{max-width:var(--max);margin-left:auto;margin-right:auto}.wp-block-group.alignfull,.alignfull{width:100%}.wp-block-group{max-width:100%}.wp-block-group[style*="grid"],.wp-block-columns{display:grid;gap:2rem}.wp-block-columns{grid-template-columns:repeat(3,1fr)}.wp-block-column{min-width:0}.wp-block-image{margin:0}.wp-block-image img{width:100%}.wp-block-heading{font-weight:400}.has-x-large-font-size{font-size:clamp(3rem,7vw,6.4rem);line-height:.95}.has-large-font-size{font-size:clamp(1.6rem,3vw,3rem);line-height:1.15}.wp-block-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:.45rem}.wp-block-quote{font-size:clamp(1.7rem,3vw,3.1rem);line-height:1.12;margin:0;border-left:1px solid var(--ink);padding-left:1.5rem}.site-footer{border-top:1px solid var(--line);margin-top:5rem;padding:3rem 0 2rem}.footer-inner{display:flex;justify-content:space-between;gap:2rem}.content-page{width:min(var(--content),calc(100% - 3rem));margin:auto;padding:5rem 0}.content-page h1{font-size:clamp(2.2rem,4vw,4rem);font-weight:400;line-height:1.04;margin-bottom:.75rem}.provenance{font: .8rem/1.4 "Helvetica Neue",Helvetica,Arial,sans-serif;color:var(--muted);margin-bottom:3rem}.exhibitions{text-align:center}.exhibitions>*{text-align:center}
@media(min-width:801px){.wp-block-group[style*='column-count:2'],.wp-block-group[style*='columnCount:2']{grid-template-columns:1fr 2fr}.wp-block-group[style*='column-count:3'],.wp-block-group[style*='columnCount:3']{grid-template-columns:repeat(3,1fr)}}
@media(max-width:800px){body{font-size:17px}.site-shell,.content-page{width:calc(100% - 2rem)}.main-nav{display:none}.wp-block-group[style*="grid"],.wp-block-columns,.wp-block-gallery{grid-template-columns:1fr}.wp-block-quote{border-left:0;border-top:1px solid var(--line);padding:1.5rem 0 0}.footer-inner{flex-direction:column}}

.publication-card h3,
.exhibition-card h3,
.essay-details h3 { margin-bottom: .35rem; }

.publication-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--fog);
}

.centered-heading { display: block; text-align: center; }
.centered-heading .meta { margin-top: .75rem; }
.exhibition-grid { align-items: start; }
.empty-section { color: var(--muted); font-style: italic; padding: 2rem 0; }

@media (max-width: 800px) {
  .centered-heading { text-align: left; }
}

/* Fixed two-column media/contact row. */
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

/* Footer contains only the office email, aligned right. */
.footer-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.footer-email {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: lowercase;
}

@media (max-width: 800px) {
  .two-col {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-end;
  }
}


/* Media Kit and Contact must remain side by side on desktop. */
.media-contact-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.media-contact-row > div {
  min-width: 0;
}

.media-contact-row h2 {
  margin-top: 0;
}

.media-contact-row .meta {
  margin-bottom: .45rem;
}

/* The theme has no visible footer. */
.site-footer {
  display: none !important;
}

@media (max-width: 800px) {
  .media-contact-row {
    grid-template-columns: 1fr !important;
    gap: 3rem;
  }
}

/* Interactive hero gallery. */
.hero {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(480px, 1.5fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: start;
  padding: clamp(3rem, 7vw, 7rem) 0;
}

.hero-copy h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(3rem, 6vw, 6.25rem);
  font-weight: 400;
  line-height: .96;
}

.hero-copy .dek {
  max-width: 20em;
  font-size: clamp(1.25rem, 2vw, 1.9rem);
  line-height: 1.25;
}

.hero-main-image {
  margin: 0;
  background: #efefec;
  overflow: hidden;
}

.hero-main-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: opacity .12s ease;
}

.hero-main-image img.is-changing { opacity: .25; }

.hero-thumbnails {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .4rem;
  margin-top: .55rem;
}

.hero-thumb {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  opacity: .58;
}

.hero-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-thumb:hover,
.hero-thumb:focus-visible,
.hero-thumb.is-active { opacity: 1; }

.hero-thumb.is-active { outline: 1px solid var(--ink); outline-offset: 2px; }

/* Selected image grids remain compact and three-across on desktop. */
.selected-images-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.6rem, 1.2vw, 1.2rem);
}

.selected-images-grid figure { margin: 0; }

.selected-images-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #efefec;
}

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; padding: 3rem 0; }
  .hero-thumbnails { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .selected-images-grid { grid-template-columns: 1fr; }
}


/* Core section rhythm restored for the classic template. */
.section {
  border-top: 1px solid var(--line);
  padding: 5rem 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3rem;
}

.section-heading h2,
.section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.08;
}

/* The opening statement is a compact, vertically centred three-column spread. */
.project-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 4rem);
  align-items: center;
  padding-top: clamp(2.25rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.25rem, 4vw, 3.5rem);
}
.project-column {
  min-width: 0;
}
.project-column-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
}
.project-column p:first-child { margin-top: 0; }
.project-column p:last-child { margin-bottom: 0; }

.project-column-image {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.project-column-image img {
  width: min(112%, 420px);
  max-width: 112%;
  height: auto;
  object-fit: contain;
  margin-inline: auto;
}
.project-column-text em { font-style: italic; }

/* Publications and exhibitions share identical centered headings. */
.publications-section,
.exhibitions {
  text-align: center;
}
.publication-grid,
.exhibition-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
}
.publication-card,
.exhibition-card { text-align: center; }

/* Text rows remain full width, with a one-third/two-thirds split. */
.writing-section > .empty-section { text-align: center; }
.essay-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding: 3rem 0;
  border-top: 1px solid var(--line);
  text-align: left;
}

.essay-featured-image {
  display: block;
  margin: 1.1rem 0 1rem;
  text-decoration: none;
}
.essay-featured-image img {
  width: 100%;
  height: auto;
}
.essay-excerpt {
  margin: 0 0 1rem;
}
.essay-row blockquote {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 3.1rem);
  line-height: 1.12;
  border-left: 1px solid var(--ink);
  padding-left: 1.5rem;
}

/* Explicit display declaration fixes selected-image grids. */
.gallery-grid,
.selected-images-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

@media (max-width: 800px) {
  .section { padding: 3.5rem 0; }
  .project-columns,
  .publication-grid,
  .exhibition-grid,
  .essay-row,
  .gallery-grid,
  .selected-images-grid {
    grid-template-columns: 1fr !important;
  }
  .section-heading {
    display: block;
    text-align: left;
    margin-bottom: 2rem;
  }
  .publications-section,
  .exhibitions { text-align: left; }
  .publication-card,
  .exhibition-card { text-align: left; }
  .essay-row blockquote {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 1.5rem 0 0;
  }
}


/* Production 1.0 refinements. */
.hero-copy h1 {
  font-family: "Old English Text MT", "Engravers Old English", "UnifrakturCook", Georgia, serif;
  font-size: clamp(3.4rem, 7vw, 7rem);
  line-height: .9;
  letter-spacing: -.02em;
  margin-bottom: 1.5rem;
}
.hero-copy .dek {
  font-size: clamp(1.15rem, 1.8vw, 1.65rem);
  line-height: 1.35;
  max-width: 24em;
}
.content-page .provenance { margin-top: 0; margin-bottom: 2.5rem; }
.entry-content > :first-child { margin-top: 0; }
.hero-thumbnails { overflow-x: auto; scrollbar-width: thin; }
.hero-thumb { min-width: 72px; }
@media(max-width:800px){.hero-copy h1{font-size:clamp(3rem,16vw,5rem)}.hero-thumbnails{grid-template-columns:repeat(4,minmax(82px,1fr));}}


/* v1.0.2 — centered hero copy and self-contained blackletter wordmark. */
.hero { align-items: stretch; }
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  min-width: 0;
}
.hero-copy h1.memory-fog-wordmark {
  font-family: "STIX Two Math", "Cambria Math", "Apple Symbols", serif;
  font-size: clamp(3.2rem, 6.4vw, 6.7rem);
  font-weight: 400;
  line-height: .92;
  letter-spacing: 0;
  margin: 0 0 1.5rem;
  white-space: nowrap;
}
.hero-copy .dek { margin-top: 0; }
@media (max-width: 800px) {
  .hero-copy h1.memory-fog-wordmark {
    font-size: clamp(2.8rem, 14vw, 5rem);
    white-space: normal;
  }
}


/* v1.0.3 — two-line centered hero wordmark and centered subtitle. */
.hero-copy {
  align-items: center;
  text-align: center;
}
.hero-copy h1.memory-fog-wordmark {
  white-space: normal;
  width: 100%;
  text-align: center;
}
.hero-copy h1.memory-fog-wordmark span {
  display: block;
}
.hero-copy .dek {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}


/* v1.0.5 — quieter section flow, uppercase wordmark, vertically centered text quotes. */
.hero-copy h1.memory-fog-wordmark {
  text-transform: none;
}
.hero-copy h1.memory-fog-wordmark span {
  line-height: .9;
}

/* Center the pull quote against the complete title/image/link column. */
.essay-row {
  align-items: center;
}
.essay-row blockquote {
  align-self: center;
  display: flex;
  align-items: center;
  min-height: 100%;
}
.essay-row blockquote p {
  margin: 0;
}

/* Content sections no longer announce themselves with redundant headings. */
.publications-section,
.exhibitions,
.writing-section,
.selected-images-section {
  padding-top: 4rem;
}

@media (max-width: 800px) {
  .essay-row {
    align-items: start;
  }
  .essay-row blockquote {
    min-height: 0;
    display: block;
  }
}


/* v1.0.6 — image-based hero statement, tighter section transition, italic pull quotes. */
.hero-copy.hero-statement-image {
  min-width: 0;
  overflow: hidden;
  padding: 0;
}
.hero-copy.hero-statement-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

/* Prevent the statement artwork from intruding into the gallery column at any viewport width. */
.hero > * { min-width: 0; }

/* The upper image grid and Text rows read as one continuous sequence. */
.selected-images-section + .writing-section {
  border-top: 0;
  padding-top: 0;
}

.essay-row blockquote,
.essay-row blockquote p {
  font-style: italic;
}

@media (max-width: 800px) {
  .hero-copy.hero-statement-image img {
    width: min(100%, 640px);
  }
}


/* v1.0.10 — featured images for exhibitions and editable secondary bylines. */
.item-featured-image {
  display: block;
  margin: 0 0 1.25rem;
  text-decoration: none;
}
.item-featured-image img,
.publication-card > a:first-child img {
  width: 100%;
  height: auto;
}
.item-byline {
  margin: -.35rem 0 1rem;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.35;
  font-style: italic;
}
.exhibition-card .kicker { margin-top: 0; }

/* v1.0.11 — single-post gallery matches the homepage hero-gallery interaction. */
.post-content-page { width:min(var(--max),calc(100% - 3rem)); }
.single-header { width:100%; margin:0 0 2.5rem; }
.single-header h1 { max-width: 18ch; }
.post-gallery { margin:0 0 3.5rem; }
.post-gallery-main { aspect-ratio: 4 / 3; overflow:hidden; background:#f2f2f0; }
.post-gallery-main img { width:100%; height:100%; object-fit:contain; background:#fff; }
.post-gallery-thumbnails { margin-top:.55rem; }
.memory-fog-single .entry-content { width:min(var(--content),100%); margin:0 auto; }
@media(max-width:800px){
  .post-content-page { width:calc(100% - 2rem); }
  .single-header { margin-bottom:1.75rem; }
  .post-gallery { margin-bottom:2.5rem; }
  .post-gallery-main { aspect-ratio:auto; }
  .post-gallery-main img { height:auto; object-fit:contain; }
}

/* v1.0.15 — interactive galleries prioritize instantaneous thumbnail switching. */
.hero-main-image img,
.post-gallery-main img { transition:none !important; }


/* v1.0.16 — archive titles are the links; single titles use the full site width. */
.item-title-link {
  color: inherit;
  text-decoration: none;
}
.item-title-link:hover,
.item-title-link:focus-visible {
  text-decoration: underline;
}
.single-header h1,
.post-content-page .single-header h1,
.memory-fog-single .single-header h1 {
  width: 100%;
  max-width: none !important;
  text-wrap: pretty;
}

/* Click the displayed gallery image to open an immediate lightbox. */
.mf-lightbox-trigger {
  cursor: zoom-in;
}
body.mf-lightbox-open {
  overflow: hidden;
}
.mf-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  background: rgba(0,0,0,.94);
}
.mf-lightbox.is-open {
  display: flex;
}
.mf-lightbox__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 96vw;
  max-height: 92vh;
  object-fit: contain;
  box-shadow: none;
}
.mf-lightbox__close {
  position: fixed;
  top: .75rem;
  right: 1rem;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: 300 2.4rem/1 Arial, sans-serif;
  cursor: pointer;
}


/* v1.0.18 — lightbox gallery navigation. */
.mf-lightbox__nav {
  position: fixed;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: clamp(3rem, 6vw, 5rem);
  height: clamp(4rem, 9vw, 7rem);
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: 200 clamp(3rem, 7vw, 6rem)/1 Arial, sans-serif;
  cursor: pointer;
  opacity: .78;
  transition: opacity .12s ease;
}
.mf-lightbox__nav:hover,
.mf-lightbox__nav:focus-visible { opacity: 1; }
.mf-lightbox__prev { left: .25rem; }
.mf-lightbox__next { right: .25rem; }
.mf-lightbox__nav[hidden] { display: none !important; }
@media (max-width: 700px) {
  .mf-lightbox { padding: 3rem .5rem; }
  .mf-lightbox__nav {
    top: auto;
    bottom: .5rem;
    transform: none;
    width: 4rem;
    height: 3.5rem;
    font-size: 3.5rem;
  }
  .mf-lightbox__prev { left: calc(50% - 4.25rem); }
  .mf-lightbox__next { right: calc(50% - 4.25rem); }
}


/* v1.0.18 — optional bottom-of-post image grid. */
.post-bottom-gallery {
  margin-top: clamp(3rem, 7vw, 7rem);
  padding-top: clamp(2rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
}

.post-bottom-gallery figure {
  margin: 0;
}

.post-bottom-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #efefec;
}

@media (max-width: 800px) {
  .post-bottom-gallery {
    margin-top: 3rem;
    padding-top: 2rem;
  }
}


/* v1.0.19 — center short post-gallery thumbnail strips beneath the main image. */
.post-gallery-thumbnails.is-short-gallery {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: .4rem;
}

.post-gallery-thumbnails.is-short-gallery .hero-thumb {
  flex: 0 0 calc((100% - 2.4rem) / 7);
  max-width: calc((100% - 2.4rem) / 7);
}

@media (max-width: 800px) {
  .post-gallery-thumbnails.is-short-gallery {
    justify-content: center;
    flex-wrap: wrap;
  }

  .post-gallery-thumbnails.is-short-gallery .hero-thumb {
    flex-basis: calc((100% - 1.2rem) / 4);
    max-width: calc((100% - 1.2rem) / 4);
  }
}


/* v1.0.20 — robust centering for post galleries containing 1–6 thumbnails. */
.post-gallery-thumbnails.is-short-gallery {
  display: flex !important;
  width: 100% !important;
  justify-content: center !important;
  align-items: stretch;
  gap: .4rem;
  grid-template-columns: none !important;
}

.post-gallery-thumbnails.is-short-gallery .hero-thumb {
  flex: 0 0 clamp(110px, 13.2vw, 190px) !important;
  width: clamp(110px, 13.2vw, 190px) !important;
  max-width: none !important;
}

@media (max-width: 800px) {
  .post-gallery-thumbnails.is-short-gallery {
    flex-wrap: wrap;
    justify-content: center !important;
  }

  .post-gallery-thumbnails.is-short-gallery .hero-thumb {
    flex: 0 0 calc((100% - 1.2rem) / 4) !important;
    width: calc((100% - 1.2rem) / 4) !important;
  }
}


/* MF1.0 — responsive Archive.org publication reader */
.memoryfog-archive-embed {
  width: 100%;
  margin: clamp(2rem, 5vw, 5rem) 0;
}

.memoryfog-archive-embed iframe {
  display: block;
  width: 100%;
  border: 0;
  background: #111;
}

@media (max-width: 767px) {
  .memoryfog-archive-embed {
    margin: 2rem 0;
  }
}


/* MF1.2 — publication cards use the same title/date treatment as exhibitions. */
.item-title-link {
  text-decoration: none;
}

.item-title-link:hover,
.item-title-link:focus {
  text-decoration: underline;
}

.publication-card .kicker,
.exhibition-card .kicker {
  margin-top: 0;
}


/* MF1.3 — keep article text readable, but let Archive.org readers use the full site width. */
.memory-fog-single .entry-content .memoryfog-archive-embed {
  width: min(var(--max), calc(100vw - 3rem));
  max-width: none;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-top: clamp(2.5rem, 5vw, 5rem);
  margin-bottom: clamp(2.5rem, 5vw, 5rem);
}

.memory-fog-single .entry-content .memoryfog-archive-embed iframe {
  width: 100% !important;
  min-height: 760px;
}

@media (max-width: 800px) {
  .memory-fog-single .entry-content .memoryfog-archive-embed {
    width: calc(100vw - 2rem);
  }

  .memory-fog-single .entry-content .memoryfog-archive-embed iframe {
    min-height: 620px;
  }
}


/* MF1.4 — adaptive secondary gallery, designed as a peer to the main gallery. */
.post-bottom-gallery {
  --bottom-gallery-count: 3;
  display: grid !important;
  grid-template-columns: repeat(var(--bottom-gallery-count), minmax(0, 1fr)) !important;
  gap: .65rem;
  width: min(var(--max), calc(100vw - 3rem));
  max-width: none;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin: clamp(2.5rem, 5vw, 5rem) 0;
  padding: 0;
  border-top: 0;
}

.post-bottom-gallery .mf-bottom-gallery-item {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: zoom-in;
  display: block;
  width: 100%;
}

.post-bottom-gallery .mf-bottom-gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #efefec;
}

.post-bottom-gallery .mf-bottom-gallery-item:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 3px;
}

@media (max-width: 800px) {
  .post-bottom-gallery {
    width: calc(100vw - 2rem);
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: .5rem;
    margin: 2.5rem 0;
  }

  .post-bottom-gallery[data-count="1"] {
    grid-template-columns: 1fr !important;
  }
}


/* MF1.5 — editorial-forward homepage refinement. */

/* Homepage hero carries five images total: the active image plus four visible alternatives. */
.home-hero-gallery .hero-thumbnails {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  overflow: visible;
}
.home-hero-gallery .hero-thumb.is-active {
  display: none;
}
.home-hero-gallery .hero-thumb {
  min-width: 0;
}

/* Twelve-image editorial portfolio wall between the project statement and publications. */
.homepage-portfolio-section {
  padding-top: clamp(2.5rem, 4vw, 4rem);
  padding-bottom: clamp(2.5rem, 4vw, 4rem);
}
.homepage-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.45rem, .85vw, .8rem);
}
.homepage-portfolio-item {
  appearance: none;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.homepage-portfolio-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #efefec;
}
.homepage-portfolio-item:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

/* Publications are evidence of the photographic practice, not the dominant image wall. */
.publication-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(1.25rem, 2.2vw, 2rem);
}
.publication-card h3 {
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.25;
}
.publication-card .kicker,
.publication-card .item-byline,
.publication-card .meta {
  font-size: .82rem;
}

/* Individual project titles begin much closer to the persistent site header. */
.post-content-page {
  padding-top: clamp(2rem, 3.2vw, 3rem) !important;
}
.single-header {
  margin-bottom: clamp(1.5rem, 2.5vw, 2.25rem);
}

@media (max-width: 1000px) and (min-width: 701px) {
  .homepage-portfolio-grid,
  .publication-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 800px) {
  .home-hero-gallery .hero-thumbnails {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  .homepage-portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .publication-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .post-content-page {
    padding-top: 1.75rem !important;
  }
}

@media (max-width: 520px) {
  .homepage-portfolio-grid {
    grid-template-columns: 1fr !important;
  }
  .publication-grid {
    grid-template-columns: 1fr !important;
  }
}


/* MF1.6 — photographic series gallery + centered incomplete rows everywhere. */

/* The series itself: up to 25 images, five across on desktop. */
.post-series-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(.45rem, .75vw, .7rem);
  width: min(var(--max), calc(100vw - 3rem));
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin: clamp(2.75rem, 5vw, 5rem) 0;
}
.mf-series-gallery-item {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: zoom-in;
  flex: 0 0 calc((100% - (4 * clamp(.45rem, .75vw, .7rem))) / 5);
  min-width: 0;
}
.mf-series-gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #efefec;
}
.mf-series-gallery-item:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 3px;
}

/* Center incomplete rows rather than leaving orphaned cards at the left edge. */
.publication-grid,
.exhibition-grid,
.homepage-portfolio-grid,
.post-bottom-gallery,
.hero-thumbnails {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
}

/* Homepage portfolio remains four across. */
.homepage-portfolio-grid .homepage-portfolio-item {
  flex: 0 0 calc((100% - (3 * clamp(.45rem, .85vw, .8rem))) / 4);
}

/* Publications remain four across; exhibitions retain their established three-across scale. */
.publication-grid .publication-card {
  flex: 0 0 calc((100% - (3 * clamp(1.25rem, 2.2vw, 2rem))) / 4);
  min-width: 0;
}
.exhibition-grid .exhibition-card {
  flex: 0 0 calc((100% - 4rem) / 3);
  min-width: 0;
}

/* Existing secondary book/object gallery: preserve its adaptive sizing, but center every row. */
.post-bottom-gallery .mf-bottom-gallery-item {
  flex: 0 0 calc((100% - ((var(--bottom-gallery-count) - 1) * .65rem)) / var(--bottom-gallery-count));
  min-width: 0;
}

/* Hero thumbnail strips center naturally if a post contains fewer than the available slots. */
.hero-thumbnails .hero-thumb {
  flex: 0 0 calc((100% - (3 * var(--hero-thumb-gap, .55rem))) / 4);
  max-width: calc((100% - (3 * var(--hero-thumb-gap, .55rem))) / 4);
}

@media (max-width: 1000px) {
  .mf-series-gallery-item {
    flex-basis: calc((100% - (2 * .6rem)) / 3);
  }
  .publication-grid .publication-card,
  .homepage-portfolio-grid .homepage-portfolio-item {
    flex-basis: calc((100% - 1.25rem) / 2);
  }
  .exhibition-grid .exhibition-card {
    flex-basis: calc((100% - 1.25rem) / 2);
  }
}

@media (max-width: 800px) {
  .post-series-gallery {
    width: calc(100vw - 2rem);
    gap: .5rem;
    margin: 2.5rem 0;
  }
  .mf-series-gallery-item {
    flex-basis: calc((100% - .5rem) / 2);
  }
  .post-bottom-gallery .mf-bottom-gallery-item {
    flex-basis: calc((100% - .5rem) / 2);
  }
}

@media (max-width: 520px) {
  /* Keep photographic grids two-across on phones so long series remain scannable. */
  .homepage-portfolio-grid .homepage-portfolio-item {
    flex-basis: calc((100% - .5rem) / 2);
  }
  .publication-grid .publication-card,
  .exhibition-grid .exhibition-card {
    flex-basis: 100%;
  }
}


/* MF1.8 — sharper photographic-series thumbnails.
   Use larger responsive WordPress sources; avoid CSS effects that soften raster detail. */
.post-series-gallery .mf-series-gallery-item img {
  image-rendering: auto;
  filter: none;
  transform: none;
  backface-visibility: visible;
}


/* MF1.9 — homepage sequencing, logo header, mobile menu, tighter post title spacing. */
.site-logo { display:block; flex:0 0 auto; text-decoration:none; }
.site-logo img { display:block; width:clamp(105px, 8vw, 145px); height:auto; }
.menu-toggle { display:none; appearance:none; border:0; background:transparent; padding:.5rem 0 .5rem .75rem; cursor:pointer; }
.menu-toggle span { display:block; width:24px; height:1px; margin:5px 0; background:var(--ink); }

.home-hero-single { padding-bottom:clamp(2rem,4vw,3.5rem); align-items:start; }
.home-single-hero-image { background:transparent; align-self:start; }
.home-single-hero-image img { width:100%; aspect-ratio:4/3; object-fit:cover; }
.home-photo-band { padding:clamp(1.5rem,3vw,2.5rem) 0; }
.home-photo-band-grid { display:flex; flex-wrap:wrap; justify-content:center; gap:clamp(.45rem,.75vw,.7rem); }
.home-photo-band-item { appearance:none; display:block; flex:0 0 calc((100% - (4 * clamp(.45rem,.75vw,.7rem))) / 5); min-width:0; margin:0; padding:0; border:0; background:transparent; cursor:zoom-in; }
.home-photo-band-item img { display:block; width:100%; aspect-ratio:4/3; object-fit:cover; background:#efefec; image-rendering:auto; filter:none; transform:none; }
.home-photo-band-item:focus-visible { outline:1px solid var(--ink); outline-offset:3px; }

/* Put single-post titles immediately beneath the persistent header. */
.post-content-page { padding-top:.75rem !important; }
.single-header { margin-top:0 !important; margin-bottom:clamp(1.25rem,2vw,2rem); }
.single-header h1 { margin-top:0 !important; }

@media (max-width:1000px) {
  .home-photo-band-item { flex-basis:calc((100% - (2 * .6rem)) / 3); }
}

@media (max-width:800px) {
  .site-header { padding:.65rem 0; }
  .header-inner { position:relative; gap:1rem; }
  .site-logo img { width:115px; }
  .menu-toggle { display:block; margin-left:auto; }
  .main-nav { display:none; position:absolute; z-index:1000; top:calc(100% + .65rem); left:-1rem; right:-1rem; padding:1rem; background:#fff; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
  .main-nav.is-open { display:block; }
  .main-nav ul { display:flex; flex-direction:column; gap:0; }
  .main-nav li { border-bottom:1px solid var(--line); }
  .main-nav li:last-child { border-bottom:0; }
  .main-nav a { display:block; padding:.8rem 0; font-size:.78rem; }
  .hero.home-hero-single { grid-template-columns:1fr; gap:2rem; padding:2rem 0 1.25rem; }
  .home-photo-band { padding:1.25rem 0; }
  .home-photo-band-grid { gap:.5rem; }
  .home-photo-band-item { flex-basis:calc((100% - .5rem) / 2); }
  .post-content-page { padding-top:.5rem !important; }
}


/* MF1.9.2 — homepage header/hero proportion adjustments. */

/* Approximately 50% larger than MF1.9.1, while remaining restrained. */
.site-logo img {
  width: clamp(158px, 12vw, 215px);
  height: auto;
}

/* Bring the opening spread much closer to the header and vertically align both artworks. */
.hero.home-hero-single {
  align-items: center;
  padding-top: clamp(.75rem, 1.5vw, 1.25rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

/* Make both hero columns center against one another rather than pinning to their top edges. */
.hero.home-hero-single .hero-statement-image,
.hero.home-hero-single .home-single-hero-image {
  align-self: center;
}

@media (max-width: 800px) {
  .site-logo img {
    width: 145px;
  }

  .hero.home-hero-single {
    align-items: stretch;
    padding-top: .75rem;
    padding-bottom: 1.25rem;
    gap: 1.25rem;
  }
}


/* MF1.9.4 — final vertical-rhythm cleanup. */

/* Single posts: keep the title/byline and opening gallery as one compact unit. */
.single-header {
  margin-bottom: .85rem !important;
}
.single-header .provenance {
  margin-top: .35rem;
  margin-bottom: 0 !important;
}
.post-gallery {
  margin-top: 0 !important;
}

/* Homepage image bands already establish the visual break.
   Do not add a second rule/padding stack before the section that follows. */
.home-photo-band + .section {
  padding-top: 2rem;
}

/* Text: the section rule is sufficient; the first essay must not create a second line. */
.writing-section {
  padding-top: 2rem !important;
}
.writing-section > .essay-row:first-of-type {
  border-top: 0 !important;
  padding-top: 0 !important;
}

/* Media Kit / Contact: bring the content much closer to the rule above it. */
.media-contact-row {
  padding-top: 2rem !important;
}

@media (max-width: 800px) {
  .single-header {
    margin-bottom: .65rem !important;
  }
  .single-header .provenance {
    margin-top: .25rem;
  }
  .home-photo-band + .section,
  .writing-section,
  .media-contact-row {
    padding-top: 1.5rem !important;
  }
}


/* MF1.9.5 — tighter final homepage spacing.
   Keep internal stylesheet slug mf1-9-3 so Customizer image selections persist. */

/* Text section should end close to its divider, not leave a large dead zone. */
.writing-section {
  padding-bottom: 1.25rem !important;
  margin-bottom: 0 !important;
}

.writing-section .essay-row:last-child,
.writing-section > *:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Collapse the space before Media Kit / Contact. */
.media-contact-row {
  margin-top: 0 !important;
  padding-top: 1.25rem !important;
  padding-bottom: 2rem !important;
}

/* The rule itself should sit close to the content above and below. */
.media-contact-row {
  border-top: 1px solid #d9d9d9;
}

/* If the section immediately before media/contact already draws a bottom rule,
   remove it so there is only one separator. */
.writing-section,
.home-photo-band:last-of-type {
  border-bottom: 0 !important;
}

/* Reduce any generic section spacing that may be stacking here. */
.writing-section + .media-contact-row,
.section + .media-contact-row {
  margin-top: 0 !important;
}

/* Make the final text block and media/contact feel like consecutive sections. */
.writing-section + .media-contact-row {
  padding-top: 1.25rem !important;
}

@media (max-width: 800px) {
  .writing-section {
    padding-bottom: 1rem !important;
  }

  .media-contact-row,
  .writing-section + .media-contact-row {
    padding-top: 1rem !important;
    padding-bottom: 1.5rem !important;
  }
}


/* MF1.10 — Journal: continuous photographic notebook using the existing Memory Fog site chrome. */
.journal-page{padding:clamp(1.25rem,2.5vw,2.5rem) 0 4rem}
.journal-shell{width:min(var(--content),calc(100% - 3rem));margin:0 auto}
.journal-page-header{margin:0 0 clamp(2.5rem,5vw,4.5rem)}
.journal-page-header h1{margin:0;font-size:clamp(2.6rem,5vw,4.8rem);line-height:1;font-weight:400}
.journal-entry{margin:0 0 clamp(5rem,9vw,8rem)}
.journal-entry+.journal-entry{padding-top:clamp(3.5rem,6vw,5.5rem);border-top:1px solid var(--line)}
.journal-entry-header{margin:0 0 1.5rem}
.journal-entry-title{margin:0;font-size:clamp(2rem,3.8vw,3.4rem);line-height:1.08;font-weight:400}
.journal-entry-title a{text-decoration:none}
.journal-entry-title a:hover{text-decoration:underline;text-underline-offset:.12em;text-decoration-thickness:1px}
.journal-entry-content{width:100%;font-size:1rem;line-height:1.62}
.journal-entry-content p{margin:0 0 1.2em}
.journal-entry-content h2,.journal-entry-content h3{font-weight:400;line-height:1.15;margin:2em 0 .75em}
.journal-entry-content img{display:block;height:auto;max-width:100%}
.journal-entry-content>p>img:only-child,
.journal-entry-content>img,
.journal-entry-content .wp-caption,
.journal-entry-content figure.wp-block-image,
.journal-entry-content .wp-block-image{
  width:min(var(--max),calc(100vw - 3rem));max-width:none;position:relative;left:50%;transform:translateX(-50%);
  margin-top:2rem;margin-bottom:2rem
}
.journal-entry-content .wp-caption img,.journal-entry-content figure img{width:100%}
.journal-entry-content .wp-caption-text,.journal-entry-content figcaption{
  font:.72rem/1.4 "Helvetica Neue",Helvetica,Arial,sans-serif;color:var(--muted);margin-top:.5rem
}
.journal-entry-content .gallery{
  width:min(var(--max),calc(100vw - 3rem));max-width:none;position:relative;left:50%;transform:translateX(-50%);
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem;margin:2rem 0
}
.journal-entry-content .gallery-item{margin:0}
.journal-entry-content .gallery img{width:100%;height:auto;border:0!important}
.journal-entry-meta{margin-top:1.75rem;font:.72rem/1.4 "Helvetica Neue",Helvetica,Arial,sans-serif;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
.journal-sentinel{min-height:5rem;display:flex;justify-content:center;align-items:center;font:.68rem/1.4 "Helvetica Neue",Helvetica,Arial,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.journal-return{padding-top:1.25rem;border-top:1px solid var(--line);font:.74rem/1.4 "Helvetica Neue",Helvetica,Arial,sans-serif;letter-spacing:.05em;text-transform:uppercase}
.journal-single-page .journal-entry{margin-bottom:3rem}
@media(max-width:800px){
  .journal-page{padding-top:1rem}
  .journal-shell{width:calc(100% - 2rem)}
  .journal-page-header{margin-bottom:2.5rem}
  .journal-entry{margin-bottom:4rem}
  .journal-entry+.journal-entry{padding-top:3rem}
  .journal-entry-content>p>img:only-child,
  .journal-entry-content>img,
  .journal-entry-content .wp-caption,
  .journal-entry-content figure.wp-block-image,
  .journal-entry-content .wp-block-image,
  .journal-entry-content .gallery{width:calc(100vw - 2rem)}
  .journal-entry-content .gallery{grid-template-columns:1fr}
}


/* MF1.10.1 — journal/title refinement */
.journal-page{padding-top:clamp(2rem,4vw,4rem)}
.journal-page-header{display:none!important}
.journal-entry-header{
  margin:0 0 2.5rem;
  text-align:center;
}
.journal-entry-title{
  margin:0;
  font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size:clamp(1.65rem,2.4vw,2.35rem);
  line-height:1.15;
  font-weight:400;
  letter-spacing:.08em;
}
.journal-entry-date{
  margin-top:1rem;
  font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size:.72rem;
  line-height:1.3;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--muted);
}
.journal-entry-meta{display:none!important}
@media(max-width:800px){
  .journal-page{padding-top:2rem}
  .journal-entry-header{margin-bottom:2rem}
  .journal-entry-title{font-size:1.5rem;letter-spacing:.06em}
  .journal-entry-date{font-size:.66rem}
}


/* MF1.10.2 — Front-page contact separation */
.contact-break{display:block;height:.7rem;}

/* MF1.10.2 — Press release */
.press-release-page{padding:clamp(2.25rem,4vw,4rem) 0 clamp(4rem,7vw,7rem);}
.press-release-shell{width:min(760px,calc(100% - 3rem));margin:0 auto;}
.press-release-copy{font-size:1rem;line-height:1.6;}
.press-release-copy p{margin:0 0 1.25em;}
.press-release-copy a{text-underline-offset:.12em;}
.press-release-divider{margin:1.8rem 0!important;}
.press-release-contact{margin-top:2rem!important;}
.press-release-logo{margin-top:clamp(3.5rem,7vw,6rem);text-align:center;}
.press-release-logo img{display:block;width:min(240px,55%);height:auto;margin:0 auto;}
@media(max-width:800px){
  .press-release-page{padding-top:2rem;}
  .press-release-shell{width:calc(100% - 2rem);}
  .press-release-copy{font-size:.98rem;line-height:1.58;}
  .press-release-logo img{width:min(220px,64%);}
}
