/* Shalbon Gallery - scoped under .sbl / .sbl-lb so it can't clash with the theme */
.sbl {
  --sbl-card: #2b4130;
  --sbl-gold: #d4a62a;
  --sbl-cream: #f6f1d8;
  --sbl-line: rgba(212,166,42,.25);

  display: block;
  width: 100%;
  font-family: "Inter", system-ui, sans-serif;
}
.sbl *, .sbl *::before, .sbl *::after { box-sizing: border-box; }
.sbl button { font-family: inherit; }

/* ---------- Category tabs ---------- */
.sbl .sbl-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0 0 36px; }
.sbl .sbl-pill { margin: 0; padding: 11px 22px; font-size: 13px; font-weight: 600; line-height: 1; color: var(--sbl-cream); background: var(--sbl-card); border: 1px solid var(--sbl-line); border-radius: 999px; box-shadow: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.sbl .sbl-pill:hover { border-color: var(--sbl-gold); color: var(--sbl-cream); background: var(--sbl-card); }
.sbl .sbl-pill[aria-pressed="true"] { color: #1a1a12; background: var(--sbl-gold); border-color: var(--sbl-gold); }
.sbl .sbl-pill:focus-visible, .sbl .sbl-item:focus-visible { outline: 2px solid var(--sbl-gold); outline-offset: 3px; }

/* ---------- Photo grid ---------- */
.sbl .sbl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sbl .sbl-item { position: relative; display: block; width: 100%; margin: 0; padding: 0; overflow: hidden; aspect-ratio: 1 / 1; background: var(--sbl-card); border: 0; border-radius: 12px; box-shadow: none; cursor: zoom-in; }
.sbl .sbl-item[hidden] { display: none; }
.sbl .sbl-item img { display: block; width: 100%; max-width: none; height: 100%; margin: 0; object-fit: cover; transition: transform .5s ease; }
.sbl .sbl-item:hover img { transform: scale(1.06); }
.sbl .sbl-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; text-align: left; font-size: 12px; font-weight: 600; color: var(--sbl-cream); background: linear-gradient(to top, rgba(10,18,12,.85), transparent); opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.sbl .sbl-item:hover span, .sbl .sbl-item:focus-visible span { opacity: 1; transform: none; }

/* ---------- Lightbox (added to <body> by the script) ---------- */
.sbl-lb { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 56px 72px; background: rgba(8,14,10,.94); font-family: "Inter", system-ui, sans-serif; }
.sbl-lb[hidden] { display: none; }
.sbl-lb *, .sbl-lb *::before, .sbl-lb *::after { box-sizing: border-box; }
.sbl-lb-stage { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.sbl-lb-stage img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; margin: 0; object-fit: contain; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.sbl-lb-cap { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; font-size: 13px; color: #d8d9c2; }
.sbl-lb-btn { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; color: #f6f1d8; background: rgba(43,65,48,.9); border: 1px solid rgba(212,166,42,.4); border-radius: 50%; box-shadow: none; cursor: pointer; transition: background .2s, border-color .2s; }
.sbl-lb-btn:hover { background: #2b4130; border-color: #d4a62a; }
.sbl-lb-btn:focus-visible { outline: 2px solid #d4a62a; outline-offset: 2px; }
.sbl-lb-btn svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sbl-lb-x { top: 16px; right: 16px; }
.sbl-lb-prev { left: 16px; top: 50%; margin-top: -22px; }
.sbl-lb-next { right: 16px; top: 50%; margin-top: -22px; }
.sbl-lb.sbl-single .sbl-lb-prev, .sbl-lb.sbl-single .sbl-lb-next { display: none; }

@media (max-width: 960px) {
  .sbl .sbl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 640px) {
  .sbl .sbl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sbl .sbl-pill { padding: 10px 18px; }
  .sbl .sbl-item span { opacity: 1; transform: none; }
  .sbl-lb { padding: 64px 12px 56px; }
  .sbl-lb-prev { left: 8px; top: auto; bottom: 8px; margin: 0; }
  .sbl-lb-next { right: 8px; top: auto; bottom: 8px; margin: 0; }
  .sbl-lb-cap { bottom: 22px; padding: 0 64px; }
}
@media (prefers-reduced-motion: reduce) { .sbl *, .sbl-lb * { transition: none !important; } }
