File tree Expand file tree Collapse file tree 1 file changed +27
-7
lines changed
Expand file tree Collapse file tree 1 file changed +27
-7
lines changed Original file line number Diff line number Diff line change @@ -8,23 +8,43 @@ nav_order: 5
88---
99
1010<style >
11- .gallery-item img {
12- height : 220px ;
11+ .gallery-vertical {
12+ display : flex ;
13+ flex-direction : column ;
14+ align-items : center ;
15+ gap : 2rem ;
16+ max-width : 800px ;
17+ margin : 0 auto ;
18+ }
19+
20+ .gallery-vertical .gallery-item {
1321 width : 100% ;
14- object-fit : cover ;
22+ }
23+
24+ .gallery-vertical .gallery-item img {
25+ width : 100% ;
26+ height : auto ;
27+ border-radius : 12px ;
28+ box-shadow : 0 8px 24px rgba (0 , 0 , 0 , 0.12 );
29+ transition : transform 0.3s ease , box-shadow 0.3s ease ;
30+ }
31+
32+ .gallery-vertical .gallery-item img :hover {
33+ transform : translateY (-4px );
34+ box-shadow : 0 12px 32px rgba (0 , 0 , 0 , 0.18 );
1535}
1636</style >
1737
1838## Lab Life
1939
20- <div class =" row " >
21- <div class="col-sm-4 mt-3 mt-md-0 gallery-item">
40+ <div class =" gallery-vertical " >
41+ <div class="gallery-item">
2242 {% include figure.liquid path="assets/img/gallery/photo1.jpg" title="Photo 1" class="img-fluid rounded z-depth-1" zoomable=true %}
2343 </div>
24- <div class="col-sm-4 mt-3 mt-md-0 gallery-item">
44+ <div class="gallery-item">
2545 {% include figure.liquid path="assets/img/gallery/photo2.jpg" title="Photo 2" class="img-fluid rounded z-depth-1" zoomable=true %}
2646 </div>
27- <div class="col-sm-4 mt-3 mt-md-0 gallery-item">
47+ <div class="gallery-item">
2848 {% include figure.liquid path="assets/img/gallery/photo3.jpg" title="Photo 3" class="img-fluid rounded z-depth-1" zoomable=true %}
2949 </div>
3050</div >
You can’t perform that action at this time.
0 commit comments