:root{
  --bg:#ffffff;
  --panel:#ffffff;
  --text:#111111;
  --muted:rgba(0,0,0,.55);
  --hair:rgba(0,0,0,.12);
  --max:1180px;
  --radius:14px;

  --burgundy:#8b1e2d;        /* dark (era tabs) OLD burgundy #5a0f1a */
  --burgundy-2:#7FA7D9;      /* lighter (medium buttons) */
  --burgundy-border:rgba(90,15,26,.28);
  --burgundy-soft:#fff7f8;

  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  --serif: ui-serif, "Times New Roman", Times, serif;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}

body{
  margin:0;
  font-family:var(--sans);
  background-color: var(--bg);
  color:var(--text);
}

/* Keep layout width stable between short/long pages */
html{
  overflow-y: scroll;              /* fallback */
  scrollbar-gutter: stable;        /* modern browsers */
}

a{color:inherit; text-decoration:none}

/* Lock header typography so nothing else overrides it */
.header .brand{
  font-size: 1.9rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.header .nav{
  font-size: .88rem;
}

/* Don’t touch your existing nav styles — only style the active state */
nav a[aria-current="page"],
nav a.active {
  font-weight: 700;                 /* bold */
  text-decoration: underline;       /* underline */
  text-underline-offset: 8px;       /* pushes underline down */
  text-decoration-thickness: 2px;   /* nicer line */
  font-family: inherit; /* keeps whatever your nav already uses */
}

/* IMPORTANT FIX:
   Don't force every img to height:100% (it causes stretching/jumping). */
img{
  display:block;
  max-width:100%;
  height:auto;
}

.wrap{max-width:var(--max); margin:0 auto; padding:0 18px}

/* Header */
.header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.92);
  border-bottom:1px solid var(--hair);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  padding:16px 0;
}
.brand{
  font-size:1.9rem; letter-spacing:.22em; text-transform:uppercase;
}
.nav{
  display:flex; gap:16px; flex-wrap:wrap;
  color:var(--muted); font-size:.88rem;
}
.nav a{padding:6px 8px; border-radius:999px}
.nav a:hover{color:var(--text)}

/* Layout */
main{padding:28px 0 70px}
.section{margin-top:64px}
.section-head{
  display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap;
  align-items:baseline; margin-bottom:16px;
}
.section-title{margin:0; font-family:var(--serif); font-size:1.5rem}
.section-desc{margin:0; color:var(--muted); max-width:70ch}

.rule{
  border:none;
  border-top:1px solid var(--hair);
  margin:10px 0 18px;
}

.minor-title{
  margin:0;
  font-family:var(--serif);
  font-size:1.25rem;
}

/* Exhibitions page background */
.page-exhibitions .header,
.page-exhibitions main{
  position: relative;
  z-index: 1;
}

.page-exhibitions{
  background-image: url("../img/bg/exhibitions.webp");
  background-repeat: no-repeat;

  background-color: #fff;

  /* ✅ stays fixed while you scroll */
  background-attachment: fixed;

  /* ✅ keep whole sculpture visible */
  background-size: contain;

  /* ✅ shift it to the right */
  background-position: 90% center; /* try 70%–90% */
}

/* Optional: soften the background so text stays readable */
.page-exhibitions::before{
  content:"";
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,.10);
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 900px){
  .page-exhibitions{
    background-image: none !important;
    background-attachment: scroll;
  }
  .page-exhibitions::before{
    display: none; /* if you added an overlay */
  }
}



/* Hero */
/* ===== HERO (Index) — centered, text wraps around image ===== */

.hero-unified{
  margin-top:10px;
}

/* Center hero to same width as header content (.wrap) */
.hero-unified .hero-box{
  max-width:var(--max);
  margin:0 auto;
  padding:28px;
  border:1px solid var(--hair);
  border-radius:var(--radius);
  background:linear-gradient(180deg, #ffffff 0%, #f6f6f6 100%);  /* beige COLOR #EDE8D0 */
  overflow:hidden; /* contains the float */
}

/* LOCKED HERO IMAGE SIZE (prevents rotation jump) */
.hero-image-float{
  float:left;
  width:260px;          /* lock width */
  height:320px;         /* lock height */
  margin:0 26px 18px 0;
  border-radius:12px;
  object-fit:cover;     /* crop to fill frame */
  object-position:center;
}

/* Ensure paragraphs look nice */
.hero-unified .hero-box.prose{
  line-height:1.85;
  color:rgba(0,0,0,.80);
}

.hero-unified .hero-box.prose p{
  margin-top:0;
}

/* Clear float */
.hero-unified .hero-box::after{
  content:"";
  display:block;
  clear:both;
}

/* Mobile: image becomes full width on top, height locked smaller */
@media (max-width: 800px){
  .hero-image-float{
    float:none;
    width:100%;
    height:380px;      /* mobile locked height */
    max-width:none;
    margin:0 0 16px 0;
  }
}

.hero-rotate{
  transition: opacity 1.2s ease-in-out;
}
.hero-rotate.fade-out{ opacity:0; }
.hero-rotate.fade-in{ opacity:1; }

/* Buttons */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  border-radius:999px;
  padding:10px 16px;
  border:1px solid rgba(0,0,0,.20);
  background:#111;
  color:#fff;
  font-size:.92rem;
  font-weight:500;
}
.btn:hover{filter:brightness(1.02)}
.btn.ghost{
  background:transparent;
  color:var(--text);
  border-color:rgba(0,0,0,.22);
}
.btn.ghost:hover{border-color:rgba(0,0,0,.35)}

/* ===== Artwork era tabs ===== */
.era-tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:12px 0 14px;
}

.era-tab{
  border-radius:999px;
  padding:10px 16px;
  border:1px solid rgba(0,0,0,.18);
  background:transparent;
  color:var(--muted);
  cursor:pointer;
  font-size:.95rem;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.era-tab:hover{
  border-color:var(--burgundy-border);
  color:var(--text);
}

.era-tab.active{
  background:var(--burgundy);
  border-color:var(--burgundy);
  color:#fff;
}

/* ===== Medium buttons (reuse your existing .filter styles but override) ===== */
#mediumFilters .filter{
  border-color:var(--burgundy-border);
  color:var(--burgundy);
}

#mediumFilters .filter:hover{
  border-color:rgba(90,15,26,.45);
}

#mediumFilters .filter.active{
  background:var(--burgundy-2);
  border-color:var(--burgundy-2);
  color:#fff;
}


/* Panels */
.hero-panel,
.prose,
.shop-card,
.contact{
  border:1px solid var(--hair);
  border-radius:var(--radius);
}

.prose,
.shop-card,
.contact{
  background:linear-gradient(180deg, #ffffff 0%, #f6f6f6 100%);
}

.hero-panel{padding:18px}
.panel-title{margin:0 0 10px; font-family:var(--serif); font-size:1.1rem}
.panel-text{margin:0 0 10px; color:rgba(0,0,0,.75); line-height:1.7}
.panel-note{margin:0; color:var(--muted); font-size:.88rem; line-height:1.6}

.prose{
  padding:18px;
  line-height:1.85;
  color:rgba(0,0,0,.80);
  transition: transform .18s ease, box-shadow .18s ease;
}

/* Filters */
.filters{display:flex; gap:10px; flex-wrap:wrap; margin:14px 0 18px}
.filter{
  border-radius:999px;
  padding:8px 14px;
  border:1px solid rgba(0,0,0,.18);
  background:transparent;
  color:var(--muted);
  cursor:pointer;
  font-size:.9rem;
}
.filter:hover{color:var(--text); border-color:rgba(0,0,0,.28)}
.filter.active{background:#111; color:#fff; border-color:#111}

/* Gallery */
/* Hide artwork captions on the grid (keep for lightbox) */
.card .meta{
  display:none;
}

.grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:14px;
}
@media(max-width:940px){ .grid{grid-template-columns:repeat(2, minmax(0,1fr))} }
@media(max-width:640px){ .grid{grid-template-columns:1fr} }

.card{
  border-radius:14px;
  overflow:hidden;
  border:1px solid var(--hair);
  background:#fff;
  transition: transform .16s ease, border-color .16s ease;
  cursor:pointer;
}
.card:hover{
  transform: translateY(-2px);
  border-color: rgba(0,0,0,.22);
}
.card img{height:260px; background:#fafafa; object-fit:cover}
.meta{padding:12px 12px 14px}
.title{margin:0 0 2px; font-size:.95rem}
.small{margin:0; color:var(--muted); font-size:.85rem; line-height:1.5}

/* Decade blocks */
.decade{
  padding:0;
  margin:34px 0 0;
}
.decade h3{
  margin:0 0 8px;
  font-size:1.4rem;
  font-weight:600;
}
.decade hr{
  border:none;
  border-top:1px solid var(--hair);
  margin:0 0 14px;
}
.decade ul{
  list-style:none;
  padding:0;
  margin:0;
}
.decade li{
  margin:0 0 8px;
  color:rgba(0,0,0,.68);
  line-height:1.6;
}

/* Lists (Bibliography) */
.list{
  list-style:none;
  padding:0; margin:0;
  border-top:1px solid var(--hair);
}
.list li{
  display:flex;
  justify-content:space-between;
  gap:18px;
  padding:14px 0;
  border-bottom:1px solid var(--hair);
  color:var(--muted);
}
.list li span:first-child{min-width:70px; color:rgba(0,0,0,.45)}
.list li span:last-child{color:rgba(0,0,0,.78)}

/* =========================
   Bibliography — Featured visuals
   ========================= */

.biblio-featured{
  margin: 18px 0 34px;
  display: grid;
  gap: 22px;
}

.biblio-feature-block{
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #f6f6f6 100%);
  padding: 18px;
}

.biblio-feature-title{
  margin: 0 0 8px;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.biblio-feature-desc{
  margin: 0 0 14px;
  color: rgba(0,0,0,.68);
  line-height: 1.6;
  max-width: 70ch;
}

/* Covers grid */
.biblio-covers{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.biblio-covers--two{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.biblio-cover{
  margin: 0;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.biblio-cover img{
  width: 800px;            /* width: 100%; */
  height: 140px;          /* keeps it tidy */
  object-fit: cover;      /* crops nicely */
  display: block;
  background: #fafafa;
}

.biblio-cover figcaption{
  padding: 10px 12px 12px;
  color: rgba(0,0,0,.62);
  font-size: .9rem;
  line-height: 1.4;
}

/* Archival strip */
.biblio-strip{
  margin: 0;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.biblio-strip img{
  width: 100%;
  height: 180px;       /* strip feel */
  object-fit: cover;
  display: block;
  background: #fafafa;
}

.biblio-strip figcaption{
  padding: 10px 12px 12px;
  color: rgba(0,0,0,.62);
  font-size: .9rem;
}

/* Responsive */
@media (max-width: 940px){
  .biblio-covers{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .biblio-covers--two{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 640px){
  .biblio-covers,
  .biblio-covers--two{
    grid-template-columns: 1fr;
  }
  .biblio-cover img{
    height: 320px;
  }
  .biblio-strip img{
    height: 220px;
  }
}
/* =========================
   Bibliography catalogue covers
   ========================= */

.biblio-covers{
  display: flex;
  gap: .5px;
  align-items: flex-start;
  margin-top: 4px;
}

.biblio-covers figure{
  margin: 0;
  width: 160px;
}

.biblio-covers img{
  width: 140px;
  height: 200px;
  object-fit: cover;   /* crops nicely */
  display: block;
}

.biblio-covers figcaption{
  margin-top: 8px;
  font-size: .85rem;
  color: var(--muted);
}

/* ===== Monographs (each monograph = 2-col row) ===== */

.mono-stack{
  margin-top: 16px;
}

.mono-item{
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 34px;
  align-items: center;
}

/* Cover */
.mono-cover{ margin: 0; }

.mono-cover img{
  width: 100%;
  height: 360px;
  object-fit: contain;     /* don't crop covers */
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--hair);
  padding: 10px;
}

.mono-cover figcaption{
  margin-top: 10px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.35;
  text-align: center;
}

/* Details */
.mono-details{ min-width: 0; }

.mono-title{
  margin: 0 0 12px;
  font-style: italic;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Label/value alignment */
.mono-meta{
  margin: 0 0 12px;
  line-height: 1.65;
  display: grid;
  grid-template-columns: 120px 1fr;
  column-gap: 14px;
  row-gap: 6px;
}

.mono-label{
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.06em;
  opacity: 0.7;
}

.mono-note{ margin: 6px 0 0; opacity: 0.85; }

.mono-sep{
  border: 0;
  border-top: 1px solid rgba(0,0,0,0.08);
  margin: 22px 0;
}

/* Mobile */
@media (max-width: 800px){
  .mono-item{
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .mono-cover img{
    height: 260px;
    padding: 8px;
  }
  .mono-meta{
    grid-template-columns: 110px 1fr;
  }
}

/* Awards */
.awards{margin-top:42px}
.awards-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:28px;
}
@media(max-width:800px){ .awards-grid{grid-template-columns:1fr} }
.bullets{list-style:none; padding:0; margin:0}
.bullets li{margin:0 0 10px; color:rgba(0,0,0,.72); line-height:1.6}
.bullets strong{color:var(--text)}

/* Shop/Contact */
.shop{display:grid; grid-template-columns:minmax(0,1fr); gap:14px}
.shop-card{padding:18px}
.shop-title{margin:0 0 8px; font-family:var(--serif); font-size:1.2rem}
.shop-text{margin:0 0 12px; color:rgba(0,0,0,.75); line-height:1.7}

.contact{
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.contact-link,
.contact-small{
  font-size:1.1rem;
  letter-spacing:0.01em;
  line-height:1.35;
  color:var(--text);
}

.contact-link:hover,
.contact-small:hover{
  text-decoration:underline;
  text-underline-offset:3px;
}

.prose,
.contact,
.shop-card{
  transition: transform .18s ease, box-shadow .18s ease;
  will-change: transform;
}

.prose:hover,
.contact:hover,
.shop-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

/* Footer */
.footer{
  border-top:1px solid var(--hair);
  color:var(--muted);
  font-size:.85rem;
  padding:22px 0 34px;
  display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap;
}
.footer a:hover{color:var(--text)}

.footer-right img {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.footer-right a:hover img {
  opacity: 1;
}

/* Biblio */

.biblio-block{
  margin:34px 0 0;
}
.biblio-block h3{
  margin:0 0 8px;
  font-size:1.15rem;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.biblio-block hr{
  border:none;
  border-top:1px solid var(--hair);
  margin:0 0 14px;
}
.biblio-block ul{
  list-style:none;
  padding:0;
  margin:0;
}
.biblio-block li{
  margin:0 0 10px;
  color:rgba(0,0,0,.72);
  line-height:1.6;
}

.biblio-block a{
  text-decoration: underline;
  text-underline-offset: 3px;
}

.biblio-block a:hover{
  opacity: .75;
}

/* Era intro panel */
.era-intro{
  margin:12px 0 14px;
}

/* Hard reset header sizing so it is identical on every page */
.header{
  font-size:16px; /* prevents page-level font-size inheritance */
}

.header a.brand{
  font-size:2.6rem;
  letter-spacing:.22em;
  text-transform:uppercase;
}

.header nav.nav{
  font-size:.88rem;
}

.footer-right{
  display: flex;
  align-items: center;
  gap: 14px;
}

@media (max-width: 640px){
  .header a.brand{
    font-size: 1.8rem;
    letter-spacing: .18em;
  }
}


/* Biography portrait (quiet, catalogue style) */
.bio-prose::after {
  content: "";
  display: block;
  clear: both;
}

.bio-portrait{
  float:right;
  width:260px;
  height:320px;          /* ✅ lock the box height */
  margin:90 90 24px 32px;
}

.bio-portrait img{
  width:100%;
  height:100%;           /* ✅ fill the box */
  object-fit:cover;      /* ✅ crop nicely */
  object-position:center;
  border-radius:6px;
  filter:none;
}

@media (max-width: 720px){
  .bio-portrait{
    float:none;
    width:100%;
    max-width:420px;
    height:380px;        /* ✅ locked mobile height */
    margin:0 0 18px 0;
  }
}

.bio-portrait figcaption {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #666;
}

/* Biography rotating portrait (prevents layout jump) */
.bio-rotate{
  width: 100%;
  height: 320px;     /* pick a height you like */
  object-fit: cover;
  display: block;
}

/* Awards header row with “View certificate” link */
.awards-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.doc-link {
  font-size: 0.9rem;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid #cfcfcf;
  padding-bottom: 1px;
  white-space: nowrap;
}

.doc-link:hover {
  border-bottom-color: #888;
}

/* Responsive: stack portrait above text on small screens */
@media (max-width: 720px) {
  .bio-portrait {
    float: none;
    width: 100%;
    max-width: 420px;
    margin: 0 0 18px 0;
  }

  .awards-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Inline certificate links inside awards */
.awards-list li {
  position: relative;
}

.doc-link.inline {
  margin-left: 8px;
  font-size: 0.85rem;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid #d0d0d0;
  padding-bottom: 1px;
  white-space: nowrap;
}

.doc-link.inline:hover {
  border-bottom-color: #888;
}

/* Optional: slightly dim icon so it doesn't compete with text */
.doc-link.inline {
  opacity: 0.85;
}
/* =========================
   LIGHTBOX (single source of truth)
   ========================= */

.lightbox{
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
}

.lightbox[aria-hidden="false"]{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  box-sizing: border-box;
}

.lightbox-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.60);
}

/* Centered dialog */
.lightbox-dialog{
  position: relative;
  width: min(1000px, 92vw);
  max-height: 86vh;
  z-index: 1;
}

/* White panel */
.lightbox-body{
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.20);

  display: grid;
  grid-template-rows: 1fr auto;
  max-height: 86vh;
}

/* Image is centered in the stage */
#lightboxImg{
  justify-self: center;
  align-self: center;

  width: auto !important;
  height: auto !important;
  max-width: 92vw !important;
  max-height: 70vh !important;

  object-fit: contain;
  background: #fff;
}

/* Meta */
.lightbox-meta{
  padding: 14px 14px 16px;
  border-top: 1px solid rgba(0,0,0,.10);
  text-align: center;
}

/* Close */
.lightbox-close{
  position: absolute;
  right: 12px;
  top: 12px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.30);
  background: rgba(17,17,17,.85);
  color: #fff;
  cursor: pointer;
  font-size: 28px;
  line-height: 40px;
  z-index: 2;
}

/* Nav buttons */
.lightbox-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.30);
  background: rgba(17,17,17,.70);
  color: #fff;
  cursor: pointer;
  font-size: 28px;
  line-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  z-index: 2;
}

.lightbox-nav.prev{ left: -56px; }
.lightbox-nav.next{ right: -56px; }

@media (max-width: 640px){
  .lightbox[aria-hidden="false"]{ padding: 14px; }
  .lightbox-nav.prev{ left: 8px; }
  .lightbox-nav.next{ right: 8px; }
  #lightboxImg{ max-height: 65vh !important; }
}

/* =========================
   Life & Context — archival photo strip
   ========================= */

.life-archive{
  margin: 22px 0 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}

.life-archive figure{
  margin: 0;
  border: 1px solid var(--hair);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.life-archive img{
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  /* filter: grayscale(100%); */
}

.life-archive figcaption{
  padding: 10px 12px;
  font-size: 0.85rem;
  color: rgba(0,0,0,.65);
  line-height: 1.4;
}

.life-archive a{
  display:block;
  cursor: pointer;
}

.life-archive a:hover img{
  opacity: 0.92;
  transform: scale(1.01);
}

.life-archive img{
  transition: opacity .2s ease, transform .2s ease;
}

/* Mobile: stack nicely */
@media (max-width: 800px){
  .life-archive{
    grid-template-columns: 1fr;
  }

  .life-archive img{
    height: 260px;
  }
}
