diff --git a/_layouts/egazette-search.html b/_layouts/egazette-search.html
index 622ab6c7..97fa53a9 100644
--- a/_layouts/egazette-search.html
+++ b/_layouts/egazette-search.html
@@ -43,7 +43,7 @@
diff --git a/assets/css/algolia.css b/assets/css/algolia.css
index 265d408a..f0620a54 100644
--- a/assets/css/algolia.css
+++ b/assets/css/algolia.css
@@ -17,6 +17,9 @@
}
/* General styling for the pagination container */
+.ais-Pagination {
+ overflow: hidden;
+}
.ais-Pagination-list {
display: flex;
list-style-type: none;
diff --git a/assets/js/algolia-search.js b/assets/js/algolia-search.js
index b7bca032..3d91b2d4 100644
--- a/assets/js/algolia-search.js
+++ b/assets/js/algolia-search.js
@@ -281,6 +281,7 @@ search.addWidgets([
container: "#pagination",
showFirst: true,
showLast: true,
+ padding: 2
}),
]);
search.addWidget(