.bjgm-gallery-page {
  --bjgm-bg: #101319;
  --bjgm-card: #1d232d;
  --bjgm-mint: #53ddc6;
  --bjgm-muted: #aeb6c1;
  background: var(--bjgm-bg);
  color: #fff;
  min-height: 70vh;
}

.bjgm-gallery-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(96px, 11vw, 158px) 24px 92px;
  text-align: center;
  background:
    radial-gradient(circle at 16% 10%, rgba(83,221,198,.2), transparent 32%),
    linear-gradient(135deg, #171c23, #0d1015 70%);
}

.bjgm-gallery-hero::after {
  position: absolute;
  right: -90px;
  bottom: -150px;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(83,221,198,.16);
  border-radius: 50%;
  box-shadow: inset 0 0 0 70px rgba(83,221,198,.025), inset 0 0 0 140px rgba(83,221,198,.025);
  content: "";
}

.bjgm-gallery-hero-inner { position: relative; z-index: 1; width: min(820px, 100%); margin-inline: auto; }
.bjgm-kicker, .bjgm-collection-meta { margin: 0 0 15px; color: var(--bjgm-mint); font-size: .78rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.bjgm-gallery-hero h1 { margin: 0 0 22px; font-size: clamp(3rem, 7vw, 6rem); line-height: .98; letter-spacing: -.055em; }
.bjgm-gallery-hero p:not(.bjgm-kicker) { max-width: 720px; margin: 0 auto; color: var(--bjgm-muted); font-size: 1.08rem; }
.bjgm-view-controls { display: inline-flex; gap: 8px; margin-top: 34px; padding: 6px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(255,255,255,.05); }
.bjgm-view-controls button { min-height: 42px; padding: 10px 18px; border: 0; border-radius: 999px; background: transparent; color: #fff; font: inherit; font-size: .85rem; font-weight: 800; cursor: pointer; }
.bjgm-view-controls button.is-active { background: var(--bjgm-mint); color: #101319; }
.bjgm-collections-wrap { width: min(calc(100% - 48px), 1180px); margin-inline: auto; padding: 92px 0 120px; }
.bjgm-collection { margin-bottom: 110px; }
.bjgm-collection:last-child { margin-bottom: 0; }
.bjgm-collection-heading { display: grid; grid-template-columns: 1fr minmax(280px, .75fr); align-items: end; gap: 60px; margin-bottom: 30px; }
.bjgm-collection-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.7rem); line-height: 1.02; }
.bjgm-collection-copy, .bjgm-collection-copy p { margin: 0; color: var(--bjgm-muted); }
.bjgm-media-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.bjgm-media { position: relative; grid-column: span 4; min-height: 270px; margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 15px; background: var(--bjgm-card); }
.bjgm-media img, .bjgm-media video { width: 100%; height: 100%; display: block; object-fit: cover; }
.bjgm-media-type { position: absolute; right: 12px; bottom: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(16,19,25,.82); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.bjgm-gallery-page[data-view="hero"] .bjgm-media:first-child { grid-column: span 12; min-height: min(64vw, 650px); }
.bjgm-gallery-page[data-view="hero"] .bjgm-media:not(:first-child) { grid-column: span 4; min-height: 230px; }
.bjgm-gallery-page[data-view="grid"] .bjgm-media { grid-column: span 4; min-height: 285px; }
.bjgm-empty { max-width: 620px; margin: 40px auto; padding: 70px 30px; text-align: center; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: var(--bjgm-card); }
.bjgm-empty > span { color: var(--bjgm-mint); font-size: 2rem; }
.bjgm-empty h2 { margin: 14px 0 10px; }
.bjgm-empty p { margin: 0; color: var(--bjgm-muted); }

@media (max-width: 800px) {
  .bjgm-gallery-hero { padding-top: 82px; }
  .bjgm-collection-heading { grid-template-columns: 1fr; gap: 15px; }
  .bjgm-media, .bjgm-gallery-page[data-view="grid"] .bjgm-media { grid-column: span 6; min-height: 230px; }
  .bjgm-gallery-page[data-view="hero"] .bjgm-media:not(:first-child) { grid-column: span 6; }
}

@media (max-width: 540px) {
  .bjgm-collections-wrap { width: min(calc(100% - 32px), 1180px); padding: 65px 0 84px; }
  .bjgm-gallery-hero { padding-inline: 16px; padding-bottom: 70px; }
  .bjgm-view-controls { width: 100%; }
  .bjgm-view-controls button { flex: 1; padding-inline: 10px; }
  .bjgm-collection { margin-bottom: 72px; }
  .bjgm-media, .bjgm-gallery-page[data-view="grid"] .bjgm-media, .bjgm-gallery-page[data-view="hero"] .bjgm-media:not(:first-child) { grid-column: span 12; min-height: 245px; }
  .bjgm-gallery-page[data-view="hero"] .bjgm-media:first-child { min-height: 360px; }
}

