summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
Diffstat (limited to 'static')
-rw-r--r--static/css/gallery.css165
1 files changed, 165 insertions, 0 deletions
diff --git a/static/css/gallery.css b/static/css/gallery.css
new file mode 100644
index 0000000..5ae5615
--- /dev/null
+++ b/static/css/gallery.css
@@ -0,0 +1,165 @@
+.gallery-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
+ gap: 20px;
+ padding: 10px 0;
+}
+.gallery-item {
+ position: relative;
+ background: #f5f5f5;
+ border-radius: 4px;
+ overflow: hidden;
+ transition: transform 0.2s, box-shadow 0.2s;
+ cursor: pointer;
+}
+.gallery-item:hover {
+ transform: translateY(-4px);
+ box-shadow: 0 4px 12px rgba(0,0,0,0.15);
+}
+.gallery-item a {
+ display: block;
+ position: relative;
+ text-decoration: none;
+}
+.video-overlay {
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ transform: translate(-50%, -50%);
+ font-size: 48px;
+ color: white;
+ text-shadow: 0 2px 4px rgba(0,0,0,0.5);
+ pointer-events: none;
+}
+.gallery-info {
+ padding: 10px;
+ background: white;
+}
+.gallery-filename {
+ font-size: 14px;
+ font-weight: 600;
+ color: #333;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ margin-bottom: 4px;
+}
+.gallery-meta {
+ font-size: 12px;
+ color: #666;
+}
+
+/* Slideshow Styles */
+.slideshow-modal {
+ display: none;
+ position: fixed;
+ z-index: 9999;
+ left: 0;
+ top: 0;
+ width: 100%;
+ height: 100%;
+ background-color: rgba(0, 0, 0, 0.95);
+}
+.slideshow-modal.active {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}
+.slideshow-close {
+ position: absolute;
+ top: 20px;
+ right: 40px;
+ color: #fff;
+ font-size: 50px;
+ font-weight: bold;
+ cursor: pointer;
+ z-index: 10001;
+ transition: color 0.3s;
+}
+.slideshow-close:hover {
+ color: #bbb;
+}
+.slideshow-content {
+ max-width: 90%;
+ max-height: 90%;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+}
+#slideshow-media-container {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ max-width: 100%;
+ max-height: 80vh;
+}
+#slideshow-media-container img,
+#slideshow-media-container video {
+ max-width: 100%;
+ max-height: 80vh;
+ object-fit: contain;
+ border-radius: 4px;
+}
+.slideshow-info {
+ color: white;
+ text-align: center;
+ margin-top: 20px;
+ font-size: 16px;
+}
+#slideshow-filename {
+ font-weight: 600;
+ margin-bottom: 8px;
+}
+#slideshow-counter {
+ font-size: 14px;
+ color: #ccc;
+}
+.slideshow-nav {
+ position: absolute;
+ top: 50%;
+ transform: translateY(-50%);
+ background-color: rgba(255, 255, 255, 0.2);
+ color: white;
+ border: none;
+ font-size: 40px;
+ padding: 20px;
+ cursor: pointer;
+ transition: background-color 0.3s;
+ z-index: 10001;
+}
+.slideshow-nav:hover {
+ background-color: rgba(255, 255, 255, 0.4);
+}
+.slideshow-prev {
+ left: 20px;
+}
+.slideshow-next {
+ right: 20px;
+}
+
+@media (max-width: 550px) {
+ .gallery-grid {
+ grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
+ gap: 10px;
+ }
+ .gallery-item a img,
+ .gallery-item a video {
+ height: 150px !important;
+ }
+ .slideshow-close {
+ top: 10px;
+ right: 20px;
+ font-size: 40px;
+ }
+ .slideshow-nav {
+ font-size: 30px;
+ padding: 15px;
+ }
+ .slideshow-prev {
+ left: 10px;
+ }
+ .slideshow-next {
+ right: 10px;
+ }
+}