/* Instagram Feed Carousel — instagram-carousel.css */

#ig-carousel-root {
  box-sizing: border-box;
  padding: 1rem 0;
  font-family: inherit;
}

#ig-carousel-root *,
#ig-carousel-root *::before,
#ig-carousel-root *::after {
  box-sizing: inherit;
}

/* Track */
.ig-track-wrap {
  overflow: hidden;
  width: 66.666%;
  margin: 0 auto;
}
.ig-track {
  display: flex;
  gap: 6px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* Posts */
.ig-post {
  flex: 0 0 calc(50% - 3px);
  width: calc(50% - 3px);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  position: relative;
  background: #f0f0f0;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.ig-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.ig-post:hover img { transform: scale(1.05); }

/* Hover overlay */
.ig-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: background 0.25s;
}
.ig-post:hover .ig-overlay { background: rgba(0, 0, 0, 0.35); }

/* Video badge */
.ig-type-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* Navigation */
.ig-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.ig-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.1s;
  color: #333;
  flex-shrink: 0;
}
.ig-btn:hover { background: #f5f5f5; }
.ig-btn:active { transform: scale(0.93); }
.ig-btn:disabled { opacity: 0.3; cursor: default; pointer-events: none; }
.ig-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Dots */
.ig-dots { display: flex; gap: 6px; align-items: center; }
.ig-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: none;
  padding: 0;
}
.ig-dot.active {
  background: #333;
  transform: scale(1.4);
}

/* Loading & error states */
.ig-loading, .ig-error {
  text-align: center;
  padding: 2rem;
  color: #888;
  font-size: 14px;
}

/* Shimmer placeholders */
.ig-post.placeholder { cursor: default; }
.ig-post.placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100%);
  background-size: 200% 100%;
  animation: ig-shimmer 1.4s infinite;
}
@keyframes ig-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Single post mode — always full width of wrapper */
@media (max-width: 540px) {
  .ig-track-wrap { width: 60%; }
}
