-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgallery.css
More file actions
82 lines (71 loc) · 1.24 KB
/
Copy pathgallery.css
File metadata and controls
82 lines (71 loc) · 1.24 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
/* Gallery Page */
/* Gallery Grid */
.gallery-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 15px;
}
.gallery-grid img {
width: 100%;
border-radius: 8px;
cursor: pointer;
transition: 0.3s transform;
}
.gallery-grid img:hover {
transform: scale(1.05);
}
/* Lightbox */
#lightbox {
position: fixed;
display: none;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.9);
justify-content: center;
align-items: center;
animation: fadeIn 0.3s ease-in;
}
#lightbox img {
width: 60%;
border-radius: 10px;
animation: scaleIn 0.3s ease-out;
}
/* Gallery CTA */
.cta-button.gallery-cta {
margin-top: 30px;
}
/* Animations */
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes scaleIn {
from {
opacity: 0;
transform: scale(0.9);
}
to {
opacity: 1;
transform: scale(1);
}
}
/* Mobile Responsive */
@media (max-width: 768px) {
.gallery-grid {
grid-template-columns: repeat(2, 1fr);
}
#lightbox img {
width: 90%;
}
}
@media (max-width: 480px) {
.gallery-grid {
grid-template-columns: 1fr;
}
}