| 1 |
/* === Gallery Grid === */ |
| 2 |
.eel-gallery-grid { |
| 3 |
display: grid; |
| 4 |
grid-template-columns: repeat(3, 1fr); |
| 5 |
gap: 15px; |
| 6 |
} |
| 7 |
|
| 8 |
/* === Gallery Item === */ |
| 9 |
.eel-gallery-item { |
| 10 |
position: relative; |
| 11 |
overflow: hidden; |
| 12 |
border-radius: 8px; |
| 13 |
} |
| 14 |
|
| 15 |
.eel-gallery-item a { |
| 16 |
overflow: hidden; |
| 17 |
display: block; |
| 18 |
} |
| 19 |
|
| 20 |
/* === Image === */ |
| 21 |
.eel-gallery-item img { |
| 22 |
width: 100%; |
| 23 |
height: auto; |
| 24 |
display: block; |
| 25 |
transition: transform 0.4s ease; |
| 26 |
-o-object-fit: cover; |
| 27 |
object-fit: cover; |
| 28 |
} |
| 29 |
|
| 30 |
.eel-gallery-item:hover img { |
| 31 |
transform: scale(1.05); |
| 32 |
} |
| 33 |
|
| 34 |
/* === Hover Overlay === */ |
| 35 |
.eel-hover-content { |
| 36 |
position: absolute; |
| 37 |
inset: 0; |
| 38 |
display: flex; |
| 39 |
justify-content: center; |
| 40 |
align-items: center; |
| 41 |
opacity: 0; |
| 42 |
transition: all 0.3s ease; |
| 43 |
background: rgba(0, 0, 0, 0.55); |
| 44 |
} |
| 45 |
|
| 46 |
.eel-gallery-item:hover .eel-hover-content { |
| 47 |
opacity: 1; |
| 48 |
} |
| 49 |
|
| 50 |
/* === Hover Text === */ |
| 51 |
.eel-hover-text span { |
| 52 |
color: #fff; |
| 53 |
font-size: 18px; |
| 54 |
text-transform: capitalize; |
| 55 |
letter-spacing: 0.5px; |
| 56 |
} |
| 57 |
|
| 58 |
/* === Hover Icon === */ |
| 59 |
.eel-hover-icon i, |
| 60 |
.eel-hover-icon svg { |
| 61 |
color: #fff; |
| 62 |
font-size: 36px; |
| 63 |
transition: transform 0.3s ease; |
| 64 |
} |
| 65 |
|
| 66 |
.eel-hover-icon:hover i, |
| 67 |
.eel-hover-icon:hover svg { |
| 68 |
transform: scale(1.2); |
| 69 |
} |
| 70 |
|
| 71 |
.eel-gallery-image-wrap { |
| 72 |
position: relative; |
| 73 |
overflow: hidden; |
| 74 |
} |
| 75 |
|
| 76 |
.eel-hover-icon svg { |
| 77 |
height: 1em; |
| 78 |
width: 1em; |
| 79 |
} |
| 80 |
|
| 81 |
/* === Caption === */ |
| 82 |
.eel-gallery-caption { |
| 83 |
position: absolute; |
| 84 |
bottom: 0; |
| 85 |
width: 100%; |
| 86 |
background: rgba(0, 0, 0, 0.6); |
| 87 |
color: #fff; |
| 88 |
text-align: center; |
| 89 |
padding: 8px; |
| 90 |
font-size: 14px; |
| 91 |
opacity: 1; |
| 92 |
transition: opacity 0.3s ease; |
| 93 |
} |
| 94 |
|
| 95 |
/* === Lightbox === */ |
| 96 |
.eel-lightbox-gallery { |
| 97 |
display: none; |
| 98 |
position: fixed; |
| 99 |
z-index: 9999; |
| 100 |
top: 0; |
| 101 |
left: 0; |
| 102 |
width: 100%; |
| 103 |
height: 100%; |
| 104 |
background: rgba(0, 0, 0, 0.9); |
| 105 |
justify-content: center; |
| 106 |
align-items: center; |
| 107 |
place-items: center; |
| 108 |
} |
| 109 |
|
| 110 |
.eel-lightbox-gallery img { |
| 111 |
max-width: 90%; |
| 112 |
max-height: 80%; |
| 113 |
border-radius: 10px; |
| 114 |
} |
| 115 |
|
| 116 |
.eel-lightbox-gallery .eel-close { |
| 117 |
position: absolute; |
| 118 |
top: 15px; |
| 119 |
right: 25px; |
| 120 |
font-size: 35px; |
| 121 |
color: white; |
| 122 |
cursor: pointer; |
| 123 |
} |
| 124 |
|
| 125 |
.eel-lightbox-gallery button { |
| 126 |
background: none; |
| 127 |
border: none; |
| 128 |
color: white; |
| 129 |
font-size: 40px; |
| 130 |
position: absolute; |
| 131 |
top: 50%; |
| 132 |
transform: translateY(-50%); |
| 133 |
cursor: pointer; |
| 134 |
} |
| 135 |
|
| 136 |
.eel-prev { |
| 137 |
left: 40px; |
| 138 |
} |
| 139 |
|
| 140 |
.eel-next { |
| 141 |
right: 40px; |
| 142 |
} |