/* Instagram strip — small container-aligned heading + a full-bleed, edge-to-edge
   auto-marquee of 4:5 images that all link to the profile. Images come from the
   shared "Instagram Görsel 1..10" Theme Settings (single source). */

.cc_xcxanevt_wOnbAqmzAK .instagram-strip {
  width: 100%;
  /* Top spacing only (~32px desktop); NO bottom spacing so the strip sits flush
     against the next section (Newsletter on home, next section/footer on PDP). */
  padding: 2rem 0 0;
  background: #FAF8F5;
}

@media (max-width: 767px) {
  .cc_xcxanevt_wOnbAqmzAK .instagram-strip {
    padding: 1.5rem 0 0; /* ~24px top on mobile, 0 bottom */
  }
}

/* Heading — aligned to the theme container, ~10px above the images. */
.cc_xcxanevt_wOnbAqmzAK .instagram-strip__head {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px) 0.625rem;
}

.cc_xcxanevt_wOnbAqmzAK .instagram-strip__link {
  display: inline-block;
  font-family: var(--font-label, sans-serif);
  font-size: var(--text-small, 14px);
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-accent, #000075);
  text-decoration: none;
}

.cc_xcxanevt_wOnbAqmzAK .instagram-strip__link:hover, .cc_xcxanevt_wOnbAqmzAK .instagram-strip__link:focus-visible {
  text-decoration: underline;
}

/* Full-bleed viewport clips the moving track. */
.cc_xcxanevt_wOnbAqmzAK .instagram-strip__viewport {
  width: 100%;
  overflow: hidden;
}

.cc_xcxanevt_wOnbAqmzAK .instagram-strip__track {
  display: flex;
  gap: 0; /* edge-to-edge; keeps the two-set marquee loop pixel-seamless */
  width: max-content;
}

/* Two identical sets (original + aria-hidden clone) → shifting by exactly one
   set width (50% of the track) loops with no visible jump. The track animates
   translateX(0) → translateX(-50%), i.e. it moves LEFTWARD, so items enter on
   the right and travel to the left: the flow reads RIGHT-to-LEFT (sağdan sola).
   Verified empirically (per-item screen position decreases over the cycle).
   Calm/editorial pace: 50s desktop / 65s mobile. */
.cc_xcxanevt_wOnbAqmzAK .instagram-strip__viewport.is-marquee .instagram-strip__track {
  animation: cc_xcxanevt_wOnbAqmzAK_instagram-strip-marquee 50s linear infinite;
}

@media (max-width: 767px) {
  /* Slightly slower on mobile. */
  .cc_xcxanevt_wOnbAqmzAK .instagram-strip__viewport.is-marquee .instagram-strip__track {
    animation-duration: 65s;
  }
}

/* Right-to-left: start at natural position, shift one set to the left so the
   trailing (clone) set scrolls in from the right edge. At -50% the visible frame
   equals the 0 frame (clone ≡ original) → seamless, no jump. Do NOT swap from/to
   — that reverses the flow back to left-to-right. */
@keyframes cc_xcxanevt_wOnbAqmzAK_instagram-strip-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* One card ≈ 2.4 visible on mobile → the next image peeks (swipe feel). */
.cc_xcxanevt_wOnbAqmzAK .instagram-strip__item {
  flex: 0 0 auto;
  width: 63vw; /* 1.5× of 42vw — ~1.6 visible on mobile */
  aspect-ratio: 4 / 5;
  display: block;
  overflow: hidden;
  background: var(--color-surface-alt, #efefef);
}

@media (min-width: 768px) {
  .cc_xcxanevt_wOnbAqmzAK .instagram-strip__item {
    width: 37.5vw; /* 1.5× of 25vw — ~2.7 visible on tablet */
  }
}

@media (min-width: 1024px) {
  .cc_xcxanevt_wOnbAqmzAK .instagram-strip__item {
    width: 27vw; /* 1.5× of 18vw — ~3.7 visible on desktop */
  }
}

.cc_xcxanevt_wOnbAqmzAK .instagram-strip__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Reduced motion: no autoplay; let the user scroll horizontally instead, with
   the scrollbar hidden. */
@media (prefers-reduced-motion: reduce) {
  .cc_xcxanevt_wOnbAqmzAK .instagram-strip__viewport {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .cc_xcxanevt_wOnbAqmzAK .instagram-strip__viewport::-webkit-scrollbar {
    display: none;
  }
  .cc_xcxanevt_wOnbAqmzAK .instagram-strip__viewport.is-marquee .instagram-strip__track {
    animation: none;
  }
}
