-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
129 lines (116 loc) · 2.05 KB
/
style.css
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
:root {
--background: #F8F8FF;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: var(--background);
display: grid;
place-items: center;
height: 100vh;
}
.gallery {
display: flex;
gap: 1rem;
max-width: 80rem;
}
.card {
position: relative;
left: 0px;
width: 9rem;
border-radius: 1.2rem;
height: 20rem;
overflow: hidden;
background-color: var(--background);
transition: 0.4s ease-in-out;
box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
flex: 0.25;
}
.card img {
position: relative;
height: 20rem;
object-fit: cover;
}
.card:hover {
flex: 2;
font-weight: bold;
cursor: pointer;
border-radius: 1rem;
}
.gallery-title {
padding: 0 15px;
flex: 0 0 100%;
max-width: 100%;
text-align: center;
margin-bottom: 60px;
}
.gallery-title h2 {
display: inline-block;
font-size: 30px;
font-weight: 700;
color: var(--text-black-900);
text-transform: uppercase;
margin: 0;
}
.gallery-title h2:before {
content: attr(data-heading);
display: block;
font-size: 16px;
font-weight: 600;
color: var(--skin-color);
}
.modal {
display: none;
position: fixed;
z-index: 1;
padding-top: 100px;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgb(0,0,0);
background-color: rgba(0,0,0,0.9);
}
.modal-content {
margin: auto;
display: block;
width: 80%;
max-width: 900px;
}
.close {
position: absolute;
top: 15px;
right: 35px;
color: #f1f1f1;
font-size: 40px;
font-weight: bold;
cursor: pointer;
}
@media screen and (max-width: 700px) {
.modal-content {
width: 100%;
}
}
.modal #caption {
padding: 10px 317px;
width: 85%;
float: left;
text-align: left;
line-height: 1.1em;
color: #ccc;
}
.pagination {
text-align: center;
margin-top: 20px;
}
.pagination a {
margin: 0 5px;
cursor: pointer;
}
.active-page {
font-weight: bold;
}