/* LED red glow effect on gallery images hover */
/* LED red glow effect on gallery images hover (más visible y sin conflicto) */
.gallery-item img {
  transition: box-shadow 0.4s cubic-bezier(.4,1.7,.7,.7), transform 0.4s cubic-bezier(.4,1.7,.7,.7);
  z-index: 1;
}
.gallery-item:hover img {
  box-shadow: 0 0 48px 8px rgba(200,16,16,0.55), 0 2px 16px 0 rgba(0,0,0,0.10) !important;
  transform: scale(1.07) rotate(-1deg) !important;
  z-index: 2;
}
.gallery-one {
  padding: 70px 0 80px 0; /* Aumenta el padding-bottom para más espacio abajo */
  background: var(--billdins-white);
}
.gallery-one__head {
  text-align: center;
  margin-bottom: 36px;
  width: 100%;
}
.gallery-one__title {
  margin: 0;
  font-weight: 800;
  font-size: 2.5rem;
  letter-spacing: 1px;
}
.gallery-one__subtitle {
  color: #6d6d6d;
  margin-top: 8px;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}
.gallery-container {
  max-width: 1300px; /* Más ancho para galería grande */
  margin: 0 auto;
  padding: 0 8px;    /* Menos padding lateral */
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;         /* Menos espacio entre imágenes */
  width: 100%;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
  background: #f7f7f7;
  transition: box-shadow .3s;
}

/* Red sheen flash sweep on hover */
.gallery-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  height: 100%;
  width: 55%;
  background: linear-gradient(120deg,
    rgba(200,16,16,0) 0%,
    rgba(200,16,16,0.10) 20%,
    rgba(200,16,16,0.35) 50%,
    rgba(200,16,16,0.10) 80%,
    rgba(200,16,16,0) 100%);
  transform: skewX(-20deg);
  pointer-events: none;
  opacity: 0;
}

.gallery-item:hover::after {
  animation: red-sheen 0.85s ease-in-out 1;
  opacity: 1;
}

@keyframes red-sheen {
  0% { left: -150%; }
  100% { left: 150%; }
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s cubic-bezier(.4,1.7,.7,.7);
}
.gallery-item:hover img {
  transform: scale(1.07) rotate(-1deg);
}
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(14,18,29,0.72);
  color: #fff;
  font-size: 1.05rem;
  padding: 12px 18px 10px 18px;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  letter-spacing: 0.5px;
}
.gallery-item:hover figcaption {
  opacity: 1;
}

/* Column spans (6-col grid) */
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-6 { grid-column: span 6; }

/* Ratios para variar alturas */
.ratio-1-1 { aspect-ratio: 1 / 1; }
.ratio-3-4 { aspect-ratio: 3 / 4; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-16-9 { aspect-ratio: 16 / 9; }

/* Responsive */
@media (max-width: 991px) {
  .gallery-container { max-width: 98vw; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .span-3 { grid-column: span 4; }
  .span-2 { grid-column: span 2; }
}
@media (max-width: 575px) {
  .gallery-container { padding: 0 4px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .span-3, .span-2 { grid-column: span 2; }
  .gallery-one__title { font-size: 1.5rem; }
}