
/**************/
/*** LAYOUT ***/
/**************/

/* Feed container */
#cff {
  float: left;
  width: 100%;
  margin: 0 auto;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;  
}

/* Individual post item */
#cff .cff-item{
  float: left;
  width: 100%;
  clear: both;
  padding: 20px 0 15px 0;
  border-bottom: 1px solid #ddd;
}
#cff .cff-item:first-child{
  padding-top: 0;
}


/******************/
/*** TYPOGRAPHY ***/
/******************/

/* Links */
#cff a {
  text-decoration:underline;
}

/* Post titles and body text */
#cff h3, #cff h4, #cff h5, #cff h6, #cff p{
  float: left;
  clear: both;
  padding: 0;
  margin: 5px 0;
  line-height: 1.4;
  white-space: pre;
  white-space: pre-wrap;
  white-space: pre-line;
  white-space: -pre-wrap;
  white-space: -o-pre-wrap;
  white-space: -moz-pre-wrap;
  white-space: -hp-pre-wrap;
  word-wrap: break-word;
}

/* Date */
#cff .cff-date{
  float: left;
  width: 100%;
  font-size: 11px;
}


/************/
/***AUTHOR***/
/************/
#cff .cff-author{
  float: left;
  clear: both;
  display: block;
  margin-bottom: 15px;
}
#cff .cff-author img{
  float: left;
  margin-right: 15px;
}
#cff .cff-author p{
  float: left;
  clear: none;
  margin: 0;
  padding-top: 15px;
  font-weight: bold;
}
#cff .cff-author a{
  text-decoration: none;
}


/*************/
/*** MEDIA ***/
/*************/

/*Content wraper*/
#cff .cff-text-wrapper{
  float: right;
  width: 77%;
}
#cff .break-word{
  word-break: break-all;
}

/*** PHOTOS ***/
#cff .cff-photo{
  max-width: 100%;
  float: left;
  display: block;
}
#cff .cff-photo img{
  max-width: 100%;
  height: auto;
}


/*** VIDEO ***/

/* Embedded videos */
#cff iframe{
  float: left;
  clear: both;
  margin: 5px 0;
  max-width: 100% !important;
}

/* Link to an external video - Contains screenshot of video and play button */
#cff .cff-vidLink{
  float: left;
  clear: both;
  position: relative;
  width: 100%;
  display: -moz-inline-stack;
  display: inline-block;
  vertical-align: top;
  zoom: 1;
  *display: inline;
}

/* Video screenshot/poster image */
#cff .cff-vidLink .poster{
  width: 100%;
  height: auto;
}

/* Video play button */
#cff .cff-playbtn{
  position: absolute;
  top: 42.5%;
  left: 45%;
  background: #000;
  background: rgba(0,0,0,0.7);
  width: 10%;
  height: 15%;
  -moz-border-radius: 8px;
  -webkit-border-radius: 8px;
  border-radius: 8px;
}

/* Arrow within play button */
#cff .cff-playbtn img{
  display: block;
  position: absolute;
  top: 25%;
  left: 28%;
  width: 50%;
  height: 50%;
}

/* Play button hover state */
#cff .cff-vidLink:hover .cff-playbtn,
#cff .cff-vidLink:focus .cff-playbtn{
  background: #000;
}

/* Link */
/*Link image*/
#cff .link{
  float: left;
  clear: none;
  max-width: 20%;
  margin-top: 10px;
}
#cff .link{
  max-width: 100%;
}
/*Link text*/
#cff .text-link{
  float: left;
  clear: none;
  width: 72%;
  padding: 5px 0 10px 0;
}
#cff .link-item .link{
  margin-right: 3%;
}

/* Event */
#cff .details{
  float: left;
  clear: both;
  width: 100%;
  padding: 15px 0 10px 0;
}
#cff .details h5{
  margin: 0 0 5px 0;
  font-size: 16px;
}
#cff .details p{
  font-size: 14px;
}
#cff .details .info{
  padding: 10px 0 0 0;
  line-height: 1.2;
}
#cff .details .where,
#cff .details .when{
  font-weight: bold;
}


/*****************/
/*** POST META ***/
/*****************/

/* Meta container */
#cff .meta-wrap{
  float: left;
  width: 100%;
}
#cff .cff-meta{
  float: left;
  clear: both;
  list-style-type: none;
  padding: 10px 0 5px 0;
  margin: 0;
}

/* Meta list items (likes, comments, shares) */
#cff .cff-meta li{
  float: left;
  display: block;
  list-style-type: none;
  margin: 0 10px 0 0;
  padding: 0;
  font-size: 11px;
  line-height: 13px;
}

/* Icons */
#cff .cff-meta li span{
  display: block;
  float: left;
  width: 13px;
  height: 13px;
  margin-right: 5px;
  text-indent: -9999px;
  background: url('../img/icons.png') no-repeat;
}

/*Light icons*/
/* Comments */
#cff .cff-meta li.comments span{
  background-position: 0 0;
}
/* Likes */
#cff .cff-meta li.likes span{
  background-position: 0 -16px;
}
/* Shares */
#cff .cff-meta li.shares span{
  background-position: 0 -33px;
}

/*Dark icons*/
/* Comments */
#cff .cff-meta.dark li.comments span{
  background-position: -15px 0;
}
/* Likes */
#cff .cff-meta.dark li.likes span{
  background-position: -15px -16px;
}
/* Shares */
#cff .cff-meta.dark li.shares span{
  background-position: -15px -33px;
}

/* Display comments */
#cff .view-comments{
  display: block;
  float: left;
  clear: both;
  margin: 5px 12px 5px 0;
  padding: 0 5px 5px 10px;
  background: #eee;
}
#cff .view-comments:hover,
#cff .view-comments:focus{
  background: #ddd;
}
#cff .comments-box{
  display: none;
  float: left;
  clear: both;
  margin: 0;
  padding: 10px 15px;
  background: #eee;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;  
}
#cff .comments-box p{
  font-size: 12px;
}
#cff .comments-box .name{
  padding: 0;
  margin-right: 10px;
}
#cff .comments-box .time{
  font-size: 12px;
  margin-left: 10px;
}
#cff .comments-box .time{
  font-size: 11px;
  margin-left: 0;
  display: block;
  font-style: italic;
}

/* View on Facebook / View Link text */
#cff .cff-viewpost{
  float: right;
  clear: none;
  padding-top: 12px;
  font-size: 11px;
}

/* Like box */
#cff .cff-likebox iframe{
  margin: 0;
}
#cff .cff-likebox{
  float: left;
  width: 100%;
  margin-left: -10px;
}

/* Clear fix */
.clear:after {
    clear: both;
    content: ".";
    display: block;
    height: 0;
    visibility: hidden;
}
.clear {
    display: inline-block;
    display: block;
}


/*********************/
/*** STYLE OPTIONS ***/
/*********************/
#cff.fixed-height{
  overflow: hidden;
  overflow-y: auto;
  padding: 5px 10px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}


/* Thumb layout */
/*Media size*/
#cff.thumb-layout .cff-photo,
#cff.thumb-layout iframe,
#cff.thumb-layout .cff-vidLink{
  width: 20%;
  clear: none;
  margin-top: 5px;
}
#cff.thumb-layout .cff-likebox iframe{
  margin: 0;
}
#cff.thumb-layout .cff-photo img{
  width: 100%;
  height: auto;
}

/* Video play button */
#cff.thumb-layout .cff-playbtn{
  top: 25%;
  left: 35%;
  width: 30%;
  height: 40%;
}

/*Content wraper*/
#cff.thumb-layout .cff-text-wrapper{
  float: right;
  width: 77%;
}
#cff.thumb-layout .link-item .cff-text-wrapper{
  width: 100%;
}

/*Date*/
#cff.thumb-layout .cff-date {
  margin-bottom: 10px;
}


/*Medium image size */
#cff.half-layout .cff-photo,
#cff.half-layout iframe,
#cff.half-layout .cff-vidLink{
  width: 50%;
  clear: none;
}
#cff.half-layout .cff-likebox iframe{
  margin: 0;
}
#cff.half-layout .cff-text-wrapper{
  float: right;
  width: 47%;
}
#cff.half-layout .link-item .cff-text-wrapper{
  width: 100%;
}

/* Video play button */
#cff.half-layout .cff-playbtn{
  top: 32.5%;
  left: 35%;
  width: 30%;
  height: 35%;
}