.bcc-gallery-section {
  background: #ffffff;
  color: #231f20;
}
.bcc-gallery-section.is-alt {
  background: #f6f4ef;
}
.bcc-gallery-head {
  max-width: 48rem;
  margin-bottom: 2rem;
}
.bcc-gallery-head .text-style-eyebrow {
  color: #1a7ab5;
  margin-bottom: 0.5rem;
}
.bcc-gallery-head h2 {
  margin: 0;
}
.bcc-gallery-desc {
  margin: 0.75rem 0 0;
  color: rgba(35, 31, 32, 0.75);
}
.bcc-gallery-empty {
  text-align: center;
  max-width: 36rem;
}

.bcc-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.bcc-gallery-item {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 14px;
  background: #e6e2da;
  cursor: zoom-in;
}
.bcc-gallery-item[hidden] {
  display: none;
}
.bcc-gallery-item img,
.bcc-gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  pointer-events: none;
}
.bcc-gallery-item:hover img,
.bcc-gallery-item:hover video,
.bcc-gallery-item:focus-visible img,
.bcc-gallery-item:focus-visible video {
  transform: scale(1.04);
}
.bcc-gallery-item:focus-visible {
  outline: 3px solid #1a7ab5;
  outline-offset: 3px;
}
.bcc-gallery-item.is-video {
  cursor: pointer;
}
.bcc-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: rgba(26, 122, 181, 0.92);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.bcc-play-badge svg {
  margin-left: 3px;
}

.bcc-gallery-more-wrap {
  margin-top: 1.75rem;
  text-align: center;
}
.bcc-gallery-more {
  border: 0;
  border-radius: 999px;
  padding: 14px 30px;
  background: #1a7ab5;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.bcc-gallery-more:hover {
  background: #1a7ab5;
  color: #fff;
}

/* Viewer */
html.bcc-lb-open,
html.bcc-lb-open body {
  overflow: hidden;
}
.bcc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(12, 12, 12, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bcc-lightbox[hidden] {
  display: none;
}
.bcc-lb-stage {
  width: 100%;
  height: 100%;
  padding: 72px 84px 32px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bcc-lb-media {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  background: #000;
}
.bcc-lb-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  padding: 0 12px 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
}
.bcc-lb-caption {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.bcc-lb-counter {
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.6);
}
.bcc-lb-btn {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.bcc-lb-btn:hover,
.bcc-lb-btn:focus-visible {
  background: rgba(255, 255, 255, 0.24);
}
.bcc-lb-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.bcc-lb-prev,
.bcc-lb-next {
  position: absolute;
  top: 50%;
  margin-top: -24px;
  z-index: 1;
}
.bcc-lb-prev { left: 18px; }
.bcc-lb-next { right: 18px; }
.bcc-lb-prev[hidden],
.bcc-lb-next[hidden] {
  display: none;
}

@media (max-width: 767px) {
  .bcc-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
  }
  .bcc-gallery-item {
    border-radius: 10px;
  }
  .bcc-play-badge {
    width: 42px;
    height: 42px;
    margin: -21px 0 0 -21px;
  }
  .bcc-lb-stage {
    padding: 64px 8px 88px;
  }
  .bcc-lb-prev,
  .bcc-lb-next {
    top: auto;
    bottom: 20px;
    margin-top: 0;
  }
  .bcc-lb-prev { left: calc(50% - 60px); }
  .bcc-lb-next { right: calc(50% - 60px); }
}
