/*
 * Being Topper — Evidence Gallery
 * Masonry base (natural photo proportions, no cropping, scales well
 * at real photo counts) + column control + mobile responsiveness
 * carried over from the grid version + visual polish (border,
 * hover-lift, gold accent) carried over from the styled version.
 */
.bt-eg-wrap {
  --bt-eg-navy: #1B1F3B;
  --bt-eg-gold: #C6A75E;
  --bt-eg-gold-soft: rgba(198,167,94,.5);
  --bt-eg-ink: #1b1f3b;
  --bt-eg-muted: #4A4F5D;
  --bt-eg-border: #E5E7EB;
  font-family: inherit;
}

.bt-eg-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 40px;
}

.bt-eg-filter {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid var(--bt-eg-border);
  background: #fff;
  color: var(--bt-eg-ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.bt-eg-filter:hover,
.bt-eg-filter:focus-visible {
  border-color: var(--bt-eg-gold);
  color: var(--bt-eg-gold);
}

.bt-eg-filter.is-active {
  background: var(--bt-eg-navy);
  border-color: var(--bt-eg-navy);
  color: #fff;
}

/* Masonry: column-count based, natural photo proportions, no cropping */
.bt-eg-grid {
  column-count: var(--bt-eg-columns, 4);
  column-gap: 24px;
}

.bt-eg-item {
  display: inline-block;
  width: 100%;
  margin: 0 0 24px;
  position: relative;
  overflow: hidden;
  background: transparent;
  break-inside: avoid;
  transition: transform .25s ease;
}

.bt-eg-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-bottom: 3px solid var(--bt-eg-gold);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}

.bt-eg-item:hover,
.bt-eg-item:focus-within {
  transform: translateY(-4px);
}

.bt-eg-item:hover::after,
.bt-eg-item:focus-within::after {
  opacity: 1;
}

.bt-eg-item.is-hidden {
  display: none;
}

.bt-eg-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .4s ease;
}

.bt-eg-item:hover img {
  transform: scale(1.04);
}

.bt-eg-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 18px 16px;
  background: linear-gradient(to top, rgba(7,26,51,.92) 10%, rgba(7,26,51,0));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
}

.bt-eg-item:hover .bt-eg-caption,
.bt-eg-item:focus-within .bt-eg-caption {
  opacity: 1;
  transform: translateY(0);
}

.bt-eg-caption strong {
  display: block;
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: .01em;
  margin-bottom: 3px;
}

.bt-eg-caption span {
  display: block;
  color: rgba(255,255,255,.72);
  font-size: 11px;
  line-height: 1.55;
}

.bt-eg-empty {
  color: var(--bt-eg-muted);
  font-size: 15px;
}

@media (max-width: 1023px) {
  .bt-eg-grid {
    column-count: 3;
    column-gap: 18px;
  }
  .bt-eg-item {
    margin-bottom: 18px;
  }
}

@media (max-width: 767px) {
  .bt-eg-grid {
    column-count: 2;
    column-gap: 12px;
  }
  .bt-eg-item {
    margin-bottom: 12px;
  }
  .bt-eg-item:hover,
  .bt-eg-item:focus-within {
    transform: none;
  }
  .bt-eg-filters {
    gap: 8px;
  }
  .bt-eg-filter {
    padding: 9px 16px;
    font-size: 11px;
  }
}
