glightbox.css
6 months ago
glightbox.js
6 months ago
glightbox.min.css
6 months ago
glightbox.min.js
6 months ago
glightbox.css
940 lines
| 1 | .glightbox-container { |
| 2 | width: 100%; |
| 3 | height: 100%; |
| 4 | position: fixed; |
| 5 | top: 0; |
| 6 | left: 0; |
| 7 | z-index: 999999 !important; |
| 8 | overflow: hidden; |
| 9 | -ms-touch-action: none; |
| 10 | touch-action: none; |
| 11 | -webkit-text-size-adjust: 100%; |
| 12 | -moz-text-size-adjust: 100%; |
| 13 | -ms-text-size-adjust: 100%; |
| 14 | text-size-adjust: 100%; |
| 15 | -webkit-backface-visibility: hidden; |
| 16 | backface-visibility: hidden; |
| 17 | outline: none; |
| 18 | } |
| 19 | |
| 20 | .glightbox-container.inactive { |
| 21 | display: none; |
| 22 | } |
| 23 | |
| 24 | .glightbox-container .gcontainer { |
| 25 | position: relative; |
| 26 | width: 100%; |
| 27 | height: 100%; |
| 28 | z-index: 9999; |
| 29 | overflow: hidden; |
| 30 | } |
| 31 | |
| 32 | .glightbox-container .gslider { |
| 33 | -webkit-transition: -webkit-transform 0.4s ease; |
| 34 | transition: -webkit-transform 0.4s ease; |
| 35 | transition: transform 0.4s ease; |
| 36 | transition: transform 0.4s ease, -webkit-transform 0.4s ease; |
| 37 | height: 100%; |
| 38 | left: 0; |
| 39 | top: 0; |
| 40 | width: 100%; |
| 41 | position: relative; |
| 42 | overflow: hidden; |
| 43 | display: -webkit-box !important; |
| 44 | display: -ms-flexbox !important; |
| 45 | display: flex !important; |
| 46 | -webkit-box-pack: center; |
| 47 | -ms-flex-pack: center; |
| 48 | justify-content: center; |
| 49 | -webkit-box-align: center; |
| 50 | -ms-flex-align: center; |
| 51 | align-items: center; |
| 52 | -webkit-transform: translate3d(0, 0, 0); |
| 53 | transform: translate3d(0, 0, 0); |
| 54 | } |
| 55 | |
| 56 | .glightbox-container .gslide { |
| 57 | width: 100%; |
| 58 | position: absolute; |
| 59 | -webkit-user-select: none; |
| 60 | -moz-user-select: none; |
| 61 | -ms-user-select: none; |
| 62 | user-select: none; |
| 63 | display: -webkit-box; |
| 64 | display: -ms-flexbox; |
| 65 | display: flex; |
| 66 | -webkit-box-align: center; |
| 67 | -ms-flex-align: center; |
| 68 | align-items: center; |
| 69 | -webkit-box-pack: center; |
| 70 | -ms-flex-pack: center; |
| 71 | justify-content: center; |
| 72 | opacity: 0; |
| 73 | } |
| 74 | |
| 75 | .glightbox-container .gslide.current { |
| 76 | opacity: 1; |
| 77 | z-index: 99999; |
| 78 | position: relative; |
| 79 | } |
| 80 | |
| 81 | .glightbox-container .gslide.prev { |
| 82 | opacity: 1; |
| 83 | z-index: 9999; |
| 84 | } |
| 85 | |
| 86 | .glightbox-container .gslide-inner-content { |
| 87 | width: 100%; |
| 88 | } |
| 89 | |
| 90 | .glightbox-container .ginner-container { |
| 91 | position: relative; |
| 92 | width: 100%; |
| 93 | display: -webkit-box; |
| 94 | display: -ms-flexbox; |
| 95 | display: flex; |
| 96 | -webkit-box-pack: center; |
| 97 | -ms-flex-pack: center; |
| 98 | justify-content: center; |
| 99 | -webkit-box-orient: vertical; |
| 100 | -webkit-box-direction: normal; |
| 101 | -ms-flex-direction: column; |
| 102 | flex-direction: column; |
| 103 | max-width: 100%; |
| 104 | margin: auto; |
| 105 | height: 100vh; |
| 106 | } |
| 107 | |
| 108 | .glightbox-container .ginner-container.gvideo-container { |
| 109 | width: 100%; |
| 110 | } |
| 111 | |
| 112 | .glightbox-container .ginner-container.desc-bottom, |
| 113 | .glightbox-container .ginner-container.desc-top { |
| 114 | -webkit-box-orient: vertical; |
| 115 | -webkit-box-direction: normal; |
| 116 | -ms-flex-direction: column; |
| 117 | flex-direction: column; |
| 118 | } |
| 119 | |
| 120 | .glightbox-container .ginner-container.desc-left, |
| 121 | .glightbox-container .ginner-container.desc-right { |
| 122 | max-width: 100% !important; |
| 123 | } |
| 124 | |
| 125 | .gslide iframe, |
| 126 | .gslide video { |
| 127 | outline: none !important; |
| 128 | border: none; |
| 129 | min-height: 165px; |
| 130 | -webkit-overflow-scrolling: touch; |
| 131 | -ms-touch-action: auto; |
| 132 | touch-action: auto; |
| 133 | } |
| 134 | |
| 135 | .gslide:not(.current) { |
| 136 | pointer-events: none; |
| 137 | } |
| 138 | |
| 139 | .gslide-image { |
| 140 | -webkit-box-align: center; |
| 141 | -ms-flex-align: center; |
| 142 | align-items: center; |
| 143 | } |
| 144 | |
| 145 | .gslide-image img { |
| 146 | max-height: 100vh; |
| 147 | display: block; |
| 148 | padding: 0; |
| 149 | float: none; |
| 150 | outline: none; |
| 151 | border: none; |
| 152 | -webkit-user-select: none; |
| 153 | -moz-user-select: none; |
| 154 | -ms-user-select: none; |
| 155 | user-select: none; |
| 156 | max-width: 100vw; |
| 157 | width: auto; |
| 158 | height: auto; |
| 159 | -o-object-fit: cover; |
| 160 | object-fit: cover; |
| 161 | -ms-touch-action: none; |
| 162 | touch-action: none; |
| 163 | margin: auto; |
| 164 | min-width: 200px; |
| 165 | } |
| 166 | |
| 167 | .desc-top .gslide-image img, |
| 168 | .desc-bottom .gslide-image img { |
| 169 | width: auto; |
| 170 | } |
| 171 | |
| 172 | .desc-left .gslide-image img, |
| 173 | .desc-right .gslide-image img { |
| 174 | width: auto; |
| 175 | max-width: 100%; |
| 176 | } |
| 177 | |
| 178 | .gslide-image img.zoomable { |
| 179 | position: relative; |
| 180 | } |
| 181 | |
| 182 | .gslide-image img.dragging { |
| 183 | cursor: -webkit-grabbing !important; |
| 184 | cursor: grabbing !important; |
| 185 | -webkit-transition: none; |
| 186 | transition: none; |
| 187 | } |
| 188 | |
| 189 | .gslide-video { |
| 190 | position: relative; |
| 191 | max-width: 100vh; |
| 192 | width: 100% !important; |
| 193 | } |
| 194 | |
| 195 | .gslide-video .plyr__poster-enabled.plyr--loading .plyr__poster { |
| 196 | display: none; |
| 197 | } |
| 198 | |
| 199 | .gslide-video .gvideo-wrapper { |
| 200 | width: 100%; |
| 201 | /* max-width: 160vmin; */ |
| 202 | margin: auto; |
| 203 | } |
| 204 | |
| 205 | .gslide-video::before { |
| 206 | content: ''; |
| 207 | position: absolute; |
| 208 | width: 100%; |
| 209 | height: 100%; |
| 210 | background: rgba(255, 0, 0, 0.34); |
| 211 | display: none; |
| 212 | } |
| 213 | |
| 214 | .gslide-video.playing::before { |
| 215 | display: none; |
| 216 | } |
| 217 | |
| 218 | .gslide-video.fullscreen { |
| 219 | max-width: 100% !important; |
| 220 | min-width: 100%; |
| 221 | height: 75vh; |
| 222 | } |
| 223 | |
| 224 | .gslide-video.fullscreen video { |
| 225 | max-width: 100% !important; |
| 226 | width: 100% !important; |
| 227 | } |
| 228 | |
| 229 | .gslide-inline { |
| 230 | background: #fff; |
| 231 | text-align: left; |
| 232 | max-height: calc(100vh - 40px); |
| 233 | overflow: auto; |
| 234 | max-width: 100%; |
| 235 | margin: auto; |
| 236 | } |
| 237 | |
| 238 | .gslide-inline .ginlined-content { |
| 239 | padding: 20px; |
| 240 | width: 100%; |
| 241 | } |
| 242 | |
| 243 | .gslide-inline .dragging { |
| 244 | cursor: -webkit-grabbing !important; |
| 245 | cursor: grabbing !important; |
| 246 | -webkit-transition: none; |
| 247 | transition: none; |
| 248 | } |
| 249 | |
| 250 | .ginlined-content { |
| 251 | overflow: auto; |
| 252 | display: block !important; |
| 253 | opacity: 1; |
| 254 | } |
| 255 | |
| 256 | .gslide-external { |
| 257 | display: -webkit-box; |
| 258 | display: -ms-flexbox; |
| 259 | display: flex; |
| 260 | width: 100%; |
| 261 | min-width: 100%; |
| 262 | background: #fff; |
| 263 | padding: 0; |
| 264 | overflow: auto; |
| 265 | max-height: 75vh; |
| 266 | height: 100%; |
| 267 | } |
| 268 | |
| 269 | .gslide-media { |
| 270 | display: -webkit-box; |
| 271 | display: -ms-flexbox; |
| 272 | display: flex; |
| 273 | width: auto; |
| 274 | } |
| 275 | |
| 276 | .zoomed .gslide-media { |
| 277 | -webkit-box-shadow: none !important; |
| 278 | box-shadow: none !important; |
| 279 | } |
| 280 | |
| 281 | .desc-top .gslide-media, |
| 282 | .desc-bottom .gslide-media { |
| 283 | margin: 0 auto; |
| 284 | -webkit-box-orient: vertical; |
| 285 | -webkit-box-direction: normal; |
| 286 | -ms-flex-direction: column; |
| 287 | flex-direction: column; |
| 288 | } |
| 289 | |
| 290 | .gslide-description { |
| 291 | position: relative; |
| 292 | -webkit-box-flex: 1; |
| 293 | -ms-flex: 1 0 100%; |
| 294 | flex: 1 0 100%; |
| 295 | } |
| 296 | |
| 297 | .gslide-description.description-left, |
| 298 | .gslide-description.description-right { |
| 299 | max-width: 100%; |
| 300 | } |
| 301 | |
| 302 | .gslide-description.description-bottom, |
| 303 | .gslide-description.description-top { |
| 304 | margin: 0 auto; |
| 305 | width: 100%; |
| 306 | } |
| 307 | |
| 308 | .gslide-description p { |
| 309 | margin-bottom: 12px; |
| 310 | } |
| 311 | |
| 312 | .gslide-description p:last-child { |
| 313 | margin-bottom: 0; |
| 314 | } |
| 315 | |
| 316 | .zoomed .gslide-description { |
| 317 | display: none; |
| 318 | } |
| 319 | |
| 320 | .glightbox-button-hidden { |
| 321 | display: none; |
| 322 | } |
| 323 | |
| 324 | |
| 325 | /* |
| 326 | * Description for mobiles |
| 327 | * something like facebook does the description |
| 328 | * for the photos |
| 329 | */ |
| 330 | |
| 331 | .glightbox-mobile .glightbox-container .gslide-description { |
| 332 | height: auto !important; |
| 333 | width: 100%; |
| 334 | position: absolute; |
| 335 | bottom: 0; |
| 336 | padding: 19px 11px; |
| 337 | max-width: 100vw !important; |
| 338 | -webkit-box-ordinal-group: 3 !important; |
| 339 | -ms-flex-order: 2 !important; |
| 340 | order: 2 !important; |
| 341 | max-height: 78vh; |
| 342 | overflow: auto !important; |
| 343 | background: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0)), to(rgba(0, 0, 0, 0.75))); |
| 344 | background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.75) 100%); |
| 345 | -webkit-transition: opacity 0.3s linear; |
| 346 | transition: opacity 0.3s linear; |
| 347 | padding-bottom: 50px; |
| 348 | } |
| 349 | |
| 350 | .glightbox-mobile .glightbox-container .gslide-title { |
| 351 | color: #fff; |
| 352 | font-size: 1em; |
| 353 | } |
| 354 | |
| 355 | .glightbox-mobile .glightbox-container .gslide-desc { |
| 356 | color: #a1a1a1; |
| 357 | } |
| 358 | |
| 359 | .glightbox-mobile .glightbox-container .gslide-desc a { |
| 360 | color: #fff; |
| 361 | font-weight: bold; |
| 362 | } |
| 363 | |
| 364 | .glightbox-mobile .glightbox-container .gslide-desc * { |
| 365 | color: inherit; |
| 366 | } |
| 367 | |
| 368 | .glightbox-mobile .glightbox-container .gslide-desc .desc-more { |
| 369 | color: #fff; |
| 370 | opacity: 0.4; |
| 371 | } |
| 372 | |
| 373 | .gdesc-open .gslide-media { |
| 374 | -webkit-transition: opacity 0.5s ease; |
| 375 | transition: opacity 0.5s ease; |
| 376 | opacity: 0.4; |
| 377 | } |
| 378 | |
| 379 | .gdesc-open .gdesc-inner { |
| 380 | padding-bottom: 30px; |
| 381 | } |
| 382 | |
| 383 | .gdesc-closed .gslide-media { |
| 384 | -webkit-transition: opacity 0.5s ease; |
| 385 | transition: opacity 0.5s ease; |
| 386 | opacity: 1; |
| 387 | } |
| 388 | |
| 389 | .greset { |
| 390 | -webkit-transition: all 0.3s ease; |
| 391 | transition: all 0.3s ease; |
| 392 | } |
| 393 | |
| 394 | .gabsolute { |
| 395 | position: absolute; |
| 396 | } |
| 397 | |
| 398 | .grelative { |
| 399 | position: relative; |
| 400 | } |
| 401 | |
| 402 | .glightbox-desc { |
| 403 | display: none !important; |
| 404 | } |
| 405 | |
| 406 | .glightbox-open { |
| 407 | overflow: hidden; |
| 408 | } |
| 409 | |
| 410 | .gloader { |
| 411 | height: 25px; |
| 412 | width: 25px; |
| 413 | -webkit-animation: lightboxLoader 0.8s infinite linear; |
| 414 | animation: lightboxLoader 0.8s infinite linear; |
| 415 | border: 2px solid #fff; |
| 416 | border-right-color: transparent; |
| 417 | border-radius: 50%; |
| 418 | position: absolute; |
| 419 | display: block; |
| 420 | z-index: 9999; |
| 421 | left: 0; |
| 422 | right: 0; |
| 423 | margin: 0 auto; |
| 424 | top: 47%; |
| 425 | } |
| 426 | |
| 427 | .goverlay { |
| 428 | width: 100%; |
| 429 | height: calc(100vh + 1px); |
| 430 | position: fixed; |
| 431 | top: -1px; |
| 432 | left: 0; |
| 433 | background: rgba(0, 0, 0, 0.92); |
| 434 | will-change: opacity; |
| 435 | } |
| 436 | |
| 437 | .glightbox-mobile .goverlay { |
| 438 | background: rgba(0, 0, 0, 0.92); |
| 439 | } |
| 440 | |
| 441 | .gprev, |
| 442 | .gnext, |
| 443 | .gclose { |
| 444 | z-index: 99999; |
| 445 | cursor: pointer; |
| 446 | width: 26px; |
| 447 | height: 44px; |
| 448 | border: none; |
| 449 | display: -webkit-box; |
| 450 | display: -ms-flexbox; |
| 451 | display: flex; |
| 452 | -webkit-box-pack: center; |
| 453 | -ms-flex-pack: center; |
| 454 | justify-content: center; |
| 455 | -webkit-box-align: center; |
| 456 | -ms-flex-align: center; |
| 457 | align-items: center; |
| 458 | -webkit-box-orient: vertical; |
| 459 | -webkit-box-direction: normal; |
| 460 | -ms-flex-direction: column; |
| 461 | flex-direction: column; |
| 462 | } |
| 463 | |
| 464 | .gprev svg, |
| 465 | .gnext svg, |
| 466 | .gclose svg { |
| 467 | display: block; |
| 468 | width: 25px; |
| 469 | height: auto; |
| 470 | margin: 0; |
| 471 | padding: 0; |
| 472 | } |
| 473 | |
| 474 | .gprev.disabled, |
| 475 | .gnext.disabled, |
| 476 | .gclose.disabled { |
| 477 | opacity: 0.1; |
| 478 | } |
| 479 | |
| 480 | .gprev .garrow, |
| 481 | .gnext .garrow, |
| 482 | .gclose .garrow { |
| 483 | stroke: #fff; |
| 484 | } |
| 485 | |
| 486 | .gbtn.focused { |
| 487 | outline: 2px solid #0f3d81; |
| 488 | } |
| 489 | |
| 490 | iframe.wait-autoplay { |
| 491 | opacity: 0; |
| 492 | } |
| 493 | |
| 494 | .glightbox-closing .gnext, |
| 495 | .glightbox-closing .gprev, |
| 496 | .glightbox-closing .gclose { |
| 497 | opacity: 0 !important; |
| 498 | } |
| 499 | |
| 500 | |
| 501 | /*Skin */ |
| 502 | |
| 503 | .glightbox-clean .gslide-description { |
| 504 | background: #fff; |
| 505 | } |
| 506 | |
| 507 | .glightbox-clean .gdesc-inner { |
| 508 | padding: 22px 20px; |
| 509 | } |
| 510 | |
| 511 | .glightbox-clean .gslide-title { |
| 512 | font-size: 1em; |
| 513 | font-weight: normal; |
| 514 | font-family: arial; |
| 515 | color: #000; |
| 516 | margin-bottom: 19px; |
| 517 | line-height: 1.4em; |
| 518 | } |
| 519 | |
| 520 | .glightbox-clean .gslide-desc { |
| 521 | font-size: 0.86em; |
| 522 | margin-bottom: 0; |
| 523 | font-family: arial; |
| 524 | line-height: 1.4em; |
| 525 | } |
| 526 | |
| 527 | .glightbox-clean .gslide-video { |
| 528 | background: #000; |
| 529 | } |
| 530 | |
| 531 | .glightbox-clean .gprev, |
| 532 | .glightbox-clean .gnext, |
| 533 | .glightbox-clean .gclose { |
| 534 | background-color: rgba(0, 0, 0, 0.75); |
| 535 | border-radius: 4px; |
| 536 | } |
| 537 | |
| 538 | .glightbox-clean .gprev path, |
| 539 | .glightbox-clean .gnext path, |
| 540 | .glightbox-clean .gclose path { |
| 541 | fill: #fff; |
| 542 | } |
| 543 | |
| 544 | .glightbox-clean .gprev { |
| 545 | position: absolute; |
| 546 | top: -100%; |
| 547 | left: 30px; |
| 548 | width: 40px; |
| 549 | height: 50px; |
| 550 | } |
| 551 | |
| 552 | .glightbox-clean .gnext { |
| 553 | position: absolute; |
| 554 | top: -100%; |
| 555 | right: 30px; |
| 556 | width: 40px; |
| 557 | height: 50px; |
| 558 | } |
| 559 | |
| 560 | .glightbox-clean .gclose { |
| 561 | width: 35px; |
| 562 | height: 35px; |
| 563 | top: 15px; |
| 564 | right: 10px; |
| 565 | position: absolute; |
| 566 | } |
| 567 | |
| 568 | .glightbox-clean .gclose svg { |
| 569 | width: 18px; |
| 570 | height: auto; |
| 571 | } |
| 572 | |
| 573 | .glightbox-clean .gclose:hover { |
| 574 | opacity: 1; |
| 575 | } |
| 576 | |
| 577 | |
| 578 | /*CSS Animations*/ |
| 579 | |
| 580 | .gfadeIn { |
| 581 | -webkit-animation: gfadeIn 0.5s ease; |
| 582 | animation: gfadeIn 0.5s ease; |
| 583 | } |
| 584 | |
| 585 | .gfadeOut { |
| 586 | -webkit-animation: gfadeOut 0.5s ease; |
| 587 | animation: gfadeOut 0.5s ease; |
| 588 | } |
| 589 | |
| 590 | .gslideOutLeft { |
| 591 | -webkit-animation: gslideOutLeft 0.3s ease; |
| 592 | animation: gslideOutLeft 0.3s ease; |
| 593 | } |
| 594 | |
| 595 | .gslideInLeft { |
| 596 | -webkit-animation: gslideInLeft 0.3s ease; |
| 597 | animation: gslideInLeft 0.3s ease; |
| 598 | } |
| 599 | |
| 600 | .gslideOutRight { |
| 601 | -webkit-animation: gslideOutRight 0.3s ease; |
| 602 | animation: gslideOutRight 0.3s ease; |
| 603 | } |
| 604 | |
| 605 | .gslideInRight { |
| 606 | -webkit-animation: gslideInRight 0.3s ease; |
| 607 | animation: gslideInRight 0.3s ease; |
| 608 | } |
| 609 | |
| 610 | .gzoomIn { |
| 611 | -webkit-animation: gzoomIn 0.5s ease; |
| 612 | animation: gzoomIn 0.5s ease; |
| 613 | } |
| 614 | |
| 615 | .gzoomOut { |
| 616 | -webkit-animation: gzoomOut 0.5s ease; |
| 617 | animation: gzoomOut 0.5s ease; |
| 618 | } |
| 619 | |
| 620 | @-webkit-keyframes lightboxLoader { |
| 621 | 0% { |
| 622 | -webkit-transform: rotate(0deg); |
| 623 | transform: rotate(0deg); |
| 624 | } |
| 625 | 100% { |
| 626 | -webkit-transform: rotate(360deg); |
| 627 | transform: rotate(360deg); |
| 628 | } |
| 629 | } |
| 630 | |
| 631 | @keyframes lightboxLoader { |
| 632 | 0% { |
| 633 | -webkit-transform: rotate(0deg); |
| 634 | transform: rotate(0deg); |
| 635 | } |
| 636 | 100% { |
| 637 | -webkit-transform: rotate(360deg); |
| 638 | transform: rotate(360deg); |
| 639 | } |
| 640 | } |
| 641 | |
| 642 | @-webkit-keyframes gfadeIn { |
| 643 | from { |
| 644 | opacity: 0; |
| 645 | } |
| 646 | to { |
| 647 | opacity: 1; |
| 648 | } |
| 649 | } |
| 650 | |
| 651 | @keyframes gfadeIn { |
| 652 | from { |
| 653 | opacity: 0; |
| 654 | } |
| 655 | to { |
| 656 | opacity: 1; |
| 657 | } |
| 658 | } |
| 659 | |
| 660 | @-webkit-keyframes gfadeOut { |
| 661 | from { |
| 662 | opacity: 1; |
| 663 | } |
| 664 | to { |
| 665 | opacity: 0; |
| 666 | } |
| 667 | } |
| 668 | |
| 669 | @keyframes gfadeOut { |
| 670 | from { |
| 671 | opacity: 1; |
| 672 | } |
| 673 | to { |
| 674 | opacity: 0; |
| 675 | } |
| 676 | } |
| 677 | |
| 678 | @-webkit-keyframes gslideInLeft { |
| 679 | from { |
| 680 | opacity: 0; |
| 681 | -webkit-transform: translate3d(-60%, 0, 0); |
| 682 | transform: translate3d(-60%, 0, 0); |
| 683 | } |
| 684 | to { |
| 685 | visibility: visible; |
| 686 | -webkit-transform: translate3d(0, 0, 0); |
| 687 | transform: translate3d(0, 0, 0); |
| 688 | opacity: 1; |
| 689 | } |
| 690 | } |
| 691 | |
| 692 | @keyframes gslideInLeft { |
| 693 | from { |
| 694 | opacity: 0; |
| 695 | -webkit-transform: translate3d(-60%, 0, 0); |
| 696 | transform: translate3d(-60%, 0, 0); |
| 697 | } |
| 698 | to { |
| 699 | visibility: visible; |
| 700 | -webkit-transform: translate3d(0, 0, 0); |
| 701 | transform: translate3d(0, 0, 0); |
| 702 | opacity: 1; |
| 703 | } |
| 704 | } |
| 705 | |
| 706 | @-webkit-keyframes gslideOutLeft { |
| 707 | from { |
| 708 | opacity: 1; |
| 709 | visibility: visible; |
| 710 | -webkit-transform: translate3d(0, 0, 0); |
| 711 | transform: translate3d(0, 0, 0); |
| 712 | } |
| 713 | to { |
| 714 | -webkit-transform: translate3d(-60%, 0, 0); |
| 715 | transform: translate3d(-60%, 0, 0); |
| 716 | opacity: 0; |
| 717 | visibility: hidden; |
| 718 | } |
| 719 | } |
| 720 | |
| 721 | @keyframes gslideOutLeft { |
| 722 | from { |
| 723 | opacity: 1; |
| 724 | visibility: visible; |
| 725 | -webkit-transform: translate3d(0, 0, 0); |
| 726 | transform: translate3d(0, 0, 0); |
| 727 | } |
| 728 | to { |
| 729 | -webkit-transform: translate3d(-60%, 0, 0); |
| 730 | transform: translate3d(-60%, 0, 0); |
| 731 | opacity: 0; |
| 732 | visibility: hidden; |
| 733 | } |
| 734 | } |
| 735 | |
| 736 | @-webkit-keyframes gslideInRight { |
| 737 | from { |
| 738 | opacity: 0; |
| 739 | visibility: visible; |
| 740 | -webkit-transform: translate3d(60%, 0, 0); |
| 741 | transform: translate3d(60%, 0, 0); |
| 742 | } |
| 743 | to { |
| 744 | -webkit-transform: translate3d(0, 0, 0); |
| 745 | transform: translate3d(0, 0, 0); |
| 746 | opacity: 1; |
| 747 | } |
| 748 | } |
| 749 | |
| 750 | @keyframes gslideInRight { |
| 751 | from { |
| 752 | opacity: 0; |
| 753 | visibility: visible; |
| 754 | -webkit-transform: translate3d(60%, 0, 0); |
| 755 | transform: translate3d(60%, 0, 0); |
| 756 | } |
| 757 | to { |
| 758 | -webkit-transform: translate3d(0, 0, 0); |
| 759 | transform: translate3d(0, 0, 0); |
| 760 | opacity: 1; |
| 761 | } |
| 762 | } |
| 763 | |
| 764 | @-webkit-keyframes gslideOutRight { |
| 765 | from { |
| 766 | opacity: 1; |
| 767 | visibility: visible; |
| 768 | -webkit-transform: translate3d(0, 0, 0); |
| 769 | transform: translate3d(0, 0, 0); |
| 770 | } |
| 771 | to { |
| 772 | -webkit-transform: translate3d(60%, 0, 0); |
| 773 | transform: translate3d(60%, 0, 0); |
| 774 | opacity: 0; |
| 775 | } |
| 776 | } |
| 777 | |
| 778 | @keyframes gslideOutRight { |
| 779 | from { |
| 780 | opacity: 1; |
| 781 | visibility: visible; |
| 782 | -webkit-transform: translate3d(0, 0, 0); |
| 783 | transform: translate3d(0, 0, 0); |
| 784 | } |
| 785 | to { |
| 786 | -webkit-transform: translate3d(60%, 0, 0); |
| 787 | transform: translate3d(60%, 0, 0); |
| 788 | opacity: 0; |
| 789 | } |
| 790 | } |
| 791 | |
| 792 | @-webkit-keyframes gzoomIn { |
| 793 | from { |
| 794 | opacity: 0; |
| 795 | -webkit-transform: scale3d(0.3, 0.3, 0.3); |
| 796 | transform: scale3d(0.3, 0.3, 0.3); |
| 797 | } |
| 798 | to { |
| 799 | opacity: 1; |
| 800 | } |
| 801 | } |
| 802 | |
| 803 | @keyframes gzoomIn { |
| 804 | from { |
| 805 | opacity: 0; |
| 806 | -webkit-transform: scale3d(0.3, 0.3, 0.3); |
| 807 | transform: scale3d(0.3, 0.3, 0.3); |
| 808 | } |
| 809 | to { |
| 810 | opacity: 1; |
| 811 | } |
| 812 | } |
| 813 | |
| 814 | @-webkit-keyframes gzoomOut { |
| 815 | from { |
| 816 | opacity: 1; |
| 817 | } |
| 818 | 50% { |
| 819 | opacity: 0; |
| 820 | -webkit-transform: scale3d(0.3, 0.3, 0.3); |
| 821 | transform: scale3d(0.3, 0.3, 0.3); |
| 822 | } |
| 823 | to { |
| 824 | opacity: 0; |
| 825 | } |
| 826 | } |
| 827 | |
| 828 | @keyframes gzoomOut { |
| 829 | from { |
| 830 | opacity: 1; |
| 831 | } |
| 832 | 50% { |
| 833 | opacity: 0; |
| 834 | -webkit-transform: scale3d(0.3, 0.3, 0.3); |
| 835 | transform: scale3d(0.3, 0.3, 0.3); |
| 836 | } |
| 837 | to { |
| 838 | opacity: 0; |
| 839 | } |
| 840 | } |
| 841 | |
| 842 | @media (min-width: 769px) { |
| 843 | .glightbox-container .ginner-container { |
| 844 | width: auto; |
| 845 | height: auto; |
| 846 | -webkit-box-orient: horizontal; |
| 847 | -webkit-box-direction: normal; |
| 848 | -ms-flex-direction: row; |
| 849 | flex-direction: row; |
| 850 | } |
| 851 | .glightbox-container .ginner-container.desc-top .gslide-description { |
| 852 | -webkit-box-ordinal-group: 1; |
| 853 | -ms-flex-order: 0; |
| 854 | order: 0; |
| 855 | } |
| 856 | .glightbox-container .ginner-container.desc-top .gslide-image, |
| 857 | .glightbox-container .ginner-container.desc-top .gslide-image img { |
| 858 | -webkit-box-ordinal-group: 2; |
| 859 | -ms-flex-order: 1; |
| 860 | order: 1; |
| 861 | } |
| 862 | .glightbox-container .ginner-container.desc-left .gslide-description { |
| 863 | -webkit-box-ordinal-group: 1; |
| 864 | -ms-flex-order: 0; |
| 865 | order: 0; |
| 866 | } |
| 867 | .glightbox-container .ginner-container.desc-left .gslide-image { |
| 868 | -webkit-box-ordinal-group: 2; |
| 869 | -ms-flex-order: 1; |
| 870 | order: 1; |
| 871 | } |
| 872 | .gslide-image img { |
| 873 | max-height: 97vh; |
| 874 | max-width: 100%; |
| 875 | } |
| 876 | .gslide-image img.zoomable { |
| 877 | cursor: -webkit-zoom-in; |
| 878 | cursor: zoom-in; |
| 879 | } |
| 880 | .zoomed .gslide-image img.zoomable { |
| 881 | cursor: -webkit-grab; |
| 882 | cursor: grab; |
| 883 | } |
| 884 | .gslide-inline { |
| 885 | max-height: 95vh; |
| 886 | } |
| 887 | .gslide-external { |
| 888 | max-height: 100vh; |
| 889 | } |
| 890 | .gslide-description.description-left, |
| 891 | .gslide-description.description-right { |
| 892 | max-width: 275px; |
| 893 | } |
| 894 | .glightbox-open { |
| 895 | height: auto; |
| 896 | } |
| 897 | .goverlay { |
| 898 | background: rgba(0, 0, 0, 0.92); |
| 899 | } |
| 900 | .glightbox-clean .gslide-media { |
| 901 | -webkit-box-shadow: 1px 2px 9px 0px rgba(0, 0, 0, 0.65); |
| 902 | box-shadow: 1px 2px 9px 0px rgba(0, 0, 0, 0.65); |
| 903 | } |
| 904 | .glightbox-clean .description-left .gdesc-inner, |
| 905 | .glightbox-clean .description-right .gdesc-inner { |
| 906 | position: absolute; |
| 907 | height: 100%; |
| 908 | overflow-y: auto; |
| 909 | } |
| 910 | .glightbox-clean .gprev, |
| 911 | .glightbox-clean .gnext, |
| 912 | .glightbox-clean .gclose { |
| 913 | background-color: rgba(0, 0, 0, 0.32); |
| 914 | } |
| 915 | .glightbox-clean .gprev:hover, |
| 916 | .glightbox-clean .gnext:hover, |
| 917 | .glightbox-clean .gclose:hover { |
| 918 | background-color: rgba(0, 0, 0, 0.7); |
| 919 | } |
| 920 | .glightbox-clean .gprev { |
| 921 | top: 45%; |
| 922 | } |
| 923 | .glightbox-clean .gnext { |
| 924 | top: 45%; |
| 925 | } |
| 926 | } |
| 927 | |
| 928 | @media (min-width: 992px) { |
| 929 | .glightbox-clean .gclose { |
| 930 | opacity: 0.7; |
| 931 | right: 20px; |
| 932 | } |
| 933 | } |
| 934 | |
| 935 | @media screen and (max-height: 420px) { |
| 936 | .goverlay { |
| 937 | background: rgba(0, 0, 0, 0.92); |
| 938 | } |
| 939 | } |
| 940 |