diff --git a/layouts/shortcodes/carousel.html b/layouts/shortcodes/carousel.html
index 2060ede5..73f3e258 100644
--- a/layouts/shortcodes/carousel.html
+++ b/layouts/shortcodes/carousel.html
@@ -59,8 +59,8 @@
+ class="relative w-full after:clear-both after:block after:content-['']"
+ style="overflow-x: clip; overflow-y: visible;">
{{ range $index, $image := $images }}
{{ $hiddenClass := cond (eq $index 0) "" "hidden" }}
{{ $resource := index $image "resource" }}