/* ==========================================================================
/* LAYOUT
/* ======================================================================= */

/* Session Container
/* ======================================================================= */

.loaded #l-session {
    /* animation */
    -webkit-animation: session-fadein .5s ease-out;
    -ms-animation: session-fadein .5s ease-out;
    -o-animation: session-fadein .5s ease-out;
    animation: session-fadein .5s ease-out;
}

@-webkit-keyframes session-fadein {
    from {opacity: 0;}
    to {opacity: 1;}
}

@-ms-keyframes session-fadein {
    from {opacity: 0;}
    to {opacity: 1;}
}

@-o-keyframes session-fadein {
    from {opacity: 0;}
    to {opacity: 1;}
}


@keyframes session-fadein {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* Video Player, Slide and Session Information Layouts
/* ======================================================================= */

#l-player,
#l-slide,
#l-info {
    /* position */
    position: relative;
}

#l-player,
#l-slide {
    /* display */
    margin-bottom: 1.5em; /* 24px/16px */
    margin-bottom: 1.5rem; /* 24px/16px */
}

#l-slide {
    /* display */
    float: right;

    /* sizing */
    width: 62.5%;   
}

#l-info {
    /* display */
    clear: left;
}

.with-slides > #l-player,
.with-slides > #l-info {
    /* display */
    float: left;

    /* sizing */
    width: 37.5%;   
}

.no-slides > #l-player,
.no-slides > #l-info {
    /* display */
    margin: 0 auto 1.5em; /* 24px/16px */
    margin: 0 auto 1.5rem; /* 24px/16px */
    float: none;

    /* sizing */
    max-width: 640px  
}


@media screen and (max-width: 48.75em) { /* 780px/16px */

    .with-slides > #l-player,
    .with-slides > #l-info,
    #l-player,
    #l-slide,
    #l-info {
        /* display */
        float: left;
        clear: both;

        /* sizing */
        width: 100%;
    }

}

/* Layout Style Fixes
/* ======================================================================= */

.no-boxsizing .with-slides > #l-player,
.no-boxsizing .with-slides > #l-info {
    /* sizing */
    width: 33.5%; 
}

.no-boxsizing .with-slides > #l-slide {
    /* sizing */
    width: 59.5%;     
}

/* ==========================================================================
/* MODULES
/* ======================================================================= */

/* Header Module
/* ======================================================================= */

.header-logo {
    /* display */
    margin: .75em 0;
    float: left;

    /* sizing */
    width: 25%;
}

/* Player Module
/* ======================================================================= */

.player {
    /* display */
    overflow: hidden;

    /* position */
    position: relative;
    
    /* background */
    background: #000;
}

/* Slides Module
/* ======================================================================= */

.slides {
    /* position */
    position: relative;
    overflow: hidden;
    
    /* display */
    margin-bottom: 1.5em; /* 24px/16px */
    width: 100%;
    height: 100%;
}

.slides-counter {
    /* display */
    padding: 0.75em 1.5em;

    /* position */
    position: absolute;
    bottom: 0.75em;
    right: 0.75em;
    z-index: 9999;

    /* text */
    font-size: 0.75em; /* 12px/16px */
    font-size: 0.75rem; /* 12px/16px */
    color: #fff;

    /* background */
    background: #000;
    background: rgba(0, 0, 0, 0.75);
}

.slides > img {
    /* position */
    position: absolute;
    
    /* display */
    width: 100%;
}

/* Thumbnails Module
/* ======================================================================= */

.thumbnails {
    /* Fixes a mysterious IE9 bug */
    min-height: 0%;
    
    /* display */
    margin-top: 1.5em; /* 24px/16px */
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    clear: both;
        
    /* text */
    font-size: 0;    
}

.thumbnail {
    /* display */
    display: inline-block;
    margin: 0 2.5% 2.5%;
    cursor:pointer;
    opacity: .5;

    /* sizing */
    max-height: 100%;
    
    /* border */
    border: 1px solid #ccc;  
        
    /* transitions */
    transition: all ease 0.2s;

    /* box shadow */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);

    /* transition */
    -webkit-transition: box-shadow 0.2s ease-out, border 0.2s ease-out;
    -moz-transition: box-shadow 0.2s ease-out, border 0.2s ease-out;
    -o-transition: box-shadow 0.2s ease-out, border 0.2s ease-out;
    transition: box-shadow 0.2s ease-out, border 0.2s ease-out;
}

.thumbnail.is-current {
    /* border */
    border: 1px solid #09f; 
    
    /* box shadow */
    box-shadow: 0 1px 1px rgba(0, 153, 255, 0.95);
}

.thumbnail:hover {
    /* border */
    border-color: #000;   
}

.thumbnail.is-current,
.thumbnail:hover {
    /* display */
    opacity: 1;
}

.lt-ie8 .slide-thumbnails {
    /* display */
    padding-bottom: 18px;   
}

/* Information Module
/* ======================================================================= */

.info {
    /* display */
    padding: 0.75em;
    overflow: hidden;
    
    /* position */
    position: relative;
    z-index: 1;
    
    /* background */
    background: #fff;
    
    /* border */
    border: 1px solid #999;
}

.info-title {
    /* display */
    margin: 0 0 0.25em;

    /* text */
    font-size: 1em;
    text-shadow: 0 0.0625em 0 #DDD;
}

.info-date {
    /* display */
    margin: 0;
    
    /* text */
    font-size: 1em;
    font-weight: normal;
}

.info-speakers {
    /* display */
    margin: 0.75em 0 0; /* 12px/16px */
    padding: 0.75em 0.75em 0.75em 0.25em;
    overflow: hidden;
    clear: both;
    
    /* position */
    position: relative;
    z-index: 1;
    
    /* background */
    background: #fff;
    
    /* border */
    border: 1px solid #ccc;
}

.info-speakers-title {
    /* display */
    margin: 0;
    clear: both;
}

.info-speakers-list {
    /* display */
    margin: 0;
    padding: 0 0 0 0.75em;
    overflow: hidden;
    
}

.info-speakers-list > li {
    /* display */
    padding-right: 0.25em;
    margin-bottom: 0.25em;
    clear: both;
    
    /* text */
    font-size: 0.8em;
    
    /* list */
    list-style-type: none;  
}

/* ==========================================================================
/* STATES
/* ======================================================================= */

/* Loading States
/* ======================================================================= */

.is-loading #l-session {
    /* display */
    overflow: hidden;

    /* position */
    position: relative;
    z-index: -9999;

    /* sizing */
    width: 100%;
    height: 50px;
}

/* No JavaScript States
/* ======================================================================= */

.no-js #l-loading,
.no-js #l-player,
.no-js #l-slide,
.no-js #l-info {
    /* display */
    display: none;
}

/* Ratio States
/* ======================================================================= */

.slides.is-widescreen {
    /* display */
    padding-bottom: 56.25%; /* 9/16 */  
}

.slides.is-fourByThree {
    /* display */
    padding-bottom: 75%; /* 3/4 */  
}

.thumbnail.is-widescreen {
    /* display */
    padding-bottom: 0;

    /* sizing */
    width: 22%;
}

.thumbnail.is-fourByThree {
    /* display */
    padding-bottom: 0;

    /* sizing */
    width: 16.5%;
}