@@ -13,7 +13,6 @@ body.compensate-for-scrollbar {
1313
1414.fancybox-container {
1515 -webkit-backface-visibility : hidden;
16- backface-visibility : hidden;
1716 height : 100% ;
1817 left : 0 ;
1918 outline : none;
@@ -52,7 +51,7 @@ body.compensate-for-scrollbar {
5251 transition-timing-function : cubic-bezier (0.47 , 0 , 0.74 , 0.71 ); }
5352
5453.fancybox-is-open .fancybox-bg {
55- opacity : .87 ;
54+ opacity : .9 ;
5655 transition-timing-function : cubic-bezier (0.22 , 0.61 , 0.36 , 1 ); }
5756
5857.fancybox-infobar ,
@@ -115,7 +114,7 @@ body.compensate-for-scrollbar {
115114 outline : none;
116115 overflow : auto;
117116 -webkit-overflow-scrolling : touch;
118- padding : 44px 44 px 0 44 px ;
117+ padding : 44px ;
119118 position : absolute;
120119 text-align : center;
121120 top : 0 ;
@@ -140,23 +139,20 @@ body.compensate-for-scrollbar {
140139.fancybox-slide--next {
141140 display : block; }
142141
143- .fancybox-slide--next {
144- z-index : 99995 ; }
145-
146142.fancybox-slide--image {
147143 overflow : hidden;
148- padding : 44px 0 0 0 ; }
144+ padding : 44px 0 ; }
149145
150146.fancybox-slide--image ::before {
151147 display : none; }
152148
153149.fancybox-slide--html {
154- padding : 6px 6 px 0 6 px ; }
150+ padding : 6px ; }
155151
156152.fancybox-content {
157153 background : # fff ;
158154 display : inline-block;
159- margin : 0 0 44 px 0 ;
155+ margin : 0 ;
160156 max-width : 100% ;
161157 overflow : auto;
162158 -webkit-overflow-scrolling : touch;
@@ -190,9 +186,6 @@ body.compensate-for-scrollbar {
190186 user-select : none;
191187 z-index : 99995 ; }
192188
193- .fancybox-slide--html .fancybox-content {
194- margin : 0 0 6px 0 ; }
195-
196189.fancybox-can-zoomOut .fancybox-content {
197190 cursor : -webkit-zoom-out;
198191 cursor : zoom-out; }
@@ -237,7 +230,7 @@ body.compensate-for-scrollbar {
237230.fancybox-slide--video .fancybox-content ,
238231.fancybox-slide--map .fancybox-content ,
239232.fancybox-slide--iframe .fancybox-content {
240- height : calc ( 100% - 44 px ) ;
233+ height : 100% ;
241234 overflow : visible;
242235 padding : 0 ;
243236 width : 100% ; }
@@ -260,9 +253,14 @@ body.compensate-for-scrollbar {
260253 margin : 0 ;
261254 overflow : hidden;
262255 padding : 0 ;
263- vertical-align : top;
264256 width : 100% ; }
265257
258+ /* Fix iOS */
259+ .fancybox-iframe {
260+ left : 0 ;
261+ position : absolute;
262+ top : 0 ; }
263+
266264.fancybox-error {
267265 background : # fff ;
268266 cursor : default;
@@ -308,14 +306,16 @@ body.compensate-for-scrollbar {
308306.fancybox-button .fancybox-focus {
309307 outline : 1px dotted; }
310308
311- .fancybox-button .disabled ,
312- .fancybox-button .disabled : hover ,
313309.fancybox-button [disabled ],
314310.fancybox-button [disabled ]: hover {
315311 color : # 888 ;
316312 cursor : default;
317313 outline : none; }
318314
315+ /* Fix IE11 */
316+ .fancybox-button div {
317+ height : 100% ; }
318+
319319.fancybox-button svg {
320320 display : block;
321321 height : 100% ;
@@ -378,23 +378,23 @@ body.compensate-for-scrollbar {
378378 right : 0 ;
379379 top : 0 ; }
380380
381+ .fancybox-slide--image .fancybox-is-scaling .fancybox-content {
382+ overflow : hidden; }
383+
381384.fancybox-is-scaling .fancybox-close-small ,
382385.fancybox-is-zoomable .fancybox-can-pan .fancybox-close-small {
383386 display : none; }
384387
385388/* Navigation arrows */
386389.fancybox-navigation .fancybox-button {
387- background : transparent ;
390+ background-clip : content-box ;
388391 height : 100px ;
389- margin : 0 ;
390392 opacity : 0 ;
391393 position : absolute;
392394 top : calc (50% - 50px );
393395 width : 70px ; }
394396
395397.fancybox-navigation .fancybox-button div {
396- background : rgba (30 , 30 , 30 , 0.6 );
397- height : 100% ;
398398 padding : 7px ; }
399399
400400.fancybox-navigation .fancybox-button--arrow_left {
@@ -408,16 +408,18 @@ body.compensate-for-scrollbar {
408408/* Caption */
409409.fancybox-caption {
410410 bottom : 0 ;
411- color : # fff ;
411+ color : # eee ;
412412 font-size : 14px ;
413413 font-weight : 400 ;
414414 left : 0 ;
415415 line-height : 1.5 ;
416416 padding : 25px 44px 25px 44px ;
417- right : 0 ; }
417+ right : 0 ;
418+ text-align : center;
419+ z-index : 99996 ; }
418420
419421.fancybox-caption ::before {
420- background-image : url (data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAEAAAEtCAQAAABjBcL7AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHRJREFUKM+Vk8EOgDAIQ0vj/3+xBw8qIZZueFnIKC90MCAI8DlrkHGeqqGIU6lVigrBtpCWqeRWoHDNqs0F7VNVBVxmHRlvoVqjaYkdnDIaivH2HqZ5+oZj3JUzWB+cOz4G48Bg+tsJ/tqu4dLC/4Xb+0GcF5BwBC0AA53qAAAAAElFTkSuQmCC );
422+ background-image : url (data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAEAAAD6CAQAAADKSeXYAAAAYklEQVQoz42RwQ3AMAgDjfcfup8WoRykfBAK5mQHKSz5rbXJPis1hjiV3CIqgG0hLZPkVkA4p4x5oR1bVeDrdCLrW2Q0D5bcwY3TGMHbdw3mPRuOtaspYP1w//G1OIcW148H0DMCqI/3mMMAAAAASUVORK5CYII= );
421423 background-repeat : repeat-x;
422424 background-size : contain;
423425 bottom : 0 ;
@@ -427,18 +429,9 @@ body.compensate-for-scrollbar {
427429 pointer-events : none;
428430 position : absolute;
429431 right : 0 ;
430- top : -25 px ;
432+ top : -44 px ;
431433 z-index : -1 ; }
432434
433- .fancybox-caption ::after {
434- border-bottom : 1px solid rgba (255 , 255 , 255 , 0.3 );
435- content : '' ;
436- display : block;
437- left : 44px ;
438- position : absolute;
439- right : 44px ;
440- top : 0 ; }
441-
442435.fancybox-caption a ,
443436.fancybox-caption a : link ,
444437.fancybox-caption a : visited {
@@ -572,13 +565,13 @@ body.compensate-for-scrollbar {
572565
573566/* Styling for Small-Screen Devices */
574567@media all and (max-height : 576px ) {
568+ .fancybox-caption {
569+ padding : 12px ; }
575570 .fancybox-slide {
576571 padding-left : 6px ;
577572 padding-right : 6px ; }
578573 .fancybox-slide--image {
579- padding : 6px 0 0 0 ; }
580- .fancybox-slide--image .fancybox-content {
581- margin-bottom : 6px ; }
574+ padding : 6px 0 ; }
582575 .fancybox-slide--image .fancybox-close-small {
583576 background : # 4e4e4e ;
584577 color : # f2f4f6 ;
@@ -766,7 +759,7 @@ body.compensate-for-scrollbar {
766759 opacity : 1 ; }
767760
768761/* Styling for Small-Screen Devices */
769- @media all and (max-width : 768 px ) {
762+ @media all and (max-width : 576 px ) {
770763 .fancybox-thumbs {
771764 width : 110px ; }
772765 .fancybox-show-thumbs .fancybox-inner {
0 commit comments