/* ============================================================
   Shared image viewer (replicates the Wix Pro Gallery
   fullscreen lightbox: white stage, caption panel, arrows).
   Used by both the DESIGN page grid and the home DESIGN slides.
   Markup is created by assets/js/lightbox.js.
   ============================================================ */
.lb {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #fff;
  color: #000;
  opacity: 0;
  transition: opacity .18s ease;
}
.lb.is-open { opacity: 1; }
.lb[hidden] { display: none; }
/* True fullscreen: keep the white canvas so the image sits on white */
.lb:fullscreen { background: #fff; }
.lb:-webkit-full-screen { background: #fff; }
body.lb-locked { overflow: hidden; }

.lb-navbar { position: absolute; top: 0; left: 0; right: 0; height: 74px; z-index: 4; }
.lb-icon {
  position: absolute;
  z-index: 1;
  padding: 0;
  border: 0;
  background: none;
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .85;
  transition: opacity .2s ease;
}
.lb-icon:hover { opacity: 1; }
.lb-icon img { display: block; height: 26px; width: auto; }
.lb-icon svg { display: block; width: 26px; height: 26px; }
.lb-expand { left: 35px; top: 26px; width: 38px; height: 44px; }
.lb-close { right: 30px; top: 30px; width: 38px; height: 44px; }
/* Back arrow + inquiry CTA belong to the mobile viewer only */
.lb-back, .lb-inquire { display: none; }

.lb-stage {
  position: absolute;
  left: 6.25%;
  top: 8.22%;
  width: 57.43%;
  height: 83.55%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lb-side {
  position: absolute;
  left: 70.28%;
  top: 14.44%;
  width: 21.39%;
  max-width: 308px;
}
.lb-title { font-size: 18px; font-weight: 700; line-height: 23.4px; margin: 0 0 18px; }
.lb-desc { font-size: 18px; line-height: 28.8px; margin: 0; }

.lb-arrow {
  position: absolute;
  top: 47.2%;
  z-index: 3;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  background: none;
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .8;
  transition: opacity .2s ease;
}
.lb-arrow:hover { opacity: 1; }
.lb-arrow svg { width: 15px; height: 27px; }
.lb-prev { left: 20px; }
.lb-next { left: 65.07%; }
.lb-arrow.is-hidden { display: none; }

/* Expanded mode: drop the caption panel and let the image use the whole
   screen below the navbar (the top-left button toggles this state). */
.lb.is-expanded .lb-side { display: none; }
.lb.is-expanded .lb-stage { left: 0; top: 74px; width: 100%; height: calc(100% - 74px); }
.lb.is-expanded .lb-next { left: auto; right: 20px; }

/* ---------- Mobile viewer (matches the original): a full-bleed sheet with
   a back arrow on top, the artwork edge-to-edge right below it, and the
   caption flowing underneath. No expand/close icons, no side arrows. ---------- */
@media (max-width: 991px) {
  .lb { overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .lb-navbar { height: 52px; }
  .lb-back {
    display: flex;
    left: 12px;
    top: 12px;
    width: 40px;
    height: 40px;
    opacity: 1;
  }
  .lb-back svg { width: 24px; height: 24px; }
  .lb-expand, .lb-close, .lb-arrow { display: none; }

  .lb-stage {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    padding-top: 52px;
  }
  .lb-img {
    width: 100%;
    max-width: none;
    max-height: none;
  }

  .lb-side {
    position: static;
    width: auto;
    max-width: none;
    max-height: none;
    overflow: visible;
    padding: 22px 26px 34px;
  }
  .lb-title { font-size: 17px; line-height: 24px; margin: 0 0 12px; }
  .lb-desc { font-size: 17px; line-height: 26px; }

  .lb-inquire {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-top: 24px;
    border-radius: 50%;
    background: #2b4a9b;
    color: #fff;
  }
  .lb-inquire svg { width: 22px; height: 22px; }
}
