/* Manasseh v2.5.19 — WordPress-driven Gallery Albums */
.mg-gallery-v2-page{background:#fff}
.mg-gallery-browser{padding:var(--hero-content-gap,72px) 0 96px;background:#fff}
.mg-gallery-browser-head{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:56px;align-items:end;margin-bottom:38px;padding-bottom:34px;border-bottom:1px solid var(--line)}
.mg-gallery-browser-head .mg-section-heading{margin:0;max-width:640px}
.mg-gallery-tabs{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.mg-gallery-tab{display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:10px 14px;border:1px solid var(--line);background:#fff;color:var(--ink);font-family:var(--body);font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;cursor:pointer;transition:border-color .2s ease,background .2s ease,color .2s ease}
.mg-gallery-tab small{display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;background:var(--cream);color:var(--muted);font-size:11px;line-height:1}
.mg-gallery-tab:hover,.mg-gallery-tab:focus-visible{border-color:var(--blue);outline:0}
.mg-gallery-tab.is-active{background:var(--nav);border-color:var(--nav);color:#fff}
.mg-gallery-tab.is-active small{background:rgba(255,255,255,.16);color:#fff}
.mg-gallery-album-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-flow:dense;gap:12px}
.mg-gallery-album-item{position:relative;display:block;min-width:0;aspect-ratio:4/3;overflow:hidden;background:var(--cream)}
.mg-gallery-album-item[hidden]{display:none!important}
.mg-gallery-album-item.is-featured{grid-column:span 2;grid-row:span 2;aspect-ratio:auto;min-height:520px}
.mg-gallery-album-item img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .45s ease}
.mg-gallery-album-shade{position:absolute;inset:42% 0 0;background:linear-gradient(transparent,rgba(10,16,26,.76))}
.mg-gallery-album-caption{position:absolute;left:18px;right:18px;bottom:16px;color:#fff;font-size:13px;font-weight:700;line-height:1.4;text-shadow:0 1px 4px rgba(0,0,0,.32)}
.mg-gallery-album-item:hover img{transform:scale(1.025)}
.mg-gallery-empty{margin:36px 0 0;padding:26px;background:var(--cream);color:var(--muted);font-size:15px;text-align:center}

@media(max-width:980px){
  .mg-gallery-browser-head{grid-template-columns:1fr;gap:24px;align-items:start}
  .mg-gallery-tabs{justify-content:flex-start}
  .mg-gallery-album-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mg-gallery-album-item.is-featured{min-height:430px}
}
@media(max-width:760px){
  .mg-gallery-browser{padding-top:var(--hero-content-gap,44px);padding-bottom:72px}
  .mg-gallery-browser-head{gap:20px;margin-bottom:24px;padding-bottom:24px}
  .mg-gallery-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;width:100%}
  .mg-gallery-tab{justify-content:space-between;width:100%;min-height:48px;padding:10px 12px;text-align:left}
  .mg-gallery-album-grid{grid-template-columns:1fr;gap:9px}
  .mg-gallery-album-item,.mg-gallery-album-item.is-featured{grid-column:auto;grid-row:auto;min-height:0;aspect-ratio:4/3}
  .mg-gallery-album-caption{left:14px;right:14px;bottom:13px;font-size:13px}
}
@media(max-width:390px){
  .mg-gallery-tabs{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
  .mg-gallery-tab,.mg-gallery-album-item img{transition:none!important}
  .mg-gallery-album-item:hover img{transform:none!important}
}
