/* ---------- Safari bushdrive Gallery ---------- */
.bushdrive-gallery {
  padding: 2rem 1.5rem 5rem;  /* top | sides | bottom */
  background: transparent;    /* Inherit body background */
  color: inherit;             /* Inherit body text color */
  text-align: center;
  overflow: hidden;
  transition: color 0.4s ease;
  margin-top: -46px !important;
}

.fg-head h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.fg-head .sub {
  opacity: 0.7;
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
  font-style: italic;
}

/* Grid */
.fg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  grid-auto-rows: 240px;
  grid-auto-flow: dense;
  gap: 1.5rem;
}

.fg-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.fg-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  transition: transform 0.6s ease;
}

.fg-item:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}
.fg-item:hover img {
  transform: scale(1.1);
}

/* Shapes on big screens */
@media (min-width: 1024px) {
  .fg-item.wide { grid-column: span 2; }
  .fg-item.tall { grid-row: span 2; }
  .fg-item.big { grid-column: span 2; grid-row: span 2; }
}

/* Tablet / Mobile */
@media (max-width: 768px) {
  .fg-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
  }
  .fg-item {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
  .fg-item img {
    height: auto;
    aspect-ratio: 4/3;
  }
}
@media (max-width: 480px) {
  .fg-grid {
    grid-template-columns: 1fr;
  }
  .fg-item img {
    aspect-ratio: 16/9;
  }
}
