/* BGF Cafe: the branch page only (body class .bgf-branch). Generated from the demo stylesheet by tools/split-css.py; edit freely. */
/* ---------- 21. Info, hours, map, panels ---------- */
:where(.bgf-branch) .branch-layout { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 980px) {
  :where(.bgf-branch) .branch-layout { grid-template-columns: minmax(0, 1.6fr) minmax(330px, 1fr); }
  :where(.bgf-branch) .branch-layout__aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}
:where(.bgf-branch) .photo-grid { display: grid; gap: .6rem; grid-template-columns: repeat(2, 1fr); }
:where(.bgf-branch) .photo-grid button { padding: 0; border: 0; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; background: var(--cream-200); border-radius: var(--radius); }
:where(.bgf-branch) .photo-grid button:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
:where(.bgf-branch) .photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
:where(.bgf-branch) .photo-grid button:hover img { transform: scale(1.08); }
@media (min-width: 700px) {
  :where(.bgf-branch) .photo-grid { grid-template-columns: repeat(4, 1fr); }
}
:where(.bgf-branch) .photo-grid .is-extra { display: none; }
:where(.bgf-branch) .photo-grid [data-more] { position: relative; }
:where(.bgf-branch) .photo-grid [data-more]::after { content: attr(data-more); position: absolute; inset: 0; display: grid; place-items: center; background: rgba(11,26,42,.62); color: #fff; font-weight: 900; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; transition: background .4s; }
:where(.bgf-branch) .photo-grid [data-more]:hover::after { background: rgba(11,26,42,.4); }

/* Sticky mobile CTA (branch pages) */
:where(.bgf-branch) .sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none; grid-template-columns: repeat(3, 1fr); background: var(--navy-950); padding-bottom: env(safe-area-inset-bottom); }
:where(.bgf-branch) .sticky-cta a { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .7rem .25rem; font-size: .68rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: #fff; }
:where(.bgf-branch) .sticky-cta a svg { width: 20px; height: 20px; color: var(--gold); }
:where(.bgf-branch) .sticky-cta a.is-primary { background: var(--gold); color: var(--navy-950); }
:where(.bgf-branch) .sticky-cta a.is-primary svg { color: var(--navy-950); }
@media (max-width: 760px) {
  :where(.bgf-branch) .sticky-cta { display: grid; }
}

/* Theme additions */
:where(.bgf-branch) .branch-main { min-width: 0; }
:where(.bgf-branch) .sticky-cta { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
