html {
    box-sizing: border-box;
}
*,
*:before,
*:after {
    box-sizing: inherit;
}
.cf:before,
.cf:after {
    content: " ";
    display: table;
}
.cf:after {
    clear: both;
}
body {
    margin: 0;
    background-color: #f5f7fa;
    font-family: "Roboto", sans-serif;
}

h1{
    text-align: center;
}
p#album-description{
    text-align: center;
}

#loader{
    height: 100px;
}
#loader p{
    text-align: center;
    color: rgb(224, 101, 29);
}
#loader img{
    display: block;
    margin: auto;
}

figure {
    margin: 0;
    
	position: relative;
}

figure, .photo-infos{
	padding: 10px;
}
/*figure a*/
figure>a {
    display: block;
}
header {
    background-color: #196e76;
    text-align: center;
}


.gallery-content {
    max-width: 840px;
    width: 100%;
    margin-top: 30px;
    margin-right: auto;
    margin-left: auto;
}

.gallery-header{
    padding-left: 10px;
    padding-right: 10px;
}

.gallery {
    padding: 10px 0 40px 0;
}
.gallery:first-child {
    padding-top: 0;
}

.gallery-content {
    padding: 10px;
}

/*
.gallery>figure>a {
    border: 5px solid #fff;
}
*/



.photo-infos{
	border-color: transparent;
}



/*
.center-cropped {
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}
*/

.center-cropped {
    position: relative;
    overflow: hidden;
}

.center-cropped img {
    position: absolute;
    left: 50%;
    top: 50%;
    height: 135%;
    width: auto;
    -webkit-transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
}


.center-cropped.portrait img{
    width: 102%;
    height: auto;
}


.hover-pointer-cursor:hover {
  cursor:pointer;
 }
 
.btn-facebook {
    color: #fff;
    background-color: #3b5998;
    border-color: rgba(0,0,0,0.2);
}
.btn-facebook:active{
    color: #fff;
    background-color: #2d4373;
    border-color: rgba(0,0,0,0.2);
}
.btn-facebook:focus{
    color: #fff;
    background-color: #2d4373;
    border-color: rgba(0,0,0,0.2);
}
.btn-facebook:hover {
    color: #fff;
    background-color: #2d4373;
    border-color: rgba(0,0,0,0.2);
}


.photo-infos{
	pointer-events: none;
}

.already-has-a-clique-event{
	pointer-events: auto;
}


.photo-infos a.photo-infos-like, a.photo-infos-like:focus {
    color:#f5f7fa;
    text-decoration: none;
}

.photo-infos a.photo-infos-like-hover:active, a.photo-infos-like-hover:hover {
	opacity:0.7;
}


.photo-infos p.photo-infos-name{
	margin-bottom: 0px;
	color: #f5f7fa;
}


/*Phones*/
@media screen and (max-width: 767px) {
    .gallery-header{
        margin-bottom: 40px;
    }
	#gallery-header-links{
		margin-top:50px;
	}

    .album-link{
        margin-top: 30px;
    }
	
    .gallery-content {
        max-width: 500px;
    }

    .gallery figure {
        float: left;
        width: 100%;
    }

    .center-cropped {
        /*
        width:500-20-20=460
        height:460*0.55=253
        */
        /*max-width: 460px;*/
        height: 253px;
    }
    

}


/*Tablets*/
@media (min-width: 768px) and (max-width: 991px) {
    .gallery-header{
        margin-bottom: 40px;
    }
	#gallery-header-links{
		margin-top:50px;
	}
	/*
    .album-link{
        margin-top: 50px;
    }
	*/
    .gallery-content {
        max-width: 750px;
    }

    .gallery figure {
        float: left;
        width: 50%;
    }

    .center-cropped {
        /*
        demo-content padding : 10px -> 2x10px -> 20px
        max-width by figure : (max-width demo-content - demo-content padding) / nb photos
        max-width by figure : (750 - 20)/2 = 365px
        by a : 365px-20px(2*padding figure) = 345px
        height : 345*0.55=189.75
        */
        /*max-width: 345px;*/
        height: 190px;
    }


}

/*Desktops*/
@media (min-width: 992px) {
    .gallery-header{
        margin-bottom: 0px;
    }
	#gallery-header-links{
		margin-top:40px;
	}
	/*
    .album-link{
        margin-top: 40px;
    }
	*/
    /*
    max-width by figure : (840 - 20)/3 = 273.33px
    by a : 273.33px-20px(2*padding figure) = 253.33px
    height : 253.33*0.55=139.33px
    */
    .gallery figure {
        float: left;
        width: 33.33333333%;
    }

    .center-cropped {
        /*max-width: 253.33px;*/
        height: 140px;
    }


}






/*Photo infos*/
.photo-infos{
	position: absolute;
	text-align: center;
	left: 0px;
    width: 100%;
	
	border-top-width: 0px;
    padding-top: 0px;
}

.photo-infos>div.photo-infos-container{
	cursor: pointer;
	/*
	line-height: normal;
    margin-bottom: -1px;
	*/
}


/*Phones*/
@media screen and (max-width: 767px) {
    /*center*/
    .photo-infos{
        bottom: 0px;
        font-size: 30px;
    }
}


/*Tablets*/
@media (min-width: 768px) and (max-width: 991px) {
    .photo-infos{
        bottom: 0px;
        font-size: 22px;
    }
}

/*Desktops*/
@media (min-width: 992px) {
    .photo-infos{
        bottom: 0px;
        font-size: 16px;
    }
}
/*END Photo infos*/
