.bcw-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.bcw-gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 240px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.bcw-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.bcw-gallery-item:hover img {
  transform: scale(1.08);
}

.bcw-gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(11, 14, 17, 0.85) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #fff;
}

.bcw-gallery-item:hover .bcw-gallery-overlay {
  opacity: 1;
}

.bcw-gallery-overlay span {
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  padding: 0 12px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* Lightbox */
.bcw-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.bcw-lightbox.open {
  opacity: 1;
  visibility: visible;
}

.bcw-lightbox-inner {
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}

.bcw-lightbox-inner img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  object-fit: contain;
}

.bcw-lightbox-inner p {
  color: #e2e8f0;
  margin-top: 14px;
  font-size: 1rem;
  font-weight: 600;
}

.bcw-lightbox-close {
  position: fixed;
  top: 20px;
  right: 28px;
  font-size: 2.5rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  z-index: 3001;
}

.bcw-lightbox-close:hover {
  color: var(--color-orange);
}

@media (max-width: 768px) {
  .bcw-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }
  .bcw-gallery-item {
    height: 180px;
  }
}
