/* =============================================
   NRR — Auto-scrolling Photo Gallery
============================================= */

.nrr-gallery *,
.nrr-gallery *::before,
.nrr-gallery *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.nrr-gallery {
  font-family: "Poppins", sans-serif;
  padding: 0;
  overflow: hidden;
}

/* Header */
.nrr-gallery__header {
  text-align: center;
  padding: 96px 24px 64px;
  max-width: 640px;
  margin: 0 auto;
}

.nrr-gallery__title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  color: #0f1721;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.nrr-gallery__subtitle {
  font-size: 16px;
  color: #6b7280;
  line-height: 1.65;
  margin-bottom: 32px;
}

.nrr-gallery__btn {
  display: inline-flex;
  align-items: center;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 6px;
  background: #ff3317;
  color: #ffffff;
  border: 2px solid #ff3317;
  transition: all 0.2s ease;
}

.nrr-gallery__btn:hover {
  background: #e02a10;
  border-color: #e02a10;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 51, 23, 0.35);
}

/* Edge fade */
.nrr-gallery__track-wrap {
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 6%,
    black 94%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 6%,
    black 94%,
    transparent 100%
  );
}

/* Infinite scroll track */
.nrr-gallery__track {
  display: flex;
  width: max-content;
  gap: 16px;
  animation: nrr-gallery-scroll 40s linear infinite;
  padding-bottom: 64px;
}

.nrr-gallery__track:hover {
  animation-play-state: paused;
}

@keyframes nrr-gallery-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Photo card */
.nrr-gallery__card {
  flex-shrink: 0;
  width: 260px;
  height: 340px;
  border-radius: 14px;
  overflow: hidden;
  background: #e5e7eb;
  position: relative;
}

.nrr-gallery__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.nrr-gallery__card:hover img {
  transform: scale(1.04);
}

/* Optional caption overlay on hover */
.nrr-gallery__card-caption {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nrr-gallery__card:hover .nrr-gallery__card-caption {
  opacity: 1;
}

.nrr-gallery__card-caption span {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
}

/* Responsive — just slow down on mobile */
@media (max-width: 768px) {
  .nrr-gallery__card {
    width: 200px;
    height: 270px;
  }

  .nrr-gallery__track {
    animation-duration: 30s;
  }
}
