diff --git a/templates/utils.html b/templates/utils.html
index e1d317a..c5ba45f 100644
--- a/templates/utils.html
+++ b/templates/utils.html
@@ -262,11 +262,7 @@
{% endif %}
- {% else if (prefs.layout.is_empty() || prefs.layout == "card") && post.post_type == "gif" %}
-
-
-
- {% else if (prefs.layout.is_empty() || prefs.layout == "card") && post.post_type == "video" %}
+ {% else if (prefs.layout.is_empty() || prefs.layout == "card") && (post.post_type == "gif" || post.post_type == "video") %}
{% if prefs.use_hls == "on" && !post.media.alt_url.is_empty() %}