-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgallery.css
More file actions
114 lines (99 loc) · 2.21 KB
/
gallery.css
File metadata and controls
114 lines (99 loc) · 2.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
/* General styling */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Nunito', sans-serif;
background-color: #ffffff;
color: #000000;
}
/* Header Styling */
.header {
display: flex;
justify-content: center;
align-items: center;
background-color: #86d3ff;
padding: 10px 120px;
}
.header a {
color: black;
text-align: center;
padding: 12px;
text-decoration: none;
font-size: 24px;
line-height: 25px;
border-radius: 4px;
}
.logo-image {
width: 80px;
height: auto;
margin-right: 30px;
margin-left: 30px;
}
.header-right {
display: flex;
justify-content: space-between;
flex-grow: 1;
}
.header-right a {
margin: 0 20px;
}
.header a:hover {
color: grey;
}
/* Gallery Header Styling to Match Intro Section */
.gallery-header {
margin: 40px 120px;
text-align: left;
}
.gallery-header h1 {
font-size: 40px;
margin-bottom: 10px;
color: #000000;
}
.gallery-header .subheading {
font-size: 30px;
font-weight: bold;
margin-bottom: 20px;
color: #000000;
}
/* Gallery Grid Layout */
/* Gallery Grid Layout */
.gallery-grid {
display: grid;
grid-template-columns: repeat(5, 1fr); /* 5 images per row on desktop */
gap: 10px; /* Reduced gap for closer spacing */
padding: 10px 100px; /* Reduced padding on the sides */
text-align: center;
}
.gallery-item img {
width: 100%; /* Ensures the image spans the width of its container */
aspect-ratio: 1 / 1; /* Forces a square aspect ratio */
object-fit: cover; /* Ensures the image covers the entire square area */
border-radius: 10px;
transition: transform 0.3s ease;
}
/* Responsive styling for mobile */
@media screen and (max-width: 768px) {
.gallery-grid {
grid-template-columns: 1fr; /* 1 image per row on mobile */
padding: 20px; /* Reduce padding on smaller screens */
}
}
.gallery-item img {
width: 100%; /* Ensures the image spans the width of its container */
aspect-ratio: 1 / 1; /* Forces a square aspect ratio */
object-fit: cover; /* Ensures the image covers the entire square area */
border-radius: 0px;
transition: transform 0.3s ease;
}
.gallery-item img:hover {
transform: scale(1.05);
}
.caption {
font-size: 16px;
color: #555;
margin-top: 8px;
}