diff --git a/includes/styles.css b/includes/styles.css index cf3919d..e022ed1 100644 --- a/includes/styles.css +++ b/includes/styles.css @@ -262,3 +262,65 @@ td, th { display: block; margin: 0 auto; } + +/* Share and theatre button styles */ +.video-controls { + display: flex; + justify-content: center; + align-items: center; + margin-top: 0.5rem; + gap: 0.5rem; +} + +/* Theatre mode styles */ +.video-item.theatre-mode { + flex: 1 1 100%; + max-width: 100%; +} +.video-item.theatre-mode video { + width: 100%; + height: auto; + max-height: none; +} + +.video-title { + text-align: center; + font-size: 1.2em; + font-weight: bold; + margin-top: 10px; + margin-bottom: 10px; +} + +.video-item.theatre-mode { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-color: rgba(0, 0, 0, 0.9); + z-index: 1000; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + padding: 20px; + box-sizing: border-box; +} + +.video-item.theatre-mode video { + max-width: 90%; + max-height: 80vh; + width: auto; + height: auto; +} + +.video-item.theatre-mode .video-title { + color: #fff; + order: -1; /* Display title above the video */ +} + +.video-item.theatre-mode .video-controls { + position: relative; + bottom: auto; + margin-top: 15px; +} diff --git a/includes/styles_mobile.css b/includes/styles_mobile.css index e6aaff5..dbea823 100644 --- a/includes/styles_mobile.css +++ b/includes/styles_mobile.css @@ -5,6 +5,16 @@ table { td, th { padding: 8px; } +/* Theatre mode mobile styles */ +.video-item.theatre-mode { + flex: 1 1 100%; + max-width: 100%; +} +.video-item.theatre-mode video { + width: 100%; + height: auto; + max-height: none; +} .topnav { overflow: hidden; @@ -100,4 +110,31 @@ section h2 { height: auto; display: block; margin: 0 auto; +} +/* Share and theatre button mobile styles */ +.video-controls { + display: flex; + justify-content: center; + align-items: center; + margin-top: 0.5rem; + gap: 0.5rem; +} +.video-title { + text-align: center; + font-size: 1.1em; + font-weight: bold; + margin-top: 8px; + margin-bottom: 8px; +} +.video-item.theatre-mode { + padding: 10px; +} + +.video-item.theatre-mode video { + max-width: 100%; + max-height: 70vh; +} + +.video-item.theatre-mode .video-controls { + margin-top: 10px; } \ No newline at end of file diff --git a/videos.php b/videos.php index 80805ef..113215e 100644 --- a/videos.php +++ b/videos.php @@ -41,8 +41,11 @@ usort($videoData, function($a, $b) { Your browser does not support the video tag. -

-

+

+
+ + +
@@ -54,5 +57,46 @@ usort($videoData, function($a, $b) { + + \ No newline at end of file