/* ============================================================
   UTILITARIAN MUD — poster page
   Desktop: one fixed-proportion poster canvas (1440 x 2363),
   absolutely composed like a printed exhibition wall.
   Mobile:   a flowing "poster edition" — same works, 2 / 1 cols.
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { background: #EBEBEB; }            /* matches painting/image background R235 G235 B235 */

body {
  background: #EBEBEB;
  color: #16150f;
  font-family: Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
}

/* ---------- the poster canvas ---------- */
.poster {
  container-type: inline-size;
  position: relative;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  aspect-ratio: 1440 / 3073;           /* canvas extended +340: room for bottom footer copy */
}

/* ---------- masthead (logo + exhibition caption) ---------- */
.masthead { position: static; }   /* children are positioned against .poster */

.logo {
  position: absolute;
  left: 15.3%;                          /* center ~48% - nudge toward page center */
  top: 0.27%;                           /* same design pos: ~8 / 2933 */
  width: 65.1%;                         /* 46.5% x 1.4 */
  height: auto;
  display: block;
}

.caption {
  position: absolute;
  left: 5%;                             /* left-aligned, unchanged */
  top: 22.8%;                           /* same design pos as 24.7% of 2703: ~668 / 2933 */
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 31px;                      /* fallback */
  font-size: 2.05cqw;
  line-height: 1.32;
  color: #16150f;
}

/* ---------- small statement copy under the caption (left) ---------- */
.blurb {
  position: absolute;
  left: 5%;
  top: 26.9%;                           /* ~826 / 3073: snug under the caption text */
  width: 42%;                           /* column; clears tall artwork no.3 at x=753 */
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-style: normal;
  font-weight: 400;
  font-size: 18px;                      /* fallback */
  font-size: 1.25cqw;
  line-height: 1.5;
  color: #16150f;
}
.blurb p { margin: 0 0 0.55em; }
.blurb p:last-child { margin-bottom: 0; }
.blurb .blurb-hint {
  font-style: italic;
  font-size: 0.72em;
  margin-top: 0.4em;
}

/* ---------- masthead nav: Shop / Shows / About ---------- */
.mast-nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 19.0%;                           /* same design pos as 20.6% of 2703: ~557 / 2933 */
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2.6cqw;
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-size: 3.1cqw;                    /* double previous 1.55cqw */
  letter-spacing: 0.12em;
  color: #000000;
  white-space: nowrap;
}
.mast-nav a {
  color: #000000;
  text-decoration: none;
  opacity: 1;
}
.mast-nav a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.mast-nav-sep {
  opacity: 1;
  color: #000000;
  font-size: 0.9em;
}

/* ---------- About link, bottom center (below everything) ---------- */
.about-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.45%;
  display: flex;
  align-items: baseline;
  justify-content: center;
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-size: 3.1cqw;
  letter-spacing: 0.12em;
  color: #000000;
  white-space: nowrap;
}
.about-nav a {
  color: #000000;
  text-decoration: none;
  opacity: 1;
}
.about-nav a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- artist-led statement, bottom left ---------- */
.home-statement {
  position: absolute;
  left: 5%;
  bottom: 3.2%;
  width: 42%;
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-style: normal;
  font-weight: 400;
  font-size: 18px;                      /* fallback */
  font-size: 1.25cqw;
  line-height: 1.5;
  color: #16150f;
  margin: 0;
}

/* ---------- artworks ---------- */
.art {
  position: absolute;                   /* positioned per-item by site.js (%) */
  margin: 0;
  cursor: zoom-in;
}
.art.has-link { cursor: pointer; }
.art img {
  display: block;
  width: 100%;
  height: auto;                         /* natural aspect always preserved */
}
.art img { transition: opacity 0.22s ease; }
.art:hover img { opacity: 0.93; }       /* extremely restrained */
.art.has-link:hover img { opacity: 0.9; }

/* price from Big Cartel, printed under each artwork */
.art-price {
  display: block;
  text-align: center;
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-style: normal;
  font-weight: 400;
  font-size: 0.95cqw;
  line-height: 1.2;
  color: #16150f;
  margin-top: 0.5em;
  letter-spacing: 0.02em;
}

.no-js-note { padding: 6vw; font-style: italic; }

/* ============================================================
   MOBILE — same poster, scaled to fit (no re-flow, no long scroll)
   The poster is one fixed-proportion unit at every size; on a
   phone it scales down so the whole composition fits the screen,
   exactly like viewing the printed announcement.
   ============================================================ */
@media (max-width: 900px) {
  .poster { padding: 0; }
}

/* ============================================================
   MOBILE (<640px) — 2-COLUMN SCROLLING HOME GRID
   Overrides the fixed poster: artwork flows as a tall two-column
   grid (natural aspect, longer scroll), masthead/statement/About
   stack in normal flow. Desktop poster untouched (>=641px).
   ============================================================ */
@media (max-width: 640px) {
  html, body { background: #EBEBEB; }

  /* poster: drop fixed canvas, become normal flow */
  .poster {
    aspect-ratio: auto;
    height: auto;
    max-width: 640px;
    display: block;
    padding: 0 4.5vw 40px;
  }

  /* masthead: stack in normal flow, no absolute positioning */
  .masthead { position: static; display: block; }

  .logo {
    position: static;
    width: 78%;
    max-width: 420px;
    height: auto;
    display: block;
    margin: 4.5vh auto 2.2vh;
    left: auto;
    top: auto;
  }

  .caption {
    position: static;
    font-size: 4.6vw;
    line-height: 1.35;
    text-align: left;
    margin: 0 0 0.7vh;
    left: auto;
    top: auto;
  }

  .blurb {
    position: static;
    width: 100%;
    font-size: 3.4vw;
    margin: 0 0 2.6vh;
    left: auto;
    top: auto;
  }

  /* nav: keep centered under masthead */
  .mast-nav {
    position: static;
    display: flex;
    justify-content: center;
    gap: 7vw;
    font-size: 4.2vw;
    margin: 0 0 3vh;
    top: auto;
  }

  /* artworks: 2-col grid, natural aspect, longer scroll */
  #poster .art {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: calc(50% - 4px) !important;
    display: inline-block;
    vertical-align: top;
    margin: 0 0 12px;
    cursor: zoom-in;
  }
  #poster .art:nth-child(odd) { margin-right: 8px; }
  #poster .art img {
    width: 100%;
    height: auto;
    display: block;
  }
  #poster .art.sold img { opacity: 0.45; }

  /* price under each tile in the 2-col scroll */
  #poster .art .art-price {
    font-size: 3.6vw;
    margin-top: 6px;
  }

  /* footer statement + About: flow at very bottom */
  .home-statement {
    position: static;
    width: 100%;
    font-size: 3.4vw;
    line-height: 1.5;
    text-align: center;
    margin: 4vh 0 1.4vh;
    left: auto;
    right: auto;
    bottom: auto;
  }

  .about-nav {
    position: static;
    display: flex;
    justify-content: center;
    font-size: 4.2vw;
    margin: 0 0 2vh;
    left: auto;
    right: auto;
    bottom: auto;
  }
}

/* ============================================================
   LIGHTBOX — large quiet view of a single painting
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(30, 27, 20, 0.78);
  display: grid;
  place-items: center;
  z-index: 50;
  padding: 4vh 4vw;
}
.lightbox[hidden] { display: none; }

.lb-inner { position: relative; max-width: 92vw; max-height: 90vh; text-align: center; }

.lb-inner img {
  max-width: 90vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

.lb-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(235, 235, 235, 0.92);
  color: #16150f;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.lb-close:hover { background: #fff; }

.lb-caption {
  margin-top: 18px;
  color: #ebebeb;
  font-family: "EB Garamond", Georgia, serif;
  font-style: italic;
  font-size: 20px;
  line-height: 1.4;
}
.lb-title { display: block; }
.lb-meta { display: block; opacity: 0.75; font-size: 0.9em; }
.lb-sold { display: block; font-style: normal; letter-spacing: 0.22em; text-transform: uppercase; font-size: 0.7em; opacity: 0.8; }

.no-scroll { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .art img { transition: none; }
}
