/*** POPUP ***/

/* Styling the Popup Window */
/*.popup-trigger { display: block; margin: 0 auto; padding: 20px; max-width: 260px; background: #4EBD79; color: #fff; font-size: 18px; font-weight: 700; text-align: center; text-transform: uppercase; line-height: 24px; cursor: pointer; }*/
.popup-trigger{
    cursor: pointer;
}
.popup {
    display: none;
    position: fixed;
    left: 50%;
    padding: 50px 30px;
    background: #46776b;
    background: #000;
    color: #fff;
    right: 0;
    font-size: 16px;
    line-height: 30px;
    z-index: 9999;
    width: 90%;
    max-width: 90%;
    /*overflow-y: auto;*/
}
.popup .contact-person{
    background:#294841;
}
.popup .contact-person a{
    color: #a8d2c8;
}

.inner.popup header{
    overflow: auto;
    max-height: 74vh;
}
.program-person, .contact-person {
    border-bottom: 1px solid #45776b!important;
}
.contact-person .position {
    background: #326156!important;
}
.team-img:after {
    content: "";
    display: block;
    position: absolute;
    background: #45776b00;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 40px #000;
}
.tooltip {
    margin: 0 5px;
}
body.popup-active{
    overflow: hidden;
    /*position: fixed;*/
    width: 100%;
    padding-right: 15px;
}
body.popup-active-mobile{

}
body{
    overflow-x: hidden;
    /*overflow-y: scroll !important;*/
}
body.popup-active:before {
    background: #000000a8;
    background: #006f53;
    background: rgba(0,111,83, 0.7);
    background:#000;

    background-image: url(/3d/wp-content/uploads/sites/2/cas-marsolais_002.png)!important;
    background-size: cover;
    content: "";
    display: block;
    position: fixed;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 8733;
    right: 0;
    bottom: 0;
    top:0;

}

.popup button{
    position: absolute;
    bottom: 25px;
    z-index: 789;
    background: #33291c;
    color: #fff;
    font-family: 'grodnaregular', 'Playfair Display','Montserrat', sans-serif!important;
}
.popup .prev{
    right: 125px;
}
.popup .next{
    right: 0;
}

.popup-mobile {position: relative; top: 0; left: 0; margin: 30px 0 0; width: 100%;}


.popup-btn-close{
    position: absolute; 
    padding: 10px;
    top: -49px;
    right: 0;
    background: #000; 
    color: #cea579; 
    font-size: 14px; 
    font-weight: bold; 
    text-transform: uppercase; 
    cursor: pointer; 
    text-align: right; 
    display: block;
}

@media screen and (min-width: 980px){
    .popup-btn-close {

        top: 8px; 
        right: 14px; 
        padding: 0;
        background: none;


    }
}


.popup header{
    background: linear-gradient(to right, transparent 0, #251d14 63% );
    padding: 5%;
    display: none!important;
}

.vid{
    padding-bottom: 100%;

}

/*body.popup-active .popup{*/
    /*display: block;*/
    /*}*/

    .popup{
        display: flex;
        flex-flow: row wrap;
        /*align-items: center;*/

    }

    @media screen and (min-width: 979px){
        .item .item {
            background: none;
        }


        .popup > *{
            width: 50%;
            padding: 5%;
        }
        .popup header{
            display: block!important;
        }
        .vid{
            padding-bottom: 26%;
            position: relative;
        }
    }


    .vid iframe{

        position: absolute;
        width: 100%;
        left: 0;
        right: 0;
        bottom: 0;
        top: 0;
        height: 100%;
    }

    /* Box */

.box {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0px 3px 0px 0px rgba(0, 0, 0, 0.05);
    padding: 2em;
}


.box.feature {
    padding: 0;
}


.items .item{
    display: flex;
    justify-content: space-evenly;

}
.item img{
    width: 100%;
    border: 5px solid #240a04;
}
.items .item >div{
    width: 33%;

}
.items .item >div:first-child{
    width: 65.4%;
}
/*.items .item.slick-active:first-child{*/
    /*width: 50%!important;*/
    /*}*/

    .box.feature .inner {
        padding: 2em 2em 2em 2em;
        display: none;
    }

    .box.feature .inner header{
        margin-bottom: 0;
    }

    .box.feature h2 {
        font-size: 3em;
        font-family: GrodnaRegular;
        line-height: 0.9;

    }

    .box.feature p {
        margin: 0;
        line-height: 1.4;
    }

    .box.feature .image {
        position: relative;
        margin: 0;
    }

    .box.feature .image img {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    /* Button */

input[type="button"],
input[type="submit"],
input[type="reset"],
button,
.button {
    -moz-transition: background-color .25s ease-in-out;
    -webkit-transition: background-color .25s ease-in-out;
    -ms-transition: background-color .25s ease-in-out;
    transition: background-color .25s ease-in-out;
    -webkit-appearance: none;
    position: relative;
    display: inline-block;
    background: #cea579;
    color: #000;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 800;
    outline: 0;
    border: 0;
    cursor: pointer;
    font-size: 1.35em;
    padding: 0.6em 1.5em;
}


/* VIDEO THUMBS */

/**
 * VIMEO Thumbs
 */
.video-container{
    display: flex;
    flex-flow:row wrap;
}
.video-container > article{
    width: 100%;
    background: #fff;
    border: 1px solid #eeeeee;
}


@media screen and (min-width:740px) {
 
    .video-container > article{
           width: 46%;
    }
}

@media screen and (min-width:980px) {
 
    .video-container > article{
           width: 30%;
    }
}

.video-container .entry-content{
    border: none!important;
    padding: 20px;
}

.vimeo-title{
    font-size: 18px!important;
    margin-top: 10px!important;
    margin-bottom: 0;
}
.vimeo-description{
    text-overflow: ellipsis;
    height: 200px;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    text-align: left;
    height: 3rem;
    overflow: hidden;
    margin: 0;
    padding: 0;
    line-height: 1.5em;
    display: block;
    font-size: 12px!important;
    color: #555;
}
a.dawson-video-thumb {
    display: block;
    position: relative;
    padding-bottom: 56%;
    background: #000;
    overflow: hidden;
}
a.dawson-video-thumb img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /*width: 100%;*/
}
a.dawson-video-thumb img.loaded{
    width: 100%;
}

a.dawson-video-thumb {
    /*background: #eee255;*/
}

a.dawson-video-thumb img{
   /* display: none;*/
}

a.dawson-video-thumb.loaded:after {
    position: absolute;
    content: "\f04b";
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'FontAwesome';
    font-size: 34px;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(238,226, 85, 0.5);
    background: rgb(0, 0, 0, 62%);
    background: rgb(23, 67, 107, 87%);
    color: white;
}

.entry-content:hover a.dawson-video-thumb.loaded:after{
    background: rgb(0, 0, 0, 87%);
}

.apply_submit, .apply_reset{

  background: #25A6E1;
  background: -moz-linear-gradient(top,#25A6E1 0%,#188BC0 100%);
  background: -webkit-gradient(linear,left top,left bottom,color-stop(0%,#25A6E1),color-stop(100%,#188BC0));
  background: -webkit-linear-gradient(top,#25A6E1 0%,#188BC0 100%);
  background: -o-linear-gradient(top,#25A6E1 0%,#188BC0 100%);
  background: -ms-linear-gradient(top,#25A6E1 0%,#188BC0 100%);
  background: linear-gradient(top,#25A6E1 0%,#188BC0 100%);
  filter: progid: DXImageTransform.Microsoft.gradient( startColorstr='#25A6E1',endColorstr='#188BC0',GradientType=0);
  padding:10px 14px;
  color:#fff;
  font-family:'Helvetica Neue',sans-serif;
  font-size:14px;
  border-radius:4px;
  -moz-border-radius:4px;
  -webkit-border-radius:4px;
  border:1px solid #1A87B9;
  margin: 5px;
  vertical-align:text-bottom;
  cursor: pointer;
}
