-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
112 lines (102 loc) · 2.93 KB
/
style.css
File metadata and controls
112 lines (102 loc) · 2.93 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
body {
font-family: Arial, sans-serif;
height: 100vh;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
background-color: rgb(32, 30, 32);
margin: 0;
padding: 0;
overflow-y: scroll;
overflow-x: hidden;
}
.gallery {
margin: 100px auto;
position: relative;
width: 75vw;
height: auto;
display: flex;
flex-wrap: wrap;
gap: 20px;
justify-content: space-between;
background-color: #00000000;
}
.gallery-container {
position: relative;
flex: 1 1 calc(25% - 25px);
overflow: hidden;
border-radius: 5px;
z-index: 2;
aspect-ratio: 16/9;
}
.gallery-container img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
transition: transform 0.5s ease-in-out;
}
.gallery-container .gallery-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(210, 77, 141, 0.397);
display: flex;
justify-content: center;
align-items: center;
color: white;
font-size: 24px;
opacity: 0;
transition: opacity 0.5s ease-in-out;
cursor: url(../images/icon/magnifying-glass-solid.png) 0 0, zoom-in;
border: none;
}
.gallery-container:hover .gallery-overlay {
opacity: 1;
}
.gallery-container:hover img {
transform: scale(1.1);
}
.gallerypopup {
display: none;
justify-content: center;
align-items: center;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 10;
width: auto;
max-width: 90vw;
background-color: rgba(0, 0, 0, 0);
overflow: hidden;
}
.gallerypopup img {
max-width: 90vw;
max-height: 90vh;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
border-radius: 8px;
}
.gallerypopup .close-btn {
position: absolute;
top: 10px;
right: 10px;
background-color: red;
color: white;
border: none;
padding: 5px 10px;
cursor: pointer;
border-radius: 5px;
}
.overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
z-index: 9;
}