/* =============================================================================
   Yellow House Art Licensing — Public Site Stylesheet
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@200;300;400;500;600;700;800&family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400;1,500;1,600&display=swap');

/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --yellow:       #ffd000;
  --orange:       #f36f21;
  --lilac:        #c7a2cc;
  --grey-stripe:  #9ca1a2;
  --green:        #bdd826;
  --footer-bg:    #5e6264;
  --text:         #626262;
  --text-muted:   #8b8b8b;
  --bg:           #ffffff;
  --font-body:    'Lexend Deca', Arial, sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, serif;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
button, input { font: inherit; }

/* ── Page wrapper ──────────────────────────────────────────────────────────── */
.site-page {
  max-width: 1280px;
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
}

/* =============================================================================
   HEADER
   ============================================================================= */

/* Brand / logo */
.site-brand {
  background: #ffffff;
  text-align: center;
  padding: 1.8rem 1.5rem 1.2rem;
}
.site-logo {
  height: 105px;
  width: auto;
  display: inline-block;
  max-width: 90%;
}
.site-tagline {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #9a9a9a;
  font-weight: 500;
}

/* Colour stripe bar */
.stripe-bar {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  height: 18px;
}
.stripe-bar span:nth-child(5n+1) { background: var(--yellow); }
.stripe-bar span:nth-child(5n+2) { background: var(--orange); }
.stripe-bar span:nth-child(5n+3) { background: var(--lilac); }
.stripe-bar span:nth-child(5n+4) { background: var(--grey-stripe); }
.stripe-bar span:nth-child(5n)   { background: var(--green); }

/* About page footer stripe */
.about-stripe-footer {
  margin-top: auto; /* pushes to bottom when inside a flex column */
}

/* Utility nav */
.utility-nav {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1.5rem;
  background: #f5f5f5;
  border-bottom: 1px solid #e5e5e5;
}
/* Nav group (dropdown wrapper) */
.site-nav-group {
  position: relative;
  display: inline-block;
}
.utility-nav .nav-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #555;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
}
.utility-nav .nav-label:hover,
.site-nav-group.is-open .nav-label { color: var(--orange); }

/* Contact — direct link in desktop nav, styled like a nav-label button */
.utility-nav .nav-direct {
  text-decoration: none;
}
.nav-caret {
  font-size: 0.6rem;
  line-height: 1;
  display: inline-block;
  transition: transform 0.2s;
}
.site-nav-group.is-open .nav-caret { transform: rotate(180deg); }

/* Dropdown menu */
.site-nav-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-top: 2px solid var(--yellow);
  box-shadow: 0 4px 14px rgba(0,0,0,0.10);
  list-style: none;
  padding: 0.4rem 0;
  z-index: 200;
  /* hidden state */
  visibility: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0s 0.15s;
  margin-top: -2px; /* bridge the gap */
}
.site-nav-group.is-open .site-nav-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.15s, transform 0.15s;
}
.site-nav-menu li a {
  display: block;
  padding: 0.42rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #555;
  text-transform: lowercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.site-nav-menu li a:hover {
  background: #fdf8e8;
  color: var(--orange);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  justify-self: end;
}
.search-bar label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #555;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.search-bar input[type="search"] {
  height: 32px;
  width: clamp(130px, 18vw, 230px);
  border: 1px solid #d0d0d0;
  background: #fff;
  padding: 0 0.65rem;
  font-size: 0.82rem;
  outline: none;
  border-radius: 0;
}
.search-bar input[type="search"]:focus { border-color: var(--yellow); }

/* House-shaped search button */
.search-house-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  flex-shrink: 0;
  gap: 0;
}
.house-roof {
  width: 0;
  height: 0;
  border-left:  12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 10px solid var(--yellow);
  display: block;
}
.house-body {
  width: 18px;
  height: 12px;
  background: var(--yellow);
  border-radius: 0 0 2px 2px;
  display: block;
}
.search-house-btn:hover .house-roof  { border-bottom-color: var(--orange); }
.search-house-btn:hover .house-body  { background: var(--orange); }

/* =============================================================================
   HERO GRID
   ============================================================================= */

/* Full-width hero artwork panel — 3 equal square columns */
.hero-art-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}
.hero-art-item {
  overflow: hidden;
  position: relative;
  aspect-ratio: 1;
}
/* All slides stacked, hidden by default */
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  min-width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}
.hero-slide.active {
  opacity: 1;
}
.hero-art-placeholder {
  position: absolute;
  inset: 0;
  background: #d0c4b0;
}

/* =============================================================================
   WELCOME BANNER
   ============================================================================= */

.welcome-banner {
  background: var(--yellow);
  color: #fff;
  text-align: center;
  padding: clamp(2rem, 4vw, 3.2rem) clamp(1.5rem, 6vw, 5rem);
}
.welcome-banner h1 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.welcome-banner p {
  max-width: 780px;
  margin: 0 auto 0.55rem;
  font-size: clamp(0.85rem, 1.3vw, 1.05rem);
  font-weight: 500;
  line-height: 1.45;
}
.welcome-closing {
  display: block;
  margin-top: 1.2rem;
  font-size: clamp(1rem, 1.8vw, 1.6rem);
  font-weight: 500;
}

/* =============================================================================
   JUST BROWSING
   ============================================================================= */

.browsing-section {
  padding: clamp(1.8rem, 3.5vw, 2.8rem) clamp(1.2rem, 2.5vw, 2rem) clamp(2rem, 4vw, 3rem);
  background: #fff;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.8rem;
}
.section-heading h2 {
  font-size: clamp(1.45rem, 2.8vw, 2.2rem);
  font-weight: 300;
  color: #8a8a8a;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}
.more-arrow-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--yellow);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  letter-spacing: -0.05em;
}
.more-arrow-btn:hover { background: var(--orange); }

/* 3-column category grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.75rem, 1.8vw, 1.8rem);
}
.category-card {
  text-align: center;
  border: 3px solid transparent;
}
.category-card.yellow { border-color: var(--yellow); }
.category-card.orange { border-color: var(--orange); }
.category-card.lilac  { border-color: var(--lilac); }

.artwork-thumb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 7px;
}
.artwork-thumb-grid a {
  display: block;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1;
}
.artwork-thumb-grid img {
  position: absolute;
  inset: 0;
  width: 100%;
  min-width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s;
}
.artwork-thumb-grid a:hover img { transform: scale(1.06); }
.thumb-placeholder { aspect-ratio: 1; background: #d0c8bc; }

.category-label {
  display: block;
  color: #fff;
  font-weight: 700;
  text-transform: lowercase;
  padding: 0.52rem 1rem;
  font-size: clamp(0.85rem, 1.25vw, 1rem);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: filter 0.2s;
}
.category-label:hover          { filter: brightness(0.90); }
.category-label.yellow         { background: var(--yellow); }
.category-label.orange         { background: var(--orange); }
.category-label.lilac          { background: var(--lilac); }

/* =============================================================================
   FOLLOWING NEW TALENT
   ============================================================================= */

.talent-section {
  padding: clamp(1.8rem, 3.5vw, 2.8rem) 0 0;
  background: var(--bg);
}
.talent-section .section-heading {
  margin-bottom: 0.6rem;
  justify-content: center;
  padding: 0 clamp(1.2rem, 2.5vw, 2rem);
}
.talent-section .section-heading h2 {
  color: var(--orange);
  font-weight: 300;
}
.talent-section .talent-sub {
  text-align: center;
  color: var(--orange);
  font-size: clamp(0.85rem, 1.3vw, 1rem);
  font-weight: 300;
  margin-bottom: 1.6rem;
  padding: 0 clamp(1.2rem, 2.5vw, 2rem);
}

/* 6-col square artwork strip — flush, no gaps */
.talent-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}
.talent-strip a {
  display: block;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1;
}
.talent-strip img {
  position: absolute;
  inset: 0;
  width: 100%;
  min-width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s;
}
.talent-strip a:hover img { transform: scale(1.06); }
.talent-strip-placeholder { aspect-ratio: 1; background: #d0c8bc; }

/* =============================================================================
   FOOTER
   ============================================================================= */

.site-footer {
  background: var(--footer-bg);
  color: #fff;
  padding: 1.6rem clamp(1.2rem, 3vw, 2rem) 1.8rem;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.7;
}
.site-footer strong { font-weight: 700; }

.site-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem 2.5rem;
  max-width: 900px;
}

.site-footer-contact {
  margin: 0 0 .9rem;
  line-height: 1.65;
}

.site-footer-col-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: .6rem;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .15rem .9rem;
}
.site-footer-links a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: .8rem;
  transition: color .15s;
}
.site-footer-links a:hover { color: #fff; }

.site-footer-legal {
  margin: 0;
  font-size: .75rem;
  color: rgba(255,255,255,.55);
  line-height: 1.55;
}

.site-footer-credit {
  margin: 0;
  font-size: .72rem;
  color: rgba(255,255,255,.38);
}
.site-footer-credit a {
  color: rgba(255,255,255,.45);
  text-decoration: underline;
}
.site-footer-credit a:hover { color: rgba(255,255,255,.75); }

.site-footer-social {
  display: flex;
  gap: .6rem;
}

@media (max-width: 560px) {
  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
}
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 50%;
  color: #fff;
  opacity: .8;
  transition: opacity .18s, border-color .18s, background .18s;
  flex-shrink: 0;
}
.social-icon svg {
  width: 17px;
  height: 17px;
}
.social-icon:hover {
  opacity: 1;
  border-color: #fff;
  background: rgba(255,255,255,.12);
}

/* =============================================================================
   BURGER & MOBILE NAV
   ============================================================================= */

.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.burger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: #555;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.burger-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.is-open span:nth-child(2) { opacity: 0; }
.burger-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  background: #f5f5f5;
  border-top: 2px solid var(--yellow);
  border-bottom: 1px solid #e5e5e5;
}
.mobile-nav.is-open { display: block; }

.mobile-nav-item { border-bottom: 1px solid #e5e5e5; }

/* Contact — direct link in mobile nav (no submenu, same feel as toggle) */
.mobile-nav-direct {
  display: block;
  padding: 0.85rem 1.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #555;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.mobile-nav-direct:hover { color: var(--orange); }
.mobile-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: none;
  border: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: #555;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.mobile-nav-toggle .nav-caret { transition: transform 0.2s; }
.mobile-nav-toggle.is-open .nav-caret { transform: rotate(180deg); }
.mobile-nav-toggle:hover { color: var(--orange); }

.mobile-nav-submenu {
  list-style: none;
  display: none;
  padding: 0 0 0.6rem 1.5rem;
}
.mobile-nav-submenu.is-open { display: block; }
.mobile-nav-submenu li a {
  display: block;
  padding: 0.38rem 0;
  font-size: 0.82rem;
  font-weight: 400;
  color: #666;
  text-transform: lowercase;
}
.mobile-nav-submenu li a:hover { color: var(--orange); }

.mobile-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
}
.mobile-search input {
  flex: 1;
  height: 36px;
  border: 1px solid #d0d0d0;
  background: #fff;
  padding: 0 0.65rem;
  font-size: 0.82rem;
  outline: none;
}
.mobile-search input:focus { border-color: var(--yellow); }
.mobile-search button {
  height: 36px;
  padding: 0 1rem;
  background: var(--yellow);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
}
.mobile-search button:hover { background: var(--orange); }

/* =============================================================================
   INNER PAGES — shared
   ============================================================================= */

.inner-page {
  min-height: 60vh;
}

/* Yellow/coloured page hero title bar */
.page-hero {
  padding: 1.1rem clamp(1.2rem, 2.5vw, 2rem);
}
.page-hero h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  color: #fff;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  margin: 0;
}
.page-hero-parent {
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  text-transform: lowercase;
  letter-spacing: .08em;
  margin: 0 0 .2rem;
  line-height: 1;
}
.page-hero.yellow  { background: var(--yellow); }
.page-hero.orange  { background: var(--orange); }
.page-hero.lilac   { background: var(--lilac); }
.page-hero.green   { background: var(--green); }

.page-content {
  padding: clamp(1.8rem, 3vw, 2.8rem) clamp(1.2rem, 2.5vw, 2rem);
}

.page-content-collections {
  padding: 0;
}

.empty-msg {
  color: var(--text-muted);
  font-size: 1rem;
  padding: 2rem 0;
}

/* ── Prose / long-form text pages (e.g. Privacy Policy) ── */
.prose {
  max-width: 740px;
  line-height: 1.75;
  font-size: 1rem;
  color: var(--text);
}
.prose p {
  margin: 0 0 1.1em;
}
.prose h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2.2em 0 .6em;
  color: var(--text);
}
.prose h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.6em 0 .5em;
  color: var(--text);
}
.prose ul {
  margin: 0 0 1.1em 1.4em;
  padding: 0;
  list-style: disc;
}
.prose ul li {
  margin-bottom: .35em;
}
.prose a {
  color: var(--orange);
  text-decoration: underline;
}
.prose a:hover {
  opacity: .75;
}

/* ── Contact page ── */
.contact-wrap {
  max-width: 560px;
}
.contact-block h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 .9rem;
}
.contact-block > p {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 2rem;
}
.contact-details {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: .55rem 1.2rem;
  font-size: .95rem;
  line-height: 1.65;
  margin: 0;
}
.contact-details dt {
  font-weight: 700;
  color: #555;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding-top: .2rem;
}
.contact-details dd {
  margin: 0;
  color: var(--text);
}
.contact-details a {
  color: var(--orange);
  text-decoration: underline;
}
.contact-details a:hover {
  opacity: .75;
}

/* Shared artwork thumb item (used on artists + collections) */
.artwork-thumb-item {
  display: block;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1;
}
.artwork-thumb-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  min-width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s;
}
.artwork-thumb-item:hover img   { transform: scale(1.05); }
.artwork-thumb-placeholder       { aspect-ratio: 1; background: #e8e8e8; }

.more-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orange);
  text-transform: lowercase;
  letter-spacing: 0.03em;
}
.more-link:hover { text-decoration: underline; }

/* =============================================================================
   ARTISTS PAGE  — photo-grid index
   ============================================================================= */

/* 4-column photo grid */
.artists-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: clamp(0.5rem, 1vw, 1rem) 0;
}

.artist-grid-item {
  display: block;
  text-decoration: none;
  overflow: hidden;
  border: 3px solid transparent;
  transition: opacity 0.2s;
}
.artist-grid-item.yellow { border-color: var(--yellow); }
.artist-grid-item.orange { border-color: var(--orange); }
.artist-grid-item.lilac  { border-color: var(--lilac); }
.artist-grid-item.grey   { border-color: var(--grey-stripe); }
.artist-grid-item.green  { border-color: var(--green); }
.artist-grid-item:hover { opacity: 0.9; }
.artist-grid-item:hover .artist-grid-photo img {
  transform: scale(1.06);
}

/* Strictly square photo box — image always covers it fully */
.artist-grid-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e8e4dc;
  display: flex;
  align-items: center;
  justify-content: center;
}
.artist-grid-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

/* Stripe-colour background when no image at all */
.artist-grid-photo.bg-yellow { background: var(--yellow); }
.artist-grid-photo.bg-orange { background: var(--orange); }
.artist-grid-photo.bg-lilac  { background: var(--lilac); }
.artist-grid-photo.bg-grey   { background: var(--grey-stripe); }
.artist-grid-photo.bg-green  { background: var(--green); }

/* Subtle initial letter shown on colour-only placeholder */
.artist-grid-initial {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

/* Colour name tag */
.artist-grid-name {
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.artist-grid-name.yellow { background: var(--yellow);      color: #3a3000; }
.artist-grid-name.orange { background: var(--orange);      color: #fff; }
.artist-grid-name.lilac  { background: var(--lilac);       color: #fff; }
.artist-grid-name.grey   { background: var(--grey-stripe); color: #fff; }
.artist-grid-name.green  { background: var(--green);       color: #253300; }

/* Keep old single-artist page styles intact */
.artist-photo {
  width: 180px;
  height: 180px;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid #d3d3d3;
  flex-shrink: 0;
  background: #e8e4dc;
}
.artist-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.artist-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d8d0c4;
}
.artist-photo-placeholder span {
  font-size: 3.5rem;
  font-weight: 300;
  color: #a09080;
  text-transform: uppercase;
}
.artist-name {
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 600;
  color: var(--orange);
  text-transform: lowercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}
.artist-bio-text {
  font-size: clamp(0.85rem, 1.3vw, 0.95rem);
  font-weight: 300;
  color: var(--text);
  line-height: 1.65;
  max-width: 680px;
}
.artist-bio-text p  { margin-bottom: 0.6rem; }
.artist-bio-text ul { margin: 0.4rem 0 0.6rem 1.2rem; }
.artist-count {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: lowercase;
  letter-spacing: 0.04em;
}
.artist-artworks {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
}
.artist-more {
  text-align: right;
  margin-top: 0.75rem;
}

/* =============================================================================
   COLLECTIONS PAGE
   ============================================================================= */

/* Quick-jump pill nav */
.collections-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem clamp(1.2rem, 2.5vw, 2rem);
  border-bottom: 1px solid #ececec;
  background: #fafafa;
}
.collections-nav-pill {
  display: inline-block;
  padding: 0.32rem 0.9rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  text-transform: lowercase;
  letter-spacing: 0.03em;
  transition: filter 0.2s;
}
.collections-nav-pill:hover { filter: brightness(0.88); }
.collections-nav-pill.yellow { background: var(--yellow); color: #3a3000; }
.collections-nav-pill.orange { background: var(--orange); }
.collections-nav-pill.lilac  { background: var(--lilac); }
.collections-nav-pill.green  { background: var(--green);  color: #253300; }
.collections-nav-pill.grey   { background: var(--grey-stripe); }

/* Each category section (used on single-collection view) */
.collection-group {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* =============================================================================
   COLLECTIONS INDEX — category card grid
   ============================================================================= */

/* 3-column grid of category cards */
.cat-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 1.5rem clamp(1rem, 2vw, 1.5rem);
}

.cat-card {
  display: block;
  text-decoration: none;
  overflow: hidden;
  transition: opacity 0.2s;
  box-shadow: 0 2px 10px rgba(0,0,0,.09);
  border: 3px solid transparent;
}
.cat-card.yellow { border-color: var(--yellow); }
.cat-card.orange { border-color: var(--orange); }
.cat-card.lilac  { border-color: var(--lilac); }
.cat-card.grey   { border-color: var(--grey-stripe); }
.cat-card.green  { border-color: var(--green); }
.cat-card:hover { opacity: 0.88; }
.cat-card:hover .cat-card-cell img { transform: scale(1.06); }

/* 2×2 artwork mosaic — the whole card is a square */
.cat-card-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  gap: 6px;
}

.cat-card-cell {
  overflow: hidden;
  position: relative;
  background: #e8e4dc;
}
.cat-card-cell img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

/* Colour-fill for empty cells */
.cat-card-blank { width: 100%; height: 100%; }
.cat-card-blank.yellow { background: var(--yellow); }
.cat-card-blank.orange { background: var(--orange); }
.cat-card-blank.lilac  { background: var(--lilac); }
.cat-card-blank.grey   { background: var(--grey-stripe); }
.cat-card-blank.green  { background: var(--green); }

/* Section name bar */
.cat-card-name {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat-card-name.yellow { background: var(--yellow);      color: #3a3000; }
.cat-card-name.orange { background: var(--orange);      color: #fff; }
.cat-card-name.lilac  { background: var(--lilac);       color: #fff; }
.cat-card-name.grey   { background: var(--grey-stripe); color: #fff; }
.cat-card-name.green  { background: var(--green);       color: #253300; }

.collection-header {
  padding: 0.7rem clamp(1.2rem, 2.5vw, 2rem);
  margin-bottom: 1rem;
}
.collection-header h2 {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 600;
  color: #fff;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  margin: 0;
}
.collection-header.yellow { background: var(--yellow); }
.collection-header.orange { background: var(--orange); }
.collection-header.lilac  { background: var(--lilac); }
.collection-header.green  { background: var(--green); }
.collection-header.grey   { background: var(--grey-stripe); }

/* Keyword tags row */
.keyword-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.4rem;
  padding: 0.6rem clamp(1.2rem, 2.5vw, 2rem) 1rem;
}
/* Collections index variant — wider padding to match the card grid */
.collections-index-nav {
  padding: 0.75rem clamp(1rem, 2vw, 1.5rem);
  border-bottom: 1px solid #ececec;
  background: #fafafa;
  gap: 0.25rem 1.4rem;
  align-items: center;
}
.keyword-tags-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #888;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  margin-right: 0.25rem;
}
.keyword-tag {
  font-size: 0.8rem;
  font-weight: 400;
  color: #555;
  text-transform: lowercase;
  white-space: nowrap;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
  transition: color 0.15s;
}
.keyword-tag:hover { color: var(--orange); }
.keyword-tag-active { color: var(--orange); font-weight: 600; }
.keyword-tag-reset  { color: var(--orange); font-weight: 700; }

/* Heritage collection sub-navigation strip */
.heritage-kw-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .6rem;
  padding: .8rem clamp(1.2rem, 2.5vw, 2rem);
  border-bottom: 1px solid #e8e0f0;
  background: #faf5ff;
}
.heritage-kw-nav-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: .07em;
  color: #9d6fc0;
  margin-right: .15rem;
  white-space: nowrap;
}
.heritage-kw-tag {
  font-size: .8rem;
  font-weight: 500;
  color: #6b3fa0;
  text-transform: lowercase;
  text-decoration: none;
  background: #ede9f8;
  border: 1px solid #d6ccf0;
  border-radius: 20px;
  padding: .2rem .75rem;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.heritage-kw-tag:hover {
  background: #6b3fa0;
  color: #fff;
  border-color: #6b3fa0;
}
.heritage-kw-tag-all {
  font-weight: 700;
  background: #fff;
  border-color: #9d6fc0;
  color: #6b3fa0;
}
.heritage-kw-tag-all:hover {
  background: #6b3fa0;
  color: #fff;
  border-color: #6b3fa0;
}
.heritage-kw-tag-active {
  background: #6b3fa0;
  color: #fff !important;
  border-color: #6b3fa0;
  font-weight: 700;
}
.keyword-tag-count {
  font-size: 0.72rem;
  color: #aaa;
  margin-left: 0.15em;
}

/* 6-column sample artwork grid */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
  padding: 0 clamp(1.2rem, 2.5vw, 2rem);
}

.collection-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
  padding: 0.8rem clamp(1.2rem, 2.5vw, 2rem) 0;
}

/* Back bar */
.back-bar {
  padding: 0.75rem clamp(1.2rem, 2.5vw, 2rem);
  border-bottom: 1px solid #ececec;
  background: #fafafa;
}
.back-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--orange);
  text-transform: lowercase;
  letter-spacing: 0.03em;
}
.back-link:hover { text-decoration: underline; }

/* Full-width artist profile (single artist page) */
.artist-profile-full {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
  padding-bottom: 0;
}
.artist-photo-lg {
  width: 260px;
  height: 260px;
  overflow: hidden;
  border-radius: 4px;
  flex-shrink: 0;
  background: #e8e4dc;
  border:1px solid #d3d3d3;
}
.artist-photo-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Artworks section divider */
.artworks-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 clamp(1.2rem, 2.5vw, 2rem);
  margin: clamp(1.5rem, 3vw, 2.5rem) 0 0;
}
.artworks-divider::before,
.artworks-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}
.artworks-divider span {
  font-size: 0.78rem;
  font-weight: 700;
  color: #aaa;
  text-transform: lowercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

/* Full artwork grid on artist profile page */
.artist-artworks-full {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.pt-0 { padding-top: 0.6rem; }

.collection-count {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: lowercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}
.pb-0 { padding-bottom: 0.4rem; }

/* Heritage collection blurbs */
.collection-blurb {
  max-width: 720px;
  line-height: 1.7;
  margin-bottom: 0.6rem;
}
.collection-blurb-parent {
  font-size: 1rem;
  color: var(--text);
}
.collection-blurb-keyword {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Full artwork grid on single collection page */
.collection-full-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

/* Smaller thumbnail strip used on artwork detail page (more-by / related) */
.artwork-strip-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

/* Active pill (current keyword highlighted) */
.collections-nav-pill.active-pill {
  outline: 3px solid rgba(0,0,0,0.18);
  outline-offset: -2px;
}

/* =============================================================================
   SEARCH PAGE
   ============================================================================= */

.search-page-bar {
  padding: 1.2rem clamp(1.2rem, 2.5vw, 2rem);
  background: #fafafa;
  border-bottom: 1px solid #ececec;
}
.search-page-input-wrap {
  display: flex;
  align-items: center;
  max-width: 680px;
  gap: 0;
}
.search-page-input-wrap input[type="search"] {
  flex: 1;
  height: 44px;
  border: 2px solid var(--yellow);
  border-right: none;
  padding: 0 1rem;
  font-size: 1rem;
  font-weight: 300;
  outline: none;
  background: #fff;
  border-radius: 0;
}
.search-page-input-wrap input[type="search"]:focus {
  border-color: var(--orange);
}
.search-page-input-wrap button {
  height: 44px;
  width: 50px;
  background: var(--yellow);
  border: 2px solid var(--yellow);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.search-page-input-wrap button:hover {
  background: var(--orange);
  border-color: var(--orange);
}

/* Related tag suggestions bar */
.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 1.2rem;
  padding: 0.9rem clamp(1.2rem, 2.5vw, 2rem);
  background: #fffdf0;
  border-bottom: 1px solid #f0ead0;
}
.search-suggestions-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #aaa;
  text-transform: lowercase;
  letter-spacing: 0.06em;
  margin-right: 0.4rem;
  white-space: nowrap;
}

/* Section headings inside results */
.search-section-heading {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  color: #8a8a8a;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.search-count {
  font-size: 0.78rem;
  font-weight: 500;
  color: #bbb;
}
.search-no-results {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.search-no-results strong {
  font-weight: 600;
  color: var(--orange);
}

/* Artist chips in search results */
.search-artist-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.search-artist-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.8rem 0.4rem 0.45rem;
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  border-radius: 30px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.search-artist-chip:hover {
  background: #fffdf0;
  border-color: var(--yellow);
}
.search-artist-chip img,
.search-artist-chip .chip-initial {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d8d0c4;
  font-size: 1rem;
  font-weight: 600;
  color: #a09080;
  flex-shrink: 0;
}
.chip-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  text-transform: lowercase;
}
.chip-count {
  font-size: 0.72rem;
  color: #bbb;
  margin-left: 0.1rem;
}

/* Artwork thumbs with hover caption */
.search-thumb {
  position: relative;
}
.artwork-thumb-caption {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: #fff;
  padding: 0.8rem 0.5rem 0.4rem;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.search-thumb:hover .artwork-thumb-caption { opacity: 1; }
.caption-title {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.caption-artist {
  display: block;
  font-size: 0.65rem;
  font-weight: 300;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =============================================================================
   ARTWORK DETAIL PAGE
   ============================================================================= */

.artwork-detail-wrap {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

/* Left: the large image */
.artwork-detail-image-wrap {
  position: sticky;
  top: 1.5rem;
  width: 450px;
  margin: 0 auto;
  overflow: visible;
}
.artwork-detail-image {
  position: relative;
  width: 450px;
}
.artwork-detail-image img:not(.artwork-watermark) {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}
img.artwork-watermark {
  position: absolute;
  width: 90%;
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.4;
  filter: brightness(0) invert(1);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  z-index: 5;
}
.artwork-nav-arrow {
  position: absolute;
  top: 1rem;
  display: inline-block;
  color: #222;
  font-size: 0.78rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  padding: 0.15rem 0.2rem;
  white-space: nowrap;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s, transform 0.15s;
  user-select: none;
  z-index: 2;
}
.artwork-nav-prev {
  left: -7rem;
}
.artwork-nav-next {
  right: -7rem;
}
.artwork-nav-arrow:hover {
  color: #7a5c00;
  transform: translateY(-1px);
}
.artwork-nav-disabled {
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
}

/* Right: info panel */
.artwork-detail-title {
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 600;
  color: var(--text);
  text-transform: lowercase;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}
.artwork-ref {
  font-size: 0.75rem;
  font-weight: 500;
  color: #bbb;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.9rem;
}

/* Keyword tags */
.artwork-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.4rem;
  margin-bottom: 1.1rem;
}
.artwork-keyword-tag {
  display: inline-block;
  padding: 0.22rem 0.65rem;
  background: #f3f3f3;
  border: 1px solid #e0e0e0;
  font-size: 0.75rem;
  font-weight: 500;
  color: #666;
  text-transform: lowercase;
  border-radius: 20px;
  transition: background 0.2s, border-color 0.2s;
}
.artwork-keyword-tag:hover {
  background: #fffdf0;
  border-color: var(--yellow);
  color: var(--orange);
}

/* Meta dl */
.artwork-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.8rem;
  font-size: 0.82rem;
  margin-bottom: 1rem;
}
.artwork-meta dt {
  color: #aaa;
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.artwork-meta dd { color: var(--text); font-weight: 300; }

.artwork-notes {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.artwork-rule {
  border: none;
  border-top: 1px solid #ececec;
  margin: 1.2rem 0;
}

/* Artist panel inside detail page */
.artwork-artist-panel {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.artwork-artist-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.artwork-artist-link:hover .artwork-artist-name { color: var(--orange); }
.artwork-artist-photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: #e8e4dc;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.artwork-artist-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.artwork-artist-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #bbb;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.1rem;
}
.artwork-artist-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-transform: lowercase;
  transition: color 0.2s;
}
.artwork-artist-bio {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.6;
}
.artwork-artist-bio p  { margin-bottom: 0.4rem; }
.artwork-artist-bio ul { margin: 0.3rem 0 0.4rem 1.2rem; }

.artwork-artist-bio-preview {
  max-height: 8.8rem;
  overflow: hidden;
  position: relative;
}
.artwork-artist-bio-preview::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.2rem;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 85%);
  pointer-events: none;
}
.artwork-bio-more {
  border: 0;
  background: none;
  color: #7a5c00;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.2rem 0;
  margin-top: 0.25rem;
  cursor: pointer;
}
.artwork-bio-more:hover { color: #5d4700; }

.artwork-bio-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}
.artwork-bio-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
.artwork-bio-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(680px, calc(100vw - 2rem));
  max-height: calc(100vh - 3rem);
  overflow: auto;
  margin: 1.5rem auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  padding: 1.1rem 1.2rem 1rem;
}
.artwork-bio-modal-dialog h3 {
  margin: 0 2rem 0.8rem 0;
  font-size: 1rem;
  font-weight: 700;
  text-transform: lowercase;
}
.artwork-bio-modal-close {
  position: absolute;
  top: 0.45rem;
  right: 0.6rem;
  border: 0;
  background: none;
  font-size: 1.6rem;
  line-height: 1;
  color: #666;
  cursor: pointer;
}
.artwork-bio-modal-close:hover { color: #222; }
.artwork-artist-bio-full {
  max-height: none;
  overflow: visible;
}

/* Enquire button */
.artwork-enquire {
  margin-top: 1.4rem;
}
.enquire-btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: var(--yellow);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  border-radius: 2px;
  transition: background 0.2s;
}
.enquire-btn:hover { background: var(--orange); }

/* Responsive */
@media (max-width: 860px) {
  .artwork-detail-wrap           { grid-template-columns: 1fr; }
  .artwork-detail-image-wrap     { position: static; width: 100%; max-width: 450px; }
  .artwork-detail-image          { width: 100%; }
  .artwork-nav-prev              { left: -4.6rem; }
  .artwork-nav-next              { right: -4.6rem; }
}

/* =============================================================================
   INNER PAGE RESPONSIVE
   ============================================================================= */

@media (max-width: 900px) {
  .artists-grid               { grid-template-columns: repeat(3, 1fr); }
  .artist-artworks            { grid-template-columns: repeat(4, 1fr); }
  .artist-artworks-full       { grid-template-columns: repeat(3, 1fr); }
  .collection-grid            { grid-template-columns: repeat(4, 1fr); }
  .collection-full-grid       { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .artist-profile-full        { grid-template-columns: 200px 1fr; }
  .artist-photo-lg            { width: 200px; height: 200px; }
}

@media (max-width: 640px) {
  .artists-grid               { grid-template-columns: repeat(2, 1fr); }
  .cat-card-grid              { grid-template-columns: repeat(2, 1fr); }
  .artist-profile             { grid-template-columns: 120px 1fr; }
  .artist-photo               { width: 120px; height: 120px; }
  .artist-artworks            { grid-template-columns: repeat(3, 1fr); }
  .artist-artworks-full       { grid-template-columns: repeat(3, 1fr); }
  .artist-profile-full        { grid-template-columns: 140px 1fr; }
  .artist-photo-lg            { width: 140px; height: 140px; }
  .collection-grid            { grid-template-columns: repeat(3, 1fr); }
  .collection-full-grid       { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .artwork-strip-grid         { grid-template-columns: repeat(4, 1fr); }
  .collections-nav            { gap: 0.4rem; }
}

@media (max-width: 420px) {
  .artist-profile             { grid-template-columns: 1fr; }
  .artist-photo               { width: 100%; height: 220px; }
  .artist-artworks            { grid-template-columns: repeat(2, 1fr); }
  .artist-profile-full        { grid-template-columns: 1fr; }
  .artist-photo-lg            { width: 100%; height: 240px; }
  .artist-artworks-full       { grid-template-columns: repeat(2, 1fr); }
  .collection-grid            { grid-template-columns: repeat(2, 1fr); }
  .collection-full-grid       { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =============================================================================
   IMAGE PROTECTION
   ============================================================================= */

/* Prevent pointer interaction on image elements themselves;
   parent <a> tags still receive click events normally */
.hero-slide,
.artwork-thumb-item img,
.artwork-detail-image img,
.artist-artworks img,
.artist-artworks-full img,
.collection-full-grid img,
.artwork-strip-grid img,
.talent-strip img {
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

/* Transparent overlay on each image container
   blocks drag-save while keeping the link clickable */
.artwork-thumb-item::after,
.artwork-detail-image::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  cursor: default;
}
/* But allow the link click to pass through the overlay */
.artwork-thumb-item > a { position: relative; z-index: 4; }

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 700px) {
  /* Show burger, hide desktop nav items */
  .burger-btn                 { display: flex; }
  .utility-nav                { grid-template-columns: 1fr auto; }
  .utility-nav .site-nav-group,
  .utility-nav .search-bar    { display: none; }

  /* Category grid stacks */
  .category-grid              { grid-template-columns: 1fr; }

  /* Talent strip: 3 per row */
  .talent-strip               { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  /* Talent strip: 2 per row */
  .talent-strip               { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================================================
   ARTIST COLLECTION BUTTONS
   ============================================================================= */

.artist-collections-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding-top: 0.2rem;
  padding-bottom: 1.2rem;
}
.artist-collections-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: 0.06em;
  color: #aaa;
  margin-right: 0.2rem;
  white-space: nowrap;
}
.artist-collection-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #fff;
  border: 2px solid var(--yellow);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.03em;
  padding: 0.38rem 0.9rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1.2;
}
.artist-collection-btn:hover {
  background: var(--yellow);
  color: #fff;
}
.artist-collection-btn.is-active {
  background: var(--yellow);
  color: #fff;
  border-color: var(--yellow);
}
.artist-collection-count {
  display: inline-block;
  background: rgba(0,0,0,0.12);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0 6px;
  line-height: 1.5;
}
.artist-collection-btn.is-active .artist-collection-count,
.artist-collection-btn:hover .artist-collection-count {
  background: rgba(255,255,255,0.28);
}

/* =============================================================================
   MEMBER SYSTEM — Nav, Forms, Gating
   ============================================================================= */

/* Pending account label in nav dropdown */
.site-nav-pending {
  display: block;
  padding: 0.42rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--orange);
  text-transform: lowercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* ── Locked / preview artwork tiles ──────────────────────────────────────────── */

/* Preview tiles (first 6 for guests) — visible but not clickable */
.artwork-thumb-item.artwork-preview {
  cursor: default;
  display: block;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1;
  text-decoration: none;
}
.artwork-thumb-item.artwork-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: none;
  pointer-events: none;
}

/* Locked tiles — greyed out, lock icon overlay */
.artwork-thumb-item.artwork-locked {
  cursor: not-allowed;
  display: block;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1;
  text-decoration: none;
}
.artwork-thumb-item.artwork-locked img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: grayscale(100%) brightness(1.1) contrast(0.85);
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}
/* Semi-transparent overlay */
.artwork-thumb-item.artwork-locked::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.30);
  pointer-events: none;
}

/* Lock icon (padlock SVG via CSS) */
.artwork-lock-icon {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  z-index: 5;
  pointer-events: none;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23444'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ── Member gate banner — sticky bar at bottom of viewport ───────────────────── */

.member-gate-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 0.9rem 1.5rem;
  background: #fff;
  border-top: 3px solid var(--yellow);
  box-shadow: 0 -4px 18px rgba(0,0,0,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
}
/* Push page content up so the sticky bar doesn't overlap the last item */
body:has(.member-gate-banner) .site-page {
  padding-bottom: 80px;
}
.member-gate-msg {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}
.member-gate-lock {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23626262'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}
.member-gate-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
}
.member-gate-or {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── Member buttons ──────────────────────────────────────────────────────────── */

.member-btn {
  display: inline-block;
  background: var(--yellow);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  padding: 0.55rem 1.4rem;
  border: 2px solid var(--yellow);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  line-height: 1.3;
}
.member-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.member-btn.member-btn-outline {
  background: transparent;
  color: var(--text);
  border-color: #ccc;
}
.member-btn.member-btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* ── Member forms (signup, login) ────────────────────────────────────────────── */

.member-form-wrap {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.member-form-intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.6rem;
}

.member-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.member-form-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.member-form-row label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: #555;
}

.member-form-row input[type="text"],
.member-form-row input[type="email"],
.member-form-row input[type="password"] {
  height: 40px;
  border: 1px solid #d0d0d0;
  background: #fff;
  padding: 0 0.75rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  border-radius: 0;
  transition: border-color 0.15s;
}
.member-form-row input:focus { border-color: var(--yellow); }

.member-form-row select {
  height: 44px;
  border: 1px solid #d0d0d0;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%23888' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding: 0 2.6rem 0 0.75rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.15s;
  width: 100%;
}
.member-form-row select:focus {
  border-color: var(--yellow);
}
.member-form-row select option[disabled] {
  color: #bbb;
}

/* YHAL Artist checkbox */
.member-form-check-row {
  margin-top: .25rem;
}
.member-form-check {
  display: inline-flex;
  align-items: flex-start;
  gap: .75rem;
  cursor: pointer;
  user-select: none;
}
.member-form-check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.member-form-check-box {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid #d0d0d0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: border-color .15s, background .15s;
}
.member-form-check-box::after {
  content: '';
  display: block;
  width: 6px;
  height: 11px;
  border-right: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(45deg) translate(-1px, -1px);
  opacity: 0;
  transition: opacity .12s;
}
.member-form-check input[type="checkbox"]:checked + .member-form-check-box {
  background: var(--yellow);
  border-color: var(--yellow);
}
.member-form-check input[type="checkbox"]:checked + .member-form-check-box::after {
  opacity: 1;
}
.member-form-check:hover .member-form-check-box {
  border-color: var(--yellow);
}
.member-form-check-label {
  font-size: .88rem;
  line-height: 1.45;
  color: var(--text);
  padding-top: 2px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.member-form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.member-form-optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.member-form-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
  margin-top: 0.5rem;
}

/* Newsletter opt-in block */
.member-form-newsletter {
  width: 100%;
  background: #fffdf0;
  border: 1px solid #f0e8b0;
  padding: 1.1rem 1.2rem;
}
.member-form-newsletter-heading {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 .7rem;
  text-transform: lowercase;
  letter-spacing: .03em;
}
.member-form-newsletter-hint {
  font-size: .78rem;
  color: var(--text-muted);
  margin: .55rem 0 0;
  line-height: 1.55;
}

.member-form-alt {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.member-form-alt a {
  color: var(--orange);
  font-weight: 600;
}
.member-form-alt a:hover { text-decoration: underline; }

.member-form-errors {
  background: #fff5f5;
  border: 1px solid #f5c0c0;
  border-left: 3px solid #e05050;
  padding: 0.8rem 1rem;
  margin-bottom: 0.5rem;
}
.member-form-errors p {
  font-size: 0.85rem;
  color: #c0392b;
  margin-bottom: 0.25rem;
}
.member-form-errors p:last-child { margin-bottom: 0; }
.member-form-errors a { color: var(--orange); font-weight: 600; }

/* ── Member info/info box ────────────────────────────────────────────────────── */

.member-info-box {
  background: #f0f8f0;
  border: 1px solid #b8ddb8;
  border-left: 3px solid #4cae4c;
  padding: 0.8rem 1rem;
  margin-bottom: 1.2rem;
  font-size: 0.85rem;
  color: #2d6a2d;
}

/* ── Success & pending message boxes ─────────────────────────────────────────── */

.member-success-box,
.member-pending-box {
  text-align: center;
  padding: 2.5rem 1.5rem 3rem;
}

.member-success-icon {
  width: 52px;
  height: 52px;
  background: var(--yellow);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
}

.member-success-box h2,
.member-pending-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 1rem;
}

.member-success-box p,
.member-pending-box p {
  max-width: 500px;
  margin: 0 auto 0.8rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
}

.member-success-sub {
  color: var(--text-muted) !important;
  font-size: 0.82rem !important;
}

.member-success-box .member-btn,
.member-pending-box .member-btn {
  margin-top: 1.2rem;
}

/* =============================================================================
   GUEST STICKY BAR (shown to logged-out users)
   ============================================================================= */

.guest-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 8000;
  background: #1a1a1a;
  color: #fff;
  box-shadow: 0 -3px 16px rgba(0,0,0,.3);
  animation: guestBarIn .35s cubic-bezier(.22,.68,0,1.2) both;
}
@keyframes guestBarIn {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
@keyframes guestBarOut {
  from { transform: none; opacity: 1; }
  to   { transform: translateY(100%); opacity: 0; }
}

/* push page content up so the bar doesn't overlap the site footer */
body:has(.guest-bar:not([hidden])) .site-page {
  padding-bottom: 72px;
}

.guest-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: .7rem clamp(1rem, 3vw, 2rem);
  flex-wrap: wrap;
}

.guest-bar-msg {
  margin: 0;
  font-size: .875rem;
  line-height: 1.4;
  color: #ddd;
  flex: 1;
  min-width: 0;
}
.guest-bar-msg strong {
  color: #fff;
  font-weight: 700;
}
.guest-bar-icon {
  font-size: 1.1rem;
  margin-right: .35rem;
  color: var(--yellow);
}

.guest-bar-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}

.guest-bar-btn {
  display: inline-block;
  font-family: inherit;
  font-size: .8rem;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: .03em;
  border-radius: 4px;
  padding: .4rem 1.1rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
  border: 2px solid transparent;
}
.guest-bar-btn-primary {
  background: var(--yellow);
  color: #111;
  border-color: var(--yellow);
}
.guest-bar-btn-primary:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.guest-bar-btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.guest-bar-btn-outline:hover {
  border-color: #fff;
  color: #fff;
}

.guest-bar-dismiss {
  background: none;
  border: none;
  color: #888;
  font-size: 1.3rem;
  line-height: 1;
  padding: .2rem .4rem;
  cursor: pointer;
  border-radius: 3px;
  font-family: inherit;
}
.guest-bar-dismiss:hover { color: #fff; }

@media (max-width: 540px) {
  .guest-bar-inner { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .guest-bar-actions { width: 100%; }
  .guest-bar-btn { flex: 1; text-align: center; }
}

.member-form-robot-check {
  margin: 1.2rem 0 0;
  padding: .85rem 1rem;
  border: 2px solid var(--yellow);
  border-radius: 6px;
  background: #fffdf0;
}
.member-form-robot-check .member-form-check-label {
  font-weight: 600;
  color: #333;
}

/* =============================================================================
   ABOUT PAGE
   ============================================================================= */

.about-content {
  display: flex;
  justify-content: center;
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.about-prose {
  max-width: 680px;
  width: 100%;
  text-align: center;
}

.about-prose p {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.85;
  color: #333;
  margin: 0 0 1.6em;
}

.about-prose p:last-child {
  margin-bottom: 0;
}

.about-cta {
  margin-top: 2.5rem !important;
}

.about-cta-link {
  display: inline-block;
  color: var(--orange);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 2px solid var(--orange);
  padding-bottom: .1rem;
  transition: color .15s, border-color .15s;
}

.about-cta-link:hover {
  color: var(--yellow);
  border-color: var(--yellow);
}

/* =============================================================================
   AUTH MODAL (sign-in popup for logged-out users)
   ============================================================================= */

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.auth-modal[hidden] { display: none; }

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
}

.auth-modal-box {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 8px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  overflow: hidden;
  animation: authModalIn .2s ease;
}
@keyframes authModalIn {
  from { opacity: 0; transform: translateY(-12px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.auth-modal-stripe {
  display: flex;
  height: 6px;
}
.auth-modal-stripe span { flex: 1; }
.auth-modal-stripe span:nth-child(5n+1) { background: var(--yellow); }
.auth-modal-stripe span:nth-child(5n+2) { background: var(--orange); }
.auth-modal-stripe span:nth-child(5n+3) { background: var(--lilac, #c8a8d8); }
.auth-modal-stripe span:nth-child(5n+4) { background: var(--yellow); }
.auth-modal-stripe span:nth-child(5n+0) { background: var(--orange); }

.auth-modal-close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #aaa;
  padding: .2rem .4rem;
  border-radius: 4px;
  z-index: 2;
}
.auth-modal-close:hover { color: #333; background: #f5f5f5; }

.auth-panel {
  padding: 1.75rem 2rem 2rem;
}

.auth-modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 .4rem;
  letter-spacing: -.02em;
  padding-right: 2rem; /* clear the X button */
}

.auth-modal-intro {
  font-size: .9rem;
  color: #555;
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.auth-modal-alert {
  padding: .6rem .9rem;
  border-radius: 5px;
  font-size: .875rem;
  margin-bottom: 1rem;
  line-height: 1.45;
}
.auth-modal-error   { background: #fff0f0; color: #c0392b; border: 1px solid #f5c6cb; }
.auth-modal-success { background: #f0fff4; color: #2e7d32; border: 1px solid #b2dfdb; }

.auth-form .member-form-row { margin-bottom: .9rem; }
.auth-form .member-form-row:last-of-type { margin-bottom: 1rem; }

.auth-submit-btn {
  width: 100%;
  justify-content: center;
}

.auth-modal-switch {
  margin: 1.1rem 0 0;
  font-size: .875rem;
  color: #666;
  text-align: center;
}
.auth-switch-link {
  color: var(--orange);
  font-weight: 600;
  text-decoration: none;
}
.auth-switch-link:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .auth-panel { padding: 1.25rem 1.25rem 1.5rem; }
  .auth-modal-title { font-size: 1.15rem; }
}

/* Artwork tiles that open the auth modal on click */
a.artwork-thumb-item[data-opens-auth],
a.artwork-thumb-item[data-opens-auth] img {
  cursor: pointer;
}
a.artwork-thumb-item[data-opens-auth] {
  position: relative;
  display: block;
}
a.artwork-thumb-item[data-opens-auth]::after {
  content: '🔒';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: rgba(0,0,0,.28);
  opacity: 0;
  transition: opacity .18s;
  pointer-events: none;
}
a.artwork-thumb-item[data-opens-auth]:hover::after,
a.artwork-thumb-item[data-opens-auth]:focus::after {
  opacity: 1;
}
a.artwork-thumb-item[data-opens-auth]:focus {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

/* =============================================================================
   LIGHTBOX
   ============================================================================= */

/* ── Artwork tile wrapper (image + save button below) ────────────────────────── */
.artwork-tile {
  display: flex;
  flex-direction: column;
  align-self: start;
  min-width: 0;
}
.artwork-tile .artwork-thumb-item {
  width: 100%;
  flex: none;
  aspect-ratio: 1;
  overflow: hidden;
}

/* ── Save button under each tile on browse/search pages ─────────────────────── */
.lb-save-btn {
  display: block;
  width: 100%;
  padding: .22rem .4rem;
  background: #f5f5f5;
  border: none;
  border-top: 1px solid #ebebeb;
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: .02em;
  color: #999;
  cursor: pointer;
  text-align: center;
  transition: background .15s, color .15s;
  line-height: 1.6;
}
.lb-save-btn:hover  { background: #fff3e0; color: var(--orange); }
.lb-save-btn.is-saved { background: var(--yellow); color: #fff; border-top-color: var(--yellow); }
.lb-save-btn.is-saved:hover { background: var(--orange); border-top-color: var(--orange); }
.lb-save-btn:disabled { opacity: .5; cursor: wait; }

/* ── Save button on artwork detail page ──────────────────────────────────────── */
.artwork-lb-wrap {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
.artwork-lb-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: none;
  border: 1.5px solid #d0d0d0;
  padding: .4rem .9rem .4rem .7rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: .03em;
  color: #555;
  transition: border-color .15s, color .15s, background .15s;
}
.artwork-lb-btn .lb-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: #999;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z' fill='none' stroke='currentColor' stroke-width='2.5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z' fill='none' stroke='currentColor' stroke-width='2.5'/%3E%3C/svg%3E");
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  flex-shrink: 0;
}
.artwork-lb-btn:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}
.artwork-lb-btn.is-saved {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #fff;
}
.artwork-lb-btn.is-saved .lb-icon {
  background: #fff;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z' fill='%23fff'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z' fill='%23fff'/%3E%3C/svg%3E");
}
.artwork-lb-btn.is-saved:hover { background: var(--orange); border-color: var(--orange); }
.lb-view-link {
  font-size: .78rem;
  color: var(--orange);
  font-weight: 600;
  text-decoration: none;
}
.lb-view-link:hover { text-decoration: underline; }

/* ── Lightbox count badge in site nav ────────────────────────────────────────── */
.site-nav-lightbox-link {
  display: flex;
  align-items: center;
  gap: .35rem;
}
.site-nav-lb-count {
  background: var(--yellow);
  color: #fff;
  border-radius: 999px;
  font-size: .68em;
  font-weight: 700;
  padding: 1px 6px;
  line-height: 1.5;
  min-width: 18px;
  text-align: center;
}

/* ── Lightbox page ───────────────────────────────────────────────────────────── */
.lb-page-meta {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}
.lb-clear-all {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: .8rem;
  color: #bbb;
  cursor: pointer;
  text-decoration: underline;
}
.lb-clear-all:hover { color: var(--orange); }

.lb-empty {
  text-align: center;
  padding: 3rem 1.5rem;
}
.lb-empty-icon {
  font-size: 3rem;
  color: #ddd;
  line-height: 1;
  margin-bottom: .8rem;
}
.lb-empty-msg {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: .4rem;
}
.lb-empty-sub {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}

/* Lightbox page tile with title bar below image */
.lb-tile {
  display: flex;
  flex-direction: column;
}
.lb-tile > a {
  display: block;
  flex: 1;
}
.lb-tile > a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lb-tile-bar {
  background: #fff;
  padding: .35rem .4rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
  border-top: 1px solid #f0f0f0;
}
.lb-tile-title {
  font-size: .72rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lb-tile-artist {
  font-size: .68rem;
  color: var(--text-muted);
}
.lb-tile-artist a { color: var(--text-muted); text-decoration: none; }
.lb-tile-artist a:hover { color: var(--orange); }
.lb-remove-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: .68rem;
  color: #bbb;
  cursor: pointer;
  text-align: left;
  margin-top: .1rem;
}
.lb-remove-btn:hover { color: var(--orange); }
.lb-tile-bar form { margin: 0; padding: 0; }
.lb-grid-spacer   { aspect-ratio: 1; visibility: hidden; pointer-events: none; }

/* ─── Lightbox page — tab strip ───────────────────────────── */
.lb-tabs-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 2px solid #eee;
  padding-bottom: .5rem;
  margin-bottom: 1rem;
}
.lb-tabs {
  display: flex;
  gap: .2rem;
  flex-wrap: wrap;
}
.lb-tab {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .85rem;
  font-size: .78rem;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: .03em;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s;
}
.lb-tab:hover  { color: var(--text); text-decoration: none; }
.lb-tab.is-active { color: var(--yellow); border-bottom-color: var(--yellow); }
.lb-tab-count {
  background: #eee;
  color: #999;
  border-radius: 999px;
  font-size: .67em;
  padding: 1px 6px;
  font-weight: 700;
  line-height: 1.5;
}
.lb-tab.is-active .lb-tab-count { background: var(--yellow); color: #fff; }

.lb-new-tab-btn {
  display: inline-block;
  background: transparent;
  border: 2px solid #ccc;
  padding: .38rem 1rem;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: .04em;
  color: var(--text);
  cursor: pointer;
  line-height: 1.3;
  transition: border-color .18s, color .18s;
  white-space: nowrap;
}
.lb-new-tab-btn:hover { border-color: var(--orange); color: var(--orange); }

/* ─── Lightbox page — new / rename inline form ─────────────── */
.lb-new-form,
.lb-rename-form {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  padding: .6rem 0 .75rem;
}
.lb-new-input-inline {
  height: 34px;
  border: 1.5px solid var(--yellow);
  background: #fff;
  padding: 0 .7rem;
  font-family: var(--font-body);
  font-size: .85rem;
  color: var(--text);
  outline: none;
  flex: 1;
  min-width: 160px;
  max-width: 300px;
}
.lb-new-input-inline:focus { border-color: var(--yellow-dark, #c9a000); }

/* ─── Lightbox page — active lightbox header ────────────────── */
.lb-active-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem;
  padding: .6rem 0 .9rem;
}
.lb-active-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
}
.lb-active-count {
  font-size: .8rem;
  color: var(--text-muted);
}
.lb-rename-toggle,
.lb-delete-btn {
  background: none;
  border: none;
  padding: .35rem .8rem;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: .04em;
  cursor: pointer;
  line-height: 1.3;
  transition: color .15s;
}
.lb-rename-toggle {
  border: 2px solid #ccc;
  color: var(--text);
  transition: border-color .18s, color .18s;
}
.lb-rename-toggle:hover { border-color: var(--orange); color: var(--orange); }
.lb-delete-btn {
  border: 2px solid transparent;
  color: #bbb;
}
.lb-delete-btn:hover { color: #c0392b; border-color: #f5c6c6; }

/* ─── Lightbox page — empty state ──────────────────────────── */
.lb-empty {
  text-align: center;
  padding: 3rem 1rem;
}
.lb-empty-icon {
  font-size: 3rem;
  color: #ddd;
  line-height: 1;
  margin-bottom: .5rem;
}
.lb-empty-msg {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 .35rem;
}
.lb-empty-sub {
  font-size: .85rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

/* ─── Lightbox picker popup ─────────────────────────────────── */
#lb-picker {
  position: absolute;
  z-index: 9999;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 4px 20px rgba(0,0,0,.14);
  width: 224px;
  font-family: var(--font-body);
}
.lb-picker-head {
  padding: .5rem .75rem;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #aaa;
  border-bottom: 1px solid #f0f0f0;
}
.lb-picker-list {
  max-height: 200px;
  overflow-y: auto;
}
.lb-picker-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f8f8f8;
}
.lb-picker-row:hover    { background: #fff8f0; }
.lb-picker-row.is-checked { color: var(--yellow); font-weight: 700; }
.lb-picker-add {
  flex: 1;
  padding: .45rem .75rem;
  background: none;
  border: none;
  text-align: left;
  font: inherit;
  font-size: .82rem;
  color: inherit;
  cursor: pointer;
}
.lb-picker-remove {
  flex: 0 0 auto;
  padding: .35rem .6rem;
  margin-right: .3rem;
  background: none;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: .78rem;
  color: #999;
  cursor: pointer;
  line-height: 1;
}
.lb-picker-remove:hover { background: #fee; border-color: #f99; color: #c00; }
p.lb-picker-empty {
  font-size: .78rem;
  color: var(--text-muted);
  padding: .5rem .75rem;
  margin: 0;
  border-bottom: 1px solid #f0f0f0;
}
.lb-picker-new {
  padding: .45rem .5rem;
  border-top: 1px solid #eee;
}
.lb-picker-new input {
  width: 100%;
  height: 30px;
  border: 1px solid #ddd;
  background: #fafafa;
  padding: 0 .5rem;
  font-family: var(--font-body);
  font-size: .78rem;
  outline: none;
  box-sizing: border-box;
}
.lb-picker-new input:focus { border-color: var(--yellow); }
.lb-picker-hint {
  font-size: .68rem;
  color: #bbb;
  padding: .2rem .5rem .4rem;
  margin: 0;
}

