From 4a710ad533de785bce429944c16580c0142ae60a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Alexa=20Valentov=C3=A1?= <git@imaniti.org>
Date: Wed, 12 Mar 2025 13:34:47 +0100
Subject: [PATCH] fix centering again

---
 .../includes/atoms/youtube_video/youtube_video.html           | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/shared/templates/styleguide2/includes/atoms/youtube_video/youtube_video.html b/shared/templates/styleguide2/includes/atoms/youtube_video/youtube_video.html
index 3df56743..5d9dc91b 100644
--- a/shared/templates/styleguide2/includes/atoms/youtube_video/youtube_video.html
+++ b/shared/templates/styleguide2/includes/atoms/youtube_video/youtube_video.html
@@ -58,6 +58,10 @@
     {% else %}
       max-w-[100ch]
     {% endif %}
+
+    {% if page.root_page.content_is_centered %}
+      mx-auto
+    {% endif %}
   "
   id="ytVideo{{ self.video_id }}IframeContainer"
   style="display: none"
-- 
GitLab