/* Oembed generique */
.oe-reference {}
.oe-cite {}

figure.oe-image-block {border: 1px solid #eee;background: #fff;text-align: center;width:80%;margin: 0 auto 3em;overflow:hidden;padding:4px;}
figure.oe-image-block img {background: #fff;padding-bottom:4px;}
figure.oe-image-block figcaption {background:#eee;padding: 10px;text-align: left;}

.oe-link-block {overflow: hidden;}
.oe-link-block .link_logo {float: right;margin:0;margin-bottom: 10px;margin-left: 10px;border: 5px solid #ddd;}

.spip_documents .oembed {display: block;background: #FFF;padding: 0;margin-top: 0;}
.spip_documents span.oembed {display:inline-block;}

/* Photo */
.oembed_photo .oembed-source {display: none;}

/* Rich */
.oembed_rich {max-width:100%;position:relative;}
.oembed_rich .oe-rich {max-width:none !important;}
.oembed_rich .rwd-rich-container {position: relative;}
.oembed_rich .rwd-rich-container iframe {position: absolute;top:0;left: 0;width: 100%;height: 100%;z-index:2;}
.oembed_rich .rwd-rich-container>:last-child {margin-bottom:0;}
.oembed_rich .oembed.oe-rich {display: block;text-align: left}
.oembed_rich .oe-rich+.spip_doc_titre {margin-top: 0.5em;}
.oembed_rich .spip_doc_titre+.oembed-source {display: none;}
.oe-rich.async .rwd-rich-container {
	-webkit-transition: height .4s linear;
     -moz-transition: height .4s linear;
       -o-transition: height .4s linear;
          transition: height .4s linear;
}
.oe-rich.async .rwd-rich-container.oe-play-button {height:80px !important;}
@media (min-width:480px){
	.oembed_rich .async+.spip_doc_titre {position:absolute;top:0.5em;left:90px;width:auto;right:90px;text-align:left;}
	.oembed_rich .oe-play-button button {left:40px;}
	.oembed_rich .oe-play-button {background-position:top right !important;background-size:contain !important;}
}

.oembed.oe-link.oe-rich .oe-html {display: block;}
.oe-rich > .rwd-rich-container >blockquote {font-style: normal;}

/* Video */
.oembed_video {max-width: 100%;margin-top: 0;}
.oembed_video .rwd-video-container {position: relative;}
.oembed_video .rwd-video-container iframe {position: absolute;top:0;left: 0;width: 100%;height: 100%;}
.oembed_video .oembed-source {display: none;}
.oembed_video .oe-video {margin-left: auto;margin-right: auto;}
.oembed_video .oe-video+.spip_doc_titre {margin-top: 0.5em;}

/* Play button */

.oe-play-button {position: relative;cursor: pointer;background-color: #ff0080;}
.oe-play-button button {text-indent:-5000em;position: absolute;display: block;padding:0;left: 50%;top: 50%;border: none;background-color: #ff0080;width: 60px;height: 60px;margin-left: -33px;margin-top: -33px;z-index:10;-moz-border-radius: 50%;-webkit-border-radius: 50%;border-radius: 50%;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;}
.oe-play-button button:before {content:"";position: absolute;top:0px;left:0px;display: block;padding:0;border: 0 solid #000;width: 60px;height: 60px;-moz-border-radius: 50%;-webkit-border-radius: 50%;border-radius: 50%;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;}
.oe-play-button button:after {content:"";position: absolute;display: block;left: 50%;top: 50%;border-left:20px solid #000;border-top:10px solid transparent;border-bottom:10px solid transparent;margin-left: -7px;margin-top: -10px;z-index:11;}
.oe-play-button:hover button {background-color: #ff0080;}
.oe-play-button:hover button:before{border-color:#000;}
.oe-play-button:hover button:after{border-left-color: orange;}
.oembed_video:hover {
	opacity: 0.9;
}
/* Cas particuliers */
/* Storify */
.oembed .storify .oembed {margin: 3em auto;text-align: center;}
.oembed .storify .oembed iframe,.oembed .storify .oembed object {margin: 0 auto;}
.storify .oe-quote-text {margin-bottom:0;}

/* Twitter */
.oe-quote-block {padding-right: 80px;position: relative;}
.oembed_twitter .oembed-source {display: none;}
.oembed_twitter .oe-rich {max-width:none !important;}

.oe-descriptif {font-style: italic;}
.oe-quote-text {}
.oe-quote-user-block img {position: absolute;top:0;right:20px;max-width: 48px;height: auto;}
.oe-quote-meta,.oe-quote-user-block {display: inline;}
.oe-quote-meta .via {display: none;}

.oe-fb-user-block img {float:left;margin-right: 10px;margin-bottom:10px;}
.oe-imdb-title img {float:left;margin-right: 10px;margin-bottom:10px;}

/* Soundcloud */
.oembed_audio .oe-play-button button {background:#FF4B00;}
.oembed_audio .oe-play-button button:before {border-color:#eee;}
.oembed_audio .oe-play-button:hover button{background-color: #DD2826;}
.oembed_audio .oe-play-button:hover button:before{border-color:#fff;}