-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathImggallery.css
121 lines (109 loc) · 2.4 KB
/
Imggallery.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
/* Styling for the body, including font and background gradient */
body {
background-image: linear-gradient(68.6deg,rgba(79, 183, 131, 1) 14.4%,rgba(254, 235, 151, 1) 92.7%);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
}
/* Container for the entire gallery */
.gallery-container {
width: 80%;
max-width: 1500px;
}
/* Flex container for gallery items */
.gallery {
display: flex;
flex-wrap: wrap;
justify-content: center;
position: relative;
}
/* Styling for individual gallery items, including rotation and shadow */
.gallery-item {
width: 172px;
height: 162px;
margin: 70px 25px -14px 4px;
transform: rotate(45deg);
overflow: hidden;
transition: transform 0.3s, filter 0.3s;
box-shadow: 6px 2px 9px rgb(223, 38, 11);
cursor: pointer;
}
/* Ensure images inside gallery items are correctly rotated and sized */
.gallery-item img {
width: 100%;
height: 100%;
object-fit: cover;
transform: rotate(-45deg);
transition: transform 0.3s, filter 0.3s;
}
/* Hover effect for gallery items */
.gallery-item:hover {
transform: scale(1.1);
filter: brightness(1.2);
}
.gallery-item:hover img {
transform: scale(1.1);
filter: brightness(1.2);
}
/* Styling for the auto-zoom button */
#auto-zoom {
padding: 0px 16px;
font-size: 1.3rem;
text-transform: capitalize;
cursor: pointer;
text-align: center;
position: absolute;
top: 40%;
left: 93%;
font-family: "Ga Maamli", sans-serif;
background-color: #0376a9;
color: white;
}
#auto-zoom:hover {
filter: brightness(2);
}
/* Modal styling for full-screen image display */
.modal {
display: none;
position: fixed;
z-index: 1;
padding-top: 60px;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0, 0, 0, 0.9);
}
/* Modal content styling for full-screen image display */
.modal-content {
display: block;
margin: auto;
max-width: 90%;
max-height: 90%;
transition: transform 1s, filter 1s;
}
/* Close button styling for the modal */
.close {
position: absolute;
top: 30px;
right: 35px;
color: white;
font-size: 40px;
font-weight: bold;
cursor: pointer;
}
/* Styling for the page title */
h1 {
margin-top: 4%;
margin-bottom: -25px;
font-family: "Ga Maamli", sans-serif;
font-weight: 400;
font-style: normal;
font-size: 4rem;
text-decoration: underline;
color: rgb(191, 28, 49);
}