.reels-wrap {
  position: relative;
  isolation: isolate;
  background: #fff;
  padding: 12px 0;
  max-width: 1200px;
  margin: 0 auto;
}

/* Desktop: horizontal list */
.reels-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 10px 16px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  will-change: transform;
}
.reels-track::-webkit-scrollbar {
  display: none;
}

.reel-card {
  flex: 0 0 auto;
  width: 260px;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  background: #0b0b0b;
  display: flex;
  align-items: stretch;
  justify-content: center;
  position: relative;
  touch-action: pan-y;
}

/* Force IG embed to fill the card */
.reel-card .instagram-media {
  margin: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 100% !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #0b0b0b !important;
}
.reel-card iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  pointer-events: auto;
}

/* ✅ Buttons (always above Instagram iframe) */
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  pointer-events: auto !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  width: 44px;
  height: 44px;
  font-size: 26px;
  transition: all 0.2s ease;
}
.nav:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.05);
}
.nav.left {
  left: 10px;
}
.nav.right {
  right: 10px;
}

/* ✅ Mobile: one-by-one slider + BIG arrows */
@media (max-width: 768px) {
  .reels-wrap {
    padding: 12px 0;
    overflow: hidden;
    width: 100%;
    position: relative;
  }

  .reels-track {
    overflow: visible !important;
    gap: 0 !important;
    padding: 0 !important;
    scroll-behavior: auto;
    position: relative;
    touch-action: pan-x;
    cursor: grab;
    display: flex !important;
    flex-direction: row !important;
    width: auto !important;
    margin: 0;
    will-change: transform;
    height: auto;
    min-width: 0;
  }
  .reels-track:active {
    cursor: grabbing;
  }

  .reel-card {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    min-width: 100% !important;
    position: relative;
    flex-shrink: 0 !important;
  }

  .nav {
    width: 56px;
    height: 56px;
    font-size: 32px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
    z-index: 10001 !important;
    pointer-events: auto !important;
  }
  .nav:active {
    transform: translateY(-50%) scale(0.95);
    background: rgba(0, 0, 0, 0.95);
  }
  .nav.left {
    left: 8px;
  }
  .nav.right {
    right: 8px;
  }
}

@media (max-width: 480px) {
  .nav {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
  .nav.left {
    left: 4px;
  }
  .nav.right {
    right: 4px;
  }
}
