diff --git a/src/assets/styles/peripheral.scss b/src/assets/styles/peripheral.scss index b91a595..29d0e16 100644 --- a/src/assets/styles/peripheral.scss +++ b/src/assets/styles/peripheral.scss @@ -433,17 +433,22 @@ section#contact { } } -section#pro-video { - width: 80vw; - height: 80vh; - display: flex; - justify-content: center; - align-items: center; +.video-container { + width: 70vw; +} - .flowplayer { - width: 63vw; - // border-radius: 2px; - // border: 2px solid var(--c-gray5); +.video-wrapper { + position: relative; + padding-bottom: 56.25%; /* 16:9 */ + height: 0; + + iframe { + border: none; + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; } } @@ -454,6 +459,12 @@ section#pro-video { } } +@media only screen and (max-width: 1100px) { + .video-container { + width: 90vw; + } +} + @media only screen and (max-width: 500px) { section { --width: 40ch; @@ -485,9 +496,4 @@ section#pro-video { font-size: 1.7rem; } } - - section#pro-video { - width: 90vw;; - height: 20vh; - } } \ No newline at end of file diff --git a/src/embassy-pro.njk b/src/embassy-pro.njk index 7593dcc..e707fce 100644 --- a/src/embassy-pro.njk +++ b/src/embassy-pro.njk @@ -21,11 +21,9 @@ layout: layouts/peripheral.njk - -
-
- + +
+
+
\ No newline at end of file