/* ================= GALLERY HERO ================= */

.gallery-hero-small {
    padding: 140px 0 80px;
    background: #000;
  }
  
  .gallery-hero-small h1 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
  }
  
  /* ================= GALLERY SECTION ================= */
  
  .gallery-section {
    background: #000;
    padding: 140px 0 260px;   /* BIG bottom space */
    overflow: visible;        /* CRITICAL */
    position: relative;
    z-index: 5;               /* sits above next section */
  }
  
  
  /* ================= 3D SLIDER ================= */
  
.gallery-slider {
    position: relative;
    width: 370px;
    height: 220px;
    margin: 0 auto;
    z-index: 10;
  
    transform-style: preserve-3d;
    transform: perspective(1200px) rotateX(-12deg) rotateY(0deg);
  
    cursor: grab;
  }
  
  .gallery-slider.dragging {
    cursor: grabbing;
  }
  
  /* ================= CAROUSEL SHADOW FLOOR ================= */

.gallery-slider::after {
    content: "";
    position: absolute;
    bottom: -140px;
    left: 50%;
    transform: translateX(-50%);
    width: 520px;
    height: 120px;
  
    background: radial-gradient(
      ellipse at center,
      rgba(0,0,0,0.65) 0%,
      rgba(0,0,0,0.35) 35%,
      rgba(0,0,0,0.15) 55%,
      rgba(0,0,0,0) 70%
    );
  
    filter: blur(28px);
    z-index: -1;
    pointer-events: none;
  }
  .gallery-item {
    filter: brightness(0.9);
  }
  
  @keyframes galleryRotate {
    from {
      transform: perspective(1200px) rotateX(-12deg) rotateY(0deg);
    }
    to {
      transform: perspective(1200px) rotateX(-12deg) rotateY(360deg);
    }
  }
  
  .gallery-item {
    position: absolute;
    inset: 0;
    transform:
      rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg))
      translateZ(480px);
  }
  
  /* Base state */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  
    opacity: 0.9;
    transform: scale(0.92);
    filter: brightness(0.75);
  
    transition: 
      transform 0.8s ease,
      filter 0.8s ease,
      box-shadow 0.8s ease;
  }
  /* Image closest to viewer (front emphasis) */
.gallery-item:nth-child(1) img {
    transform: scale(1.05);
    filter: brightness(1);
    box-shadow: 0 35px 80px rgba(0,0,0,0.85);
    opacity: 1;
  }
  
  /* ================= WAREHOUSE INAUGURATION ================= */

.warehouse-section {
  background: #000000;
  padding: 120px 0;
  color: #ffffff;
}

.warehouse-header h2 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  letter-spacing: 0.5px;
}

.warehouse-subtitle {
  margin-top: 12px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
}

/* IMAGE GRID */
.warehouse-image {
  border-radius: 18px;
  overflow: hidden;
  background: rgb(0, 0, 0);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.warehouse-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;

  filter: grayscale(20%);
  transition: filter 0.4s ease, transform 0.4s ease;
}

/* Subtle, respectful hover */
.warehouse-image:hover img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

/* Caption */
.warehouse-caption {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
}

/* MOBILE REFINEMENT */
@media (max-width: 768px) {
  .warehouse-section {
    padding: 80px 0;
  }

  .warehouse-image img {
    transform: none;
  }
}

  
  /* ================= MOBILE ================= */
  
  @media (max-width: 768px) {
    .gallery-slider {
      transform: scale(0.8);
    }
  }
  
  /* ================= PRODUCTS CTA (BLACK) ================= */

.products-cta {
  background: #000;
  padding: 80px 0;
}

.products-cta h2 {
  color: #fff;
}

.products-cta p {
  color: rgba(255, 255, 255, 0.65);
}

.products-cta .btn-primary {
  background: #fff;
  color: #000;
  border: none;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 50px;
  transition: all 0.25s ease;
}

.products-cta .btn-primary:hover {
  background: #e6e6e6;
  color: #000;
  transform: translateY(-2px);
}

/* ================= LIGHTBOX ================= */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
}

.lightbox img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  border-radius: 6px;
}

/* Close button */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 36px;
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

/* Image hover cue */
.warehouse-image {
  cursor: zoom-in;
}

.warehouse-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
