11/* General Styles */
22* {
33 font-family : "wanpaku-rera" , sans-serif;
4-
54 box-sizing : border-box;
65 overflow-x : hidden;
76}
87
98# header {
10- border : solid 0.1em rgb (39 , 36 , 36 ); /* Default border color */
9+ border : solid 0.1em rgb (39 , 36 , 36 );
1110}
1211
1312.indexTitle {
1413 display : inline-flex;
1514 font-size : 3em ;
1615 height : 1.5em ;
17- color : rgb (39 , 36 , 36 ); /* Default text color */
16+ color : rgb (39 , 36 , 36 );
1817}
1918
2019.links {
2322 float : right;
2423 padding : 0 ;
2524 padding-top : 0.2em ;
26- color : rgb (39 , 36 , 36 ); /* Default text color */
25+ color : rgb (39 , 36 , 36 );
2726}
2827
2928.socials {
3635}
3736
3837.socials svg {
39- margin-right : 1em ; /* Space out the social icons */
38+ margin-right : 1em ;
4039}
4140
42-
43-
4441# darkModeToggle {
4542 background-color : transparent;
4643 border : 2px solid rgb (0 , 0 , 0 );
4744 color : rgb (0 , 0 , 0 );
48-
4945 padding : 0.5em ;
50- font-size : 1em ;
51- cursor : pointer;
52-
53- margin-left : auto; /* Ensures it's aligned to the right */
46+ font-size : 1em ;
47+ cursor : pointer;
48+ margin-left : auto;
5449}
5550
56- /* Hover state */
5751# darkModeToggle : hover {
5852 background-color : rgb (0 , 0 , 0 );
5953 color : white;
6054}
6155
62- body .dark-mode # darkModeToggle {
63- background-color : transparent;
64- border : 2px solid rgb (255 , 255 , 255 );
65- color : rgb (255 , 255 , 255 );
66- font-size : 1em ;
56+ /* Masonry Grid Layout */
57+ .img-grid-archive {
58+ column-count : 3 ;
59+ column-gap : 1em ;
60+ padding-top : 1em ;
61+ }
62+
63+ .img-grid-archive figure {
64+ display : inline-block;
65+ width : 100% ;
66+ margin : 0 0 1em ;
67+ break-inside : avoid;
68+ }
69+
70+ img .projectImg {
71+ width : 100% ;
72+ height : auto;
73+ display : block;
74+ border-radius : 0.25em ;
75+ object-fit : cover;
76+ }
77+
78+ figcaption {
79+ position : relative;
80+ margin : 0 ;
81+ padding : 0.3em 0 ;
82+ }
6783
68-
84+ figcaption .projectName {
85+ font-size : 1.2em ;
86+ color : rgb (39 , 36 , 36 );
87+ padding-top : 0.5em ;
6988}
7089
71- body .dark-mode # darkModeToggle : hover {
72- background-color : rgb (255 , 255 , 255 );
73- color : rgb (0 , 0 , 0 );
90+ figcaption .tag {
91+ font-size : 0.9em ;
92+ opacity : 60% ;
93+ padding-left : 0.2em ;
94+ color : rgb (39 , 36 , 36 );
7495}
7596
97+ /* Anchor Styling */
7698a {
7799 padding : 0 ;
78100 text-decoration : none;
@@ -91,7 +113,6 @@ a.handles {
91113
92114a : active , a : visited {
93115 color : rgb (39 , 36 , 36 );
94-
95116}
96117
97118a : hover {
@@ -103,186 +124,19 @@ a:active {
103124}
104125
105126a : visited {
106- color : rgb (39 , 36 , 36 ) !important ; /* Ensures it applies */
127+ color : rgb (39 , 36 , 36 ) !important ;
107128 background-color : white;
108129}
109130
110- .img-grid-archive {
111- /* display: flex; */
112- display : grid;
113- /* flex-wrap: wrap; */
114- /* row-gap: 3em; */
115- column-gap : 0.5em ;
116-
117- padding-top : 1em ;
118- grid-template-columns : repeat (auto-fit, minmax (300px , 1fr ));
119- align-content : start; /* Push grid items up if there is space */
120- }
121-
122-
123-
124-
125- figcaption {
126- position : sticky;
127- }
128-
129- figcaption .projectName {
130- font-size : 1.2em ;
131- color : rgb (39 , 36 , 36 ); /* Default text color */
132- padding-top : 0.5em ;
133- }
134-
135- figcaption .tag {
136- font-size : 0.9em ;
137- opacity : 60% ;
138- padding-left : 0.2em ;
139- color : rgb (39 , 36 , 36 ); /* Default text color */
140- }
141-
142-
143-
144- img {
145- object-fit : cover;
146- }
147-
148- img .projectImg {
149- border-radius : 0.25em ;
150-
151- width : 100% ;
152- height : auto;
153-
154- }
155-
156-
157-
158- .about {
159- float : right;
160- padding-right : 2em ;
161- padding-top : 5em ;
162- font-size : 1.2em ;
163- }
164-
165- .aboutImg1 {
166- display : inline;
167- margin-top : 100px ;
168- }
169-
170-
171-
172-
173- /* Scrollbar hidden */
174- .no-scrollbar {
175- scrollbar-width : none;
176- margin-bottom : 0 ;
177- padding-bottom : 0 ;
178- }
179-
180- .no-scrollbar ::-webkit-scrollbar {
181- display : none;
182- }
183-
184- /* Media Queries for Responsiveness */
185- @media (max-width : 768px ) {
186- .indexTitle {
187- font-size : 2em ;
188- }
189-
190- .links {
191- font-size : 1.5em ;
192- }
193-
194- .about {
195- float : none;
196- padding-right : 0 ;
197- padding-top : 1em ;
198- }
199-
131+ /* Responsive adjustments */
132+ @media (max-width : 1024px ) {
200133 .img-grid-archive {
201- column-gap : 2 em ;
134+ column-count : 2 ;
202135 }
203136}
204137
205- /* Dark Mode Styling */
206- body .dark-mode {
207- background-color : black;
208- color : white; /* All text should be white in dark mode */
209- }
210-
211- body .dark-mode # header {
212- border-color : white; /* White border in dark mode */
213- }
214-
215- body .dark-mode .socials {
216- border-top-color : white; /* White border in dark mode */
217- }
218-
219- body .dark-mode .indexTitle ,
220- body .dark-mode .links ,
221- body .dark-mode .socials
222- body .dark-mode .figcaption {
223- color : white; /* White text color */
224- }
225-
226- body .dark-mode .img-grid-archive {
227- background-color : # 000000 ;
228- }
229-
230- body .dark-mode a ,
231- body .dark-mode a .nav ,
232- body .dark-mode a .handles ,
233- body .dark-mode a .item {
234- color : white !important ; /* White text for links */
235- }
236-
237- body .dark-mode a : hover ,
238- body .dark-mode a : active ,
239- body .dark-mode a : visited {
240- color : white !important ;
241- background-color : transparent;
242- text-decoration : underline solid white;
243- }
244-
245- body .dark-mode .dark-mode-toggle {
246- border-color : white; /* White border for dark mode toggle */
247- color : white; /* White text for dark mode toggle */
248- }
249-
250- body .dark-mode .dark-mode-toggle : hover {
251- background-color : white;
252- color : black;
253- }
254-
255- body .dark-mode .socials svg {
256- fill : white; /* Ensure social icons are white */
257- }
258-
259- body .dark-mode figcaption .projectName ,
260- body .dark-mode figcaption .tag {
261- color : white; /* White text color in dark mode */
262- }
263-
264- /* Footer adjustment */
265- footer {
266- position : relative;
267- bottom : 0 ;
268- margin-top : 2em ;
269-
138+ @media (max-width : 600px ) {
139+ .img-grid-archive {
140+ column-count : 1 ;
141+ }
270142}
271-
272-
273-
274-
275-
276-
277-
278-
279-
280-
281-
282-
283-
284-
285-
286-
287-
288-
0 commit comments