/* ============================================
   GURUNATHAN ELECTRONICS - gallery.css
   ============================================ */

#gallery {
 padding: 30px 0 40px;
  background: var(--bg-section-alt);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

#gallery.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Carousel shell ---------- */
.gallery-carousel {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1500px;
  margin: 0 auto;
}

.gallery-viewport {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.gallery-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.gallery-card {
  flex-shrink: 0;
  padding: 0 8px;
  box-sizing: border-box;
}
.gallery-card img,
.gallery-card video {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  display: block;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
#gallery .section-title {
  text-align: center;
}
.gallery-card img:hover,
.gallery-card video:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-orange);
}
/* ---------- Arrows ---------- */
.gallery-arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--border-hover);
  background: var(--bg-card);
  color: var(--orange-primary);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
}

.gallery-arrow:hover {
  background: var(--gradient-main);
  border-color: transparent;
  color: #fff;
  transform: scale(1.08);
  box-shadow: var(--shadow-orange);
}

.gallery-arrow:active {
  transform: scale(0.95);
}

/* ---------- Dots ---------- */
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--border-hover);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.gallery-dot.active {
  background: var(--gradient-main);
  width: 28px;
  border-radius: var(--radius-full);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .gallery-card img {
    height: 240px;
  }
}

@media (max-width: 768px) {
  #gallery {
    padding: 0 0 20px;
  }
  .gallery-carousel {
    gap: 10px;
  }
  .gallery-arrow {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
  .gallery-card img {
    height: 200px;
  }
}

@media (max-width: 600px) {
  .gallery-card img {
    height: 220px;
  }
}