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