diff --git a/static/css/style.css b/static/css/style.css
index 9d3a351..4175448 100644
--- a/static/css/style.css
+++ b/static/css/style.css
@@ -1542,6 +1542,70 @@ p {
box-shadow: 0 0 10px var(--box-shadow);
}
+
+#image-viewer-overlay {
+ position: fixed;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ background: rgba(0,0,0,0.9);
+ z-index: 999;
+ display: none;
+ justify-content: center;
+ align-items: center;
+}
+
+#image-viewer {
+ position: relative;
+ max-width: 80%;
+ max-height: 80%;
+ background: var(--search-bg);
+ padding: 20px;
+ box-sizing: border-box;
+ overflow: hidden;
+ text-align: center;
+}
+
+#viewer-image {
+ max-width: 100%;
+ max-height: 60vh;
+}
+
+#viewer-title {
+ font-size: 18px;
+ color: var(--text-color);
+ margin-bottom: 10px;
+}
+
+#viewer-source-button {
+ color: var(--link);
+ text-decoration: none;
+ font-size: 16px;
+}
+
+.image-view-close {
+ position: absolute;
+ top: 10px;
+ right: 10px;
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+}
+
+.image-view-close .btn-nostyle {
+ margin-left: 5px;
+}
+
+#viewer-close-button,
+#viewer-prev-button,
+#viewer-next-button {
+ color: var(--text-color);
+ font-size: 36px;
+ cursor: pointer;
+ user-select: none;
+}
+
body, h1, p, a, input, button {
color: var(--text-color); /* Applies the text color based on theme */
background-color: var(--background-color); /* Applies the background color based on theme */
@@ -1998,76 +2062,3 @@ body, h1, p, a, input, button {
--box-shadow: #ffffff20;
}
} */
-
- /* Image Viewer Overlay */
- #image-viewer-overlay {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background: rgba(0,0,0,0.9);
- z-index: 999;
- display: none;
- justify-content: center;
- align-items: center;
- }
-
- #image-viewer {
- position: relative;
- max-width: 80%;
- max-height: 80%;
- background: var(--search-bg);
- padding: 20px;
- box-sizing: border-box;
- overflow: hidden;
- text-align: center;
- }
-
- #viewer-image {
- max-width: 100%;
- max-height: 60vh;
- }
-
- #viewer-info {
- margin-top: 15px;
- }
-
- #viewer-title {
- font-size: 18px;
- color: var(--text-color);
- margin-bottom: 10px;
- }
-
- #viewer-source-button {
- color: var(--link);
- text-decoration: none;
- font-size: 16px;
- }
-
- #viewer-close-button,
- #viewer-prev-button,
- #viewer-next-button {
- position: absolute;
- top: 10px;
- color: #fff;
- font-size: 36px;
- cursor: pointer;
- user-select: none;
- }
-
- #viewer-close-button {
- right: 10px;
- }
-
- #viewer-prev-button {
- left: 10px;
- top: 50%;
- transform: translateY(-50%);
- }
-
- #viewer-next-button {
- right: 10px;
- top: 50%;
- transform: translateY(-50%);
- }
diff --git a/templates/images.html b/templates/images.html
index a851258..206315b 100755
--- a/templates/images.html
+++ b/templates/images.html
@@ -117,99 +117,106 @@