[av_one_full first min_height=” vertical_alignment=” space=” custom_margin=” margin=’0px’ padding=’0px’ border=” border_color=” radius=’0px’ background_color=” src=” background_position=’top left’ background_repeat=’no-repeat’ animation=” mobile_display=”]
[av_textblock size=” font_color=” color=”]
.sh_embed {
position: relative;
height: auto;
width:100%;
z-index: 0;
overflow: hidden;
background-color: #222;
color: white;
font-family: ‘Lato’, ‘Helvetica Neue’, Helvetica, Arial, sans-serif;
}
.sh_embed * {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.sh_embed .sh-embed-bg {
position: absolute;
width: 110%;
height: 110%;
top: -5%;
left: -5%;
z-index: -1;
background-color: rgba(0,0,0,.8);
}
.sh_embed #embed_article {
display: none;
}
.sh_embed .sh-embed-img {
display: block;
zoom: 1;
opacity: .5;
width: 100%;
height: 100%;
object-fit: cover;
image-rendering: pixelated;
image-rendering: optimizeSpeed;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=’scale’);
-ms-filter: “progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=’scale’)”;
-webkit-filter: blur(5px);
-moz-filter: blur(5px);
-ms-filter: blur(5px);
filter: blur(5px);
filter: progid:DXImageTransform.Microsoft.Blur(pixelamount=5);
}
.sh_embed .sh-embed-meta {
width: 100%;
padding: 70px 30px 80px;
text-align: center;
}
@media (max-width: 755px) {
.sh_embed .sh-embed-meta {
padding: 50px 24px 60px;
}
}
.sh_embed .sh-embed-meta .sh-embed-title,
.sh_embed .sh-embed-meta .sh-embed-subtitle,
.sh_embed .sh-embed-meta .sh-embed-btn {
margin: 0;
padding: 0;
opacity: 1;
font-style: normal;
}
.sh_embed .sh-embed-meta .sh-embed-title {
margin: 0;
opacity: 1;
color: white;
line-height: 1.1;
font-size: 50px;
font-weight: bold;
}
@media (max-height: 820px), (max-width: 1100px) {
.sh_embed .sh-embed-meta .sh-embed-title {
font-size: 40px;
}
}
@media (max-height: 720px), (max-width: 755px) {
.sh_embed .sh-embed-meta .sh-embed-title {
font-size: 28px;
}
}
.sh_embed .sh-embed-meta .sh-embed-subtitle {
max-width: 600px;
margin: 10px auto;
opacity: 1;
color: white;
line-height: 1.4;
font-size: 18px;
font-style: normal;
font-weight: normal;
}
@media (max-height: 820px), (max-width: 1100px) {
.sh_embed .sh-embed-meta .sh-embed-subtitle {
font-size: 16px;
}
}
@media (max-height: 720px), (max-width: 755px) {
.sh_embed .sh-embed-meta .sh-embed-subtitle {
font-size: 14px;
}
}
.sh_embed .sh-embed-meta .sh-embed-btn {
display: block;
width: 160px;
margin: 20px auto 0;
padding: 10px;
border-radius: 2px;
background: #ffffff;
background: rgba(255, 255, 255, 0.9);
color: #000;
line-height: 1;
font-size: 18px;
font-weight: bold;
text-decoration: none;
text-align: center;
}
.sh_embed .sh-embed-meta .sh-embed-btn:hover {
border: none;
background: #fff;
text-decoration: none;
}
@media (max-height: 720px), (max-width: 755px) {
.sh_embed .sh-embed-meta .sh-embed-btn {
font-size: 14px;
width: 120px;
padding: 8px;
}
}
.sh_embed iframe {
display: block;
padding: 0;
border: 0;
background-color: #222;
}
.sh_embed .sh-embed-close {
display: block;
position: fixed;
z-index: 99999;
bottom: 25px;
right: 25px;
width: 100px;
height: 35px;
padding-top: 12px;
border-radius: 20px;
background-color: rgba(0, 0, 0, 0.6);
color: #fff;
text-align: center;
text-decoration: none;
line-height: 1;
font-size: 12px;
font-weight: bold;
text-transform: uppercase;
font-family: sans-serif;
cursor: pointer;
}
.sh_embed .sh-embed-close span {
display: inline-block;
margin-top: -4px;
margin-right: 2px;
font-size: 18px;
font-weight: normal;
vertical-align: middle;
}
.sh_embed .sh-embed-close:hover,
.sh_embed .sh-embed-close:active {
border: none;
background-color: rgba(0, 0, 0, 0.8);
}
(function($) {
function loadStory(event) {
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
return true;
}
var storyURL = $(this).attr(‘href’);
var storyProtocol = storyURL.split(‘/’)[0];
var pageProtocol = window.location.href.split(‘/’)[0];
if (pageProtocol === ‘https:’ && storyProtocol === ‘http:’) {
return true;
}
event.preventDefault();
var $window = $(window);
var $body = $(‘body’);
var $iframe = $(”);
$iframe.prop(‘src’,storyURL);
var $placeholder = $(““);
var $el = $(this).closest(‘[data-sh-embed]’);
var $close = $(‘ ‘);
var position = {origin: $el.offset(), width:$el.width(), height: $el.height()};
$close.on(‘click’, closeStory);
$body.css({overflow:’hidden’});
$placeholder.css({width:$el.css(‘height’), display:’block’});
$placeholder.insertBefore($el);
$body.append($el);
$el.css({zIndex:99999});
$el.addClass(‘selected-embed’);
$el.data(‘position’,position);
$el.find(‘.sh-embed-meta’).fadeOut(‘fast’);
$el.append($iframe);
//Set the embed box to be absolutely positioned
$el.css({
position:’absolute’,
top:position.origin.top,
left:0,
height:position.height
});
//Animate to full screen
$el.animate({
top:$window.scrollTop(),
left:0,
height:$window.height(),
zIndex:99999
}, 500, function() {
$iframe.css({visibility:’visible’});
$iframe.fadeIn();
$el.append($close).fadeIn();
});
//Watch for browser height changes
$window.on(“resize.iframe”, function() {
$el.height($window.height());
});
}
function closeStory(event) {
event.preventDefault();
var $window = $(window);
var $el = $(‘div.selected-embed’);
var originalPosition = $el.data(‘position’);
var $close = $el.find(‘.sh-embed-close’);
var $iframe = $el.find(‘iframe’);
$el.removeClass(‘selected-embed’);
$iframe.fadeOut(‘fast’);
$close.fadeOut(‘fast’);
//Set the now relative positioned area to where it would be if it was absolutely positioned
$el.css({
zIndex:0,
height:’auto’,
width:’100%’
});
//Animate down to the small size that it was originally
$el.animate({
height:’auto’
}, 500, function() {
$(‘body’).css({overflow:’auto’});
$iframe.remove();
$close.remove();
$el.find(‘.sh-embed-meta’).fadeIn();
var $placeholder = $(“#sh_placeholder”);
$el.insertAfter($placeholder);
$placeholder.remove();
$el.css({position:’relative’,’top’:’auto’,’left’:’auto’});
});
//Stop watching for browser height changes
$window.off(“resize.iframe”);
}
if (window.jQuery) {
$(‘.sh-embed-btn[data-embed-untouched]’).each(function() {
$(this).removeAttr(‘data-embed-untouched’);
$(this).on(‘click’, loadStory);
});
}
})(window.jQuery);
[/av_textblock]
[/av_one_full]