/* ==========================================================================
   Lee-Bauwens Gallery — design tokens (brand/DESIGN.md §10, verbatim)
   ========================================================================== */
:root {
  --lb-black:#000; --lb-ink:#212529; --lb-white:#fff;
  --lb-grey-footer:#A3A3A3; --lb-grey-rule:#A0A0A0; --lb-grey-muted:#A2A2A2;
  --lb-grey-soft:#BABABA; --lb-grey-nav:#B1B0B0; --lb-grey-light:#EDE9E9;
  --lb-font-sans: system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif;
  --lb-font-mono: Courier,"Courier New",monospace;
  --lb-weight-light:300; --lb-weight-regular:400; --lb-weight-medium:500;
  --lb-text-xs:.8rem; --lb-text-sm:1rem; --lb-text-md:1.2rem; --lb-text-lg:1.5rem; --lb-text-xl:2rem; --lb-text-giant:clamp(3rem,9vw,10rem);
  --lb-leading-body:2rem; --lb-leading-tight:.94;
  --lb-space-1:.5rem; --lb-space-2:1rem; --lb-space-3:2rem; --lb-space-4:4rem; --lb-space-5:6rem;
  --lb-gutter: clamp(1rem, 4vw, 5rem);     /* .lbcont side padding */
  --lb-rule:1px solid var(--lb-grey-rule);
  --lb-transition:.3s ease;
  --lb-underline-offset:.6rem;
  --lb-radius:0;                            /* nothing is rounded */
  --lb-shadow:none;                         /* nothing is shadowed */
}

/* Collection-site additions.
   --lb-grey-aa: the lightest grey that reaches WCAG AA (4.5:1) on white, and white on it.
   DESIGN.md §11: #A2A2A2 fails contrast, so information-bearing grey text uses this instead. */
:root {
  --lb-grey-aa: #737373;
  --lb-footer-bg: var(--lb-grey-aa);        /* the site uses --lb-grey-footer; white text on it fails AA */
  --lb-nav-height: 61.2px;                  /* = the site's navbar: 2.2rem logo; 64.4px ≥ 481, 80.4px ≥ 668 */
  --lb-frame-height: 200px;                 /* artwork thumbnail box; never crops, see .work-frame */
}
@media (min-width: 481px)  { :root { --lb-nav-height: 64.4px; } }
@media (min-width: 668px)  { :root { --lb-nav-height: 80.4px; } }
@media (min-width: 768px)  { :root { --lb-frame-height: 260px; } }
@media (min-width: 992px)  { :root { --lb-frame-height: 320px; } }

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--lb-nav-height) + 1rem); }

body {
  margin: 0;
  background: var(--lb-white);
  color: var(--lb-ink);
  font-family: var(--lb-font-sans);
  font-size: var(--lb-text-sm);
  font-weight: var(--lb-weight-regular);
  line-height: 1.5;
}
body.is-locked { overflow: hidden; }

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; }
i { font-weight: var(--lb-weight-light); }

a { color: var(--lb-black); text-decoration: none; }
a:hover { text-decoration: underline; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  border-radius: var(--lb-radius);
  padding: 0;
  cursor: pointer;
}

:focus-visible { outline: 1px solid var(--lb-black); outline-offset: 3px; }
main:focus { outline: none; }

[hidden] { display: none !important; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 30;
  padding: .5rem 1rem;
  background: var(--lb-white);
  border: 1px solid var(--lb-black);
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 .75rem;
}
/* Bootstrap 5 container widths, as on leebauwens.com, so the navbar and footer line up with the site. */
@media (min-width: 576px)  { .container { max-width: 540px; } }
@media (min-width: 768px)  { .container { max-width: 720px; } }
@media (min-width: 992px)  { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }

/* .lbcont: full-width container with the site's side padding */
.lbcont { padding-left: var(--lb-gutter); padding-right: var(--lb-gutter); }

.smallCourier {
  font-family: var(--lb-font-mono);
  font-size: .7rem;
  line-height: 1rem;
  color: var(--lb-black);
}
@media (min-width: 668px) { .smallCourier { font-size: var(--lb-text-xs); } }

.slimTitle {
  font-size: var(--lb-text-lg);
  font-weight: var(--lb-weight-light);
  line-height: 1.2;
  color: var(--lb-black);
}
@media (min-width: 668px) { .slimTitle { font-size: 1.75rem; } }

.divider_bar { height: 1px; background: var(--lb-black); margin: var(--lb-space-3) 0 var(--lb-space-4); }

/* The only button style: 1px outline, square, filled on hover. */
.btn {
  display: inline-block;
  padding: .375rem .75rem;
  border: 1px solid var(--lb-black);
  border-radius: var(--lb-radius);
  font-size: var(--lb-text-sm);
  line-height: 1.5;
  color: var(--lb-black);
  background: transparent;
  text-decoration: none;
}
.btn:hover { background: var(--lb-black); color: var(--lb-white); text-decoration: none; }

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  background: var(--lb-white);
}
/* Geometry copied from the site (Bootstrap .navbar + menu.css .MainLogo), measured to the pixel. */
.navbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: .5rem;
  padding-bottom: .5rem;
}
.navbar-brand { position: relative; z-index: 2; padding: .3125rem 0; margin-right: 1rem; }
.logo { width: auto; height: 3rem; margin-top: .4rem; }
.logo-short { display: none; }
@media (max-width: 667px) { .logo { height: 2.2rem; margin-top: .2rem; } }
@media (max-width: 480px) { .logo { margin-top: 0; } .burger { margin-top: -.2rem; } }
@media (max-width: 575.98px) {
  .logo-full { display: none; }
  .logo-short { display: block; }
}

.nav-link {
  display: block;
  padding: .5rem 0;
  font-size: var(--lb-text-sm);
  font-weight: var(--lb-weight-light);
  color: var(--lb-black);
}
.nav-link:hover,
.nav-link.active {
  text-decoration: underline 1px solid var(--lb-black);
  text-underline-offset: var(--lb-underline-offset);
}

/* ≥ 992 px: links in a row, right-aligned */
@media (min-width: 992px) {
  .burger { display: none; }
  .menu ul { display: flex; gap: 2rem; }
  .menu .nav-link { padding: .5rem; }
}

/* < 992 px: three-bar burger and full-screen white overlay (no animation) */
@media (max-width: 991.98px) {
  .burger {
    position: relative;
    z-index: 2;
    padding: .25rem .75rem;              /* Bootstrap .navbar-toggler: 54 × 28 */
  }
  .animated-icon3 { display: block; position: relative; width: 30px; height: 20px; }
  .burger span span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--lb-black);
    transform-origin: left center;
  }
  .animated-icon3 span:nth-child(1) { top: 0; }
  .animated-icon3 span:nth-child(2) { top: 10px; }
  .animated-icon3 span:nth-child(3) { top: 20px; }
  .burger[aria-expanded="true"] .animated-icon3 span:nth-child(1) { transform: rotate(45deg); left: 8px; top: 0; }
  .burger[aria-expanded="true"] .animated-icon3 span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] .animated-icon3 span:nth-child(3) { transform: rotate(-45deg); left: 8px; top: 21px; }

  .menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1;
    overflow-y: auto;
    background: var(--lb-white);
  }
  .menu.is-open { display: block; }
  .menu ul { padding: 25vh 0 2rem; text-align: center; }
  .menu .nav-link {
    padding: 8px;
    font-size: 30px;
    line-height: 1.5;
    color: var(--lb-grey-aa);
  }
  .menu .nav-link:hover,
  .menu .nav-link:focus-visible,
  .menu .nav-link.active { color: var(--lb-black); }
}

/* ==========================================================================
   Page header and filters
   ========================================================================== */
main { padding-top: calc(var(--lb-nav-height) + var(--lb-space-4)); }

.big_name {
  margin-left: -.05em;
  font-size: var(--lb-text-giant);
  font-weight: var(--lb-weight-medium);
  line-height: var(--lb-leading-tight);
  letter-spacing: 0;
  color: var(--lb-black);
}
.page-header .smallCourier { margin-top: var(--lb-space-3); }
.page-header .smallCourier + .smallCourier { margin-top: 0; }

.works-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--lb-space-1) var(--lb-space-3);
}

.filters { display: flex; flex-wrap: wrap; align-items: baseline; }
.filters-artists { margin-top: var(--lb-space-2); }
.filters-artists:empty { display: none; }
.filters li:not(:last-child)::after {
  content: "·";
  padding: 0 .6rem;
  color: var(--lb-black);
}
.filters button {
  font-weight: var(--lb-weight-light);
  color: var(--lb-black);
  padding: .25rem 0;
}
.filters button:hover,
.filters button[aria-pressed="true"] {
  text-decoration: underline 1px solid var(--lb-black);
  text-underline-offset: var(--lb-underline-offset);
}

/* ==========================================================================
   Works grid — col-6 / col-lg-4 / col-xl-3
   ========================================================================== */
.works {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.5rem;
  margin-top: 3rem;
}
@media (min-width: 768px)  { .works { margin-top: 4rem; } }
@media (min-width: 992px)  { .works { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .works { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .works { margin-top: 6rem; } }

.newsBloc {
  position: relative;
  margin-bottom: var(--lb-space-4);
  padding-bottom: 1.25rem;
  color: var(--lb-black);
}

.work-link {
  display: block;
  width: 100%;
  text-align: left;
  color: var(--lb-black);
}

/* The thumbnail box: the image keeps its ratio, centred on white, never cropped. */
.work-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--lb-frame-height);
  margin-bottom: .8rem;
  background: var(--lb-white);
}
.work-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  transition: padding var(--lb-transition);
}
.work-link:hover .work-image,
.work-link:focus-visible .work-image { padding: .3rem; }

.work-artist,
.work-title,
.work-meta,
.work-price,
.work-status { display: block; overflow-wrap: anywhere; }

.work-artist {
  font-size: 1rem;
  font-weight: var(--lb-weight-medium);
  line-height: 1.4rem;
}
.work-title { line-height: 1.4rem; margin-bottom: .4rem; }
.work-meta { margin-bottom: .4rem; }
.work-price { font-size: .9rem; line-height: 1.4rem; }
@media (min-width: 668px) {
  .work-artist { font-size: var(--lb-text-md); }
  .work-price { font-size: 1rem; }
}

/* Status: typographic only, never coloured. */
.work-status { margin-top: .2rem; color: var(--lb-black); }
.work-status[data-status="sold"],
.work-status[data-status="reserved"],
.work-status[data-status="draft"] { color: var(--lb-grey-aa); }
.work-status[data-status="sold"]::before {
  content: "•";
  margin-right: .4em;
  color: var(--lb-black);
}

/* 1 px rule under each card, black on hover */
.slim_bar_regular {
  position: absolute;
  bottom: 0;
  width: 90%;
  height: 1px;
  background: var(--lb-grey-rule);
}
.newsBloc:hover > .slim_bar_regular,
.newsBloc:focus-within > .slim_bar_regular { background: var(--lb-black); }

/* A work published live fades in; nothing else moves. */
.work.is-new { animation: work-in var(--lb-transition) both; }
@keyframes work-in { from { opacity: 0; } to { opacity: 1; } }

.works-empty { margin-bottom: var(--lb-space-4); line-height: var(--lb-leading-body); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footerMasterContainer {
  margin-top: var(--lb-space-4);
  background: var(--lb-footer-bg);
  color: var(--lb-white);
}
.footer { padding-top: 1rem; padding-bottom: 1.5rem; }

.footer-top { display: flex; justify-content: space-between; gap: 1rem; }
.footer-brand { flex: 0 1 50%; }
.footer-brand img { height: 2.6rem; width: auto; margin-top: .25rem; }
.footer-bar { height: .1rem; margin: 1rem 0; background: var(--lb-white); }

.footerIcon { display: flex; gap: .9rem; padding-top: .25rem; }
.footerIcon a { color: var(--lb-white); }
.footerIcon svg { width: 1.8rem; height: 1.8rem; fill: currentColor; }

.footer-row { display: grid; gap: 1rem 1.5rem; margin-bottom: 1rem; }
@media (min-width: 576px) { .footer-row { grid-template-columns: repeat(3, max-content); } }

.footerText,
.footerTextTitle {
  font-size: var(--lb-text-xs);
  line-height: 1.1rem;
  color: var(--lb-white);
  text-align: left;
}
.footerText { font-weight: var(--lb-weight-light); }
.footerTextTitle { display: inline-block; font-weight: 700; }
.footer a { color: var(--lb-white); }
.footer a:hover { text-decoration: underline 1px solid var(--lb-white); text-underline-offset: .2rem; }
.footer :focus-visible { outline-color: var(--lb-white); }

.footer-map { display: none; }
@media (min-width: 768px) {
  .footer-map {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 1rem;
  }
  .footer-map .footerText { margin: .5rem 0 1rem; }
  .footer-map .footerText a { display: inline-block; line-height: 1.5rem; } /* 24 px touch targets */
  .footer-map > div:nth-child(n+5) { display: none; }
  .footer-map-continued { padding-top: 1.6rem; }
}
@media (min-width: 992px) {
  .footer-map { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .footer-map > div:nth-child(n+5) { display: block; }
}

/* ==========================================================================
   Lightbox — the page stays visible behind a white blur; click outside the work to close
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--lb-black);
  cursor: zoom-out;
}
.lightbox-image,
.lightbox button,
.lightbox a,
.lightbox-caption { cursor: auto; }
.lightbox button,
.lightbox a { cursor: pointer; }

.lightbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .5rem .5rem 0 1rem;
}
.lightbox-counter { font-family: var(--lb-font-mono); font-size: var(--lb-text-xs); color: var(--lb-black); }
.lightbox-close,
.lightbox-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--lb-black);
}
.lightbox-close svg { width: 22px; height: 22px; fill: currentColor; }
.lightbox-arrow svg { width: 18px; height: 18px; fill: currentColor; }

.lightbox-stage {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: .25rem;
  min-height: 0;
  padding: .5rem;
}
.lightbox-image {
  justify-self: center;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  min-height: 0;
}
@media (min-width: 768px) {
  .lightbox-stage { grid-template-columns: 64px minmax(0, 1fr) 64px; padding: 1rem; }
  .lightbox-arrow { width: 64px; height: 64px; }
}

.lightbox-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  padding: .75rem 1rem 1rem;
  background: var(--lb-white);
  border-top: var(--lb-rule);
}
.lightbox-caption .small { font-size: .875em; line-height: 1.4; color: var(--lb-ink); }
.lightbox-caption .small strong { font-weight: var(--lb-weight-medium); color: var(--lb-black); }

/* ==========================================================================
   Reduced motion: drop the two transitions as well
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .work-image { transition: none; }
  .work.is-new { animation: none; }
}
