
.chb-service-gallery{
  --gold:#b79b3a;
  --ink:#19212d;
  --dark:#101315;
  --soft:#eceeed;
  --line:#d7dadb;
  padding:110px 0 118px;
  background:#f1f2f1;
  color:var(--ink);
  overflow:hidden;
}

.chb-service-gallery *,
.chb-service-gallery *:before,
.chb-service-gallery *:after{
  box-sizing:border-box;
}

.chb-service-gallery__shell{
  width:min(1540px,calc(100% - 48px));
  margin:0 auto;
}

.chb-service-gallery__header{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(320px,.45fr);
  gap:90px;
  align-items:end;
  margin-bottom:50px;
}

.chb-service-gallery__header>div>span{
  display:block;
  margin-bottom:18px;
  color:var(--gold);
  font-family:"Lemon Milk",Arial,sans-serif;
  font-size:7px;
  letter-spacing:.16em;
}

.chb-service-gallery__header h2{
  margin:0;
  max-width:980px;
  font-family:"Lemon Milk",Arial,sans-serif;
  font-size:clamp(48px,4.9vw,80px);
  line-height:.92;
  letter-spacing:-.05em;
  font-weight:500;
}

.chb-service-gallery__header p{
  margin:0 0 5px;
  max-width:430px;
  color:#666e72;
  font-size:13px;
  line-height:1.75;
}

.chb-service-gallery__editorial{
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  grid-auto-rows:88px;
  gap:10px;
}

.chb-service-gallery__item{
  position:relative;
  padding:0;
  border:0;
  overflow:hidden;
  background:#dfe2e1;
  cursor:pointer;
}

.chb-service-gallery__item img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  transition:transform .65s cubic-bezier(.2,.7,.2,1),filter .35s ease;
}

.chb-service-gallery__item:after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 50%,rgba(8,10,12,.58));
  opacity:.75;
  transition:opacity .25s ease;
}

.chb-service-gallery__item:hover img{
  transform:scale(1.035);
}

.chb-service-gallery__item:hover:after{
  opacity:.95;
}

.chb-service-gallery__meta{
  position:absolute;
  z-index:2;
  left:16px;
  right:14px;
  bottom:14px;
  display:flex;
  align-items:flex-end;
  gap:10px;
  color:#fff;
  text-align:left;
}

.chb-service-gallery__meta small{
  color:var(--gold);
  font-family:"Lemon Milk",Arial,sans-serif;
  font-size:5px;
}

.chb-service-gallery__meta strong{
  font-family:"Lemon Milk",Arial,sans-serif;
  font-size:10px;
  line-height:1;
  font-weight:500;
}

/* repeating editorial rhythm */
.chb-service-gallery__item--1{grid-column:span 7;grid-row:span 6}
.chb-service-gallery__item--2{grid-column:span 5;grid-row:span 3}
.chb-service-gallery__item--3{grid-column:span 5;grid-row:span 3}
.chb-service-gallery__item--4{grid-column:span 4;grid-row:span 4}
.chb-service-gallery__item--5{grid-column:span 8;grid-row:span 4}
.chb-service-gallery__item--6{grid-column:span 5;grid-row:span 5}
.chb-service-gallery__item--7{grid-column:span 7;grid-row:span 5}

.chb-service-gallery__rail{
  margin-top:12px;
  display:grid;
  grid-template-columns:auto minmax(80px,1fr) auto;
  gap:16px;
  align-items:center;
}

.chb-service-gallery__rail>span{
  color:var(--gold);
  font-family:"Lemon Milk",Arial,sans-serif;
  font-size:5px;
  letter-spacing:.14em;
}

.chb-service-gallery__rail-line{
  height:1px;
  background:var(--line);
}

.chb-service-gallery__empty{
  padding:34px;
  border:1px solid var(--line);
  background:#fff;
  color:#666e72;
  font-size:13px;
}

/* fullscreen */
.chb-service-gallery-modal{
  position:fixed;
  inset:0;
  z-index:2147482600;
  display:none;
  grid-template-rows:68px minmax(0,1fr) 64px;
  background:#0c0f11;
  color:#fff;
}

.chb-service-gallery-modal.is-open{
  display:grid;
}

.chb-service-gallery-modal__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 22px;
  border-bottom:1px solid rgba(255,255,255,.12);
}

.chb-service-gallery-modal__top>span{
  color:var(--gold);
  font-family:"Lemon Milk",Arial,sans-serif;
  font-size:6px;
  letter-spacing:.14em;
}

.chb-service-gallery-modal__top button{
  position:relative;
  width:44px;
  height:44px;
  padding:0;
  border:1px solid rgba(255,255,255,.18);
  background:transparent;
  cursor:pointer;
}

.chb-service-gallery-modal__top button:before,
.chb-service-gallery-modal__top button:after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:16px;
  height:1px;
  background:#fff;
}

.chb-service-gallery-modal__top button:before{transform:translate(-50%,-50%) rotate(45deg)}
.chb-service-gallery-modal__top button:after{transform:translate(-50%,-50%) rotate(-45deg)}

.chb-service-gallery-modal__stage{
  position:relative;
  min-height:0;
  overflow:hidden;
}

.chb-service-gallery-modal__stage figure{
  position:absolute;
  inset:0;
  margin:0;
  padding:26px 6vw 56px;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  visibility:hidden;
  transform:scale(.985);
  transition:opacity .28s ease,transform .34s ease,visibility .28s ease;
}

.chb-service-gallery-modal__stage figure.is-active{
  opacity:1;
  visibility:visible;
  transform:none;
}

.chb-service-gallery-modal__stage img{
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  object-fit:contain;
}

.chb-service-gallery-modal__stage figcaption{
  position:absolute;
  left:22px;
  right:22px;
  bottom:14px;
  display:flex;
  gap:12px;
  align-items:flex-start;
}

.chb-service-gallery-modal__stage figcaption small{
  margin-top:3px;
  color:var(--gold);
  font-family:"Lemon Milk",Arial,sans-serif;
  font-size:6px;
}

.chb-service-gallery-modal__stage figcaption strong{
  display:block;
  margin-bottom:4px;
  font-family:"Lemon Milk",Arial,sans-serif;
  font-size:8px;
}

.chb-service-gallery-modal__stage figcaption p{
  margin:0;
  max-width:620px;
  color:rgba(255,255,255,.62);
  font-size:11px;
  line-height:1.5;
}

.chb-service-gallery-modal__nav{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  padding:0 22px;
  border-top:1px solid rgba(255,255,255,.12);
}

.chb-service-gallery-modal__nav button{
  border:0;
  background:transparent;
  color:#fff;
  font-family:"Lemon Milk",Arial,sans-serif;
  font-size:6px;
  cursor:pointer;
}

.chb-service-gallery-modal__nav button:last-child{text-align:right}
.chb-service-gallery-modal__nav button:hover{color:var(--gold)!important;background:transparent!important}

.chb-service-gallery-modal__nav>span{
  color:var(--gold);
  font-family:"Lemon Milk",Arial,sans-serif;
  font-size:6px;
}

html.chb-service-gallery-lock,
html.chb-service-gallery-lock body{
  overflow:hidden!important;
}

@media(max-width:1000px){
  .chb-service-gallery__header{
    grid-template-columns:1fr;
    gap:22px;
  }

  .chb-service-gallery__editorial{
    grid-auto-rows:74px;
  }
}

@media(max-width:760px){
  .chb-service-gallery{
    padding:68px 0 74px;
  }

  .chb-service-gallery__shell{
    width:calc(100% - 24px);
  }

  .chb-service-gallery__header{
    margin-bottom:30px;
  }

  .chb-service-gallery__header h2{
    max-width:350px;
    font-size:35px;
    line-height:.95;
  }

  .chb-service-gallery__header p{
    max-width:340px;
    font-size:11px;
    line-height:1.65;
  }

  .chb-service-gallery__editorial{
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-auto-rows:110px;
    gap:6px;
  }

  .chb-service-gallery__item--1{
    grid-column:span 2;
    grid-row:span 3;
  }

  .chb-service-gallery__item--2,
  .chb-service-gallery__item--3,
  .chb-service-gallery__item--4,
  .chb-service-gallery__item--5,
  .chb-service-gallery__item--6,
  .chb-service-gallery__item--7{
    grid-column:span 1;
    grid-row:span 2;
  }

  /* every 5th item becomes a cinematic full-width break */
  .chb-service-gallery__item:nth-child(5n){
    grid-column:span 2;
    grid-row:span 3;
  }

  .chb-service-gallery__meta{
    left:10px;
    bottom:10px;
  }

  .chb-service-gallery__meta strong{
    font-size:8px;
  }

  .chb-service-gallery__rail{
    gap:10px;
  }

  .chb-service-gallery-modal{
    grid-template-rows:60px minmax(0,1fr) 60px;
  }

  .chb-service-gallery-modal__stage figure{
    padding:16px 8px 58px;
  }

  .chb-service-gallery-modal__top,
  .chb-service-gallery-modal__nav{
    padding-left:12px;
    padding-right:12px;
  }
}


/* v1.0.1 — remove image filenames/titles from gallery tiles */
.chb-service-gallery__meta{
  display:none!important;
}

.chb-service-gallery__index{
  position:absolute;
  z-index:2;
  left:14px;
  bottom:12px;
  color:var(--gold);
  font-family:"Lemon Milk",Arial,sans-serif;
  font-size:5px;
  letter-spacing:.08em;
}

@media(max-width:760px){
  .chb-service-gallery__index{
    left:10px;
    bottom:9px;
    font-size:4.5px;
  }
}


/* =========================================================
   v1.0.2 — MOBILE GAP FIX
   Keeps source order intact and guarantees complete rows.
   Pattern:
   1 full width
   2 half-width images
   1 full width
   2 half-width images
   ...repeat
   ========================================================= */
@media(max-width:760px){
  .chb-service-gallery__editorial{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-auto-rows:110px!important;
    grid-auto-flow:row!important;
    gap:6px!important;
  }

  /* Reset every inherited desktop/mobile span first. */
  .chb-service-gallery__item,
  .chb-service-gallery__item--1,
  .chb-service-gallery__item--2,
  .chb-service-gallery__item--3,
  .chb-service-gallery__item--4,
  .chb-service-gallery__item--5,
  .chb-service-gallery__item--6,
  .chb-service-gallery__item--7,
  .chb-service-gallery__item:nth-child(5n){
    grid-column:auto!important;
    grid-row:auto!important;
  }

  /* Every 3-item group starts with a cinematic full-width image. */
  .chb-service-gallery__item:nth-child(3n+1){
    grid-column:1 / -1!important;
    grid-row:span 3!important;
  }

  /* The next two images always sit side-by-side. */
  .chb-service-gallery__item:nth-child(3n+2),
  .chb-service-gallery__item:nth-child(3n+3){
    grid-column:span 1!important;
    grid-row:span 2!important;
  }
}
