/*
Theme Name: CMH Media
Author: Gar Lam
Description:  CMH Media

*/

#main-menu-handle {
display:none;
width:70px;
height:60px;
background:#e6192b;
-webkit-transition:background 250ms ease;
-moz-transition:background 250ms ease;
-ms-transition:background 250ms ease;
-o-transition:background 250ms ease;
transition:background 250ms ease;
position:absolute;
top:0;
left:0;
}

#main-menu-handle .handle-bars-icon {
top:50%;
position:relative;
-webkit-transform:translateY(-50%);
-moz-transform:translateY(-50%);
-ms-transform:translateY(-50%);
transform:translateY(-50%);
-webkit-box-sizing:border-box;
-moz-box-sizing:border-box;
box-sizing:border-box;
display:block;
padding:0 20px;
}

#main-menu-handle .bar {
float:left;
background:#fff;
height:4px;
width:100%;
display:block;
margin-bottom:5px;
}

#main-menu-handle:hover,#main-menu-handle:hover:after {
background:#8a8d8a;
}

#main-menu-handle:after {
content:"";
display:block;
width:100%;
height:1px;
position:absolute;
top:100%;
left:0;
-webkit-transition:background 250ms ease;
-moz-transition:background 250ms ease;
-ms-transition:background 250ms ease;
-o-transition:background 250ms ease;
transition:background 250ms ease;
background:#e6192b;
}

#main-menu-handle.icon-close .handle-bars-icon {
width:36px;
height:36px;
margin-left:-18px;
left:35px;
padding:0;
}

#main-menu-handle.icon-close .bar {
width:100%;
position:absolute;
top:50%;
left:0;
margin:-2px 0 0;
}

#main-menu-handle.icon-close .bar:nth-child(2) {
-ms-transform:rotate(45deg);
-webkit-transform:rotate(45deg);
transform:rotate(45deg);
}

#main-menu-handle.icon-close .bar:nth-child(3) {
-ms-transform:rotate(-45deg);
-webkit-transform:rotate(-45deg);
transform:rotate(-45deg);
}

* {
-webkit-box-sizing:border-box;
-moz-box-sizing:border-box;
box-sizing:border-box;
}

a,img {
border:none;
}

body {
font-family:Arial;
color:#4a4a4a;
font-size:16px;
margin:0;
}

#main-header {
height:120px;
background:#fff;
}

#main-logo {
float:left;
padding: 35px 40px;
}

#main-logo img {
width:300px;
}

.home.blog,.category,.page {
background:#fff;
}

#main-menu:before {
display:block;
content:"";
width:120px;
height:120px;
-webkit-border-radius:50%;
-moz-border-radius:50%;
-ms-border-radius:50%;
-o-border-radius:50%;
border-radius:50%;
background:#8a8d8a;
left:-60px;
position:absolute;
top:0;
}

#main-menu {
height:100%;
float:right;
background:#8a8d8a;
position:relative;
-webkit-box-sizing:border-box;
-moz-box-sizing:border-box;
box-sizing:border-box;
}

#main-menu ul {
top:50%;
position:relative;
-webkit-transform:translateY(-50%);
-moz-transform:translateY(-50%);
-ms-transform:translateY(-50%);
transform:translateY(-50%);
font-size:0;
margin:0;
}

#main-menu li {
font-size:1rem;
display:inline-block;
margin:0 40px 0 0;
}

#main-menu li a {
font-weight:700;
text-transform:uppercase;
-webkit-transition:color 250ms ease;
-moz-transition:color 250ms ease;
-ms-transition:color 250ms ease;
-o-transition:color 250ms ease;
transition:color 250ms ease;
color:#fff;
text-decoration:none;
display:inline-block;
vertical-align:middle;
position:relative;
padding:20px 0;
}

#main-menu a:hover {
color:#a4a6a4;
}

#container {
max-width:2000px;
height:1000px;
margin:0 auto;
padding:0 20px;
}

#nav{
	max-width: 1500px;
    margin: 40px auto;	
}

.single #container {
background:#fff;
max-width:800px;
margin:0 auto;
padding:20px;
}

.grid-item {
width:100%;
max-width:50%;
background:#FFF;
height: 9rem;
border:10px solid #FFF;
padding:0;
}

.grid-item header {
height:100%;
border:1px solid #DFDFDF;
background:#fff;
-webkit-transition:background 250ms ease;
-moz-transition:background 250ms ease;
-ms-transition:background 250ms ease;
-o-transition:background 250ms ease;
transition:background 250ms ease;
margin:0;
}
.grid-item header:hover {
background:#414141;
}

.grid-item header:hover .grid-title {
color:#fff;
}

.grid-item .grid-title {
z-index:2;
position:relative;
top:50%;
-webkit-transform:translateY(-50%);
-moz-transform:translateY(-50%);
-ms-transform:translateY(-50%);
transform:translateY(-50%);
max-width:80%;
float:right;
width:100%;
line-height:1.3;
font-size:1em;
color:#484848;
text-decoration:none;
margin:0 auto;
padding:0 40px;
text-align:left;
text-transform:uppercase;
overflow:hidden;
}

.grid-item .grid-title a {
line-height:1.3;
font-size:1.5rem;
color:#fff;
}

100% {
-moz-transform:rotate(360deg);
-webkit-transform:rotate(360deg);
transform:rotate(360deg);
}

@keyframes load8 {
0% {
-moz-transform: rotate(0deg);
-webkit-transform: rotate(0deg);
transform: rotate(0deg); 
}
100% {
-moz-transform: rotate(360deg);
-webkit-transform: rotate(360deg);
transform: rotate(360deg); 
} 
}

#infscr-loading {
display:block;
bottom:20px;
right:20px;
z-index:5;
width:2.25rem;
height:2.25rem;
-webkit-box-sizing:border-box;
-moz-box-sizing:border-box;
box-sizing:border-box;
font-size:10px;
position:fixed;
overflow:hidden;
text-indent:-9999em;
border-top:.5em solid rgba(0,0,0,0.1);
border-right:.5em solid rgba(0,0,0,0.1);
border-bottom:.5em solid rgba(0,0,0,0.1);
border-left:.5em solid #e6192b;
-moz-animation:load8 1s infinite linear;
-webkit-animation:load8 1s infinite linear;
animation:load8 1s infinite linear;
-webkit-border-radius:50%;
-moz-border-radius:50%;
-ms-border-radius:50%;
-o-border-radius:50%;
border-radius:50%;
margin:0 auto;
}

.category .title,.page-template .title,.home .title {
font-size:2rem;
background:#fff;
color:#4a4a4a;
font-weight:700;
text-transform:uppercase;
font-family:futura-pt, "Helvetica Neue", Arial;
margin:2px auto;
padding:0 0 20px 37px;
}

.home .title {
margin-left:-20px;
margin-right:-20px;
}

.single h1,.single h2,.single h3 {
font-weight:700;
font-size:2rem;
padding:10px 0;
}

.single .title {
font-weight:700;
text-transform:uppercase;
font-size:2rem;
padding:0;
}

.single #content div.alignnone,.single #content div.aligncenter,.single #content .social-media,.single #content .tags {
width:100%!important;
display:inline-block;
line-height:0;
margin:40px 0;
}

.single #content .social-media{
margin: 50px 0 40px;
}

.single #content div.alignright {
float:right;
margin:15px 0 20px 40px;
}

.single #content div.alignleft {
float:left;
margin:15px 40px 20px 0;
}

.single #content .author {
margin:0;
padding:0;
}

.single .post-date {
float:right;
}

.single #content p .size-large,.single #content p.size-full {
margin:40px 0;
}

.single #content .wp-caption-text {
font-size:12px;
background:#3C3C3C;
color:#fff;
line-height:1.3em;
margin:0;
padding:15px 25px;
}

blockquote {
font-weight:700;
}

p,li {
line-height:1.6;
}

li {
line-height:1.4;
padding-right:20px;
}

p {
padding:10px 0;
}

a {
color:#4a4a4a;
}

.single iframe {
width:100%;
height:400px;
}

.single #content .button i {
font-size:30px;
color:#fff;
}

.single #content .button.home {
text-align:center;
background:#e6192b;
width:auto;
font-weight:700;
text-transform:uppercase;
font-family:futura-pt, "Helvetica Neue", Arial;
color:#fff;
text-decoration:none;
float:left;
padding:30px 22px;
}

.single #content .button:hover {
background:#a4a6a4!important;
-webkit-transition:background 250ms ease;
-moz-transition:background 250ms ease;
-ms-transition:background 250ms ease;
-o-transition:background 250ms ease;
transition:background 250ms ease;
}

.single .the-date {
float:left;
margin-bottom:30px;
width:100%;
}

.news#content {
max-width:1500px;
margin:0 auto 40px;
}

.single .news h1.title {
font-size:2rem;
}

.news .date:before {
width:100%;
height:20px;
padding:20px;
}

.news .date {
text-align:center;
background:#FBFBFB;
color:#5B5B5B;
max-width:18%;
float:left;
position:relative;
width:100%;
height:100%;
margin:0 auto;
padding: 2.2rem 0;
border-right: 1px solid #DFDFDF;
}

.category-news .year,.nouvelles .year {
max-width:1500px;
padding-left:5px;
margin:0 auto;
}

.news .date .day {
font-size:27px;
font-weight:bold;
}

.news .date .month {
font-size:14px;
text-transform:uppercase;
font-weight:bold;
}

.grid-item.fill {
max-width:50%;
height:140px;
float:right;
padding:20px;
}

#content.news > table {
width:100%;
}

#content.news > table > tbody > tr > td {
width:50%;
display:inline-table;
float:left;
margin:20px 0 10px;
}

.single #content .gallery {
margin:30px 0 0;
}

.single .gallery-item {
width:100%!important;
text-align:inherit!important;
font-family:Arial;
line-height:0;
margin:40px 0;
}

.single .gallery-item img {
width:100%;
height:auto;
border:0!important;
}

.single #content .size-large,.single #content .size-full {
width:100%!important;
height:auto;
}

.show {
display:block!important;
}

#main-menu-handle .text-val,#main-menu-handle.icon-close .bar:nth-child(1),.form-wrapper,.grid-item .mask,.news#content .grid-content,#main-footer br,.no-css {
display:none;
}

#main-menu-handle .handle-bars-icon:after,#main-footer .outro:after {
clear:both;
content:"";
display:block;
}

.single h3,.single .news h2,.single .news h1 {
font-size:1.1rem;
}

.grid-item.year{
	max-width: 100%;
	padding:0;
	height: 5.6rem;
}
.grid-item.year h2{
	border-bottom:1px solid #DFDFDF;
    height: 3.2rem;
}

@media (max-width: 1400px) {

.grid-item header, .grid-item section{
margin: 0;
}

.grid-item.fill{
padding:20px 0;	
}
}


@media (max-width: 1200px) {

#main-menu{
display:block;
}

.grid-item{
max-width:50%;
max-height:550px;
height: 11em;
}

.grid-item .grid-title{
	padding: 0 20px;	
}

.grid-item section{
display:none;	
}

/*Mobile menu */

#main-menu-handle {
display:block;
width: 70px;
height: 60px;
background: #e6192b;
-webkit-transition: background 250ms ease;
-moz-transition: background 250ms ease;
-ms-transition: background 250ms ease;
-o-transition: background 250ms ease;
transition: background 250ms ease;
position: absolute;
top: 0;
left: 0;
}

#main-menu-handle .bar {
float: left;
background: #fff;
height: 4px;
width: 100%;
display: block;
margin-bottom: 5px;
}

#main-menu-handle .handle-bars-icon{
top: 50%;
position: relative;
-webkit-transform: translateY(-50%);
-moz-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 0 20px;
display: block;
}

#main-menu ul{
top:inherit;
position: relative;
-webkit-transform:none;
-moz-transform: none;
-ms-transform: none;
transform: none;
}

.grid-title{
font-size:0.9em;	
}

#main-logo img{
max-width:180px;
width:100%;	
}

.single #content div.alignnone, .single #content div.aligncenter{
margin:5px 0;
}

.category .title, .page-template .title, .home .title, .tag .title{
padding: 20px 20px 0 20px;
}

p{
padding:6px 0;
font-size:13px;
}

.single #content .author{
line-height:1;
margin:15px 0;	
}

.single .post-date{
font-size:11px;
margin:5px 0 15px 0;
}

.single .title{
margin:0;
font-size:1.8rem;
}

#container{
margin-top:-4px;
}

#main-header{
height:auto;
width:100%;
margin-bottom:0;
display:inline-block;
border-bottom: 1px solid #FFF;	
line-height: 0;
}

.mobile-menu{
text-align:center;
display:block;
color:#fff;
width: 70px;
height: 60px;
background: #e6192b;
-webkit-transition: background 250ms ease;
-moz-transition: background 250ms ease;
-ms-transition: background 250ms ease;
-o-transition: background 250ms ease;
transition: background 250ms ease;
position: absolute;
cursor:pointer;
}

.mobile-menu:before{
font-size: 30px;
line-height:2em;
}

#main-logo{
position: relative;
padding: 6px 20px 10px 90px;
width:100%;
}

#main-menu{
float:left;
width:100%;
z-index:5;
background:none;
display:none;
}

#main-menu:before{
display:none;	
}

#main-menu ul{
background: #4a4a4a;
-webkit-padding-start: 0px;
}

#main-menu ul{
padding-left: 0;	
}

#main-menu li{
margin:0;
width:100%;
border-bottom:1px solid #565656;
padding-right:0;
}

#main-menu li a{
width:100%;
font-size: 15px;
padding-left: 25px;
}

.news .date {
    padding: 3.2rem 0;

}


}

@media (max-width: 1000px) {

.grid-item{
max-width:100%;	
}

.single .news h1.title, .single .kudos-single h1.title{
margin-bottom:7px;
}	

.single #content div.alignleft, .single #content div.alignright{
margin-top: 13px;
}

.single .the-date{
margin: 15px 0 20px;
font-size: 13px;
}

.grid-item.fill{
display:none;
padding:0;

}

.grid-item.year{
height:70px;
display:block;
}


}

@media (max-width: 700px) {


.home .title{
margin-left:0px;
margin-right:0px;
}	

#content{
margin:5px;
}

.category .title, .page-template .title, .home .title, .tag .title{
padding: 10px 10px 0 10px;
font-size:1.5rem;
}	

#container #content .grid-item{
max-width:100%;
}

.single #content div.alignleft, .single #content div.alignright{
width:100%!important;
}

.single #content h1.title {
font-size: 1.3rem;
}

.single #content h2, 
.single #content h3, 
.single #content h4, 
.single #content h5, 
.single #content h6{
font-size:14px;	
}

.grid-item .grid-title{
font-size:0.7em;
line-height:1.4em;
padding:0 20px;
}

.grid-item{ 
height:100px;
border: 4px solid #fff;
}

.single #content .button.home{
width:100%;
font-size:13px;
}

.single #content .button{
float: left;
margin-top: 15px;
}

#container{
padding:5px;
}

.grid-item.fill{
padding-left:5px;
}

.news .date{
max-width:20%;	
padding:24px 0;
}

.news .date .day{
font-size:22px;	
}
.news .date .month{
font-size:12px;	
}

#content.news > table > tbody > tr > td{
font-size:12px;
}

}

@media (max-width: 500px) {

.grid-item.fill{
height:70px;
margin:0;
padding:0;
}

.grid-item.year{
font-size:0.7em;	
padding:10px 5px;
}

.grid-item{ 
height:70px;
border: 3px solid #fff;
}

.grid-item .grid-title{
font-size:0.6em;
}

.news .date{
padding:15px 0;
}

.news .date .day{
font-size:18px;	
}
.news .date .month{
font-size:10px;	
}

}

/* JS Fix */

.no-js .loading-content,
.no-js .background-mask,
.no-js .social,
.no-js .grid-item section{
display:none;	
}
.no-js #container{
height:auto;	
}

