/*

Theme Name: X &ndash; Child Theme
Theme URI: http://theme.co/x/
Author: Themeco
Author URI: http://theme.co/
Description: Make all of your modifications to X in this child theme.
Version: 1.0.1
Template: x

*/
a { text-decoration: underline; }
a.bare, a.bear, header a, .x-btn, .x-social-global a { text-decoration: none; }
.screen-reader-response { display: none; }
.wpcf7-not-valid-tip {
    margin-bottom: 1.313em;
    border: 1px solid #f6dca7;
    padding: 0.786em 2.25em 1em 1.15em;
    font-size: 14px;
    line-height: 1.5;
    color: #c09853;
    background-color: #f2dede;
    border-color: #e5bdc4;
    color: #b94a48;
    width: 100%;
    display: inline-block;
}
a.link_cta_homepage {
    display: block;
    width: 100%;
    padding: 0;
    border-top: 1px solid rgba(0,0,0,0.075);
    font-size: 120%;
    text-transform: uppercase;
    color: #8f327a;
    text-decoration: none;
}

a.link_cta_homepage i {
    font-size: 100%;
    font-weight: normal;
    margin: 0 .3em 0 0;
    position: relative;
    top: -0.1em;
}

/* start homepage posts */
.x-recent-posts, .display-posts-listing {
  margin: 0 0 1.313em;
}

.display-posts-listing .listing-item {
    width: 30.6666%;
    overflow: hidden;
    float: left;
    display: block;
    margin: 0 4% 0 0;
    border: 1px solid #dfdfdf;
    border: 1px solid rgba(0,0,0,0.075);
    padding: 6px;
    color: #999;
    background-color: #fff;
    -webkit-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}
.display-posts-listing div:last-child {
  margin-right: 0;
}
.display-posts-listing a.title {
    display: block;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: "Voces","Helvetica Neue",Helvetica,sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 1.7rem;
    letter-spacing: -1px;
    color: #424242;
    margin: 0 0 2px;
    padding-bottom: 4px;
    -webkit-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
    padding: 0.65em 0.75em 0.775em;
}


/* end homepage posts */

.ajax-loader { margin: .5em 1em; }
.x-logobar { display: none; text-align: center;}
.x-navbar .x-container-fluid.max { max-width: inherit; }
.x-navbar .desktop .x-nav>li>a>span { border-radius: 0;border-top: 0;border-bottom:0; padding: 0.875em .5em 0.825em; }
.x-navbar-fixed-top-active .x-navbar .desktop .x-nav>li>a>span { margin-top: auto; }
.x-navbar .x-nav>li { height: inherit; }
.x-navbar .x-nav>li>a { line-height: inherit;border-radius: 0;border-top: 0;border-bottom: 0; }
.x-navbar .desktop .x-nav > li.home > a { display: block; height: 38px; width: 50px; padding-top: 1em; text-align: center; }
.x-navbar .desktop .x-nav>.x-active.home>a, .x-navbar .desktop .x-nav>.current-menu-item.home>a{ border-left: 1px solid rgba(0,0,0,0.075);border-right: 1px solid rgba(0,0,0,0.075); }
.desktop .x-nav li.home a:before { font-family: "fontawesome"; content:"\f015"; speak:none; line-height: 1; }
.x-navbar .desktop .x-nav>li.home>a>span { display: none; }
.h-custom-headlinez a{ color:#fff; }
.x-content-band.publications { padding: 1em 0; }
html:lang(fr) .x-navbar .x-nav>li>a { padding-left: 0.5em; padding-right: 0.5em; }

.x-navbar .x-btn-navbar { margin-top: 15px;margin-bottom: 15px; }
.number_circle { border-radius: 50%; width: 60px; height: 60px; padding: 8px; background: #666; border: 2px solid #666; color: #fff; text-align: center; font-weight: bold; font-size: 25px; margin: .5em auto; position: relative; left: -5%; }
#menu-topbar-english, #menu-topbar-francais {display: block; margin: 1.5em 1em 1em 0; }
#jobs_listing .listing-item {
    border-bottom: 1px solid rgba(0,0,0,0.075);
    float: left;
    margin-bottom: 1em;
    padding-bottom: 1em;
}
.x-navbar .x-nav-wrap .x-nav > li.purple {
  margin-right: 1em;
}
.x-navbar .x-nav-wrap .x-nav > li.purple > a {
    color:#8f327a;
    font-weight: bold;
    background-color: #f6e5f2;
}
header .x-topbar-inner {
    position :relative;
}
#menu-topbar-english li, #menu-topbar-francais li { display: inline; list-style-type: none; margin: 0 .5em; }
#menu-topbar-english li a, #menu-topbar-francais li a { display: inherit; }
.x-topbar .x-social-global { margin: 1.4em auto 1em; }
.x-topbar .x-social-global a { font-size: 2.8rem; margin-right: .3em;}
li.phone { font-weight: bold; }
.donate,
.baskets {
    border: 1px solid #8f327a;
    padding: .3em .8em;
    background: transparent;
    border-radius: 2px;
    font-weight: bold;
}
.donate a, .baskets a { color: #8f327a; }
.listing-item .title {
    clear: both;
    display: block;
    width: 50%;
    margin: 1em 0 0.2em;
    font-size: 135%;
    text-transform: uppercase;
}

#mc_embed_signup .mc-field-group { margin-top: 1em;}
#mc_embed_signup input { width: 100%;}
#mc_embed_signup input[type="radio"] { width: inherit; display: inline; padding-right: .5em;}
#mc_embed_signup li label { display: inline-block; margin: 0 0 0 10px; padding: 0; width: auto; line-height: 1.5; vertical-align: middle; }
#mc_embed_signup ul { list-style-type: none; margin: 0; }
#mc_embed_signup .mc-field-group br { display: none; }

#bar_signup {
    padding: 1em 0;
    border-top: 1px solid rgba(0,0,0,0.075);
    border-bottom: 1px solid rgba(0,0,0,0.075);
    background-color: rgba(0,0,0,0.075);
}
#bar_signup .x-content-band { margin: 0; }
#bar_signup h2{ font-size: 125%; display: inline; }
#bar_signup h1 { display: inline; vertical-align: middle; padding-right: 2em; }
#bar_signup form { text-align: center; }
#bar_signup fieldset { width: 100%; display: inline; text-align: center; }
#bar_signup form :nth-child(3) { width: 40%; margin-right: .5em; }
#bar_signup form :nth-child(4) { width: 15%; }
#bar_signup input { margin: 0;}
#bar_signup input[type="submit"] {  margin: 0 auto; padding: 0.463em 1.125em 0.613em; }

.entry-thumb.closed {
    position: relative;
}
.closed-bg {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 2;
    background-color: rgba(0,0,0,0.5);
    background-size: contain;
    background-position: 50% 50%;
    background-image: url(img/post_closed_en.png);
    background-repeat: no-repeat;
}
.single .closed-bg {
    background-size: inherit;
}
html:lang(fr) .closed-bg {
    background-image: url(img/post_closed_fr.png);
}
/*.category span.closed { background-size: contain; }*/

.gform_fields, .gfield_radio, .gfield_checkbox { list-style: none; margin: 0; }
.gfield_radio li label, .gfield_checkbox li label { display: inline-block; }
.gfield_radio input { margin-right: .5em; }
.weekday { display: inline-block; }
body .gform_wrapper .gfield textarea { height: 6em; line-height: 1.5em; }
a.x-img:not(.x-img-thumbnail),
.img_grid.last .x-content-band {
    background: #000;
    margin-bottom: 0;
}
.img_grid a.x-img:not(.x-img-thumbnail):hover { opacity: 1; }
.img_grid a.x-img:not(.x-img-thumbnail) img,
.img_grid.last .x-content-band {
    transition: opacity 0.3s ease;
    -webkit-filter: grayscale(100%);
       -moz-filter: grayscale(100%);
         -o-filter: grayscale(100%);
        -ms-filter: grayscale(100%);
            filter: grayscale(100%);
    opacity: .7;
}
.img_grid.last .x-content-band {
    opacity: .9;
    -webkit-filter: blur(5px); -moz-filter: blur(5px); -o-filter: blur(5px); -ms-filter: blur(5px); filter: blur(5px);
}
.img_grid a.x-img:not(.x-img-thumbnail) img:hover,
.img_grid.last .x-content-band:hover {
    opacity: 1;
    -webkit-filter: grayscale(0);
       -moz-filter: grayscale(0);
         -o-filter: grayscale(0);
        -ms-filter: grayscale(0);
            filter: grayscale(0);
}

.x-author-pic {
    text-align: center;
}
.x-author-pic figure {
    width:120px;
    height:120px;
    border-radius:50%;
    overflow:hidden;
    -webkit-margin-before: 0;
    -webkit-margin-after: 0;
    -webkit-margin-start: 0;
    -webkit-margin-end: 0;
    margin: 0 auto;
}
.page-staff .x-author-pic figure {
    width:150px;
    height:150px;
}
.x-author-box .x-author-info {
    margin-left: 0;
}
.x-counter .text-above,
.x-counter .text-below {
    letter-spacing: 0;
}
@media (max-width: 766px){
    .x-author-pic figure {
        margin-bottom: 1em;
    }
    .x-author-box .x-author-info h4, .x-author-box .x-author-info h6 { text-align: center; }
    .weekday { width: 100%; }
    .x-topbar .p-info { border:none; }
    .display-posts-listing .listing-item {margin-bottom: 3em;}
    #block_cross li { width: 100%; margin-top: 0; }

    #bar_signup fieldset { display: block; }
    #bar_signup form :nth-child(3) { width: 90%; margin: 2em auto;}
    #bar_signup form :nth-child(4) { width: 90%; margin: 2em auto; }
    #bar_signup h2{ display: inherit; }
    #bar_signup h1 { display: inherit; padding-right: 0; }

    .display-posts-listing .listing-item {
      width: 100%;
      float: none;
      margin-right: 0;
      margin-bottom: 4%;
    }
    .home .x-content-band .x-column img {
        display: block;
        margin: 0 auto;
        min-width: 100%;
        position: relative;
        transition: opacity 0.6s ease;
    }
    .home .x-content-band .x-column.x-1-4 img {
        min-width: inherit;
    }
    .x-recent-posts .x-recent-posts-content {
        border: 0;
    }
}
@media (min-width: 767px){

    .x-author-pic {
       width:120px;
       display:table-cell;
    }
    .x-author-info {
       display:table-cell;
       width:auto;
       vertical-align: top;
       padding-left: 1em;
    }
    * html .x-author-pic {float:left;}

    .x-author-box .x-author-info {margin-left: inherit;}


    .weekday { width: 20%; }
    #blog_categories {
        border: 1px solid rgba(0,0,0,0.075);
        margin: 1em auto;
        padding: 1em;
    }
    #blog_categories select { margin: 0 0 0 2em; }
    /*#menu-topbar-francais, #menu-topbar-english { float:right; }*/
    #jobs_listing .listing-item a.image {
        float: left;
        width: 45%;
    }
    .x-topbar .p-info { /*float: none;*/ text-align: center; }
    #menu-topbar-francais, #menu-topbar-english { position: absolute; top: 0; right: 0; }
    .x-topbar .x-social-global { position: absolute;top: 0; left: 0; }
    #block_cross { display: flex; flex-flow: row wrap; /* or inline-flex */ list-style: none; margin-top: 3em; }

    #block_cross .x-block-grid-item { display: list-item; width: 50%; margin: 0; padding-left: 3%; padding-right: 3%; }
    #block_cross .x-block-grid-item:first-child{ border-right: 1px solid rgba(0,0,0,0.075); border-bottom: 1px solid rgba(0,0,0,0.075); }
    #block_cross .x-block-grid-item:nth-child(2){ border-left: 1px solid rgba(0,0,0,0.075); border-bottom: 1px solid rgba(0,0,0,0.075); }
    #block_cross .x-block-grid-item:nth-child(3){ border-right: 1px solid rgba(0,0,0,0.075); border-top: 1px solid rgba(0,0,0,0.075); }
    #block_cross .x-block-grid-item:nth-child(4){ border-left: 1px solid rgba(0,0,0,0.075); border-top: 1px solid rgba(0,0,0,0.075); }
}
@media (max-width: 480px){
    h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { text-align: center; }
}

.x-recent-posts .x-recent-posts-img:before, .x-recent-posts .x-recent-posts-img:after, .x-recent-posts .format-standard .x-recent-posts-img:before, .x-recent-posts .x-recent-posts-date {display: none;}
.x-recent-posts .x-recent-posts-img:after {background: none;}
