/* BT Gallery — matches the site's dark "bhr" look. */
.btg{
  --btg-bg:#0b1220; --btg-card:rgba(255,255,255,.04); --btg-line:rgba(255,255,255,.08);
  --btg-text:#e6edf6; --btg-muted:#9fb0c9; --btg-accent:#5ec8ff; --btg-primary:#2b7cff;
  background:var(--btg-bg); color:var(--btg-text);
  padding:64px 16px 88px; box-sizing:border-box; text-align:start;
}
.btg *, .btg *::before, .btg *::after{ box-sizing:border-box; }
.btg[dir="rtl"]{ font-family:Vazirmatn,"BT Estedad",Tahoma,sans-serif; }
.btg[dir="ltr"]{ font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif; }
.btg-wrap{ max-width:1100px; margin:0 auto; }
.btg-eyebrow{ color:var(--btg-accent); letter-spacing:2px; font-weight:600; font-size:14px; text-transform:uppercase; margin-bottom:12px; }
.btg[dir="rtl"] .btg-eyebrow{ letter-spacing:0; }
.btg .btg-title{ font-size:clamp(28px,4vw,42px); font-weight:800; line-height:1.4; margin:0 0 12px; color:var(--btg-text) !important; }
.btg-lead{ color:var(--btg-muted); font-size:17px; line-height:1.8; max-width:640px; margin:0 0 28px; }

/* filter tabs */
.btg-filters{ display:flex; flex-wrap:wrap; gap:8px; margin:0 0 28px; }
.btg .btg-filter{
  background:rgba(94,200,255,.08) !important; color:var(--btg-muted) !important;
  border:1px solid rgba(94,200,255,.25) !important; border-radius:999px !important;
  padding:8px 18px !important; font:inherit; font-size:14px; font-weight:600; cursor:pointer;
  transition:background-color .2s, color .2s;
}
.btg .btg-filter small{ opacity:.7; font-weight:500; margin-inline-start:4px; }
.btg .btg-filter:hover{ color:var(--btg-text) !important; }
.btg .btg-filter.is-on{ background:var(--btg-primary) !important; border-color:var(--btg-primary) !important; color:#fff !important; }
.btg .btg-filter:focus-visible, .btg .btg-open:focus-visible{ outline:2px solid var(--btg-accent); outline-offset:3px; }

/* masonry grid (CSS columns keep portrait videos and landscape photos natural) */
.btg .btg-grid{ list-style:none !important; margin:0 !important; padding:0 !important; columns:3 300px; column-gap:20px; }
.btg .btg-item{ break-inside:avoid; margin:0 0 20px !important; padding:0 !important; display:block; list-style:none; }
.btg .btg-item[hidden]{ display:none; }
.btg .btg-open{
  display:block; width:100%; padding:0 !important; margin:0; border:1px solid var(--btg-line) !important;
  border-radius:14px !important; overflow:hidden; background:var(--btg-card) !important; cursor:zoom-in;
  position:relative; transition:transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.btg .btg-open:hover{ transform:translateY(-3px); border-color:rgba(94,200,255,.45) !important; box-shadow:0 14px 36px rgba(0,0,0,.45); }
.btg-media{ display:block; position:relative; width:100%; background:#0e1830; }
.btg-media img, .btg-media video{ display:block; width:100%; height:100%; object-fit:cover; }
.btg-item.is-photo .btg-media img{ height:auto; }
.btg-item.is-video .btg-open{ cursor:pointer; }
.btg-play{
  position:absolute; inset:0; margin:auto; width:64px; height:64px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; color:#fff;
  background:rgba(43,124,255,.85); box-shadow:0 0 0 6px rgba(94,200,255,.18), 0 8px 24px rgba(0,0,0,.45);
  transition:transform .2s ease;
}
.btg-play svg{ margin-inline-start:3px; }
[dir="rtl"] .btg-play svg{ margin-inline-start:0; margin-inline-end:-3px; }
.btg .btg-open:hover .btg-play{ transform:scale(1.08); }
.btg-cap{ color:var(--btg-muted); font-size:14px; line-height:1.7; margin:10px 4px 0; }
.btg-empty{ color:var(--btg-muted); border:1px dashed rgba(94,200,255,.3); border-radius:14px; padding:40px 20px; text-align:center; }

/* lightbox */
.btg-lb{
  position:fixed; inset:0; z-index:100000; background:rgba(5,9,18,.94);
  display:flex; align-items:center; justify-content:center; padding:56px 64px;
  -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
}
.btg-lb[hidden]{ display:none; }
.btg-lb-fig{ margin:0; max-width:100%; max-height:100%; display:flex; flex-direction:column; align-items:center; gap:12px; }
.btg-lb-stage img, .btg-lb-stage video{
  display:block; max-width:min(1200px, calc(100vw - 128px)); max-height:calc(100vh - 150px);
  width:auto; height:auto; border-radius:10px; box-shadow:0 20px 60px rgba(0,0,0,.6); background:#000;
}
.btg-lb-cap{ color:var(--btg-text); font-size:15px; line-height:1.7; text-align:center; max-width:760px; }
.btg-lb-cap:empty{ display:none; }
.btg .btg-lb-close, .btg .btg-lb-nav{
  position:absolute; background:rgba(16,26,46,.85) !important; color:#fff !important;
  border:1px solid rgba(94,200,255,.35) !important; border-radius:50% !important;
  width:48px; height:48px; padding:0 !important; display:flex; align-items:center; justify-content:center;
  cursor:pointer; line-height:1; transition:background-color .2s;
}
.btg .btg-lb-close:hover, .btg .btg-lb-nav:hover{ background:var(--btg-primary) !important; }
.btg .btg-lb-close{ top:14px; inset-inline-end:14px; font-size:30px; }
.btg .btg-lb-nav{ top:50%; transform:translateY(-50%); }
.btg .btg-lb-prev{ inset-inline-start:10px; }
.btg .btg-lb-next{ inset-inline-end:10px; }
[dir="rtl"] .btg-lb-nav svg{ transform:scaleX(-1); }
.btg-lb-count{ position:absolute; top:24px; inset-inline-start:20px; color:var(--btg-muted); font-size:13px; }
html.btg-lock, html.btg-lock body{ overflow:hidden !important; }

@media (max-width:700px){
  .btg{ padding:40px 16px 64px; }
  .btg .btg-grid{ columns:2; column-gap:12px; }
  .btg .btg-item{ margin-bottom:12px !important; }
  .btg-play{ width:48px; height:48px; }
  .btg-play svg{ width:22px; height:22px; }
  .btg-cap{ font-size:13px; }
  .btg-lb{ padding:64px 8px 72px; }
  .btg-lb-stage img, .btg-lb-stage video{ max-width:calc(100vw - 16px); max-height:calc(100vh - 170px); }
  .btg .btg-lb-nav{ top:auto; bottom:14px; transform:none; }
}
@media (prefers-reduced-motion:reduce){
  .btg .btg-open, .btg-play{ transition:none; }
}

/* Gallery page: let the section run edge to edge inside Astra and hide the theme title. */
.bt-gallery-page .entry-header, .bt-gallery-page .ast-archive-description{ display:none !important; }
.bt-gallery-page article, .bt-gallery-page .ast-article-single{
  background:transparent !important; border:0 !important; padding:0 !important; margin:0 !important;
}
.bt-gallery-page .site-content > .ast-container{ max-width:100% !important; padding:0 !important; }
.bt-gallery-page .entry-content{ margin:0 !important; }

/* The site forces `.entry-content p / span` to the main text colour; keep the gallery's muted tones. */
.btg .btg-lead, .btg .btg-cap, .btg .btg-empty, .btg .btg-lb-count{ color:var(--btg-muted) !important; }
.btg .btg-lb-cap{ color:var(--btg-text) !important; }
.btg .btg-filter span, .btg .btg-filter small{ color:inherit !important; }
.btg .btg-play{ color:#fff !important; }
