diff --git a/attached_assets/image_1772311746015.png b/attached_assets/image_1772311746015.png new file mode 100644 index 0000000..c3cc3f1 Binary files /dev/null and b/attached_assets/image_1772311746015.png differ diff --git a/client/src/pages/home.tsx b/client/src/pages/home.tsx index ba98b93..888ab5b 100644 --- a/client/src/pages/home.tsx +++ b/client/src/pages/home.tsx @@ -227,9 +227,13 @@ function FeaturedCarousel({ articles, popular, galleryImages }: { articles: Arti if (!isGalleryPage && articles.length > 0) { hero = articles[page % articles.length]; + } + + if (articles.length > 0) { + const offset = isGalleryPage ? 0 : 1; side = [ - articles[(page + 1) % articles.length], - articles[(page + 2) % articles.length], + articles[(page + offset) % articles.length], + articles[(page + offset + 1) % articles.length], ]; }