jquery.fancybox.css 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895
  1. body.compensate-for-scrollbar {
  2. overflow: hidden;
  3. }
  4. .fancybox-active {
  5. height: auto;
  6. }
  7. .fancybox-is-hidden {
  8. left: -9999px;
  9. margin: 0;
  10. position: absolute !important;
  11. top: -9999px;
  12. visibility: hidden;
  13. }
  14. .fancybox-container {
  15. -webkit-backface-visibility: hidden;
  16. height: 100%;
  17. left: 0;
  18. outline: none;
  19. position: fixed;
  20. -webkit-tap-highlight-color: transparent;
  21. top: 0;
  22. -ms-touch-action: manipulation;
  23. touch-action: manipulation;
  24. transform: translateZ(0);
  25. width: 100%;
  26. z-index: 99992;
  27. }
  28. .fancybox-container * {
  29. box-sizing: border-box;
  30. }
  31. .fancybox-outer,
  32. .fancybox-inner,
  33. .fancybox-bg,
  34. .fancybox-stage {
  35. bottom: 0;
  36. left: 0;
  37. position: absolute;
  38. right: 0;
  39. top: 0;
  40. }
  41. .fancybox-outer {
  42. -webkit-overflow-scrolling: touch;
  43. overflow-y: auto;
  44. }
  45. .fancybox-bg {
  46. background: rgb(30, 30, 30);
  47. opacity: 0;
  48. transition-duration: inherit;
  49. transition-property: opacity;
  50. transition-timing-function: cubic-bezier(.47, 0, .74, .71);
  51. }
  52. .fancybox-is-open .fancybox-bg {
  53. opacity: .9;
  54. transition-timing-function: cubic-bezier(.22, .61, .36, 1);
  55. }
  56. .fancybox-infobar,
  57. .fancybox-toolbar,
  58. .fancybox-caption,
  59. .fancybox-navigation .fancybox-button {
  60. direction: ltr;
  61. opacity: 0;
  62. position: absolute;
  63. transition: opacity .25s ease, visibility 0s ease .25s;
  64. visibility: hidden;
  65. z-index: 99997;
  66. }
  67. .fancybox-show-infobar .fancybox-infobar,
  68. .fancybox-show-toolbar .fancybox-toolbar,
  69. .fancybox-show-caption .fancybox-caption,
  70. .fancybox-show-nav .fancybox-navigation .fancybox-button {
  71. opacity: 1;
  72. transition: opacity .25s ease 0s, visibility 0s ease 0s;
  73. visibility: visible;
  74. }
  75. .fancybox-infobar {
  76. color: #ccc;
  77. font-size: 13px;
  78. -webkit-font-smoothing: subpixel-antialiased;
  79. height: 44px;
  80. left: 0;
  81. line-height: 44px;
  82. min-width: 44px;
  83. mix-blend-mode: difference;
  84. padding: 0 10px;
  85. pointer-events: none;
  86. top: 0;
  87. -webkit-touch-callout: none;
  88. -webkit-user-select: none;
  89. -moz-user-select: none;
  90. -ms-user-select: none;
  91. user-select: none;
  92. }
  93. .fancybox-toolbar {
  94. right: 0;
  95. top: 0;
  96. }
  97. .fancybox-stage {
  98. direction: ltr;
  99. overflow: visible;
  100. transform: translateZ(0);
  101. z-index: 99994;
  102. }
  103. .fancybox-is-open .fancybox-stage {
  104. overflow: hidden;
  105. }
  106. .fancybox-slide {
  107. -webkit-backface-visibility: hidden;
  108. /* Using without prefix would break IE11 */
  109. display: none;
  110. height: 100%;
  111. left: 0;
  112. outline: none;
  113. overflow: auto;
  114. -webkit-overflow-scrolling: touch;
  115. padding: 44px;
  116. position: absolute;
  117. text-align: center;
  118. top: 0;
  119. transition-property: transform, opacity;
  120. white-space: normal;
  121. width: 100%;
  122. z-index: 99994;
  123. }
  124. .fancybox-slide::before {
  125. content: '';
  126. display: inline-block;
  127. font-size: 0;
  128. height: 100%;
  129. vertical-align: middle;
  130. width: 0;
  131. }
  132. .fancybox-is-sliding .fancybox-slide,
  133. .fancybox-slide--previous,
  134. .fancybox-slide--current,
  135. .fancybox-slide--next {
  136. display: block;
  137. }
  138. .fancybox-slide--image {
  139. overflow: hidden;
  140. padding: 44px 0;
  141. }
  142. .fancybox-slide--image::before {
  143. display: none;
  144. }
  145. .fancybox-slide--html {
  146. padding: 6px;
  147. }
  148. .fancybox-content {
  149. background: #fff;
  150. display: inline-block;
  151. margin: 0;
  152. max-width: 100%;
  153. overflow: auto;
  154. -webkit-overflow-scrolling: touch;
  155. padding: 44px;
  156. position: relative;
  157. text-align: left;
  158. vertical-align: middle;
  159. }
  160. .fancybox-slide--image .fancybox-content {
  161. animation-timing-function: cubic-bezier(.5, 0, .14, 1);
  162. -webkit-backface-visibility: hidden;
  163. background: transparent;
  164. background-repeat: no-repeat;
  165. background-size: 100% 100%;
  166. left: 0;
  167. max-width: none;
  168. overflow: visible;
  169. padding: 0;
  170. position: absolute;
  171. top: 0;
  172. -ms-transform-origin: top left;
  173. transform-origin: top left;
  174. transition-property: transform, opacity;
  175. -webkit-user-select: none;
  176. -moz-user-select: none;
  177. -ms-user-select: none;
  178. user-select: none;
  179. z-index: 99995;
  180. }
  181. .fancybox-can-zoomOut .fancybox-content {
  182. cursor: zoom-out;
  183. }
  184. .fancybox-can-zoomIn .fancybox-content {
  185. cursor: zoom-in;
  186. }
  187. .fancybox-can-swipe .fancybox-content,
  188. .fancybox-can-pan .fancybox-content {
  189. cursor: -webkit-grab;
  190. cursor: grab;
  191. }
  192. .fancybox-is-grabbing .fancybox-content {
  193. cursor: -webkit-grabbing;
  194. cursor: grabbing;
  195. }
  196. .fancybox-container [data-selectable='true'] {
  197. cursor: text;
  198. }
  199. .fancybox-image,
  200. .fancybox-spaceball {
  201. background: transparent;
  202. border: 0;
  203. height: 100%;
  204. left: 0;
  205. margin: 0;
  206. max-height: none;
  207. max-width: none;
  208. padding: 0;
  209. position: absolute;
  210. top: 0;
  211. -webkit-user-select: none;
  212. -moz-user-select: none;
  213. -ms-user-select: none;
  214. user-select: none;
  215. width: 100%;
  216. }
  217. .fancybox-spaceball {
  218. z-index: 1;
  219. }
  220. .fancybox-slide--video .fancybox-content,
  221. .fancybox-slide--map .fancybox-content,
  222. .fancybox-slide--pdf .fancybox-content,
  223. .fancybox-slide--iframe .fancybox-content {
  224. height: 100%;
  225. overflow: visible;
  226. padding: 0;
  227. width: 100%;
  228. }
  229. .fancybox-slide--video .fancybox-content {
  230. background: #000;
  231. }
  232. .fancybox-slide--map .fancybox-content {
  233. background: #e5e3df;
  234. }
  235. .fancybox-slide--iframe .fancybox-content {
  236. background: #fff;
  237. }
  238. .fancybox-video,
  239. .fancybox-iframe {
  240. background: transparent;
  241. border: 0;
  242. display: block;
  243. height: 100%;
  244. margin: 0;
  245. overflow: hidden;
  246. padding: 0;
  247. width: 100%;
  248. }
  249. /* Fix iOS */
  250. .fancybox-iframe {
  251. left: 0;
  252. position: absolute;
  253. top: 0;
  254. }
  255. .fancybox-error {
  256. background: #fff;
  257. cursor: default;
  258. max-width: 400px;
  259. padding: 40px;
  260. width: 100%;
  261. }
  262. .fancybox-error p {
  263. color: #444;
  264. font-size: 16px;
  265. line-height: 20px;
  266. margin: 0;
  267. padding: 0;
  268. }
  269. /* Buttons */
  270. .fancybox-button {
  271. background: rgba(30, 30, 30, .6);
  272. border: 0;
  273. border-radius: 0;
  274. box-shadow: none;
  275. cursor: pointer;
  276. display: inline-block;
  277. height: 44px;
  278. margin: 0;
  279. padding: 10px;
  280. position: relative;
  281. transition: color .2s;
  282. vertical-align: top;
  283. visibility: inherit;
  284. width: 44px;
  285. }
  286. .fancybox-button,
  287. .fancybox-button:visited,
  288. .fancybox-button:link {
  289. color: #ccc;
  290. }
  291. .fancybox-button:hover {
  292. color: #fff;
  293. }
  294. .fancybox-button:focus {
  295. outline: none;
  296. }
  297. .fancybox-button.fancybox-focus {
  298. outline: 1px dotted;
  299. }
  300. .fancybox-button[disabled],
  301. .fancybox-button[disabled]:hover {
  302. color: #888;
  303. cursor: default;
  304. outline: none;
  305. }
  306. /* Fix IE11 */
  307. .fancybox-button div {
  308. height: 100%;
  309. }
  310. .fancybox-button svg {
  311. display: block;
  312. height: 100%;
  313. overflow: visible;
  314. position: relative;
  315. width: 100%;
  316. }
  317. .fancybox-button svg path {
  318. fill: currentColor;
  319. stroke-width: 0;
  320. }
  321. .fancybox-button--play svg:nth-child(2),
  322. .fancybox-button--fsenter svg:nth-child(2) {
  323. display: none;
  324. }
  325. .fancybox-button--pause svg:nth-child(1),
  326. .fancybox-button--fsexit svg:nth-child(1) {
  327. display: none;
  328. }
  329. .fancybox-progress {
  330. background: #ff5268;
  331. height: 2px;
  332. left: 0;
  333. position: absolute;
  334. right: 0;
  335. top: 0;
  336. -ms-transform: scaleX(0);
  337. transform: scaleX(0);
  338. -ms-transform-origin: 0;
  339. transform-origin: 0;
  340. transition-property: transform;
  341. transition-timing-function: linear;
  342. z-index: 99998;
  343. }
  344. /* Close button on the top right corner of html content */
  345. .fancybox-close-small {
  346. background: transparent;
  347. border: 0;
  348. border-radius: 0;
  349. color: #ccc;
  350. cursor: pointer;
  351. opacity: .8;
  352. padding: 8px;
  353. position: absolute;
  354. right: -12px;
  355. top: -44px;
  356. z-index: 401;
  357. }
  358. .fancybox-close-small:hover {
  359. color: #fff;
  360. opacity: 1;
  361. }
  362. .fancybox-slide--html .fancybox-close-small {
  363. color: currentColor;
  364. padding: 10px;
  365. right: 0;
  366. top: 0;
  367. }
  368. .fancybox-slide--image.fancybox-is-scaling .fancybox-content {
  369. overflow: hidden;
  370. }
  371. .fancybox-is-scaling .fancybox-close-small,
  372. .fancybox-is-zoomable.fancybox-can-pan .fancybox-close-small {
  373. display: none;
  374. }
  375. /* Navigation arrows */
  376. .fancybox-navigation .fancybox-button {
  377. background-clip: content-box;
  378. height: 100px;
  379. opacity: 0;
  380. position: absolute;
  381. top: calc(50% - 50px);
  382. width: 70px;
  383. }
  384. .fancybox-navigation .fancybox-button div {
  385. padding: 7px;
  386. }
  387. .fancybox-navigation .fancybox-button--arrow_left {
  388. left: 0;
  389. left: env(safe-area-inset-left);
  390. padding: 31px 26px 31px 6px;
  391. }
  392. .fancybox-navigation .fancybox-button--arrow_right {
  393. padding: 31px 6px 31px 26px;
  394. right: 0;
  395. right: env(safe-area-inset-right);
  396. }
  397. /* Caption */
  398. .fancybox-caption {
  399. background: linear-gradient(to top,
  400. rgba(0, 0, 0, .85) 0%,
  401. rgba(0, 0, 0, .3) 50%,
  402. rgba(0, 0, 0, .15) 65%,
  403. rgba(0, 0, 0, .075) 75.5%,
  404. rgba(0, 0, 0, .037) 82.85%,
  405. rgba(0, 0, 0, .019) 88%,
  406. rgba(0, 0, 0, 0) 100%);
  407. bottom: 0;
  408. color: #eee;
  409. font-size: 14px;
  410. font-weight: 400;
  411. left: 0;
  412. line-height: 1.5;
  413. padding: 75px 44px 25px 44px;
  414. pointer-events: none;
  415. right: 0;
  416. text-align: center;
  417. z-index: 99996;
  418. }
  419. @supports (padding: max(0px)) {
  420. .fancybox-caption {
  421. padding: 75px max(44px, env(safe-area-inset-right)) max(25px, env(safe-area-inset-bottom)) max(44px, env(safe-area-inset-left));
  422. }
  423. }
  424. .fancybox-caption--separate {
  425. margin-top: -50px;
  426. }
  427. .fancybox-caption__body {
  428. max-height: 50vh;
  429. overflow: auto;
  430. pointer-events: all;
  431. }
  432. .fancybox-caption a,
  433. .fancybox-caption a:link,
  434. .fancybox-caption a:visited {
  435. color: #ccc;
  436. text-decoration: none;
  437. }
  438. .fancybox-caption a:hover {
  439. color: #fff;
  440. text-decoration: underline;
  441. }
  442. /* Loading indicator */
  443. .fancybox-loading {
  444. animation: fancybox-rotate 1s linear infinite;
  445. background: transparent;
  446. border: 4px solid #888;
  447. border-bottom-color: #fff;
  448. border-radius: 50%;
  449. height: 50px;
  450. left: 50%;
  451. margin: -25px 0 0 -25px;
  452. opacity: .7;
  453. padding: 0;
  454. position: absolute;
  455. top: 50%;
  456. width: 50px;
  457. z-index: 99999;
  458. }
  459. @keyframes fancybox-rotate {
  460. 100% {
  461. transform: rotate(360deg);
  462. }
  463. }
  464. /* Transition effects */
  465. .fancybox-animated {
  466. transition-timing-function: cubic-bezier(0, 0, .25, 1);
  467. }
  468. /* transitionEffect: slide */
  469. .fancybox-fx-slide.fancybox-slide--previous {
  470. opacity: 0;
  471. transform: translate3d(-100%, 0, 0);
  472. }
  473. .fancybox-fx-slide.fancybox-slide--next {
  474. opacity: 0;
  475. transform: translate3d(100%, 0, 0);
  476. }
  477. .fancybox-fx-slide.fancybox-slide--current {
  478. opacity: 1;
  479. transform: translate3d(0, 0, 0);
  480. }
  481. /* transitionEffect: fade */
  482. .fancybox-fx-fade.fancybox-slide--previous,
  483. .fancybox-fx-fade.fancybox-slide--next {
  484. opacity: 0;
  485. transition-timing-function: cubic-bezier(.19, 1, .22, 1);
  486. }
  487. .fancybox-fx-fade.fancybox-slide--current {
  488. opacity: 1;
  489. }
  490. /* transitionEffect: zoom-in-out */
  491. .fancybox-fx-zoom-in-out.fancybox-slide--previous {
  492. opacity: 0;
  493. transform: scale3d(1.5, 1.5, 1.5);
  494. }
  495. .fancybox-fx-zoom-in-out.fancybox-slide--next {
  496. opacity: 0;
  497. transform: scale3d(.5, .5, .5);
  498. }
  499. .fancybox-fx-zoom-in-out.fancybox-slide--current {
  500. opacity: 1;
  501. transform: scale3d(1, 1, 1);
  502. }
  503. /* transitionEffect: rotate */
  504. .fancybox-fx-rotate.fancybox-slide--previous {
  505. opacity: 0;
  506. -ms-transform: rotate(-360deg);
  507. transform: rotate(-360deg);
  508. }
  509. .fancybox-fx-rotate.fancybox-slide--next {
  510. opacity: 0;
  511. -ms-transform: rotate(360deg);
  512. transform: rotate(360deg);
  513. }
  514. .fancybox-fx-rotate.fancybox-slide--current {
  515. opacity: 1;
  516. -ms-transform: rotate(0deg);
  517. transform: rotate(0deg);
  518. }
  519. /* transitionEffect: circular */
  520. .fancybox-fx-circular.fancybox-slide--previous {
  521. opacity: 0;
  522. transform: scale3d(0, 0, 0) translate3d(-100%, 0, 0);
  523. }
  524. .fancybox-fx-circular.fancybox-slide--next {
  525. opacity: 0;
  526. transform: scale3d(0, 0, 0) translate3d(100%, 0, 0);
  527. }
  528. .fancybox-fx-circular.fancybox-slide--current {
  529. opacity: 1;
  530. transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
  531. }
  532. /* transitionEffect: tube */
  533. .fancybox-fx-tube.fancybox-slide--previous {
  534. transform: translate3d(-100%, 0, 0) scale(.1) skew(-10deg);
  535. }
  536. .fancybox-fx-tube.fancybox-slide--next {
  537. transform: translate3d(100%, 0, 0) scale(.1) skew(10deg);
  538. }
  539. .fancybox-fx-tube.fancybox-slide--current {
  540. transform: translate3d(0, 0, 0) scale(1);
  541. }
  542. /* Styling for Small-Screen Devices */
  543. @media all and (max-height: 576px) {
  544. .fancybox-slide {
  545. padding-left: 6px;
  546. padding-right: 6px;
  547. }
  548. .fancybox-slide--image {
  549. padding: 6px 0;
  550. }
  551. .fancybox-close-small {
  552. right: -6px;
  553. }
  554. .fancybox-slide--image .fancybox-close-small {
  555. background: #4e4e4e;
  556. color: #f2f4f6;
  557. height: 36px;
  558. opacity: 1;
  559. padding: 6px;
  560. right: 0;
  561. top: 0;
  562. width: 36px;
  563. }
  564. .fancybox-caption {
  565. padding-left: 12px;
  566. padding-right: 12px;
  567. }
  568. @supports (padding: max(0px)) {
  569. .fancybox-caption {
  570. padding-left: max(12px, env(safe-area-inset-left));
  571. padding-right: max(12px, env(safe-area-inset-right));
  572. }
  573. }
  574. }
  575. /* Share */
  576. .fancybox-share {
  577. background: #f4f4f4;
  578. border-radius: 3px;
  579. max-width: 90%;
  580. padding: 30px;
  581. text-align: center;
  582. }
  583. .fancybox-share h1 {
  584. color: #222;
  585. font-size: 35px;
  586. font-weight: 700;
  587. margin: 0 0 20px 0;
  588. }
  589. .fancybox-share p {
  590. margin: 0;
  591. padding: 0;
  592. }
  593. .fancybox-share__button {
  594. border: 0;
  595. border-radius: 3px;
  596. display: inline-block;
  597. font-size: 14px;
  598. font-weight: 700;
  599. line-height: 40px;
  600. margin: 0 5px 10px 5px;
  601. min-width: 130px;
  602. padding: 0 15px;
  603. text-decoration: none;
  604. transition: all .2s;
  605. -webkit-user-select: none;
  606. -moz-user-select: none;
  607. -ms-user-select: none;
  608. user-select: none;
  609. white-space: nowrap;
  610. }
  611. .fancybox-share__button:visited,
  612. .fancybox-share__button:link {
  613. color: #fff;
  614. }
  615. .fancybox-share__button:hover {
  616. text-decoration: none;
  617. }
  618. .fancybox-share__button--fb {
  619. background: #3b5998;
  620. }
  621. .fancybox-share__button--fb:hover {
  622. background: #344e86;
  623. }
  624. .fancybox-share__button--pt {
  625. background: #bd081d;
  626. }
  627. .fancybox-share__button--pt:hover {
  628. background: #aa0719;
  629. }
  630. .fancybox-share__button--tw {
  631. background: #1da1f2;
  632. }
  633. .fancybox-share__button--tw:hover {
  634. background: #0d95e8;
  635. }
  636. .fancybox-share__button svg {
  637. height: 25px;
  638. margin-right: 7px;
  639. position: relative;
  640. top: -1px;
  641. vertical-align: middle;
  642. width: 25px;
  643. }
  644. .fancybox-share__button svg path {
  645. fill: #fff;
  646. }
  647. .fancybox-share__input {
  648. background: transparent;
  649. border: 0;
  650. border-bottom: 1px solid #d7d7d7;
  651. border-radius: 0;
  652. color: #5d5b5b;
  653. font-size: 14px;
  654. margin: 10px 0 0 0;
  655. outline: none;
  656. padding: 10px 15px;
  657. width: 100%;
  658. }
  659. /* Thumbs */
  660. .fancybox-thumbs {
  661. background: #ddd;
  662. bottom: 0;
  663. display: none;
  664. margin: 0;
  665. -webkit-overflow-scrolling: touch;
  666. -ms-overflow-style: -ms-autohiding-scrollbar;
  667. padding: 2px 2px 4px 2px;
  668. position: absolute;
  669. right: 0;
  670. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  671. top: 0;
  672. width: 212px;
  673. z-index: 99995;
  674. }
  675. .fancybox-thumbs-x {
  676. overflow-x: auto;
  677. overflow-y: hidden;
  678. }
  679. .fancybox-show-thumbs .fancybox-thumbs {
  680. display: block;
  681. }
  682. .fancybox-show-thumbs .fancybox-inner {
  683. right: 212px;
  684. }
  685. .fancybox-thumbs__list {
  686. font-size: 0;
  687. height: 100%;
  688. list-style: none;
  689. margin: 0;
  690. overflow-x: hidden;
  691. overflow-y: auto;
  692. padding: 0;
  693. position: absolute;
  694. position: relative;
  695. white-space: nowrap;
  696. width: 100%;
  697. }
  698. .fancybox-thumbs-x .fancybox-thumbs__list {
  699. overflow: hidden;
  700. }
  701. .fancybox-thumbs-y .fancybox-thumbs__list::-webkit-scrollbar {
  702. width: 7px;
  703. }
  704. .fancybox-thumbs-y .fancybox-thumbs__list::-webkit-scrollbar-track {
  705. background: #fff;
  706. border-radius: 10px;
  707. box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
  708. }
  709. .fancybox-thumbs-y .fancybox-thumbs__list::-webkit-scrollbar-thumb {
  710. background: #2a2a2a;
  711. border-radius: 10px;
  712. }
  713. .fancybox-thumbs__list a {
  714. -webkit-backface-visibility: hidden;
  715. backface-visibility: hidden;
  716. background-color: rgba(0, 0, 0, .1);
  717. background-position: center center;
  718. background-repeat: no-repeat;
  719. background-size: cover;
  720. cursor: pointer;
  721. float: left;
  722. height: 75px;
  723. margin: 2px;
  724. max-height: calc(100% - 8px);
  725. max-width: calc(50% - 4px);
  726. outline: none;
  727. overflow: hidden;
  728. padding: 0;
  729. position: relative;
  730. -webkit-tap-highlight-color: transparent;
  731. width: 100px;
  732. }
  733. .fancybox-thumbs__list a::before {
  734. border: 6px solid #ff5268;
  735. bottom: 0;
  736. content: '';
  737. left: 0;
  738. opacity: 0;
  739. position: absolute;
  740. right: 0;
  741. top: 0;
  742. transition: all .2s cubic-bezier(.25, .46, .45, .94);
  743. z-index: 99991;
  744. }
  745. .fancybox-thumbs__list a:focus::before {
  746. opacity: .5;
  747. }
  748. .fancybox-thumbs__list a.fancybox-thumbs-active::before {
  749. opacity: 1;
  750. }
  751. /* Styling for Small-Screen Devices */
  752. @media all and (max-width: 576px) {
  753. .fancybox-thumbs {
  754. width: 110px;
  755. }
  756. .fancybox-show-thumbs .fancybox-inner {
  757. right: 110px;
  758. }
  759. .fancybox-thumbs__list a {
  760. max-width: calc(100% - 10px);
  761. }
  762. }