dataautogpt3
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -20,17 +20,24 @@ tags:
|
|
20 |
|
21 |
<style>
|
22 |
.gallery {
|
23 |
-
display:
|
24 |
-
|
25 |
-
gap: 15px;
|
26 |
justify-content: center;
|
|
|
|
|
|
|
27 |
}
|
28 |
|
29 |
.gallery img {
|
30 |
-
width: 384px;
|
|
|
|
|
31 |
cursor: pointer;
|
32 |
transition: transform 0.2s;
|
33 |
-
border-radius: 8px;
|
|
|
|
|
34 |
}
|
35 |
|
36 |
.gallery img:hover {
|
@@ -58,6 +65,7 @@ tags:
|
|
58 |
position: relative;
|
59 |
top: 50%;
|
60 |
transform: translateY(-50%);
|
|
|
61 |
}
|
62 |
|
63 |
.modal.active {
|
|
|
20 |
|
21 |
<style>
|
22 |
.gallery {
|
23 |
+
display: grid;
|
24 |
+
grid-template-columns: repeat(auto-fit, minmax(384px, 1fr));
|
25 |
+
gap: 15px;
|
26 |
justify-content: center;
|
27 |
+
max-width: 1200px; /* Limits maximum width to show ~3 images per row */
|
28 |
+
margin: 0 auto; /* Centers the gallery */
|
29 |
+
padding: 15px;
|
30 |
}
|
31 |
|
32 |
.gallery img {
|
33 |
+
width: 384px;
|
34 |
+
height: 384px;
|
35 |
+
object-fit: cover; /* Maintains aspect ratio */
|
36 |
cursor: pointer;
|
37 |
transition: transform 0.2s;
|
38 |
+
border-radius: 8px;
|
39 |
+
margin: 0 auto; /* Centers images in their grid cells */
|
40 |
+
display: block;
|
41 |
}
|
42 |
|
43 |
.gallery img:hover {
|
|
|
65 |
position: relative;
|
66 |
top: 50%;
|
67 |
transform: translateY(-50%);
|
68 |
+
object-fit: contain; /* Maintains aspect ratio in modal */
|
69 |
}
|
70 |
|
71 |
.modal.active {
|