-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
145 lines (136 loc) · 3.15 KB
/
Copy pathstyle.css
File metadata and controls
145 lines (136 loc) · 3.15 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
/* --- Base Styles --- */
* {
margin: 0;
padding: 0;
font-family: sans-serif;
}
body {
background: #ecf4fb;
}
/* --- Header Typography Style (New Feature) --- */
header {
text-align: center;
margin-top: 40px;
}
header h1 {
font-size: 42px;
color: #222;
font-family: sans-serif;
}
header p {
margin-top: 10px;
color: #666;
font-size: 18px;
font-family: sans-serif;
}
/* --- Image Gallery Grid --- */
.img-gallery {
width: 80%;
margin: 100px auto 50px;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
grid-gap: 30px;
}
.img-gallery img {
width: 100%;
height: 300px;
object-fit: cover;
cursor: pointer;
transition: transform 0.4s ease, border-radius 0.4s ease;
}
/* --- Upgraded Image Lift Hover Effect (New Feature) --- */
.img-gallery img:hover {
transform: translateY(-8px) scale(1.05); /* Image halki si upar uthegi aur badi hogi */
border-radius: 20px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
/* --- Lightbox Main Overlay Container --- */
.full-img {
width: 100%;
height: 100vh;
background: rgba(0, 0, 0, 0.9);
position: fixed;
top: 0;
left: 0;
display: flex; /* Hamesha flex rahega, opacity se handle hoga */
opacity: 0;
visibility: hidden;
align-items: center;
justify-content: center;
z-index: 100;
transition: opacity 0.3s ease, visibility 0.3s ease;
}
/* Lightbox active hone par show karne ke liye */
.full-img.show {
opacity: 1;
visibility: visible;
}
/* --- Smooth Image Swap Effect (New Feature) --- */
.full-img img {
width: 90%;
max-width: 500px;
max-height: 80vh;
border-radius: 10px;
opacity: 1;
transition: opacity 0.3s ease, transform 0.3s ease; /* 2. Transition ko aur specific aur smooth kar diya */
}
/* --- Next/Prev Rounded Premium Buttons --- */
.nav-btn {
width: 55px;
height: 55px;
background: rgba(255, 255, 255, 0.15);
color: #fff;
font-size: 30px;
position: absolute;
top: 50%;
transform: translateY(-50%);
cursor: pointer;
user-select: none;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
}
.nav-btn:hover {
background: #fff;
color: #000;
}
.prev-btn { left: 4%; }
.next-btn { right: 4%; }
/* --- Close Button Rounded Layout --- */
.close-btn {
position: absolute;
top: 5%;
right: 4%;
width: 45px;
height: 45px;
background: rgba(255, 255, 255, 0.15);
color: #fff;
font-size: 22px;
font-family: sans-serif;
cursor: pointer;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
}
.close-btn:hover {
background: #ff4d4d;
color: #fff;
transform: scale(1.1);
}
/* --- Premium Image Counter Style (New Feature) --- */
.img-counter {
position: absolute;
bottom: 5%;
color: rgba(255, 255, 255, 0.85);
font-size: 18px;
font-family: sans-serif;
background: rgba(255, 255, 255, 0.1);
padding: 6px 18px;
border-radius: 30px;
backdrop-filter: blur(5px);
letter-spacing: 1px;
}