/* ==========================================================================
   PROJECTS — 4 real categories, each opening the actual jobs.
   Concrete and Basement removed (B&B does not do them).
   ========================================================================== */

#bb-projects { position: relative; padding: 92px 0 104px; }
#bb-projects .wrap { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
#bb-projects .eyebrow { color: #C9A961; font-weight: 700; font-size: 15px;
  letter-spacing: .30em; text-indent: .30em; text-align: center; }
#bb-projects h2 { color: #F6F1E7; font-weight: 700; font-size: clamp(34px,4vw,54px);
  line-height: 1.12; text-align: center; margin: 16px 0 12px; }
#bb-projects .sub { color: rgba(246,241,231,.70); text-align: center;
  max-width: 640px; margin: 0 auto 46px; font-size: 17px; line-height: 1.6; }

#bb-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
#bb-tabs button { background: rgba(255,255,255,.04); color: rgba(246,241,231,.78);
  border: 1px solid rgba(201,169,97,.22); border-radius: 999px;
  padding: 12px 26px; font: inherit; font-size: 14px; font-weight: 600;
  letter-spacing: .06em; cursor: pointer; transition: .22s; }
#bb-tabs button:hover { border-color: rgba(201,169,97,.55); color: #F6F1E7; }
#bb-tabs button[aria-selected="true"] { background: #C9A961; color: #2A0308; border-color: #C9A961; }

/* --- project grid: every tile the same shape, no ragged masonry ---------- */
#bb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px,1fr)); gap: 22px; }
.bb-card { position: relative; border-radius: 16px; overflow: hidden; cursor: pointer;
  border: 1px solid rgba(201,169,97,.14); background: #120709; aspect-ratio: 4/3;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), border-color .3s; }
.bb-card:hover { transform: translateY(-6px); border-color: rgba(201,169,97,.5); }
.bb-card img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.bb-card:hover img { transform: scale(1.06); }
.bb-card .veil { position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,3,5,0) 34%, rgba(8,3,5,.60) 66%, rgba(8,3,5,.94) 100%); }
.bb-card .meta { position: absolute; left: 20px; right: 20px; bottom: 18px; }
.bb-card .meta h3 { color: #F6F1E7; font-size: 21px; font-weight: 700; margin-bottom: 5px; }
.bb-card .meta span { color: #C9A961; font-size: 12.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; }
.bb-card .cnt { position: absolute; top: 14px; right: 14px; background: rgba(10,4,6,.86);
  border: 1px solid rgba(201,169,97,.35); color: #C9A961; border-radius: 999px;
  padding: 6px 13px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; }

/* ==========================================================================
   VIEWER — fully opaque. Nothing behind it shows through.
   One big image, arrows, keyboard, thumbnail rail. Never opens a new window.
   ========================================================================== */
#bb-lb { position: fixed; inset: 0; z-index: 99999; background: #070304;
  display: none; grid-template-rows: auto 1fr auto; }
#bb-lb.on { display: grid; }

#bb-lb .head { display: flex; align-items: center; justify-content: space-between;
  padding: 18px 26px; border-bottom: 1px solid rgba(201,169,97,.14); background: #070304; }
#bb-lb .head h4 { color: #F6F1E7; font-size: 19px; font-weight: 700; }
#bb-lb .head p { color: #C9A961; font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; margin-top: 3px; }
#bb-lb .x { background: none; border: 1px solid rgba(201,169,97,.4); color: #C9A961;
  border-radius: 999px; width: 44px; height: 44px; font-size: 22px; cursor: pointer;
  line-height: 1; transition: .2s; }
#bb-lb .x:hover { background: #C9A961; color: #2A0308; }

#bb-lb .stage { position: relative; overflow: hidden; background: #070304;
  display: flex; align-items: center; justify-content: center; padding: 22px 84px; }
#bb-lb .stage img { max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: 10px; display: block; }
#bb-lb .nav { position: absolute; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px; border-radius: 999px; cursor: pointer;
  background: rgba(10,4,6,.8); border: 1px solid rgba(201,169,97,.4);
  color: #C9A961; font-size: 24px; line-height: 1; transition: .2s; }
#bb-lb .nav:hover { background: #C9A961; color: #2A0308; }
#bb-lb .prev { left: 16px; } #bb-lb .next { right: 16px; }
#bb-lb .stagecount { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  color: rgba(246,241,231,.72); font-size: 12.5px; letter-spacing: .14em; }
#bb-lb .phase { position: absolute; top: 16px; left: 24px; background: rgba(10,4,6,.86);
  border: 1px solid rgba(201,169,97,.4); color: #C9A961; border-radius: 999px;
  padding: 7px 16px; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; }

#bb-lb .rail { display: flex; gap: 9px; overflow-x: auto; padding: 14px 26px 18px;
  border-top: 1px solid rgba(201,169,97,.14); background: #070304; }
#bb-lb .rail img { height: 68px; width: 92px; object-fit: cover; border-radius: 7px;
  cursor: pointer; opacity: .42; border: 2px solid transparent; transition: .2s; flex: 0 0 auto; }
#bb-lb .rail img:hover { opacity: .8; }
#bb-lb .rail img.sel { opacity: 1; border-color: #C9A961; }

@media (max-width: 700px) {
  #bb-grid { grid-template-columns: 1fr; }
  #bb-projects { padding: 64px 0 72px; }
  #bb-lb .stage { padding: 12px 10px; }
  #bb-lb .nav { width: 44px; height: 44px; }
  #bb-lb .prev { left: 6px; } #bb-lb .next { right: 6px; }
}

#bb-hide-original { display: none !important; }
