.bnj-gallery-wrap {
  --bnj-dark: #062b28;
  --bnj-green: #0b4a43;
  --bnj-gold: #d9a441;
  --bnj-gold-2: #f3c75f;
  --bnj-cream: #fffaf1;
  --bnj-muted: #697875;
  --bnj-shadow: 0 24px 70px rgba(6, 43, 40, .14);
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.bnj-gallery-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 32px;
}

.bnj-gallery-filter button {
  border: 1px solid rgba(6, 43, 40, .12);
  background: #fff;
  color: var(--bnj-dark);
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 850;
  box-shadow: 0 10px 26px rgba(6, 43, 40, .05);
  transition: .25s ease;
}

.bnj-gallery-filter button.active,
.bnj-gallery-filter button:hover {
  background: var(--bnj-dark);
  color: var(--bnj-gold-2);
  transform: translateY(-2px);
}

.bnj-gallery-grid {
  display: grid;
  gap: 24px;
}

.bnj-gallery-columns-1 { grid-template-columns: 1fr; }
.bnj-gallery-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bnj-gallery-columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bnj-gallery-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.bnj-gallery-item {
  display: block;
}

.bnj-gallery-item.is-hidden {
  display: none;
}

.bnj-gallery-trigger {
  position: relative;
  width: 100%;
  height: 330px;
  padding: 0;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #eee;
  cursor: pointer;
  box-shadow: 0 16px 42px rgba(6, 43, 40, .08);
}

.bnj-gallery-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: .45s ease;
}

.bnj-gallery-trigger:hover img {
  transform: scale(1.06);
}

.bnj-gallery-overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: block;
  padding: 46px 18px 18px;
  text-align: left;
  background: linear-gradient(180deg, transparent, rgba(6, 43, 40, .85));
  color: #fff;
}

.bnj-gallery-overlay strong {
  display: block;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 950;
}

.bnj-gallery-overlay em {
  display: inline-flex;
  margin-top: 7px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(217, 164, 65, .18);
  color: var(--bnj-gold-2);
  font-style: normal;
  font-size: 12px;
  font-weight: 850;
}

.bnj-gallery-empty {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
  padding: 28px;
  border-radius: 18px;
  background: #fffaf1;
  border: 1px solid rgba(6, 43, 40, .12);
  color: var(--bnj-muted);
  text-align: center;
  font-weight: 800;
}

.bnj-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(3, 29, 27, .92);
}

.bnj-gallery-lightbox.is-open {
  display: flex;
}

.bnj-gallery-lightbox-inner {
  position: relative;
  width: min(1080px, 100%);
  max-height: 92vh;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--bnj-shadow);
}

.bnj-gallery-lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  display: block;
  background: #031d1b;
}

.bnj-gallery-lightbox-content {
  padding: 18px 22px;
}

.bnj-gallery-lightbox-content h3 {
  margin: 0;
  color: var(--bnj-dark);
  font-size: 22px;
  font-weight: 950;
}

.bnj-gallery-lightbox-content p {
  margin: 8px 0 0;
  color: var(--bnj-muted);
  line-height: 1.65;
}

.bnj-gallery-lightbox-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(6, 43, 40, .92);
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  z-index: 2;
}

@media (max-width: 1024px) {
  .bnj-gallery-columns-3,
  .bnj-gallery-columns-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .bnj-gallery-columns-2,
  .bnj-gallery-columns-3,
  .bnj-gallery-columns-4 {
    grid-template-columns: 1fr;
  }

  .bnj-gallery-trigger {
    height: 260px;
  }
}
