 	/*
 Theme Name:   FilmLibre
 Theme URI:    www.re-mi.eu
 Description:  FilmLibre is a child-theme of Libre theme for the RE MI project
 Author:       Pierre Signolat
 Template:     libre
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
*/


/********* GENERAL *********/
body, p, h3, h4,h5 {
	font-family: museo_sans;
	font-weight: 300;
}

h1,h2 {
	font-family: museo_slab;
	font-weight: 300;
}

.caps {
	text-transform: uppercase ;
}

.entry-title {
	-webkit-hyphens: manual;
   -moz-hyphens: manual;
	hyphens: manual;
}

main {
    position: relative;
}

b, strong {
    font-weight: 500;
}

.dashicons, .dashicons-before::before {
	width:auto;
}

.site {
    margin-top:1em;
}


.aside a, .site-footer a {
    border-bottom: 1px solid;
}


.aside a:hover, .aside a:focus, .aside a:active, .site-footer a:hover, .site-footer a:focus, .site-footer a:active {
    border-width: 3px;
}

a.no-line {
    border: 0 none;
}

/******* HEADER ***********/

#masthead {
	background: transparent none;
}

.sticking .site-header {
    padding-bottom: 0;
    padding-top: 0;
}

.headholder {
	background:#ffffff;
	padding-bottom: 0.4375em;
    padding-top: 0.4375em;
}

.sticking img.custom-header {
	max-width:150px;
	height:auto;

}

img.custom-header {
	height: auto;
	-webkit-transition: max-height 1s, max-width 1s; /* Safari */
    transition:  max-height 1s, max-width 1s;
    margin-bottom:5px;
    margin-left:0px;
}

/********* MENU **************/

.main-navigation {
	font-size:1.5em;
    vertical-align: bottom;
}

.main-navigation ul.sub-menu {
    background: white none repeat scroll 0 0;
    float: none;
    left: 0;
    margin-left: 0;
    padding: 0 0;
    position: relative;
    text-align: left;
    top: 0;
    width:auto;
    z-index: 99999;
    display:inline-block;
}

.main-navigation ul.sub-menu a,.main-navigation ul > li.menu-item-has-children > a, .main-navigation ul > li.page_item_has_children > a {
	display: inline-block;
}

.main-navigation ul > li.menu-item-has-children, .main-navigation ul > li.page_item_has_children {
    margin-right: 0em;
}

.main-navigation li a {
	margin-right:0.2em;
	border-color:#000000;
	-webkit-transition: filter 1s, color 0.5s; /* Safari */
    transition: filter 1s, color 0.5s;
}

.main-navigation li:nth-of-type(1) a:hover{
	color:rgb(226,0,26);
}

.main-navigation li:nth-of-type(2) a:hover{
	color:rgb(255,237,0);
}

.main-navigation li:nth-of-type(3) a:hover{
	color:rgb(151,191,13);
}

.main-navigation li:nth-of-type(4) a:hover{
	color:rgb(132,208,240);
}

.main-navigation li:nth-of-type(5) a:hover{
	color:rgb(23,41,131);
}

.main-navigation ul li::after {
	content: "/";
	color: #cccccc;
}

.main-navigation ul > li.menu-item-has-children > a::after, .main-navigation ul > li.page_item_has_children > a::after {
    content: none;
    display: inline-block;
    font-size: 1rem;
    line-height: 1em;
    margin-top: 0;
    position: relative;
    right: 0;
    top:0;
    padding-left:0.5em;
    transform: none;
	color: #cccccc;
}

.main-navigation li {
    margin: 0;
}

.main-navigation ul ul li {
    margin: 0;
    padding:0;
    position: relative;
    width: auto;
}

/* Header Baseline */

#header_baseline div {
	display: inline-block;
	color: #cccccc;
	font-size: 0.8em;
	font-weight: 500;
}

/******** FOOTER ***********/

.credits-link {
	text-align:left;
}

.site-info {

}


/******* HOME **************/

.home main {
	text-align:center;
}

.home article {
	background-size: cover;
}

article {
	position:relative;
#	min-height: 300px;
	overflow: hidden;
	text-align: left;
}

.image-display {
	z-index: -888;
	position:absolute;
	top: 0;
	left: 0;
	-webkit-transition: left 0.8s, top 0.5s; /* Safari */
    transition: left 0.8s, top 0.5s;
    overflow:hidden;
    width: 100%;
    height: 100%;
}

.image-display img{
	z-index: -999;
	min-width:100%;
	max-width:none;
	width:auto;
	height:auto;
}

.page-child .image-display img {
	min-width: 30%;
}

article:hover .image-display img {
	-webkit-filter: grayscale(0%);
	-moz-filter: grayscale(0%);
	-ms-filter: grayscale(0%);
	-o-filter: grayscale(0%);
	filter: grayscale(0%);
	filter: none; /* IE 6-9 */
}


.child .image-display {
	position: static;
	max-width:80%;
	height: auto;
	margin:auto;
	-webkit-transition: max-width 1s linear, max-height 1s linear;
	transition: max-width 1s linear, max-height 1s linear;
}

.child .image-display img {
	width:100%;
}












.child:hover .image-display {
	max-width: 33%;
	max-height: auto;
}

.child .text-display .entry-header {
	display:none;
}

.child .text-display {
#	opacity: 0;
#	-webkit-transition: opacity 1s;
#	transition: opacity 1s;
#	margin-top: 150px;


	max-height:0px;
	-webkit-transition: max-height 1s linear;
	transition: max-height 1s linear;
	padding-top:0px;
	padding-bottom:0px;

}

.child:hover .text-display {
	opacity:1;
	max-height:1000px;
	background-color:rgba(255,255,255,0.95);
}

.color-layer {
	width: 100%;
	height: 100%;
	margin: 5% 0;
#	background-color:rgba(255,0,255,0.8);
#	transition:background-color 1s;
	position: absolute;
	line-height: 0px;
	background-repeat: no-repeat;
}

.home article.page .entry-header {
	width: 100%;
#	margin-bottom:2em;
}


.home article.has-post-thumbnail, .home article.has-post-thumbnail h2,.home article.has-post-thumbnail a {
#	color:#eee;
}

.home article.has-post-thumbnail.child{
	color:#000000;
}

article:hover .color-layer, article:hover .text-display h2, article:hover .text-display a,
.image-display:hover .text-display, .text-display:hover,
article:nth-of-type(2) .text-display:hover, article:nth-of-type(3) .text-display:hover, article:nth-of-type(4) .text-display:hover  {
	color:#000;
}

.text-display {
	width: 100%;
	z-index: 1;
	padding: 5% 5% 0;
	margin : 0px 0;
	overflow:hidden;
	position:relative;

}

.home .text-layer {
	position: absolute;
	z-index: -1;
	left: 0;
    top: 25%;
}

.home article:hover .text-layer, .home article:nth-of-type(4):hover .text-layer, .home article:nth-of-type(3):hover .text-layer, .home article:nth-of-type(2):hover .text-layer  {
	top: 5%;
	left: 0;
}

article.child {
	width: 30%;
	display: inline-block;
	vertical-align:top;
}

article.child.post-80{
	float: left;
}

article.child.post-82 {
/*	margin-left:4.5%;
	margin-right: 4.5%;
	*/
	margin:auto;
}

article.child.post-84{
	float: right;
}


article.child .entry-content, article.child .entry-header {
	width: 100%;
}

article.child .text-display {
	width:auto;
}

.time-sep {
	font-weight: 500;
}

.rel-events, .rel-events.entry-content {
	font-size: 0.8em;
	width: 100%;
	padding: 0 5% 0.5em;
	background: rgba(255,255,255,0.5);
	position:relative;
}

.rel-events li {
	list-style-type: none;
}

.rel-events li:before {
	content: ">";
	position:absolute;
	left:3%;
}

.home .text-display-link {
	position:absolute;
	width:100%;
	height:100%;
	top:0;
	left: 0;
}

.home article .more-link {
	height:1.6em;
	padding-top:1.5em;
	overflow:hidden;
	display:inline-block;
	-webkit-transition: padding-top 1s linear;
	transition: padding-top 1s linear;
}

.home article:hover .more-link, .home article:focus .more-link {
	padding-top:0;
}

/*Parallax */
.bg {
  background: url('./images/LayerBlue80.png') no-repeat;
  position: fixed;
  width: 100%;
  height: 300%;
  bottom:0;
  left:0;
  z-index: -1;
}



/********* SINGLE *************/

.singular .site-main {
    margin: 0 0 0 0;
}

.singular .entry-content {

}

.singular .entry-header {
	position:relative;
}

.entry-header .image-display {
	height:auto;
	position: relative;
	min-height:150px;
}

.entry-header .text-display {
	position: absolute;
	width: 100%;
	bottom: 0px;
}

.type-action .entry-header .text-display {
	position:relative;
}


.singular ul.rel-events {
	border-bottom: thin solid #cccccc;
	padding-bottom: 1em;
	margin-bottom: 2em;
}

.singular .rel-events li {
	margin: 0.5em 0 0.5em 0;
}

.singular .rel-events li:before {
	left:0;
}

.singular.aside {
	border-top:2px;
}

.aside img {
	max-height: 250px;
	width: auto;
}

/******* ARCHIVE **************/

.calendar-header {
	background-color:rgba(255,237,0,0.8);
	z-index: 9999;
}

.calendar-header h2 {
    display: inline-block;
    margin: 0;
    width: auto;
}

.calendar-timeline {
	display: inline-block;
	float: right;
	top: 0;
	right: 0;
	font-size: 0.8em;
	width: 80px;
	line-height: 1.4em;
}

.arrfuture {
	float:left;
}

.arrpast {
	float: right;
}

body .anchor {
	height: 120px;
	position: relative;
	top:-120px;
}

body.archive.admin-bar {
	height: 80px;
	top:-80px;

}

.post-edit-link {
	text-align: right;
	display:inline-block;
	float:right;
	font-size: 0.7em;
}

.related span, .entry-meta span{
	display:block;
}

.month {
	text-transform: capitalize;
	text-align: right;
}

.month::before {
    border-bottom: 1px solid;
    content: "";
    display: block;
    margin-top: 0;
    width: 75%;
    text-align: right;
    position: absolute;
    right: 0px;
}

body.archive .text-display {
	padding: 2em;
}

body.archive .entry-title {
	font-size: 1.3em;
	line-height: 1.2em;
}

body.archive .entry-content {
	margin-bottom:1em;
}

.archive .entry-content.head {
	margin-bottom:0;
}

body.archive .entry-meta, body.archive .entry-content p, {
	line-height: 1.2em;
}

body.archive .entry-content .related {
 	line-height: 1.5em;
 }

/****** CALENDAR ***************/

.thumbnail {
	position: static;
#	height: 100%;
	width: 100%;
#	right:70%;
#	z-index: -999;
	-webkit-transition: right 0.5s; /* Safari */
    transition: right 0.5s;
    float:none;
#    max-height: 30vh;
    overflow: hidden;
}

.thumbnail img {
	min-width: 100%;
	width: 100%;
	min-height: 100%;
	max-width: none;
}

.post-type-archive-action .entry-header {
#	width: 15%;
	text-align: center;
}

.post-type-archive-action .entry-content {
	width: 100%;
	float: none;
}

.post-type-archive-action .date {
	background-color:rgba(255,255,255,0.95);
	padding-right: 0.5em;
	display:inline-block;
	float: left;
	margin-right:0.5em;
	border-right: thin #cccccc solid ;
}

.date h1, .date h3, .date {
	line-height: 1.2em;
	margin-bottom:0px;
}

.related {
	font-size: 0.8em;
}

/******** FORMS ***************/


input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="tel"]{
	background-color:rgb(250,250,250);
	padding: 0;
	font-size: 0.8rem;
	margin-bottom: 2px;
}


/****** MEDIA QUERIES ************/

@media screen and ( min-width: 40em ) {
	.post-type-archive-action .entry-content {
	    width: 68%;
	    float: right;
	}

	.thumbnail {
		position: absolute;
		float: left;
		width: 30%;
#		height: 100%;
	}

	.thumbnail img {
		height: 100%;
		width:auto;
	}

	.aside img {
		width: 100%;
		height: auto;
		max-height: none;
	}

}


@media screen and ( min-width: 55em ) {
	.singular .entry-content {
		float:left;
		margin: 0 10% 0 0;
		width: 60%;
	}

	.singular .aside {
		float: right;
		width:30%;
	}

	.aside img {

	}



}

@media screen and ( min-width: 70em ) {
	.thumbnail img {
		width: 100%;
	}

}

@media screen and ( min-width: 80em ) {

}
