-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathotos.css
More file actions
53 lines (45 loc) · 928 Bytes
/
otos.css
File metadata and controls
53 lines (45 loc) · 928 Bytes
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
.photo-category {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
margin-bottom: 2rem;
}
.photo-category h2 {
text-align: center;
margin-bottom: 1rem;
font-size: 2em;
text-transform: capitalize;
}
.photo-gallery {
display: flex;
flex-wrap: wrap;
gap: 20px;
justify-content: flex-start;
}
.photo-item {
flex: 0 0 calc(33.333% - 14px);
aspect-ratio: 1 / 1;
position: relative;
}
.photo-item img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
cursor: pointer;
position: absolute;
top: 0;
left: 0;
}
.photo-item:hover img {
z-index: 100;
width: 40vw;
height: auto;
min-height: 100%;
object-fit: contain;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}