/*
 *	Plugin Name: WP Tiles WUD
*/

/* Container (Categorie box) */
.wp-tiles-wud-container{
	width: 100%;
    overflow: hidden;
	font-size: 100%; 
}

/* Wrapper (Tile) */
.wp-tiles-wud-wrapper{
	float:left;
	color: #FFFFFF;
	overflow: hidden;
	position: relative;	
}

.wp-tiles-wud-wrapper-box{
	float:left;
	color: #FFFFFF;
	overflow: hidden;
	position: relative;	
	box-shadow: 2px 2px 6px #000000;
}

/* Responsive at 920px */
@media screen and (max-width: 920px) {
.wp-tiles-wud-wrapper{
	width: 100% !important;
	height: 0;	
	padding-bottom: 100% !important;
	margin: 0.5%;
}
.wp-tiles-wud-wrapper-box{
	width: 100% !important;
	height: 0;	
	padding-bottom: 100% !important;
	margin: 0.5%;
}
.wud-h2 {
	font-size:220% !important;
}
.wud-excerpt-2 {
	font-size:140% !important;
	height: 40% !important;
	max-height: 40% !important;	
}
.wud-excerpt-1 {
	font-size:140% !important;
	height: 40% !important;
	max-height: 40% !important;	
}
.wud-excerpt {
	font-size:140% !important;
	height: 40% !important;
	max-height: 40% !important;	
}
}


/* Background image */
.wp-tiles-wud-image{
	position: absolute;
	background-position: center;
	height:100%; width:100%; 
	background-size: cover;	
	transition: all 1s ease;
   -moz-transition: all 1s ease;
   -ms-transition: all 1s ease;
   -webkit-transition: all 1s ease;
   -o-transition: all 1s ease;
}
  
.wp-tiles-wud-wrapper:hover > .wp-tiles-wud-image{ 
    -moz-transform: scale(1.09);
    -ms-transform: scale(1.09);
    -webkit-transform: scale(1.09);
    transform: scale(1.09);	
	filter:gray alpha(opacity=60);
	-webkit-filter:grayscale(60%);
	-webkit-backface-visibility:hidden;
	transform-origin: top left;
}

/* Excerpt = 1 (big tile) */
.wud-excerpt-1 {
	padding: 0 4px 0 4px;
	background-color: rgba(0, 0, 0, 0.701961);
	color: #DADADA;
	font-size: 18px; font-size: 1vw;
	position: absolute; 
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: pre-line;	
	width:100%;
	bottom: 0;
	max-height: 0;
	transition: all 1s ease;
   -moz-transition: all 1s ease;
   -ms-transition: all 1s ease;
   -webkit-transition: all 1s ease;
   -o-transition: all 1s ease;	
}

.wp-tiles-wud-wrapper-box:hover .wud-excerpt-1{
	height: 40% !important;
	max-height: 40% !important;
	transition-property: all !important;
	transition-duration: .8s !important;
	transition-timing-function: cubic-bezier(0, 0, 0, 0.701961) !important;
}	

.wp-tiles-wud-wrapper:hover .wud-excerpt-1{
	height: 40% !important;
	max-height: 40% !important;
	transition-property: all !important;
	transition-duration: .8s !important;
	transition-timing-function: cubic-bezier(0, 0, 0, 0.701961) !important;
}

/* Excerpt = 0 */
.wud-excerpt {
	padding: 0 4px 0 4px;
	background-color: rgba(0, 0, 0, 0.701961);
	color: #DADADA;
	font-size: 16px; font-size: 0.8vw;
	position: absolute;
	display: block;
	overflow: hidden;
	white-space: pre-line;
	text-overflow: ellipsis;
	width:100%;
	bottom: 0;
	max-height: 0;
	transition: all 1s ease;
   -moz-transition: all 1s ease;
   -ms-transition: all 1s ease;
   -webkit-transition: all 1s ease;
   -o-transition: all 1s ease;	
}

.wp-tiles-wud-wrapper-box:hover .wud-excerpt{
	height: 50% !important;
	max-height: 50% !important;
	transition-property: all !important;
	transition-duration: .4s !important;
	transition-timing-function: cubic-bezier(0, 0, 0, 0.701961) !important;
}	

.wp-tiles-wud-wrapper:hover .wud-excerpt{
	height: 50% !important;
	max-height: 50% !important;
	transition-property: all !important;
	transition-duration: .4s !important;
	transition-timing-function: cubic-bezier(0, 0, 0, 0.701961) !important;
}


/* Excerpt = 2 */
.wud-excerpt-2 {
	padding: 0 4px 0 4px;
	background-color: rgba(0, 0, 0, 0.701961);
	color: #DADADA;
	font-size: 16px; font-size: 0.8vw;
	position: absolute;
	display: block;
	overflow: hidden;
	white-space: pre-line;
	text-overflow: ellipsis;
	width:100%;
	bottom: 0;
	height: 50% !important;
	max-height: 50% !important;	
}

/* Excerpt = 1 (big tile) */
.wud-excerpt-2t {
	padding: 0 4px 0 4px;
	background-color: rgba(0, 0, 0, 0.701961);
	color: #DADADA;
	font-size: 18px; font-size: 1vw;
	position: absolute; 
	display: block;
	overflow: hidden;
	white-space: pre-line;	
	text-overflow: ellipsis;
	width:100%;
	bottom: 0;
	height: 50% !important;
	max-height: 50% !important;		
}

/* Category title */
.wud-h1 {
    font-weight: bold;
	width:100%;
    margin-bottom: 5px;
	padding-left: 20px;
	overflow: hidden;
	text-overflow: ellipsis;
    white-space: nowrap;
}

/* Post title standard*/
.wud-h2 {
	padding: 0 4px 0 4px;
	background-color: rgba(0, 0, 0, 0.701961);
	color: #DADADA;
	height: 16%;
	overflow: hidden;
	text-overflow: ellipsis;
    white-space: nowrap;
	position: absolute; 
	width:100%;
}

#wud-h2{
	bottom: 0px;
}

.wp-tiles-wud-wrapper:hover #wud-h2{
	display: none;
	visibility: hidden;
}

.wp-tiles-wud-wrapper-box:hover #wud-h2{
	display: none;
	visibility: hidden;
}


/* Read more space */
.wud-bottom {
	width:100%;
	overflow: hidden;
	text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 5px;
}

/* Read more button (+) */
.wud-h3 {
	font-weight: bold;
	float:right;
	margin:10px;
	padding: 4px 16px 4px 16px;
	overflow: hidden;
	text-overflow: ellipsis;
    white-space: nowrap;
}

/* Read more button (txt) */
.wud-h3-txt {
	font-weight: bold;
	float:right;
	margin:10px;
	padding: 4px 16px 4px 16px;
	overflow: hidden;
	text-overflow: ellipsis;
    white-space: nowrap;
}

.wud-h3:hover{
	background-color: #68737D;
}
