/*

Theme Name: Family Story
Description: Custom Wordpress Theme
Version: 1.0
Author: Yippa
Author URI: https://yippa.com/

*/

a {
  font-family: inherit;
}

::-moz-selection { background: #c0c0c0; }
::selection { background: #c0c0c0; }

.wp-caption {
  padding-bottom: 50px;
}
.simple-content a,
.content-columns-item a {
  border: none;
  position: relative;
  display: inline-block;
}
.simple-content a:before,
.content-columns-item a:not(.sc-btn):not(.buttons-icon):before {
  content: "";
  display: inline-block;
  border-bottom: 2px solid #f1b218;
  position: absolute;
  width: 100%;
  bottom: 0;
}
.content-columns-item a:not(.sc-btn):not(.buttons-icon):hover {
  background:#f1b218;
  opacity: 1;
  color: #303030;
}
hr {
  opacity: 0.45;
  display: block;
  margin: 5px 0 45px;
  width: 100%;

}
.simple-content ul,
.content-columns-item ul,
.simple-content ol,
.content-columns-item ol,
.accordion-content ol,
.accordion-content ul  {
  margin-left: 1em;
  margin-bottom: 1.2em;
}
.simple-content ul li,
.content-columns-item ul li,
.accordion-content ul li{
  list-style-type: disc;
  margin-bottom: .7em;
}
.simple-content ol li,
.content-columns-item ol li,
.accordion-content ol li {
  list-style-type: decimal;
    margin-bottom: .7em;
}
.simple-content h4,
.content-columns h4 {
  margin-bottom: 28px;
}
/* hover adjustments --------------------------------*/
.organizations-link,
.press-releases-link {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
}
.press-media-link,
.featured-link,
.video-grid-link {
  display: block;
}
.press-media-link img.img-bg {
  width: 100%;
}
.research-link:hover,
.organizations-link:hover,
.video-grid-item a:hover span.img-bg,
.featured-link:hover {
  opacity: 0.8;
}
.press-media-link:hover img,
.press-releases-link:hover img {
  opacity: 0.7;
}
.press-media-link:hover .press-media-title,
.press-releases-link:hover .press-releases-title,
.press-releases-link:hover .press-releases-date,
.research-item:hover .research-title,
.research-item:hover .sc-read-more {
  color: #8c8c8c;
}
.research-item:hover .sc-read-more:after {
  opacity: 0.6;
}
.research-item .sc-read-more:hover:after  {
  opacity: 1;
}

.press-media-title:hover,
.press-releases-title:hover,
.research-title:hover,
.research-item .sc-read-more:hover {
  color: #262626;
}
.press-media-publication-name {
  display: block;
}
/* logo ------------------------------------*/
.page-logo {
  background-image: url("/wp-content/uploads/2018/09/family-story-logo-white.svg");
  background-repeat: no-repeat;
  background-position: left top;
    z-index: 2;
    display: block;
    position: absolute;
    height: 145px;
}

.page-header-logo,
.mobile-header-logo {
    font-size: 0;
    background-image: url("/wp-content/uploads/2018/09/family-story-logo-white-mark-only.svg");
    background-repeat: no-repeat;
    background-position: left top;
    background-size: contain;
}
.page-header-logo:hover,
.mobile-header-logo:hover,
.page-logo:hover {
  opacity: 0.8;
}
.page-header-logo {
  width: 210px;
  height: 38px;

}
.mobile-header-logo {
  width: 142px;
  height: 25px;
}
.page-header.ph {
  z-index: 9;
}
/* home page ---------------------------*/

.home-slider .slick-initialized .slick-slide {
  height: 72vh;
}
.home-slider-text {
  height: 28vh;
}

@media (min-width: 992px) {
/*
.home-slider-wrapper::after {
  width: 50%;
  top: 53%;
  height: 51vh;
}
*/
.single-resources .page-single-title {
  margin-bottom: 60px;
}
.home-slider-text {
  font-size: 26px;
  padding: 45px 0 0;
}
.content-columns {
    padding: 50px 0 30px;
}
.posts {
  padding: 70px 0 20px;
}
.page-single {
    padding: 80px 0 30px;
}
.video-grid {
    padding: 60px 0 50px;
}
.video-grid-title {
  margin-bottom: 40px;
}
.newsletter {
  padding: 50px 0;
  min-height: inherit;
}
}

@media (max-width: 992px) {
  .home-slider .slick-initialized .slick-slide {
    height: 250px;
  }
  .home-slider-text {
    height: auto;
  }
  #ctf .ctf-screename-sep {
    display: none;
  }
}
@media (max-height: 799px) {
.home-slider-wrapper::after {
  height: 48vh;
}
}
@media (max-height: 680px) {
.home-slider-wrapper::after {
  display: none;
}
}
/* blog single------------------*/
.page-single-subtitle {
  margin-top: 20px;
  margin-bottom: 0;
}
.page-single-grid {
  margin-top: 68px;
}
.single .collapsibles-container {
  padding: 0;
}
.single .collapsibles {
  margin-bottom: 40px;
}
.video-container {
  max-width: 100%;
}
.single .post-thumbnail {
  margin: 15px 0 40px;
  font-style: italic;
  padding-bottom: 30px;
  border-bottom: 1px solid #d9d9d9;
  color: #777777;
}
.wp-caption > img {
  margin-bottom: 18px;
}
/*author single */
.aside-item-thumbnail {
  padding: 0;
  border: none;
}
/* blog page -------------------*/
.blog .select-wrapper,/* hiding dropdown for launch */
.single .aside-categories /* hiding categories sidebar */{
  display: none;
}
.blog .content-columns {
  padding-top: 0;
}

.posts-thumbnail.top {
  background-position: center top;
}
.posts-thumbnail.top30 {
  background-position: center 30%;
}
.posts-thumbnail.bottom {
  background-position: center bottom;
}
.posts-thumbnail.bottom30 {
  background-position: center 70%;
}
/* newsletter form -----------------*/

.newsletter {
  padding: 40px 0;
}
.mc4wp-form-theme-dark input[type=submit].custom-submit {
	position: relative;
    top: 0;
    left: auto;
    right: auto;
    bottom: auto;
    width: 150px;
    margin-top: 20px;
	font-size: 14px;
}
.newsletter form {
  width: 100%;
}
.newsletter-fields {
  height: auto;
}
.newsletter-fields input[type="submit"] {
  background: transparent url(images/arrow-signup.svg) no-repeat;
  top: inherit;
  bottom: 14px;
}
.newsletter-fields label {
  display: block;
  float: none;
  clear: both;
  text-align: center;
  margin-bottom: 15px;
}
.newsletter-wrapper .mc4wp-response,
.newsletter-wrapper .mc4wp-response p {
  color: #ccc;
}
.newsletter-fields input[type=text] {
    border: none;
    border-radius: 30px;
    font-family: "Vollkorn", serif;
    font-size: 18px;
    letter-spacing: 0.08em;
    color: #000;
    padding: 23px 70px 17px 30px;
  }
  .newsletter-fields input[type=text] {
    width: 29%;
    max-width: 29%;
  }
  .newsletter-fields input[type=email] {
    width: 46%;
    max-width: 46%;
  }
  .newsletter-fields input[name=LNAME],
  .newsletter-fields input[type=email] {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    margin-left: -30px;
    border-left: 1px solid #d9d9d9;
  }
  .newsletter-fields input:hover,
  .newsletter-fields input:focus,
  .newsletter-fields input:active {
    outline: none;
}
.newsletter-fields input::placeholder {
  font-weight: 400;
  color: #272727;
}
@media screen and (max-width:768px) {
  .newsletter-fields input[type=text],
  .newsletter-fields input[type=email] {
    width: 100%;
    max-width: 100%;
    border-left: none;
    margin-left: 0;
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
  }
    .newsletter-fields input[type=text] {
      margin-bottom: 15px;
    }

}
.input-wrapper {
	display: block;
	margin-bottom: 10px;
}


.newsletter-fields.relative input[type="text"],
.newsletter-fields.relative input[name=LNAME], 
.newsletter-fields.relative input[type=email] {
	margin: 0!important;
	font-size: 16px!important;
	padding: 6px 10px!important;
}

.newsletter-fields.relative label {
	color: black;
	margin-bottom: 30px;
	text-align: left;
}
/* anchor nav -----------------------*/
.anchor-nav.is-scrolled {
    position: fixed;
    top: 64px;
    width: 100%;
    background-color: #ffffff;
    z-index: 8;
  }
@media screen and (min-width:959px) {
  .anchor-nav.is-scrolled {
      top: 75px;
    }
}
@media screen and (max-width:991px) {
.anchor-nav a {
  line-height: 1.6;
  padding-left: 15px;
  padding-right: 15px;
}
}
@media screen and (max-width:600px) {
.anchor-nav a {
 font-size: 13px;
 letter-spacing: 1px;
 line-height: 1.4;
 padding-left: 10px;
 padding-right: 10px;
}
}
/* featured block ------------------*/
.featured-block-white .sc-btn {
  border: 2px solid #e5e5e5;
}
.fb-purple::before {
    background-color: rgba(79, 57, 149, 0.9);
}
.fb-teal::before {
    background-color: rgba(19, 120, 116, 0.9);
}
.fb-teal .fb-title,
.fb-teal .fb-text,
.fb-teal .fb-subtitle,
.fb-teal .fb-link,
.fb-purple .fb-title,
.fb-purple .fb-text,
.fb-purple .fb-subtitle,
.fb-purple .fb-link,
.fb-yellow .fb-title_subtitle,
.fb-purple .fb-title_subtitle,
.fb-teal .fb-title_subtitle,
.fb-orange .fb-title_subtitle,
.fb-yellow .fb-title,
.fb-yellow .fb-text,
.fb-yellow .fb-subtitle {
  color: white;
}
.home-slider-scroll {
  background-image:url(images/arrow-dark.svg)
}
.home-slider-scroll:hover {
  opacity: .7;
}
.fb-thumbnail {
  max-width: 444px;
}

.fb-title_subtitle {
margin-bottom: 1em;
}
/* footer twitter feed ------------------*/
.ctf-tweet-text a {
  font-family: inherit;
  line-height: 0.9;
  display: inline-block;

}
.ctf-tweet-text {
  font-weight: 300;
  line-height: 1.6;
}
.ctf-tweet-text a:hover {
  background-color: #f1b218;
  border-top: 3px solid #f1b218;
}
.twitter-feed-nav .slick-arrow:hover {
  opacity:.7;
}
.twitter-feed-arrow-right,
.twitter-feed-arrow-left {
  width: 42px;
  height: 36px;
}
.twitter-feed-arrow-right {
  background-image:url(images/arrow-right-twitter.svg);
}
.twitter-feed-arrow-left {
  background-image:url(images/arrow-left-twitter.svg);
}
.ctf-tweet-actions {
  display: inline-block;
  margin: 1.5em 0 0;
}
.ctf-tweet-actions a.ctf-twitterlink{
  text-transform: uppercase;
  font-family:"Montserrat", sans-serif;
  color: white;
}
.ctf-tweet-actions a.ctf-twitterlink:hover {
  opacity: .7;
}
#ctf .ctf-action-count,
#ctf .ctf-tc-image,
#ctf .ctf-tc-url {
  display: none!important;
}
#ctf.ctf-narrow .ctf-tweet-actions {
  float: none;
}
.simple-content ul.buttons-list,
.content-columns-item ul.buttons-list {
  margin-left: 0;
}
.simple-content ul.buttons-list li,
.content-columns-item ul.buttons-list li {
  list-style-type: none;
  margin-left: 0;
  margin-bottom: 0;
}
#ctf .ctf-item,
#ctf .ctf-quoted-tweet p, #ctf .ctf-twitter-card p,
#ctf .ctf-quoted-tweet .ctf-tc-summary-info, #ctf .ctf-twitter-card .ctf-tc-summary-info {
  text-align: center;
}
#ctf .ctf-quoted-tweet .ctf-tc-summary-info, #ctf .ctf-twitter-card .ctf-tc-summary-info {
  width: 100%;
  font-size: 1.4em;
}
.twitter-feed {
    padding: 70px 0 40px;
    min-height: auto!important;
}
.twitter-feed-icon {
  margin-bottom: 10px;
}
.ctf-author-box {
  margin-bottom: 25px;
}
#ctf .ctf-quoted-tweet, #ctf .ctf-twitter-card,
#ctf .ctf-quoted-tweet:hover, #ctf .ctf-twitter-card:hover {
  border: none;
  background: transparent;
}
.twitter-feed-nav {
  position: absolute;
  width: 100%;
  top: 0;
}
.twitter-feed-arrow-right, .twitter-feed-arrow-left {
  width: 100px;
}
.twitter-feed-arrow-right {
  background-position: right top;
}

/* simple button ------------------------*/
.sc-btn[data-type="simple"]::after,
 .sc-btn[data-type="simple"]:hover::after{
    background-image:url(images/arrow-right.svg);
    width: 27px;
    height: 25px;
}
.sc-btn[data-type="simple"]:hover::after{
opacity: .6;
}

/* load more button ----------------------*/
.post-type-list-button-wrapper {
  margin-bottom: 40px;
}
/* team collapsibles */
.team-staff-thumbnail img,
.team-advisory-board-thumbnail img {
  max-width: 130px;
}
/* post type list */
.research-item {
  margin-bottom: 30px;
}
.post-type-list-button-wrapper {
  margin-bottom: 0;
}
.home .post-type-list-button-wrapper,
.single .post-type-list-button-wrapper {
  margin-bottom: 60px;
}

/* menu ----------------------------------------*/
body {
  margin-top: 0px;
}

@media (max-width: 959px) {
.mobile-header {
background-color: transparent;
}
.mobile-header-logo {
    visibility: hidden;
}
.mobile-header.is-scrolled,
.mobile-header.is-open {
background-color: #3f3f3f;
  }
  .mobile-header.is-scrolled .mobile-header-logo {
    visibility: visible;
  }
}

@media (max-width: 1199px) {

  .buttons-link {
    font-size: 17px;
  }
  .page-header .ph-menu a {
    font-size: 14px;
  }
  .ph-menu li {
    padding: 0 10px;
  }
  .page-header-logo {
    width: 162px;
    height: 30px;
}
.ph-icon-search {
  margin: 0 10px;
}
.page-logo {
  width: 210px;
  top: 10px;
  left: 10px;
}
}

@media (max-width: 768px) {
.press-releases-link {
  display: block;
  width: 100%;
}
.press-releases-thumbnail {
  display: block;
  width: 100%;
}
.press-releases-thumbnail img {
  width: 100%;
}
.press-releases-grid-text {
  text-align: left;
}
}
@media (max-width: 550px) {
  .page-logo {
    width: 155px;
  }
}
@media (max-width: 330px) {
.mobile-header-nav .ph-menu a,
  .buttons-link  {
  font-size: 15px;
}
}

/* page landing report exceptions ---------------------------*/

.page-template-tpl-report-landing .collapsibles-item:last-of-type {
  border-bottom: none;
}
.page-template-tpl-report-landing .collapsibles {
  margin-bottom: 0;
}
.page-template-tpl-report-landing .collapsibles:last-of-type  {
  margin-bottom: 80px;
}
.page-template-tpl-report-landing .collapsibles:last-of-type .collapsibles-item:last-of-type {
  border-bottom: 1px solid #d9d9d9;
}
.page-template-tpl-report-landing .page-single-subtitle {
  margin-top: 0;
}
.page-template-tpl-report-landing .aside-item-author,
.page-template-tpl-report-landing .aside-download {
  flex-direction: column;
  align-items: flex-start;
  line-height: 2;
}
.page-template-tpl-report-landing .aside-item-author span,
.page-template-tpl-report-landing .aside-download span {
  margin-bottom: 20px;
}
.page-template-tpl-report-landing .aside-item-author p.author-item,
.page-template-tpl-report-landing .aside-download a {
  text-transform: none;
  font-weight: normal;
  letter-spacing: 0;
  margin-bottom: 0;
}
.page-template-tpl-report-landing .aside-download-icon {
  min-width: 28px;

}
.page-template-tpl-report-landing .aside-download-link {
  align-items: flex-start;
  line-height: 2;
  margin-bottom: 20px;
}
.page-template-tpl-report-landing .collapsibles .accordion-content a.sc-btn {
  background-color: #f5f5f5;
}
.page-template-tpl-report-landing .collapsibles .accordion-content a.sc-btn:hover {
  background-color: #f0f0f0;
  color:#262626;
}
.page-template-tpl-report-landing .aside-download a.sc-btn {
  border: 1px solid #e5e5e5;
  padding-left: 15px;
  margin-bottom: 0px;
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 15px;
  width: 100%;
  display: block;
  margin-bottom: 15px;
  background-color: #f5f5f5;
}
.page-template-tpl-report-landing .aside-download a.sc-btn:hover {
  opacity: 1;
  background-color: #f0f0f0;
  color:#262626;
}
.page-template-tpl-report-landing .aside-download a.sc-btn::before {
  height: 23px;
  display: none;
}
.page-template-tpl-report-landing .aside-download a.sc-btn::after {
  background-size: 80%;
background-repeat: no-repeat;
}
.page-template-tpl-report-landing .aside-download a.sc-btn[data-type="download"]:hover::after,
.page-template-tpl-report-landing .collapsibles .accordion-content a.sc-btn:hover::after {
  background-image: url("images/icon-arrow-btn.png");
}
@media screen and (max-width: 990px) {
.page-template-tpl-report-landing .hero-heading {
  padding-top: 80px;
}
.page-template-tpl-report-landing .hero-heading h1 {
  font-size: 28px;
}
}

/* image floating on small screens */
@media screen and (max-width:992px) {
.alignnone,
.aligncenter {
  width: 100%;
}
.alignright,
.alignleft{
 max-width: 50%;
}
.page-single-grid {
  margin-top: 40px;
}
}
@media screen and (max-width:550px) {
  .alignright,
  .alignleft,
  .alignnone,
  .aligncenter {
    display: block;
    float: none;
    width: 100%;
    clear: both;
    margin: 0 0 20px;
    max-width: none;
  }
  .page-single-subtitle {
    font-size: 18px;
  }
}
