@charset "UTF-8";

/*
    Name: YouTubePopUp
    Description: jQuery plugin to display YouTube or Vimeo video in PopUp, responsive and retina, easy to use.
    Version: 1.0.1
    Plugin URL: http://wp-time.com/youtube-popup-jquery-plugin/
    Written By: Qassim Hassan
    Twitter: @QQQHZ
    Websites: wp-time.com | qass.im | wp-plugins.in
    Dual licensed under the MIT and GPL licenses:
        http://www.opensource.org/licenses/mit-license.php
        http://www.gnu.org/licenses/gpl.html
    Copyright (c) 2016 - Qassim Hassan
*/

.YouTubePopUp-Wrap{
    position:fixed;
    width:100%;
    height:100%;
    background-color:#000;
    background-color:rgba(0,0,0,0.8);
    top:0;
    left:0;
    z-index:9999999999999;
}

.YouTubePopUp-animation{
    opacity: 0;
    -webkit-animation-duration: 0.5s;
    animation-duration: 0.5s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-name: YouTubePopUp;
    animation-name: YouTubePopUp;
}

@-webkit-keyframes YouTubePopUp {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes YouTubePopUp {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

body.logged-in .YouTubePopUp-Wrap{ /* For WordPress */
    //top:32px;
    z-index:99998;
}

.YouTubePopUp-Content{
    max-width:300px;
    display:block;
    margin:0 auto;
    height:100%;
    position:relative;
}

.YouTubePopUp-Content iframe{
    max-width:100% !important;
    width:100% !important;
    display:block !important;
    height:168px !important;
    border:none !important;
    position:absolute;
    top: 0;
    bottom: 0;
    margin: auto 0;
}

.YouTubePopUp-Hide{
    -webkit-animation-duration: 0.5s;
    animation-duration: 0.5s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-name: YouTubePopUpHide;
    animation-name: YouTubePopUpHide;
}

@-webkit-keyframes YouTubePopUpHide {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes YouTubePopUpHide {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.YouTubePopUp-Title{
    position:absolute;
    top:0;
    bottom:210px;
    left:0px;
    margin:auto 0;
    height:24px;
    color: white;
    font-size: 0.75em;
}

.YouTubePopUp-Close{
    position:absolute;
    top:0;
    cursor:pointer;
    bottom:210px;
    right:0px;
    margin:auto 0;
    width:24px;
    height:24px;
    background:url(../YouTubePopUp/close.png) no-repeat;
    background-size:24px 24px;
}

.YouTubePopUp-Close:hover{
    opacity:0.5;
}

@media all and (min-width: 480px) and (min-height: 280px){
    .YouTubePopUp-Content{
        max-width: 460px;
    }
    .YouTubePopUp-Content iframe{
        height: 257px !important;
    }
    .YouTubePopUp-Title, .YouTubePopUp-Close{
        bottom: 299px;
    }
    .YouTubePopUp-Title{
        font-size: 1em;
    }
}

@media all and (min-width: 570px) and (min-height: 350px){
    .YouTubePopUp-Content{
        max-width: 550px;
    }
    .YouTubePopUp-Content iframe{
        height: 308px !important;
    }
    .YouTubePopUp-Title, .YouTubePopUp-Close{
        bottom: 350px;
    }
}

@media all and (min-width: 768px) and (min-height: 470px){
    .YouTubePopUp-Content{
        max-width: 740px;
    }
    .YouTubePopUp-Content iframe{
        height: 414px !important;
    }
    .YouTubePopUp-Title, .YouTubePopUp-Close{
        bottom: 456px;
    }
}

@media all and (min-width: 960px) and (min-height: 600px){
    .YouTubePopUp-Content{
        max-width: 920px;
    }
    .YouTubePopUp-Content iframe{
        height: 515px !important;
    }
    .YouTubePopUp-Title, .YouTubePopUp-Close{
        bottom: 557px;
    }
    .YouTubePopUp-Title{
        font-size: 1em;
    }
}

@media all and (min-width: 1280px) and (min-height: 735px){
    .YouTubePopUp-Content{
        max-width: 1160px;
    }
    .YouTubePopUp-Content iframe{
        height: 650px !important;
    }
    .YouTubePopUp-Title, .YouTubePopUp-Close{
        bottom: 692px;
    }
    .YouTubePopUp-Title{
        font-size: 1em;
    }
}

@media all and (min-width: 1480px) and (min-height: 880px){
    .YouTubePopUp-Content{
        max-width: 1400px;
    }
    .YouTubePopUp-Content iframe{
        height: 784px !important;
    }
    .YouTubePopUp-Title, .YouTubePopUp-Close{
        bottom: 826px;
    }
    .YouTubePopUp-Title{
        font-size: 1em;
    }
}