:root {
  --bg: #0c0c0b;
  --bg-soft: #171715;
  --text: #f6f2ea;
  --muted: rgba(246, 242, 234, 0.68);
  --faint: rgba(246, 242, 234, 0.12);
  --paper: #ede4d5;
  --rust: #a84b2d;
  --steel: #8e9897;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}
body.modal-open, body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }

.page-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 18%, rgba(168,75,45,0.22), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(142,152,151,0.16), transparent 24%),
    linear-gradient(135deg, #090909 0%, #11100e 54%, #17130f 100%);
}

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 24px clamp(18px, 4vw, 58px);
  background: linear-gradient(to bottom, rgba(8,8,8,0.66), rgba(8,8,8,0));
}

.site-header.dark {
  background: rgba(9,9,8,0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--faint);
}

.logo {
  justify-self: start;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: .05em;
  font-size: 1rem;
  opacity: .86;
}

.artist-name {
  justify-self: end;
  font-weight: 900;
  font-style: italic;
  font-size: clamp(1.6rem, 4vw, 4.5rem);
  letter-spacing: .01em;
  text-shadow: 0 8px 28px rgba(0,0,0,.34);
}

.nav-toggle {
  display: none;
  justify-self: center;
  width: 44px; height: 44px;
  border: 1px solid var(--faint);
  border-radius: 999px;
  background: rgba(0,0,0,.34);
  color: white;
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.42);
  color: white;
  padding: 11px 20px;
  border-radius: 4px;
  min-width: 126px;
  text-align: center;
  font-weight: 900;
  font-style: italic;
  letter-spacing: .02em;
  transition: transform 220ms var(--ease), background 220ms var(--ease), border 220ms var(--ease);
}

.nav-link:hover, .nav-link.active {
  transform: translateY(-2px);
  background: rgba(0,0,0,0.66);
  border-color: rgba(255,255,255,0.26);
}

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 130px 24px 80px;
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,0.20), rgba(0,0,0,0.22)),
    var(--hero-image);
  background-position: center;
  background-size: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 45%, transparent 0 24%, rgba(0,0,0,0.24) 60%, rgba(0,0,0,0.48) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.58));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, 980px);
  text-align: center;
  transform: translateY(34px);
}

.hero-button-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-button {
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.46);
  color: white;
  min-width: 170px;
  padding: 14px 22px;
  border-radius: 4px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: .02em;
  box-shadow: 0 12px 36px rgba(0,0,0,.22);
  backdrop-filter: blur(4px);
  transition: transform 220ms var(--ease), background 220ms var(--ease), border 220ms var(--ease);
}

.hero-button:hover {
  transform: translateY(-3px);
  background: rgba(0,0,0,0.68);
  border-color: rgba(255,255,255,0.28);
}

.hero-footer {
  position: absolute;
  right: clamp(18px, 4vw, 58px);
  bottom: 30px;
  z-index: 2;
  font-weight: 900;
  font-style: italic;
  letter-spacing: .02em;
  font-size: clamp(1.1rem, 2vw, 2rem);
}

.content {
  padding: 140px clamp(20px, 6vw, 92px) 80px;
}

.page-title-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--faint);
}

.kicker {
  margin: 0 0 14px;
  color: #d8905f;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .78rem;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: .95;
  font-size: clamp(3.4rem, 8vw, 8rem);
}

.description {
  color: var(--muted);
  line-height: 1.7;
  max-width: 600px;
  margin: 0;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 28px 0;
}

.search {
  width: min(100%, 420px);
  border: 1px solid var(--faint);
  background: rgba(255,255,255,.045);
  color: var(--text);
  border-radius: 999px;
  padding: 14px 18px;
  outline: none;
}

.count { color: var(--muted); }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  border: 1px solid var(--faint);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,255,255,.035);
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  animation: rise 700ms var(--ease) forwards;
  transition: transform 260ms var(--ease), border 260ms var(--ease), background 260ms var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.06);
}

.image-wrap {
  aspect-ratio: 1 / .76;
  background: #070707;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 420ms var(--ease);
}

.card:hover img { transform: scale(1.035); }

.card-info {
  padding: 18px;
}

.card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: -.02em;
}

.card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .95rem;
}

.placeholder {
  grid-column: 1 / -1;
  border: 1px solid var(--faint);
  border-radius: 26px;
  padding: 36px;
  background: rgba(255,255,255,.04);
  color: var(--muted);
  line-height: 1.7;
}

.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
}

.panel {
  border: 1px solid var(--faint);
  border-radius: 30px;
  background: rgba(255,255,255,.04);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow);
}

.panel p {
  color: var(--muted);
  line-height: 1.85;
  font-size: 1.05rem;
}

.form {
  display: grid;
  gap: 14px;
}

.form input, .form textarea {
  width: 100%;
  border: 1px solid var(--faint);
  background: rgba(255,255,255,.045);
  color: var(--text);
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
}

.form textarea { min-height: 150px; resize: vertical; }

.submit {
  border: 1px solid transparent;
  background: var(--paper);
  color: #15120f;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 800;
  cursor: pointer;
}

.site-footer {
  border-top: 1px solid var(--faint);
  padding: 34px clamp(20px, 6vw, 92px) 52px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(14px);
}

.modal.open { display: flex; }

.modal-panel {
  width: min(1120px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  border: 1px solid var(--faint);
  border-radius: 28px;
  background: #11110f;
  box-shadow: var(--shadow);
}

.modal-image {
  min-height: 420px;
  display: grid;
  place-items: center;
  background: #060606;
  padding: 22px;
}

.modal-image img {
  max-height: calc(100vh - 130px);
  object-fit: contain;
}

.modal-content {
  border-left: 1px solid var(--faint);
  padding: clamp(24px, 4vw, 44px);
}

.close-modal {
  float: right;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--faint);
  background: rgba(255,255,255,.06);
  color: white;
  cursor: pointer;
}

.modal-content h2 {
  margin: 38px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: .95;
  letter-spacing: -.055em;
}

.modal-content p { color: var(--muted); line-height: 1.75; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1020px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid, .modal-panel { grid-template-columns: 1fr; }
  .modal-content { border-left: 0; border-top: 1px solid var(--faint); }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto 1fr;
    padding: 16px 18px;
  }
  .logo { display: none; }
  .artist-name {
    font-size: 1.5rem;
    justify-self: end;
  }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 74px 14px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--faint);
    border-radius: 20px;
    background: rgba(9,9,8,.96);
    box-shadow: var(--shadow);
  }
  body.menu-open .main-nav { display: flex; }
  .nav-link { min-width: unset; }
  .hero-button-grid { align-items: stretch; flex-direction: column; }
  .hero-button { width: min(100%, 320px); margin: 0 auto; }
  .page-title-row { display: block; }
  .description { margin-top: 18px; }
  .gallery { grid-template-columns: 1fr; }
}

/* ===== v2 layout fixes ===== */

/* Home page uses only the centered buttons, not the full top nav. */
body.home-page .site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: clamp(20px, 3vw, 46px);
  background: linear-gradient(to bottom, rgba(0,0,0,.42), transparent);
}

body.home-page .main-nav,
body.home-page .nav-toggle {
  display: none;
}

body.home-page .logo {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.4vw, 1.45rem);
  letter-spacing: .05em;
  margin-top: .35rem;
}

body.home-page .artist-name {
  justify-self: unset;
  text-align: right;
  max-width: min(48vw, 720px);
  font-size: clamp(2.7rem, 6.6vw, 7.2rem);
  line-height: .82;
  white-space: normal;
  overflow-wrap: normal;
}

body.home-page .hero {
  min-height: 100vh;
  padding: 0 clamp(18px, 4vw, 60px);
  background-color: #050505;
  background-position: center center;
  background-size: cover;
}

body.home-page .hero-content {
  width: min(100%, 1120px);
  transform: translateY(18px);
}

body.home-page .hero-button-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 16px;
  align-items: center;
  justify-content: center;
}

body.home-page .hero-button {
  min-width: 0;
  width: 100%;
  padding: 16px 18px;
  border-radius: 5px;
  background: rgba(0,0,0,.48);
  border-color: rgba(255,255,255,.13);
}

body.home-page .hero-footer {
  right: clamp(20px, 4vw, 58px);
  bottom: clamp(22px, 4vw, 46px);
}

/* Inner pages: keep nav readable without forcing huge artist name off-screen. */
body:not(.home-page) .site-header {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
}

body:not(.home-page) .artist-name {
  font-size: clamp(1.1rem, 1.8vw, 2rem);
  line-height: 1;
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
}

body:not(.home-page) .main-nav {
  overflow-x: auto;
  padding-bottom: 3px;
  justify-content: center;
}

body:not(.home-page) .nav-link {
  min-width: auto;
  white-space: nowrap;
  padding: 10px 16px;
}

@media (max-width: 980px) {
  body.home-page .hero-button-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }
}

@media (max-width: 760px) {
  body.home-page .site-header {
    align-items: flex-start;
  }

  body.home-page .artist-name {
    max-width: 68vw;
    font-size: clamp(2.2rem, 14vw, 4.6rem);
  }

  body.home-page .hero-content {
    transform: translateY(40px);
  }

  body.home-page .hero-button-grid {
    grid-template-columns: 1fr;
    width: min(100%, 340px);
    margin: 0 auto;
    gap: 11px;
  }

  body.home-page .hero-button {
    padding: 13px 16px;
  }

  body:not(.home-page) .main-nav {
    overflow-x: visible;
  }
}


/* ===== v3 fixes: actual background image element + cleaner pages nav/gallery ===== */
body.home-page .hero {
  background-image: none !important;
  background: #030303 !important;
  position: relative;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .88;
  filter: contrast(1.04) saturate(.95) brightness(.76);
  z-index: 0;
}

body.home-page .hero::before {
  z-index: 1;
  background:
    radial-gradient(circle at 50% 48%, rgba(0,0,0,.08) 0 22%, rgba(0,0,0,.18) 58%, rgba(0,0,0,.62) 100%),
    linear-gradient(to bottom, rgba(0,0,0,.12), rgba(0,0,0,.48));
}

body.home-page .site-header {
  z-index: 5;
}

body.home-page .hero-content,
body.home-page .hero-footer {
  z-index: 2;
}

body.home-page .artist-name {
  max-width: min(42vw, 620px);
}

body.home-page .hero-button-grid {
  grid-template-columns: repeat(5, minmax(135px, 1fr));
  max-width: 1040px;
  margin: 0 auto;
}

body.home-page .hero-button {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Inner pages have a dark gallery background and full tab row including Home. */
body:not(.home-page) .page-shell {
  background:
    radial-gradient(circle at 15% 5%, rgba(168,75,45,.08), transparent 28%),
    linear-gradient(135deg, #050505 0%, #0c0c0b 60%, #11100e 100%);
}

body:not(.home-page) .site-header {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 18px clamp(16px, 3vw, 42px);
}

body:not(.home-page) .main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
  overflow: visible;
}

body:not(.home-page) .nav-link {
  min-width: 82px;
  padding: 10px 13px;
  font-size: .92rem;
}

body:not(.home-page) .content {
  padding-top: 150px;
}

.gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.image-wrap {
  aspect-ratio: 1 / .78;
}

@media (max-width: 1100px) {
  body.home-page .hero-button-grid {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  body.home-page .hero-button-grid {
    grid-template-columns: 1fr;
  }

  body:not(.home-page) .main-nav {
    display: none;
  }

  body.menu-open:not(.home-page) .main-nav {
    display: flex;
  }

  body:not(.home-page) .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .gallery {
    grid-template-columns: 1fr !important;
  }
}


/* ===== v4: Dad requested cover changes + sexier type + click-to-open menu ===== */

/* A slightly more editorial/luxury type stack. */
body {
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

h1,
.card h2,
.modal-content h2,
.logo {
  font-family: Didot, "Bodoni 72", "Bodoni 72 Smallcaps", Georgia, serif;
}

.nav-link,
.hero-button,
.artist-name,
.cover-menu-toggle {
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-style: italic;
  font-weight: 800;
}

/* COVER ONLY */
body.home-page .site-header.home-cover-header {
  display: flex !important;
  align-items: flex-start;
  justify-content: space-between;
  padding: clamp(18px, 2.8vw, 42px);
  background: transparent !important;
  color: #050505;
}

.home-brand-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

body.home-page .logo {
  display: block !important;
  color: #050505;
  font-size: clamp(1.2rem, 1.65vw, 1.8rem);
  letter-spacing: .03em;
  text-shadow: 0 1px 18px rgba(255,255,255,.28);
}

.cover-menu-toggle {
  display: inline-flex;
  width: 48px;
  height: 42px;
  border: 1px solid rgba(0,0,0,.35);
  background: rgba(255,255,255,.08);
  color: #050505;
  border-radius: 4px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  backdrop-filter: blur(5px);
  transition: transform 220ms var(--ease), background 220ms var(--ease);
}

.cover-menu-toggle:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.18);
}

.cover-menu-toggle span {
  width: 22px;
  height: 2px;
  background: #050505;
  display: block;
  transition: transform 260ms var(--ease), opacity 260ms var(--ease);
}

body.cover-menu-open .cover-menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.cover-menu-open .cover-menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.cover-menu-open .cover-menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body.home-page .artist-name {
  color: #050505;
  font-size: clamp(1.35rem, 2.2vw, 2.8rem) !important;
  line-height: .92;
  max-width: 260px;
  text-align: right;
  letter-spacing: -.02em;
  text-shadow: 0 1px 18px rgba(255,255,255,.32);
}

body.home-page .hero {
  background: #f1eee6 !important;
}

body.home-page .hero-bg-img {
  opacity: 1;
  filter: brightness(1.22) contrast(1.02) saturate(1.05);
}

/* Lighter overlay so the artwork stays bright. */
body.home-page .hero::before {
  background:
    radial-gradient(circle at 50% 48%, rgba(255,255,255,.10) 0 20%, rgba(255,255,255,.02) 46%, rgba(0,0,0,.06) 100%),
    linear-gradient(to bottom, rgba(255,255,255,.08), rgba(255,255,255,.02)) !important;
}

/* Hide cover menu until hamburger is clicked. */
body.home-page .cover-menu {
  opacity: 0;
  pointer-events: none;
  transform: translateY(36px) scale(.98);
  transition: opacity 360ms var(--ease), transform 420ms var(--ease);
}

body.home-page.cover-menu-open .cover-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(20px) scale(1);
}

body.home-page .hero-button {
  color: #050505;
  background: rgba(255,255,255,.26);
  border: 1px solid rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
  box-shadow: 0 14px 44px rgba(0,0,0,.08);
  opacity: 0;
  transform: translateY(18px);
}

body.home-page.cover-menu-open .hero-button {
  animation: coverButtonIn 560ms var(--ease) forwards;
}

body.home-page.cover-menu-open .hero-button:nth-child(1) { animation-delay: 30ms; }
body.home-page.cover-menu-open .hero-button:nth-child(2) { animation-delay: 80ms; }
body.home-page.cover-menu-open .hero-button:nth-child(3) { animation-delay: 130ms; }
body.home-page.cover-menu-open .hero-button:nth-child(4) { animation-delay: 180ms; }
body.home-page.cover-menu-open .hero-button:nth-child(5) { animation-delay: 230ms; }
body.home-page.cover-menu-open .hero-button:nth-child(6) { animation-delay: 280ms; }
body.home-page.cover-menu-open .hero-button:nth-child(7) { animation-delay: 330ms; }
body.home-page.cover-menu-open .hero-button:nth-child(8) { animation-delay: 380ms; }
body.home-page.cover-menu-open .hero-button:nth-child(9) { animation-delay: 430ms; }

body.home-page .hero-button:hover {
  background: rgba(255,255,255,.46);
  border-color: rgba(0,0,0,.62);
}

@keyframes coverButtonIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Remove old bottom label permanently. */
.hero-footer {
  display: none !important;
}

/* Portfolio pages: top tabs including Home, dark background, 3 per row desktop */
body:not(.home-page) .site-header {
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  padding: 18px clamp(16px, 3vw, 42px);
}

body:not(.home-page) .main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  overflow: visible;
}

body:not(.home-page) .nav-link {
  min-width: 82px;
  padding: 10px 13px;
  font-size: .9rem;
}

body:not(.home-page) .artist-name {
  font-size: clamp(1rem, 1.6vw, 1.7rem) !important;
  max-width: 180px;
  white-space: normal;
}

.gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.image-placeholder {
  min-height: 100%;
  width: 100%;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 26px;
  text-align: center;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(168,75,45,.18), rgba(255,255,255,.035)),
    #111;
}

.placeholder-title {
  font-family: Didot, "Bodoni 72", Georgia, serif;
  font-size: 1.35rem;
}

.placeholder-dimensions,
.placeholder-path {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.4;
}

.placeholder-path {
  font-size: .75rem;
}

@media (max-width: 1100px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  body.home-page .artist-name {
    max-width: 190px;
    font-size: 1.45rem !important;
  }

  body.home-page.cover-menu-open .cover-menu {
    transform: translateY(36px) scale(1);
  }

  .gallery {
    grid-template-columns: 1fr !important;
  }
}


/* ===== v5 typography + populated Studio / Installed / 3-D polish ===== */
body {
  font-family: "Optima", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: .005em;
}

h1,
.card h2,
.modal-content h2,
.logo {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 400;
}

body.home-page .artist-name,
body:not(.home-page) .artist-name {
  font-family: "Optima", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-weight: 500 !important;
  font-style: italic;
  letter-spacing: .01em;
}

body.home-page .artist-name {
  font-size: clamp(1.25rem, 2vw, 2.35rem) !important;
  max-width: 240px;
}

.nav-link,
.hero-button,
.cover-menu-toggle {
  font-family: "Optima", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-weight: 650;
}

.card-info .materials,
.modal-content [data-modal-materials] {
  color: rgba(246,242,234,.58);
  font-size: .86rem;
  line-height: 1.45;
  margin-top: 7px;
}

.card h2 {
  font-size: 1.28rem;
}

.content {
  padding-bottom: 110px;
}

.gallery {
  align-items: stretch;
}

.card {
  min-height: 100%;
}

.card-info {
  min-height: 132px;
}


/* ===== v6: typography sizing, cleaner image cards, iOS-friendly polish ===== */
body.home-page .artist-name {
  font-size: clamp(1.45rem, 2.25vw, 2.7rem) !important;
  font-weight: 500 !important;
}

.page-title-row h1 {
  font-size: clamp(1.55rem, 2.2vw, 2.15rem) !important;
  line-height: 1.05;
}

.kicker {
  font-size: .72rem;
  letter-spacing: .18em;
}

.description,
.toolbar .count,
.search {
  font-size: .92rem;
}

.card h2 {
  font-size: 1rem !important;
  line-height: 1.15;
}

.card-info p,
.card-info .materials {
  font-size: .8rem !important;
  line-height: 1.35;
}

.card-info {
  min-height: auto !important;
  padding-top: 14px;
}

.card.plain-card .card-info {
  display: none !important;
}

.image-placeholder {
  min-height: 100%;
  display: grid;
  place-items: center;
  color: rgba(246,242,234,.72);
  font-size: .9rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
}

.placeholder-title,
.placeholder-dimensions,
.placeholder-path {
  font-size: .9rem !important;
}

.modal-content h2,
.modal-content [data-modal-title] {
  font-size: clamp(1.2rem, 1.6vw, 1.55rem) !important;
  line-height: 1.1;
}

.modal-content [data-modal-dimensions],
.modal-content [data-modal-materials],
.modal-content [data-modal-kicker] {
  font-size: .88rem;
  line-height: 1.4;
}

.modal-panel {
  width: min(1000px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
}

.page-title-row {
  gap: 14px;
}

@media (max-width: 900px) {
  .page-title-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .page-title-row h1 {
    font-size: 1.5rem !important;
  }

  .main-nav {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 6px;
  }

  .nav-link {
    white-space: nowrap;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .gallery {
    grid-template-columns: 1fr !important;
  }

  .search {
    width: 100%;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .modal-panel {
    width: calc(100vw - 18px);
    max-height: calc(100vh - 18px);
  }

  .modal-content {
    padding: 18px;
  }
}


/* ===== v7: smaller About / Contact typography + real bio ===== */
.about-grid h1 {
  font-size: clamp(2.15rem, 4.2vw, 4.6rem) !important;
  line-height: 0.98;
  max-width: 560px;
}

.bio-panel {
  max-width: 980px;
}

.bio-panel p,
.panel p,
.form input,
.form textarea,
.submit {
  font-size: clamp(0.94rem, 1vw, 1.02rem) !important;
}

.bio-panel p {
  margin: 0 0 1.05rem;
  line-height: 1.72;
}

.bio-panel blockquote {
  margin: 1.1rem 0 1.2rem;
  padding-left: 1.25rem;
  border-left: 1px solid rgba(246,242,234,.28);
  color: rgba(246,242,234,.72);
  line-height: 1.72;
  font-size: clamp(.92rem, 1vw, 1rem);
}

.about-grid:has(.bio-panel),
.about-grid:has(form.form) {
  grid-template-columns: minmax(260px, .72fr) minmax(320px, 1.28fr);
  gap: clamp(26px, 5vw, 70px);
}

@media (max-width: 900px) {
  .about-grid h1 {
    font-size: clamp(1.9rem, 10vw, 3.2rem) !important;
  }

  .about-grid:has(.bio-panel),
  .about-grid:has(form.form) {
    grid-template-columns: 1fr;
  }
}

/* Clean modal + typography cleanup */

body,
button,
input,
textarea,
.nav-link,
.hero-button,
.artist-name,
.cover-menu-toggle,
.description,
.panel,
.card-info,
.modal-content {
  font-family: Optima, "Avenir Next", "Helvetica Neue", Arial, sans-serif !important;
}

h1,
h2,
h3,
.card h2,
.modal-content h2,
.logo {
  font-family: Optima, "Avenir Next", "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em;
}

.page-title-row h1 {
  font-size: clamp(1.45rem, 2vw, 2rem) !important;
  font-weight: 500 !important;
  line-height: 1.08;
}

.card h2 {
  font-size: 0.98rem !important;
  line-height: 1.2;
  font-weight: 500 !important;
}

.card-info p,
.card-info .materials {
  font-size: 0.78rem !important;
}

.modal-panel {
  width: min(1040px, calc(100vw - 34px));
  max-height: calc(100vh - 34px);
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.62fr);
  border-radius: 24px;
}

.modal-image {
  min-height: min(64vh, 560px);
  padding: 18px;
  background: #050505;
}

.modal-image img {
  max-height: calc(100vh - 96px);
  max-width: 100%;
  object-fit: contain;
}

.modal-content {
  padding: clamp(22px, 3vw, 36px);
}

.modal-content h2,
.modal-content [data-modal-title] {
  font-size: clamp(1.08rem, 1.35vw, 1.38rem) !important;
  line-height: 1.18;
  margin-top: 26px;
}

.modal-content [data-modal-dimensions],
.modal-content [data-modal-materials],
.modal-content [data-modal-kicker] {
  font-size: 0.82rem !important;
  line-height: 1.45;
}

.modal-content [data-modal-kicker] {
  letter-spacing: 0.16em;
}

.close-modal {
  width: 38px;
  height: 38px;
  font-size: 1.05rem;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 240px;
  display: grid;
  place-items: center;
  color: rgba(246, 242, 234, 0.55);
  font-size: 0.85rem;
  background: #050505;
}

.plain-card .image-wrap {
  aspect-ratio: 1 / 0.82;
}

.plain-card {
  background: transparent;
}

@media (max-width: 760px) {
  .modal-panel {
    grid-template-columns: 1fr;
    width: calc(100vw - 18px);
    max-height: calc(100vh - 18px);
  }

  .modal-image {
    min-height: 48vh;
  }

  .modal-content {
    border-left: 0;
    border-top: 1px solid var(--faint);
  }
}
.card-image,
.gallery-card .image-wrap,
.art-card .image-wrap,
.work-card .image-wrap {
  background: #111;
}

.card-image img,
.gallery-card img,
.art-card img,
.work-card img,
.grid img {
  object-fit: contain !important;
  object-position: center center !important;
  background: #111;
}

/* Gives vertical/skinny sculptures enough room on the grid */
.card-image,
.gallery-card .image-wrap,
.art-card .image-wrap,
.work-card .image-wrap {
  aspect-ratio: 4 / 3;
}

/* A little taller on desktop so the full shape reads better */
@media (min-width: 900px) {
  .card-image,
  .gallery-card .image-wrap,
  .art-card .image-wrap,
  .work-card .image-wrap {
    aspect-ratio: 1 / 1;
  }
}

/* =========================================================
   FINAL GRID IMAGE FIX
   Shows the entire artwork image in the grid without cropping.
   Paste/keep this at the VERY BOTTOM of style.css.
   ========================================================= */

.gallery .image-wrap,
.card .image-wrap,
.plain-card .image-wrap {
  aspect-ratio: auto !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  background: #070707;
  display: block !important;
}

.gallery .image-wrap img,
.card .image-wrap img,
.plain-card .image-wrap img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  padding: 12px !important;
  background: #070707;
  transform: none !important;
}

/* Prevent hover zoom from cutting off the artwork */
.card:hover img {
  transform: none !important;
}

/* Keeps the card text neat below variable-height images */
.card-info {
  min-height: auto !important;
}
/* =========================================================
   REMOVE EXTRA BLANK SPACE UNDER CARD DESCRIPTIONS
   Makes each artwork card shrink-wrap its own image + text.
   ========================================================= */

   .gallery {
    align-items: start !important;
  }
  
  .card {
    height: auto !important;
    min-height: 0 !important;
    align-self: start !important;
  }
  
  .card-info {
    min-height: 0 !important;
    height: auto !important;
    padding-bottom: 18px !important;
  }
  
  /* Keeps image area from forcing card height */
  .image-wrap {
    height: auto !important;
    min-height: 0 !important;
  }
  
  /* Makes the image define its own natural height */
  .image-wrap img {
    height: auto !important;
    max-height: none !important;
  }
  /* =========================================================
   MASONRY / DYNAMIC GALLERY LAYOUT
   Lets artwork cards stack naturally instead of forcing rows.
   ========================================================= */

.gallery {
  display: block !important;
  column-count: 3;
  column-gap: 18px;
}

.card {
  display: inline-block !important;
  width: 100% !important;
  margin: 0 0 18px !important;
  break-inside: avoid;
  page-break-inside: avoid;
  -webkit-column-break-inside: avoid;
}

/* Keep images natural and uncropped */
.image-wrap {
  aspect-ratio: auto !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.image-wrap img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  padding: 12px !important;
  transform: none !important;
}

.card:hover img {
  transform: none !important;
}

/* Tablet */
@media (max-width: 1100px) {
  .gallery {
    column-count: 2;
  }
}

/* Phone */
@media (max-width: 640px) {
  .gallery {
    column-count: 1;
  }
}
