|
@@ -47,8 +47,11 @@ $(window).load(function() { |
|
|
$('.lightbox-wrapper').css({ |
|
|
$('.lightbox-wrapper').css({ |
|
|
'width': context.image.standard.width, |
|
|
'width': context.image.standard.width, |
|
|
'margin-top': 70, |
|
|
'margin-top': 70, |
|
|
|
|
|
'margin-bottom': 70, |
|
|
'margin-left': -context.image.standard.width/2 |
|
|
'margin-left': -context.image.standard.width/2 |
|
|
}); |
|
|
}); |
|
|
|
|
|
if ($('.lightbox-wrapper').height()+140 > $(window).height()) |
|
|
|
|
|
$('.lightbox-background').height($('.lightbox-wrapper').height()+140); |
|
|
|
|
|
|
|
|
box.click(function() { |
|
|
box.click(function() { |
|
|
$(this).fadeOut(200); |
|
|
$(this).fadeOut(200); |
|
|