
.bike-gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  padding: 10px;
}

.bike-gallery .card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.bike-gallery .card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.35s ease;
  border-radius: inherit;
}

.bike-gallery .card:hover img,
.bike-gallery .card:focus img {
  transform: scale(1.05);
}

.bike-gallery .card:active {
  transform: scale(1.02);
}

/* Caption */
.bike-gallery .card .caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0,0,0,0.5);
  color: #fff;
  text-align: center;
  font-size: 0.85rem;
  padding: 4px 0;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  padding: 20px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 70%;
  border-radius: 12px;
  margin-bottom: 10px;
}

.lb-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #fff;
  border: none;
  font-size: 24px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
}
