.post-carousel { width: 100%; }
.post-carousel-stage { position: relative; background: #f5f5f5; }
.post-carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  direction: ltr;
  overscroll-behavior-x: contain;
  aspect-ratio: 4 / 5;
}
.post-carousel-track::-webkit-scrollbar { display: none; }
.post-carousel-slide { flex: 0 0 100%; min-width: 0; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.post-carousel-slide > a { display: block; width: 100%; height: 100%; }
.post-carousel-slide img, .post-carousel-slide video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.post-media-frame { display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: #161616; position: relative; }
.post-media-frame > img, .post-media-frame > video { display: block; width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: center; }
.feed-reel-media { border-radius: 6px; }
.feed-reel-open { position: absolute; inset: 0; z-index: 1; }
.feed-reel-heading { position: absolute; top: 0; left: 0; right: 0; padding: 14px; background: linear-gradient(rgba(0,0,0,.6),transparent); color: white; z-index: 2; pointer-events: none; display: flex; align-items: center; gap: 9px; }
.feed-reel-heading a { color: white; pointer-events: auto; }
.feed-reel-heading img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.feed-video-mute { position: absolute; right: 12px; bottom: 12px; z-index: 3; background: rgba(0,0,0,.65); color: white; border: 0; border-radius: 50%; width: 32px; height: 32px; }
.feed-reel-actions { display: flex; gap: 18px; padding: 12px 16px 6px; }
.feed-reel-actions a { color: inherit; }
.feed-reel-caption { padding: 0 16px 14px; margin: 0; overflow-wrap: anywhere; }
.post-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.88); color: #444; cursor: pointer;
  box-shadow: 0 1px 5px rgba(0,0,0,.18); padding: 0; font-size: 15px;
}
.post-carousel-arrow[hidden] { display: none; }
.post-carousel-prev { left: 12px; }
.post-carousel-next { right: 12px; }
.post-carousel-count { position: absolute; top: 12px; right: 12px; padding: 4px 9px; border-radius: 20px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; pointer-events: none; }
.post-carousel-dots { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 1px; padding: 6px 12px 2px; }
.post-carousel-dot { display: flex; align-items: center; justify-content: center; width: 16px; height: 22px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.post-carousel-dot::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #b4b4b4; }
.post-carousel-dot[aria-current="true"]::after { background: #3897f0; }
.post-carousel button:focus-visible, .post-carousel-track:focus-visible { outline: 2px solid #3897f0; outline-offset: -2px; }
@media (prefers-color-scheme: dark) { .post-carousel-stage { background: #161616; } }
