/* MAINLY text effects, but not exclusively. */
/* Contents are in sections: Text animations, @Media., Card effects, Carousel effects  */
@keyframes fadeAndScale {
    from {
        opacity: 0;
        transform: scale(1.2, 0.8);
    }
    to {	
        opacity: 1;
        transform: scale(1, 1);
    }
}
.TextFadeIn {
            -webkit-animation-name: fadeAndScale;
            -webkit-animation-fill-mode: both;			
            -webkit-animation-duration: 3s;
            animation-name: fadeAndScale;
            animation-duration: 3s;
            animation-fill-mode: both;
            /*-webkit-text-stroke: 1px black;*/
            color: white;            
            text-shadow:=
            1px 1px 0 #000,
            -1px -1px 0 #000,  
            1px -1px 0 #000,
            -1px 1px 0 #000,
            1px 1px 0 #000;
            
}
.TextFadeInPlain {
            -webkit-animation-name: fadeAndScale;
            -webkit-animation-fill-mode: both;			
            -webkit-animation-duration: 3s;
            animation-name: fadeAndScale;
            animation-duration: 3s;
            animation-fill-mode: both;
           
}
/* Tweaks to make stuff dis/appear depending on screensize */
.HideWhenSmall { display:block; }
/*.HideWhenMid { display:none; }*/
.HideWhenLarge { display:none; }


@media screen and (max-width: 979px) { /*<=767*/
  .HideWhenSmall  { display: none; }
}  
/*
@media screen and (max-width: 767px) {
  .HideWhenMid  { display: block; }
}  
*/
@media screen and (max-width: 969px) {
  .HideWhenLarge  { display: block; }
}  
/*Our version of bootstrap only has @Media for one circumstance.  Replicate that. */
@media only screen and (max-width:767px){.portfolio-box-caption{opacity: 1 !important}}

/* ================== Card layout =================================*/

/* As per layout 7 here: */
/* http://materialdesignblog.com/10-material-design-cards-for-web-in-css-html/ */
.wrapper {
    max-width: 400px;
    margin: 2em auto;
    padding-left: 1em;
    padding-right: 1em;
}

/**/
 * Helpers
 *
.border-tlr-radius { 
    border-top-left-radius: 2px;
    border-top-right-radius: 2px; 
}

.text-center { text-align: center; }

.radius { border-radius: 2px; }

.padding-tb { padding-top: 1.6rem; padding-bottom: 1.6rem;}

.shadowDepth0 { box-shadow: 0 1px 3px rgba(0,0,0, 0.12); }

.shadowDepth1 {
   box-shadow: 
        0 1px 3px rgba(0,0,0, 0.12),
        0 1px 2px rgba(0,0,0, 0.24);      
}


/**/
 * Card Styles
 *
*,
*:after,
*:before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.card {
    background-color:#FAFAFA;
    margin-bottom: 1.6rem;
}

.card__padding {
    padding: 1.6rem;
}
 
.card__image {
    min-height: 100px;
    background-color: #eee;
}
    .card__image img {
        width: 100%;
        max-width: 100%;
        display: block;
    }

.card__content {
    position: relative;
	background-color:#FAFAFA;
	/*border: 1px solid #242222;*/
	min-height: 32rem;
	max-height: 32rem;
}

/* card meta */
.card__meta time {
    font-size: 1.5rem;
    color: #bbb;
    margin-left: 0.8rem;
}

/* card article */
.card__article a {
	background-color: #FAFAFA;
    text-decoration: none;
    color: #444;
    transition: all 0.5s ease;
}
    .card__article a:hover {
        color: #2980b9;
    }

/* card action */
.card__action {
    overflow: hidden;
    padding-right: 1.6rem;
    padding-left: 1.6rem;
    padding-bottom: 1.6rem;
}
     
.card__author {}

    .card__author img,
    .card__author-content {
        display: inline-block;
        vertical-align: middle;
    }

    .card__author img{
        border-radius: 50%;
        margin-right: 0.6em;
    }

.card__share {
    float: right;
    position: relative;
    margin-top: -42px;
}

.card__social {
    position: absolute;
    top: 0;
    right: 0;
    visibility: hidden;
    width: 160px;
    transform: translateZ(0);
    transform: translateX(0px);
    transition: transform 0.35s ease;
}
    .card__social--active {
        visibility: visible;
        /*z-index: 3;*/
        transform: translateZ(0);
        transform: translateX(-48px);
        transition: transform 0.35s ease;
    }

.share-toggle {
    z-index: 2;
}
.share-toggle:before {
    content: "\f1e0";
    font-family: 'FontAwesome';
    color: #3498db;
}
    .share-toggle.share-expanded:before {
        content: "\f00d";
    }

.share-icon {
    display: inline-block;
    width: 48px;
    height: 48px;
    line-height: 48px;
    text-align: center;
    border-radius: 50%;
    background-color: #fff;
    transition: all 0.3s ease;
    outline: 0;

    box-shadow: 
            0 2px 4px rgba(0,0,0, 0.12),
            0 2px 4px rgba(0,0,0, 0.24);
}
    .share-icon:hover,
    .share-icon:focus {
        box-shadow: 
            0 3px 6px rgba(0,0,0, 0.12),
            0 3px 6px rgba(0,0,0, 0.24);

        -webkit-transform: scale(1.2);
        -moz-transform: scale(1.2);
        -ms-transform: scale(1.2);
        -o-transform: scale(1.2);
        transform: scale(1.2);
    }

.facebook {
    background-color: #3b5998; 
}
.twitter {
    background-color: #00abe3; 
}
.googleplus {
    background-color: #d3492c;
}

.facebook,
.twitter,
.googleplus {
    color: #fff;
}

    .facebook:hover,
    .twitter:hover,
    .googleplus:hover {
        color: #eee;
    }
	
/* ================== Carousel Changes =================================*/

/* Get rid of the default gradated effect. */
.carousel-control { background: none !important; filter: none !important; progid:none !important; }	