| 1 |
|
| 2 |
/* Smart Image Css */ |
| 3 |
.sp-image-ratio-1-1 { |
| 4 |
aspect-ratio: 1 / 1; |
| 5 |
} |
| 6 |
.sp-image-ratio-4-3 { |
| 7 |
aspect-ratio: 4 / 3; |
| 8 |
} |
| 9 |
.sp-image-ratio-3-2 { |
| 10 |
aspect-ratio: 3 / 2; |
| 11 |
} |
| 12 |
.sp-image-ratio-16-9 { |
| 13 |
aspect-ratio: 16 / 9; |
| 14 |
} |
| 15 |
.sp-image-ratio-2-1 { |
| 16 |
aspect-ratio: 2 / 1; |
| 17 |
} |
| 18 |
.sp-image-ratio-3-1 { |
| 19 |
aspect-ratio: 3 / 1; |
| 20 |
} |
| 21 |
.sp-image-ratio-4-1 { |
| 22 |
aspect-ratio: 4 / 1; |
| 23 |
} |
| 24 |
.sp-image-ratio-3-4 { |
| 25 |
aspect-ratio: 3 / 4; |
| 26 |
} |
| 27 |
.sp-image-ratio-2-4 { |
| 28 |
aspect-ratio: 2 / 4; |
| 29 |
} |
| 30 |
.sp-image-ratio-9-16 { |
| 31 |
aspect-ratio: 9 / 16; |
| 32 |
} |
| 33 |
.sp-position-top-left { |
| 34 |
top: 0; |
| 35 |
left: 0; |
| 36 |
} |
| 37 |
.sp-position-top-right { |
| 38 |
top: 0; |
| 39 |
left: unset; |
| 40 |
right: 0; |
| 41 |
} |
| 42 |
.sp-position-top-center { |
| 43 |
top: 0; |
| 44 |
left: 50%; |
| 45 |
transform: translateX( - 50% ); |
| 46 |
} |
| 47 |
.sp-position-center-center { |
| 48 |
top: 50%; |
| 49 |
left: 50%; |
| 50 |
transform: translate( -50%, -50% ); |
| 51 |
} |
| 52 |
.sp-position-bottom-left { |
| 53 |
top: unset; |
| 54 |
bottom: 0; |
| 55 |
left: 0; |
| 56 |
} |
| 57 |
.sp-position-bottom-right { |
| 58 |
top: unset; |
| 59 |
bottom: 0; |
| 60 |
left: unset; |
| 61 |
right: 0; |
| 62 |
} |
| 63 |
.sp-position-bottom-center { |
| 64 |
top: unset; |
| 65 |
bottom: 0; |
| 66 |
left: 50%; |
| 67 |
transform: translateX( - 50% ); |
| 68 |
} |
| 69 |
.sp-position-center-left { |
| 70 |
top: 50%; |
| 71 |
left: 0; |
| 72 |
transform: translateY( - 50% ); |
| 73 |
} |
| 74 |
.sp-position-center-right { |
| 75 |
top: 50%; |
| 76 |
left: unset; |
| 77 |
right: 0; |
| 78 |
transform: translateY( - 50% ); |
| 79 |
} |
| 80 |
|
| 81 |
.sp-text-position-top { |
| 82 |
flex-direction: column-reverse; |
| 83 |
} |
| 84 |
.sp-text-position-bottom { |
| 85 |
flex-direction: column; |
| 86 |
} |
| 87 |
.sp-text-left { |
| 88 |
text-align: left; |
| 89 |
} |
| 90 |
.sp-text-center { |
| 91 |
text-align: center; |
| 92 |
} |
| 93 |
.sp-text-right { |
| 94 |
text-align: right; |
| 95 |
} |
| 96 |
|
| 97 |
// Animation zoom in |
| 98 |
.sp-smart-image-area .sp-zoom-in { |
| 99 |
transform: scale( 1 ); |
| 100 |
} |
| 101 |
.sp-smart-image-area:hover .sp-zoom-in { |
| 102 |
transform: scale( 1.1 ); |
| 103 |
} |
| 104 |
.sp-smart-image-area .sp-zoom-out { |
| 105 |
transform: scale( 1.1 ); |
| 106 |
} |
| 107 |
.sp-smart-image-area:hover .sp-zoom-out { |
| 108 |
transform: scale( 1 ); |
| 109 |
} |
| 110 |
.sp-smart-image-area .sp-move-left { |
| 111 |
transform: scale( 1.1 ); |
| 112 |
} |
| 113 |
.sp-smart-image-area:hover .sp-move-left { |
| 114 |
transform: scale(1.1) translateX(3%); |
| 115 |
} |
| 116 |
.sp-smart-image-area .sp-move-right { |
| 117 |
transform: scale( 1.1 ); |
| 118 |
} |
| 119 |
.sp-smart-image-area:hover .sp-move-right { |
| 120 |
transform: scale(1.1) translateX( -3% ); |
| 121 |
} |
| 122 |
.sp-smart-image-area .sp-move-top { |
| 123 |
transform: scale( 1.1 ); |
| 124 |
} |
| 125 |
.sp-smart-image-area:hover .sp-move-top { |
| 126 |
transform: scale(1.1) translateY(3%); |
| 127 |
} |
| 128 |
.sp-smart-image-area .sp-move-bottom { |
| 129 |
transform: scale( 1.1 ); |
| 130 |
} |
| 131 |
.sp-smart-image-area:hover .sp-move-bottom { |
| 132 |
transform: scale(1.1) translateY(-3%); |
| 133 |
} |
| 134 |
img.sp-smart-image { |
| 135 |
max-width: 100%; |
| 136 |
} |
| 137 |
.sp-overflow-hidden { |
| 138 |
overflow: hidden; |
| 139 |
} |
| 140 |
// .sp-d-flex { |
| 141 |
// display: flex; |
| 142 |
// } |
| 143 |
// .sp-justify-left { |
| 144 |
// justify-content: left; |
| 145 |
// } |
| 146 |
// .sp-justify-center { |
| 147 |
// justify-content: center; |
| 148 |
// } |
| 149 |
// .sp-justify-right { |
| 150 |
// justify-content: right; |
| 151 |
// } |
| 152 |
|
| 153 |
.sp-smart-post-block-wrapper { |
| 154 |
|
| 155 |
// .sp-smart-post-smart-image { |
| 156 |
// overflow: hidden; // Comment out for box-shadow. |
| 157 |
// } |
| 158 |
|
| 159 |
.sp-smart-image-wrapper { |
| 160 |
margin: 0; |
| 161 |
&.sp-text-position-top, |
| 162 |
&.sp-text-position-bottom { |
| 163 |
display: flex; |
| 164 |
} |
| 165 |
&.sp-text-position-over-img { |
| 166 |
position: relative; |
| 167 |
.sp-smart-image-text-container { |
| 168 |
position: absolute; |
| 169 |
z-index: 1; |
| 170 |
} |
| 171 |
.sp-visibility-show-hover { |
| 172 |
width: 0; |
| 173 |
height: 0; |
| 174 |
visibility: hidden; |
| 175 |
opacity: 0; |
| 176 |
transition: opacity 0.3s ease-in-out; |
| 177 |
} |
| 178 |
&:hover .sp-visibility-show-hover { |
| 179 |
width: auto; |
| 180 |
height: fit-content; |
| 181 |
visibility: visible; |
| 182 |
opacity: 1; |
| 183 |
} |
| 184 |
} |
| 185 |
.sp-smart-image-text-container { |
| 186 |
display: flex; |
| 187 |
flex-direction: column; |
| 188 |
row-gap: 16px; |
| 189 |
} |
| 190 |
|
| 191 |
// .sp-smart-post.sp-smart-image-area { |
| 192 |
// overflow: hidden; // comment out for box-shadow. |
| 193 |
// } |
| 194 |
|
| 195 |
.sp-smart-image-title, |
| 196 |
.sp-smart-image-caption { |
| 197 |
margin: 0 |
| 198 |
} |
| 199 |
} |
| 200 |
|
| 201 |
.sp-smart-image-area { |
| 202 |
position: relative; |
| 203 |
box-sizing: border-box; |
| 204 |
transition: all 0.3s ease-in-out; |
| 205 |
mask-size: contain; |
| 206 |
mask-position: center center; |
| 207 |
mask-repeat: no-repeat; |
| 208 |
&:has( .sp-image-ratio-original ) { |
| 209 |
width: fit-content; |
| 210 |
} |
| 211 |
&.sp-has-bg { |
| 212 |
background: var(--smart-post-secondary); |
| 213 |
} |
| 214 |
|
| 215 |
.sp-smart-image:not( .sp-image-ratio-original ) { |
| 216 |
width: 100%; |
| 217 |
} |
| 218 |
|
| 219 |
.sp-smart-image { |
| 220 |
display: block; |
| 221 |
object-fit: cover; |
| 222 |
pointer-events: all; |
| 223 |
transition: all 0.3s ease-in-out; |
| 224 |
} |
| 225 |
.sp-smart-image-link-btn-wrapper { |
| 226 |
position: absolute; |
| 227 |
display: flex; |
| 228 |
padding: 10px; |
| 229 |
z-index: 1; |
| 230 |
|
| 231 |
.sp-smart-image-link-btn { |
| 232 |
display: inline-block; |
| 233 |
text-wrap: nowrap; |
| 234 |
cursor: pointer; |
| 235 |
transition: all 0.3s ease-in-out; |
| 236 |
user-select: none; |
| 237 |
&:focus { |
| 238 |
outline: none; |
| 239 |
} |
| 240 |
} |
| 241 |
} |
| 242 |
} |
| 243 |
.sp-smart-image-area { |
| 244 |
.sp-hover-img-overlay { |
| 245 |
transform: scale( 1 ); |
| 246 |
transition: background 0.35s, transform 0.35s; |
| 247 |
pointer-events: none; |
| 248 |
} |
| 249 |
} |
| 250 |
.sp-smart-image-area:hover { |
| 251 |
.sp-hover-img-overlay { |
| 252 |
position: absolute; |
| 253 |
top: 0; |
| 254 |
left: 0; |
| 255 |
width: 100%; |
| 256 |
height: 100%; |
| 257 |
z-index: 1; |
| 258 |
pointer-events: none; |
| 259 |
&.sp-selena { |
| 260 |
transform: scale( 0.95 ); |
| 261 |
} |
| 262 |
} |
| 263 |
} |
| 264 |
} |
| 265 |
|
| 266 |
// Device wise Display Visibility |
| 267 |
.sp-hide-on-desktop { |
| 268 |
display: none; |
| 269 |
} |
| 270 |
@media only screen and (max-width: 1023px) { |
| 271 |
.sp-hide-on-tablet { |
| 272 |
display: none; |
| 273 |
} |
| 274 |
.sp-smart-post-block-wrapper:not(.sp-hide-on-tablet) { |
| 275 |
display: block; |
| 276 |
} |
| 277 |
} |
| 278 |
@media only screen and (max-width: 599px) { |
| 279 |
.sp-smart-post-block-wrapper.sp-hide-on-mobile { |
| 280 |
display: none; |
| 281 |
} |
| 282 |
.sp-smart-post-block-wrapper:not(.sp-hide-on-mobile) { |
| 283 |
display: block; |
| 284 |
} |
| 285 |
} |
| 286 |
|
| 287 |
.sp-text { |
| 288 |
transition: transform 0.35s; |
| 289 |
} |
| 290 |
|
| 291 |
.sp-smart-image-area:has( .sp-smart-image.sp-jazz ) { |
| 292 |
position: relative; |
| 293 |
|
| 294 |
&::after { |
| 295 |
content: ''; |
| 296 |
position: absolute; |
| 297 |
top: 0px; |
| 298 |
left: -20%; |
| 299 |
width: 140%; |
| 300 |
height: 100%; |
| 301 |
border-top: 1px solid #fff; |
| 302 |
border-bottom: 1px solid #fff; |
| 303 |
transform: rotate(45deg) scale3d(1, 0, 1); |
| 304 |
opacity: 0; |
| 305 |
transition: opacity 0.35s, transform 0.35s; |
| 306 |
z-index: 1; |
| 307 |
} |
| 308 |
&:hover { |
| 309 |
.sp-text, |
| 310 |
.sp-smart-image { |
| 311 |
transform: scale(1.1); |
| 312 |
} |
| 313 |
&::after { |
| 314 |
transform: rotate(45deg) scale3d(1, 1, 1); |
| 315 |
opacity: 1; |
| 316 |
} |
| 317 |
} |
| 318 |
} |
| 319 |
.sp-smart-image-area:has( .sp-smart-image.sp-apollo ) { |
| 320 |
position: relative; |
| 321 |
overflow: hidden; |
| 322 |
|
| 323 |
.sp-text, |
| 324 |
.sp-smart-image { |
| 325 |
transform: scale(1.1); |
| 326 |
} |
| 327 |
&::after { |
| 328 |
content: ''; |
| 329 |
position: absolute; |
| 330 |
top: 0; |
| 331 |
left: 0; |
| 332 |
width: 100%; |
| 333 |
height: 100%; |
| 334 |
transform: scale3d(1.9, 1.4, 1) rotate3d(0, 0, 1, 45deg) translate3d(0, 130%, 0); |
| 335 |
background: #fff; |
| 336 |
opacity: 0.6; |
| 337 |
transition: transform 0.5s; |
| 338 |
z-index: 1; |
| 339 |
} |
| 340 |
&:hover { |
| 341 |
.sp-text, |
| 342 |
.sp-smart-image { |
| 343 |
transform: scale(1); |
| 344 |
} |
| 345 |
&::after { |
| 346 |
transform: scale3d(1.9, 1.4, 1) rotate3d(0, 0, 1, 45deg) translate3d(0, -130%, 0); |
| 347 |
} |
| 348 |
} |
| 349 |
} |
| 350 |
.sp-smart-image-area:has( .sp-smart-image.sp-layla ) { |
| 351 |
position: relative; |
| 352 |
overflow: hidden; |
| 353 |
.sp-text { |
| 354 |
transform: scale( 1 ); |
| 355 |
} |
| 356 |
&:hover { |
| 357 |
.sp-text { |
| 358 |
transform: scale( 1.1 ); |
| 359 |
} |
| 360 |
} |
| 361 |
|
| 362 |
&::before { |
| 363 |
content: ''; |
| 364 |
position: absolute; |
| 365 |
top: 50px; |
| 366 |
right: 30px; |
| 367 |
bottom: 50px; |
| 368 |
left: 30px; |
| 369 |
border-top: 1px solid #fff; |
| 370 |
border-bottom: 1px solid #fff; |
| 371 |
transform: scale(0, 1); |
| 372 |
transform-origin: 0 0; |
| 373 |
transition: transform 0.35s; |
| 374 |
z-index: 2; |
| 375 |
} |
| 376 |
&::after { |
| 377 |
content: ''; |
| 378 |
position: absolute; |
| 379 |
top: 30px; |
| 380 |
right: 50px; |
| 381 |
bottom: 30px; |
| 382 |
left: 50px; |
| 383 |
border-right: 1px solid #fff; |
| 384 |
border-left: 1px solid #fff; |
| 385 |
transform: scale(1, 0); |
| 386 |
transform-origin: 100% 0; |
| 387 |
transition: transform 0.35s; |
| 388 |
z-index: 2; |
| 389 |
} |
| 390 |
&:hover { |
| 391 |
&::before { |
| 392 |
opacity: 1; |
| 393 |
transform: scale(1); |
| 394 |
} |
| 395 |
&::after { |
| 396 |
opacity: 1; |
| 397 |
transform: scale(1); |
| 398 |
} |
| 399 |
} |
| 400 |
} |
| 401 |
.sp-smart-image-area:has( .sp-smart-image.sp-oscar ) { |
| 402 |
position: relative; |
| 403 |
overflow: hidden; |
| 404 |
.sp-text { |
| 405 |
transform: scale( 1 ); |
| 406 |
} |
| 407 |
&:hover { |
| 408 |
.sp-text { |
| 409 |
transform: scale( 1.1 ); |
| 410 |
} |
| 411 |
} |
| 412 |
&::before { |
| 413 |
content: ''; |
| 414 |
position: absolute; |
| 415 |
top: 30px; |
| 416 |
right: 30px; |
| 417 |
bottom: 30px; |
| 418 |
left: 30px; |
| 419 |
border: 1px solid #fff; |
| 420 |
opacity: 0; |
| 421 |
transform: scale(0); |
| 422 |
z-index: 2; |
| 423 |
transition: opacity 0.35s, transform 0.35s; |
| 424 |
} |
| 425 |
&:hover { |
| 426 |
&::before { |
| 427 |
opacity: 1; |
| 428 |
transform: scale(1); |
| 429 |
} |
| 430 |
} |
| 431 |
} |
| 432 |
.sp-smart-image-area:has( .sp-smart-image.sp-selena ) { |
| 433 |
.sp-text, |
| 434 |
.sp-smart-image { |
| 435 |
transform: scale( 1 ); |
| 436 |
} |
| 437 |
&:hover { |
| 438 |
.sp-text, |
| 439 |
.sp-smart-image { |
| 440 |
transform: scale( 0.95 ); |
| 441 |
} |
| 442 |
} |
| 443 |
} |
| 444 |
|