/* # Flexy Cat Widget 
--------------------------------------------------------------------------------------- */

/* ## Base
--------------------------------------------- */

.flexycat-wrapper:after {
    clear: both;
    content: " ";
    display: table;
}

.flexycat-wrapper {
    margin-left: -2px;
    margin-right: -2px;
    font-size: 0px;
}

.flexycat-image {
    display: inline-block;
    position: relative;
    padding: 0;
    margin: 0 auto;
    font-size: 16px;
    width: 100%;
}

.flexycat-wrapper .flexycat-image a,
.flexycat-wrapper .flexycat-image img {
    display: block;
    width: 100%;
}

/* ## Layouts
--------------------------------------------- */

@media (min-width: 500px) { 
	.flexycat-wrapper.layout-quarters .flexycat-image,
	.flexycat-wrapper.layout-thirds .flexycat-image,
	.flexycat-wrapper.layout-halves .flexycat-image {
	    width: 50%
	}	
	
	.flexycat-wrapper.layout-thirds .flexycat-image:nth-child(3n+3) {
	    width: 100%
	}
}

@media (min-width: 700px) { 
	.flexycat-wrapper.layout-thirds .flexycat-image,
	.flexycat-wrapper.layout-thirds .flexycat-image:nth-child(3n+3) {
	    width: 33.33%
	}	
}

@media (min-width: 900px) { 
	.flexycat-wrapper.layout-quarters .flexycat-image {
	    width: 25%;
	}
}


/* ## Image Title
--------------------------------------------- */

.flexycat-wrapper h3 {
    line-height: normal;
    position: absolute;
    top: 50%;
    text-align: center;
    right: 0;
    left: 0;
    margin: 0;
    transform: translateY(-50%);
    font-size: 14px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

.flexycat-wrapper h3 span {
    background: rgba( 255, 255, 255, .75 );
    box-shadow: 0px 0px 0px 5px rgba(255, 255, 255, 0.4);
    display: inline-block;
    padding: 0 10px;
    line-height: 40px;
}

@media (min-width: 800px) { 
	.flexycat-wrapper h3 {
	    letter-spacing: 5px;
	    font-size: 16px;
	}

	.flexycat-wrapper h3 span {
	    padding: 0 10px 0 15px
	}
}

.flexycat-wrapper a:hover {
    color: inherit
}

.flexycat-wrapper:hover > .flexycat-image {
    opacity: .5;
    transition: opacity .5s linear;
}

.flexycat-wrapper:hover > .flexycat-image:hover {
    opacity: 1
}

.flexycat-wrapper .flexycat-image a:hover img {
    opacity: 1
}
