diff --git a/src/lib/image-subtitle.svelte b/src/lib/image-subtitle.svelte index 4555dc4..3443508 100644 --- a/src/lib/image-subtitle.svelte +++ b/src/lib/image-subtitle.svelte @@ -6,16 +6,26 @@ } = $props(); -{content} +
+ + {content} +
\ No newline at end of file diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index d01976f..ec36a3b 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -134,6 +134,9 @@ --margin-header-top: 16px; --margin-header-bottom: 8px; + /* sizing */ + --media-width: 80%; + /* page sizing */ --page-width: 1000px; --screen-width-mobile: 800px; @@ -277,7 +280,7 @@ } img, video { - width: 80%; + width: var(--media-width); margin-left: auto; margin-right: auto; display: flex; @@ -286,7 +289,7 @@ } .horizontally-centre-aligned { - width: 80%; + width: var(--media-width); display: flex; justify-content: center; align-items: center;