/* ============================================
   Galkar Carousel - Horizontal image stream
   ============================================ */

.ng-galkar-title {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px 24px;
  font-family: 'Sora', sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ng-dark, #1a252f);
  letter-spacing: -0.5px;
}

@media (max-width: 1024px) {
  .ng-galkar-title {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .ng-galkar-title {
    font-size: 26px;
    padding: 0 24px 20px;
  }
}

@media (max-width: 480px) {
  .ng-galkar-title {
    font-size: 23px;
  }
}

.ng-galkar-carousel {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  background: transparent;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 5%,
    black 95%,
    transparent 100%
  );
  mask-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 5%,
    black 95%,
    transparent 100%
  );
  -webkit-mask-repeat: no-repeat;
}

.ng-galkar-track {
  display: flex;
  gap: 0;
  padding: 20px 0;
  animation: ng-galkar-scroll var(--ng-galkar-duration, 20s) linear infinite;
}

@keyframes ng-galkar-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-1 * var(--ng-galkar-total-width, 100%)));
  }
}

.ng-galkar-item {
  flex: 0 0 auto;
  height: 480px;
  aspect-ratio: auto;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.ng-galkar-item:hover {
  transform: scale(1.1);
}

.ng-galkar-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.3s ease;
}

/* Hover: image scales slightly inside item */
.ng-galkar-item:hover img {
  transform: scale(1.05);
}

/* Pause on hover */
.ng-galkar-carousel:hover .ng-galkar-track {
  animation-play-state: paused;
}

/* Responsive */
@media (max-width: 1024px) {
  .ng-galkar-item {
    height: 360px;
  }
}

@media (max-width: 768px) {
  .ng-galkar-item {
    height: 280px;
  }
}

@media (max-width: 480px) {
  .ng-galkar-item {
    height: 200px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .ng-galkar-item,
  .ng-galkar-item img {
    transition: none;
    transform: none !important;
  }

  .ng-galkar-track {
    animation: none;
  }
}
