/* Embed google fonts for demo layout
-----------------------------------------*/
/*@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,600,700,900');*/


/* .ytmain Page Layout 
-- NOTE: Just for the demo page, and not
required for the video modal... Video Modal
styles are down below --
-----------------------------------------*/
* {
    box-sizing: border-box;
}

html {
    background: #fcfcfc;
}

@media (min-width: 641px) {
    html {
        background: #4b4b4b;
    }
}

body {
    /*font-family: 'Source Sans Pro', sans-serif;*/
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.noscroll {
    overflow: hidden;
}


.ytmain {
    font-size: 0;
}

    .ytmain .ytcolumn.left,
    .ytmain .ytcolumn.right {
        background: #fcfcfc;
        display: block;
        position: relative;
        font-size: 1rem;
        width: 100%;
        min-height: 0;
        vertical-align: top;
    }

@media (min-width: 641px) {
    .ytmain .ytcolumn.left,
    .ytmain .ytcolumn.right {
        display: inline-block;
        width: 50%;
        min-height: 100vh;
    }

    .ytmain .ytcolumn.left {
        position: fixed;
    }

    .ytmain .ytcolumn.right {
        margin-left: 50%;
    }
}

.video-banner {
    display: block;
}

@media (min-width: 641px) {
    .video-banner {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        z-index: 0;
    }
}

.video-banner .video-banner-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
}

.video-banner-headline {
    position: absolute;
    left: 1.5rem;
    bottom: 1.5rem;
    font-family: Verdana, 'Source Sans Pro', sans-serif;
    font-size: 1.25em;
    font-weight: 900;
    line-height: 1.0em;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.045em;
}

@media (min-width: 641px) {
    .video-banner-headline {
        left: 2em;
        bottom: 2.75em;
        font-size: 1.5em;
        line-height: 1.5em;
    }
}

.video-banner-icon-play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: block;
    width: 2.5em;
    height: 2.5em;
    -webkit-transform: translateX(-50%) translateY(-50%) scale(1.0);
    -moz-transform: translateX(-50%) translateY(-50%) scale(1.0);
    -ms-transform: translateX(-50%) translateY(-50%) scale(1.0);
    -o-transform: translateX(-50%) translateY(-50%) scale(1.0);
    transform: translateX(-50%) translateY(-50%) scale(1.0);
    -webkit-transition: all 0.2s ease-out 0.05s;
    transition: all 0.2s ease-out 0.05s;
}

@media (min-width: 641px) {
    .video-banner-icon-play {
        width: 4.5em;
        height: 4.5em;
    }
}

.video-banner-icon-play:hover {
    -webkit-transform: translateX(-50%) translateY(-50%) scale(1.2);
    -moz-transform: translateX(-50%) translateY(-50%) scale(1.2);
    -ms-transform: translateX(-50%) translateY(-50%) scale(1.2);
    -o-transform: translateX(-50%) translateY(-50%) scale(1.2);
    transform: translateX(-50%) translateY(-50%) scale(1.2);
    backgound: #330099;
}

.ytcontent {
    display: block;
    min-height: 100vh;
    max-width: 40rem;
    margin: 2.5rem auto;
    padding: 1.5rem;
}

@media (min-width: 641px) {
    .ytcontent {
        margin: 5.75rem auto;
        padding: 2.5rem;
    }
}

.ytcontent h1,
.ytcontent h2,
.ytcontent p {
    font-family: Verdana, 'Source Sans Pro', sans-serif;
    font-size: 1em;
    font-weight: 300;
    line-height: 1.5em;
    color: #0D013D;
}

.ytcontent h1 {
    font-size: 2.8em;
    font-weight: 200;
    line-height: 1.0em;
    margin: 0 0 0.5rem 0;
}

@media (min-width: 641px) {
    .ytcontent h1 {
        font-size: 2.4em;
    }
}
@media (min-width: 800px) {
    .ytcontent h1 {
        font-size: 3em;
    }
}
@media (min-width: 1000px) {
    .ytcontent h1 {
        font-size: 3.6em;
    }
}

.ytcontent h2 {
    font-size: 2em;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.155em;
    margin-top: 0em;
}

/* buttons */
.ytcontent .button-group {
    margin-top: 1em;
}

.ytcontent .button {
    display: inline-block;
    padding: 1em 2em;
    min-width: 8em;
    text-align: center;
    font-weight: 900;
    text-decoration: none;
    border-radius: 1.5em;
    box-shadow: 0 1px 1px rgba(0,0,0,0.25);
    /* button theme - secondary is default */
    background: #f0f0f0;
    color: #2B2B2B;
    -webkit-transition: all 0.2s ease-out 0.05s;
    transition: all 0.2s ease-out 0.05s;
}

    .ytcontent .button ~ .button {
        margin-left: 0.5em;
    }

    .ytcontent .button:hover {
        background: #e5e5e5;
    }
    /* primary button overrides */
    .ytcontent .button.primary {
        background: #E50055;
        color: #fff;
    }

        .ytcontent .button.primary:hover {
            background: #9D00E5;
        }


/* video thumbnail grid */
.ytcontent .video-thumb-grid {
    position: relative;
    font-size: 0; /* collapse the white-space */
    width: calc(100% + 2rem);
    margin: 0 -1rem;
}

.ytcontent .video-thumb {
    display: inline-block;
    vertical-align: top;
    text-decoration: none;
    /* calculate the width, gutters, and aspect ratio */
    width: calc((100% - 4rem) / 2);
    height: 0;
    padding-top: calc(((100% - 4rem) / 2) * 0.5625); /* 16:9 calc */
    margin: 1rem 1rem; /* gutters */
    overflow: hidden; /* clipping */
    position: relative; /* enable positioning for inner content */
    font-size: 1rem; /* reset the font size */
    -webkit-transform: scale(1.0);
    transform: scale(1.0);
    box-shadow: 0 0 0 rgba(0,0,0,0.0);
    -webkit-transition: all 0.2s ease-out 0.05s;
    transition: all 0.2s ease-out 0.05s;
}

    .ytcontent .video-thumb:hover {
        -webkit-transform: scale(1.05);
        transform: scale(1.05);
        box-shadow: 0 2px 4px rgba(13,1,61,0.35);
    }

    .ytcontent .video-thumb img {
        display: block;
        width: 100%;
        height: 100%;
        /* position inside the 16:9 container */
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        /* clipping for source images that are letterboxed */
        object-fit: cover;
        object-position: 50% 50%;
        background: #2b2b2b;
    }








/* Video Modal
-----------------------------------------*/
.video-modal,
.video-modal .overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 3000;
}

.video-modal {
    overflow: hidden;
    position: fixed;
    opacity: 0.0;
    -webkit-transform: translate(500%,0%);
    transform: translate(500%,0%);
    -webkit-transition: -webkit-transform 0s linear 0s;
    transition: transform 0s linear 0s;
    /* using flexbox for vertical centering */
    /* Flexbox display */
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    /* Vertical alignment */
    -webkit-box-align: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

    .video-modal .overlay {
        z-index: 0;
        background: rgba(13,1,61,0.82); /* overlay color */
        opacity: 0.0;
        -webkit-transition: opacity 0.2s ease-out 0.05s;
        transition: opacity 0.2s ease-out 0.05s;
    }


.video-modal-content {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: 1;
    margin: 0 auto;
    overflow-y: visible;
    background: #000;
    width: calc(100% - 12em);
    height: 0;
    padding-top: calc((100% - 12em) * 0.5625); /* 16:9 calc */
}

/* Scaling to fit within the current Viewport size:
   When viewport aspect ratio is greater than 16:9
   work off the height instead of the width for calc */
@media (min-aspect-ratio: 16/9) {
    .video-modal-content {
        width: 0;
        height: calc(100vh - 10em);
        padding-top: 0;
        padding-left: calc((100vh - 10em) * 1.7778); /* 16:9 calc */
    }
}

/* Mobile Layout Tweaks - side margins reduced */
@media (max-width: 640px) {
    .video-modal-content {
        width: calc(100% - 1em);
        padding-top: calc((100% - 1em) * 0.5625); /* 16:9 calc */
    }
}

/* modal close button */
.close-video-modal {
    display: block;
    position: absolute;
    left: 0;
    top: -40px;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}

/* set the iframe element to stretch to fit its parent element */
iframe#youtube {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    background: #000;
    box-shadow: 0px 2px 16px rgba(0,0,0,0.5);
}

/* show the modal: 
   add class to the body to reveal */
.show-video-modal .video-modal {
    opacity: 1.0;
    transform: translate(0%,0%);
    -webkit-transform: translate(0%,0%);
}

    .show-video-modal .video-modal .overlay {
        opacity: 1.0;
    }

.show-video-modal .video-modal-content {
    transform: translate(0%,0%);
    -webkit-transform: translate(0%,0%);
}
