/* Branch-wise photo gallery (Gallery page and branch landing pages). Everything is scoped to .ehg / .ehg-lb. */
.ehg,.ehg *,.ehg-lb,.ehg-lb *{box-sizing:border-box}
.ehg{--ehg-navy:var(--elite-navy,#212b5c);--ehg-orange:var(--elite-orange,#ff6f0a);padding-block:var(--ec-pad,clamp(48px,5.4vw,78px));background:linear-gradient(180deg,#f7f8fc 0%,#fff 70%);color:var(--ehg-navy);font-family:var(--ec-font,"Philosopher",sans-serif)}
.ehg [hidden]{display:none!important}
.ehg .eh-container{width:min(1320px,100% - 32px);margin-inline:auto}
.ehg-head{max-width:760px;margin:0 auto;text-align:center}
.ehg-kicker{margin:0 0 10px!important;font-size:var(--ec-small,14px)!important;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:var(--ehg-orange)!important}
.ehg-head h2{margin:0 0 14px;font-family:inherit;font-size:clamp(27px,3.2vw,42px);line-height:1.18;font-weight:700;color:var(--ehg-navy)}
.ehg-head h2 em{font-style:normal;color:var(--ehg-orange)}
.ehg-head p{margin:0;font-size:var(--ec-lead,17px)!important;line-height:var(--ec-lead-lh,1.75)!important;color:var(--ec-body,#626b86)!important}
.ehg-branches,.ehg-tabs{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.ehg-branches{margin-top:clamp(26px,3vw,38px)}
.ehg-tabs{margin-top:clamp(22px,2.6vw,32px)}
.ehg button{font-family:inherit;cursor:pointer}
.ehg-branch,.ehg-tab{min-height:46px;padding:10px 22px;border:1px solid #d9deee;border-radius:999px;background:#fff;color:var(--ehg-navy);font-size:16px;font-weight:700;line-height:1.2;transition:.25s}
.ehg-branch:hover,.ehg-tab:hover{border-color:var(--ehg-orange);color:var(--ehg-orange)}
.ehg-branch.is-on{background:var(--ehg-navy);border-color:var(--ehg-navy);color:#fff}
.ehg-tab.is-on{background:var(--ehg-orange);border-color:var(--ehg-orange);color:#fff}
.ehg-tab small{display:inline-block;min-width:24px;margin-left:6px;padding:3px 6px;border-radius:999px;background:#212b5c14;font-size:12px}
.ehg-tab.is-on small{background:#ffffff38}
.ehg-branch-title{margin:clamp(26px,3vw,38px) 0 0;font-family:inherit;font-size:var(--ec-h3-xl,28px);line-height:1.2;text-align:center;color:var(--ehg-navy)}
.ehg-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(12px,1.6vw,22px);margin-top:clamp(22px,2.6vw,32px)}
.ehg-tile{position:relative;display:block;width:100%;aspect-ratio:4/3;margin:0;padding:0;overflow:hidden;border:0;border-radius:20px;background:#e9ecf6;box-shadow:0 12px 30px #212b5c1a;transition:transform .3s,box-shadow .3s}
.ehg-tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .5s}
.ehg-tile:hover{transform:translateY(-4px);box-shadow:0 20px 44px #212b5c33}
.ehg-tile:hover img{transform:scale(1.06)}
.ehg-tile:focus-visible,.ehg-branch:focus-visible,.ehg-tab:focus-visible,.ehg-more:focus-visible{outline:3px solid var(--ehg-orange);outline-offset:3px}
.ehg-more-row{display:flex;justify-content:center;margin-top:clamp(24px,3vw,36px)}
.ehg-more{min-height:50px;padding:12px 34px;border:0;border-radius:999px;background:var(--ehg-orange);color:#fff;font-size:17px;font-weight:700;transition:.25s}
.ehg-more:hover{background:var(--ehg-navy)}
.ehg-empty{margin:30px 0 0;text-align:center}

.ehg-lb{position:fixed;inset:0;z-index:100000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:24px;background:#0a0f30ec}
.ehg-lb[hidden]{display:none}
.ehg-lb img{max-width:min(94vw,1200px);max-height:76vh;border-radius:18px;box-shadow:0 30px 80px #000a;background:#fff}
.ehg-lb p{margin:0;color:#ffffffd9;font:16px/1.5 Arial,sans-serif;text-align:center}
.ehg-lb button{position:absolute;display:grid;place-items:center;width:52px;height:52px;padding:0;border:1px solid #ffffff59;border-radius:50%;background:#ffffff1f;color:#fff;font-size:22px;line-height:1;cursor:pointer}
.ehg-lb button:hover{background:#ff6f0a;border-color:#ff6f0a}
.ehg-lb .ehg-lb-x{top:20px;right:20px}
.ehg-lb .ehg-lb-p{left:20px;top:50%;transform:translateY(-50%)}
.ehg-lb .ehg-lb-n{right:20px;top:50%;transform:translateY(-50%)}

@media(max-width:991px){.ehg-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:767px){
  .ehg-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ehg-tile{border-radius:14px}
  .ehg-branch,.ehg-tab{padding:9px 15px;font-size:14.5px}
  .ehg-lb .ehg-lb-x{top:12px;right:12px}
  .ehg-lb .ehg-lb-p{left:8px}.ehg-lb .ehg-lb-n{right:8px}
  .ehg-lb button{width:44px;height:44px}
}
@media(prefers-reduced-motion:reduce){.ehg-tile,.ehg-tile img{transition:none}}
