/* =========================================================
   NOIR MOTORS · GALERÍA
   Estilos exclusivos de la sección de imágenes.
   ========================================================= */
.gallery-section  {
  background: #090b0d;
}
.gallery-grid  {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.gallery-item  {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: #15191c;
  cursor: zoom-in;
}
.gallery-item img  {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.gallery-item:hover img  {
  transform: scale(1.06);
}
.gallery-loading  {
  grid-column: 1 / -1;
  color: #aeb5b9;
}
.gallery-lightbox  {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(0,0,0,.92);
}
.gallery-lightbox[hidden]  {
  display: none;
}
.gallery-lightbox img  {
  display: block;
  max-width: min(1100px, 94vw);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 70px rgba(0,0,0,.55);
}
.gallery-lightbox button  {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}
.gallery-lightbox p  {
  margin: 12px 0 0;
  color: #ddd;
  text-align: center;
}
@media (max-width: 800px)  {
  .gallery-grid  {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}
@media (max-width: 480px)  {
  .gallery-grid  {
    grid-template-columns: 1fr;
  }
  .gallery-lightbox  {
    padding: 14px;
  }
}
@media (prefers-reduced-motion: reduce)  {
  .gallery-item img  {
    transition: none;
  }
}
