/*

Theme Name: X Child Theme
Theme URI: http://theme.co/x/
Author: Themeco
Author URI: http://theme.co/
Description: Make all of your modifications to X in this child theme.
Version: 1.0.0
Template: x

*/

/*
	CUSTOM CHC STYLES BY DEYTAH
	01. Font Headers
	02. Config - Equalize border radius
	03. Image Handling
	04. Menu - Donate Button
	05. Menu - Mobile
	06. Sub Menu - Breadcrumbs | Remove from Main Pages
	07. Footer
	08. Post Style
	09. External Links
	10. Custom Buttons
	11. Perfect Squares - Uses custom JS too
	12. Custom Forms
	13. Custom Post Types - Single Page Styles
	14. Post Footer - Blog Authors
	15. Featured Content - Custom Classes for Cornerstone
	16. Shortcode Grids
	17. Testimonial Shortcode
	18. Search Options
	19. Safari Fixes (Temp)
	20. Recent Posts Shortcode Modifiers
	21. Featured Shortcode
	22. Slider Adjustments
*/

/* 01. Font Headers */
h1 {
  font-size: 1.7em;
}
.h-landmark {
  font-size: 3.5em;
}
h2 {
  font-size: 1.5em;
}
h3 {
  font-size: 1.3em;
}
/* 02. Config - Equalize border radius */
.entry-wrap,
.has-post-thumbnail .entry-wrap,
.x-recent-posts a {
  border-radius: 0;
}
/* 03. Images & Bios */
.x-chc-photo-container {
  display: inline-block;
  position: relative;
  overflow: hidden;
}
.x-chc-photo-container img {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 100%;
  width: 100%;
  object-fit: cover;
  -webkit-transform: translate(-50%,-50%);
      -ms-transform: translate(-50%,-50%);
          transform: translate(-50%,-50%);
}
.chc-person-bio {
  font-size: 90%;
  margin-bottom: 0;
}

/* 04. Menu - Donate Button */
#menu-item-9768 a span {
  background: rgb(195,152,21);
  padding: 16px 20px;
  color: #fff;
}
#menu-item-9768 a {
  padding-top: 21px;
}
#menu-item-9768.current-menu-item > a,
#menu-item-9768 > a:hover {
  box-shadow: none !important;
}
#menu-item-9768 > a:hover > span {
  background: rgb(42,100,148);
}

/* 05. Menu - Mobile */
.x-btn-navbar.collapsed {
  box-shadow: none;
}

/* 06. Sub Menu - Breadcrumbs | Remove from Main Pages */
.page-template-template-blank-4-php .x-breadcrumb-wrap,
.x-blog-masonry-active .x-breadcrumb-wrap {
   display: none;
}

/* 07. Footer */
.widget_nav_menu,
.widget ul,
.widget_nav_menu ul li a,
.widget ul li a { 
  border: none; 
}
.widget_nav_menu ul li a {
  padding: 0 0 0.65em;
}
.widget_nav_menu ul li ul li a,
.widget_nav_menu ul li .sub-menu li a {
  padding-left: 0;
}
ul.menu {
  font-size: 1em;
  font-weight: 700;
}
ul.sub-menu {
  font-size: 1rem;
  font-weight: 400;
}
.widget_nav_menu ul li a:before,
.widget_meta ul li a:before,
.widget_pages ul li a:before {
  content: '';
  padding-right: 0;
}
.x-column.x-md.x-1-4.last {
  margin-top: -2px;
}

/* 08. Post Style */
.post-template-default header.entry-header {
  margin-top: -9em;
}
.page-template-default header.entry-header {
  margin-top: -7.5em;
}
.post-template-default header.entry-header,
.page-template-default header.entry-header {
  position: relative;
  background-color: #2A6494;
  padding: 2em;
  color: #fff;
}
.page-template-default .no-post-thumbnail header.entry-header {
  margin-top: 0;
}
.page-template-default header.entry-header .entry-title {
  color: #fff;
  margin-bottom: 0;
}
.post-template-default header.entry-header .entry-title {
  color: #fff;
  margin-bottom: 0.25em;
}
.post-template-default header.entry-header .p-meta > span > a,
.page-template-default header.entry-header .p-meta > span > a {
  color: #fff;
  text-decoration: underline;
}
.post-template-default .entry-featured,
.page-template-default .entry-featured {
  min-height: 8em;
  background-color: #0E3556;
}
.wp-caption,
.wp-caption > .gallery-caption,
.wp-caption > .wp-caption-text,
.wp-caption > .wp-caption-text:last-child, 
.gallery-item > .gallery-caption,
.gallery-item > .wp-caption-text,
.gallery-item > .wp-caption-text:last-child,
.gallery-item {
  font-size: 1em;
  text-transform: none;
  background: none;
  border: none;
  padding: 0;
  box-shadow: none;
}
.p-meta>span {
  display: inline;
}

/* 09. External Links */
.x-social-global > a.ext-link,
.x-social-global > a.ext-link:link,
.x-colophon-content > p > a.ext-link,
.x-colophon-content > p > a.ext-link:link {
    background: none;
    padding-right: 0;
}

/* 10. Custom Buttons */
.x-btn-manual,
.give-btn, 
.give-btn .give-btn-modal,
.give-submit {
  padding: 12px 16px;
  background: #C39815;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.105px;
  text-shadow: none;
  text-transform: uppercase;
  border: none;
}
.x-btn-manual:hover,
.give-btn:hover, 
.give-btn .give-btn-modal:hover {
  background: #2A6494;
  color: #fff;
}

/* 11. Perfect Squares */
.x-section .x-container.marginless-columns .x-column {
  vertical-align: middle;
}
.x-section .x-container.marginless-columns .x-column > [class^="x-bg"] {
  width: 100%;
  height: 100%;
}
.x-container.max.width.marginless-columns.photo-block-callout {
  max-width: 900px;
}
@media screen and (max-width: 768px) {
  .x-section.sm-pd-1 {
    padding: 2em 0;
  }
  .x-column.sm-pd-1 {
    padding: 2em;
  }
  .callout-text {
    height: auto;
  }
  .callout-photo {
    height: 300px;
    width: 100%;
  }
}

/* 12. Custom Forms */
.dcf-form-row > * {
  width: 50%;
}
.x-form-button {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 27.2px;
  text-shadow: none;
  margin-top: 1em;
}

/* 13. Custom Post Types - Single Page Styles */
.x-chc-banner {
  background-color: #2a6494;
  display: flex;
  align-items: center;
  padding: 60px;
  box-shadow: 0 0.15em 0.35em 0 rgba(0,0,0,0.135);
}
.x-chc-profile-group {
  margin-right: 4em;
}
.x-chc-profile-photo {
  display: inline-block;
  position: relative;
  width: 250px;
  height: 250px;
  overflow: hidden;
}
.x-chc-profile-photo img {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 100%;
  width: 100%;
  object-fit: cover;
  -webkit-transform: translate(-50%,-50%);
      -ms-transform: translate(-50%,-50%);
          transform: translate(-50%,-50%);
}
.x-chc-profile-association {
  color: #fff;
  font-size: 0.8em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding-bottom: 1em;
  border-bottom: 2px solid #fff;
  display: inline-block;
  line-height: 0.85;
  margin-bottom: 0.5em;
}
.x-chc-profile-name {
  color: #fff;
  font-size: 2em;
  margin-top: 0.5em;
}
.x-chc-profile-title,
.x-chc-location {
  color: #fff;
  margin-bottom: 0.5em;
}
.x-chc-pub-categorize {
  font-size: 0.8em;
  margin: 0;
}
.x-chc-profile-email, .x-chc-profile-email a,
.x-chc-partner-website, .x-chc-partner-website a,
.x-chc-pub-author, .x-chc-pub-author a {
  color: #fff;
  margin-bottom: 0;
}
.x-chc-profile-email a:hover, .x-chc-profile-email a:focus, .x-chc-profile-email a:active,
.x-chc-partner-website a:active, .x-chc-partner-website a:hover, .x-chc-partner-website a:focus,
.x-chc-pub-author a:active, .x-chc-pub-author a:hover, .x-chc-pub-author a:focus {
  color: #c39815;
}
.x-chc-profile-phone {
  color: #fff;
  margin-bottom: 0;
}
.x-chc-legacy > .entry-content {
  margin-top: 0;
}
.x-chc-partner-logo {
  background-color: #fff;
}
.x-chc-partner-logo img {
  height: auto;
  padding: 1em;
}
.x-chc-publication-image img {
  width: auto;
}
.x-chc-pub-download {
  margin-top: 1em;
}
@media screen and (max-width: 768px) {
	.x-chc-banner {
    flex-direction: column;
    justify-content: center;
  	padding: 3em 2em 2em;
  }
  .x-chc-profile-group {
    width: 100%;
    margin: 0 auto;
    text-align: center;
  }
  .x-chc-profile-lead {
    margin-top: 1.5em;
    width: 100%;
    text-align: center;
  }
}

/* 14. Post Footer - Blog Authors */
.x-chc-blog_author-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  border-bottom: 1px solid #b8c3cf;
  padding-bottom: 0.5em;
  margin-bottom: 0.5em;
}
.x-chc-blog_author-photo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
/*   margin-right: 1em; */
}
.x-chc-blog_author-info {
  width: calc(100% - 120px);
}
.x-chc-blog_author-info,
.x-chc-blog_author-bio {
  margin: 0;
}

/* 15. Featured Content */
.x-chc-featured-content-text {
  max-width: 50%;
}
@media screen and (max-width: 768px) {
  .x-chc-featured-content {
    display: flex;
    flex-direction: column;
  }
  .x-chc-featured-content-text {
    max-width: 100%;
  }
}

/* 16. Shortcode Grids */
.chc-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}
.chc-grid a {
  text-decoration: none;
  color: #212b36;
}
.chc-grid a.chc-grid-item:hover,
.chc-grid a.chc-grid-item:focus,
.chc-grid a.chc-grid-item:active {
  background-color: #2a6494;
  color: #fff;
  box-shadow: 0 0.15em 0.35em 0 rgba(0,0,0,0.135);
  transition: all 0.2s ease;
}
.chc-grid-item {
  height: 90%;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  width: 200px;
  margin: 1em;
  padding: 1em;
  border-radius: 4px;
}
.x-chc-grid-photo {
  display: inline-block;
  position: relative;
  margin-bottom: 1em;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
}
.x-chc-grid-photo img {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 100%;
  width: 100%;
  object-fit: cover;
  -webkit-transform: translate(-50%,-50%);
      -ms-transform: translate(-50%,-50%);
          transform: translate(-50%,-50%);
}
.x-chc-grid-text {
  display: block;
  margin: 0;
  line-height: 1;
}
.x-chc-title {
  display: block;
  font-size: 0.8em;
  line-height: 1.4;
  margin-top: 0.5em;
}
@media (max-width: 768px) {
  .chc-grid-item {
    width: 135px;
    margin: 0.5em;
  }
  .x-chc-grid-photo {
    width: 100px;
    height: 100px;
  }
}

/* 17. Testimonial Shortcode */
blockquote.chc-grid {
  font-size: 100%;
  line-height: 1.4;
  border: none;
}
.chc-grid-item-long {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  position: relative;
}
.x-chc-testimonial-photo {
  position: relative;
  width: 30%;
  height: 100%;
  margin: 0 1em;
  box-shadow: 0em 0em 0.65em 0em rgba(0,0,0,0.25);
}
.x-chc-testimonial-photo img {
  position: absolute;
  height: 100%;
  width: auto;
  min-width: 100%;
  object-fit: cover;
}
.x-chc-testimonial-content {
  width: 60%;
  margin-left: 18px;
}
.x-chc-testimonial-content:before {
  content: '\201C';
  position: absolute;
  top: -0.35em;
	margin-left: -20px;
  color: #e7e6e4;
  font-size: 6em;
  z-index: -1;
}
.x-chc-credit {
  display: block;
  margin-top: 0.75em;
  margin-bottom: 0.25em;
  font-size: 0.8em;
  font-weight: 300;
  color: #7a7a7a;
}
.x-chc-credit-cta {
  display: block;
  margin-top: 0.25em;
  font-size: 0.725em;
}
.x-chc-credit-cta a {
  font-weight: 300;
  color: #2a6494;
  text-decoration: underline;
}
@media screen and (max-width: 768px) {
  .chc-grid-item-long {
    justify-content: center;
  }
  .x-chc-testimonial-photo,
  .x-chc-testimonial-content {
    width: 80%;
  }
  .x-chc-testimonial-photo {
    height: 200px;
  }
  .x-chc-testimonial-photo img {
    width: 100%;
    height: 200px;
  }
  .x-chc-testimonial-content {
    margin-top: 1em;
    margin-left: 0;
  }
  .x-chc-testimonial-content:before {
    top: 185px;
    left: 10%;
  }
}

/* 18. Search Options */
.chc-search-form {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.chc-form-group {
  min-width: 180px;
  width: 24%;
}
.chc-form-searchbox {
  width: 100% !important;
}
.chc-form-group label {
  text-align: left;
}
.chc-form-group label,
.chc-form-group select,
.chc-form-group input {
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  border: none;
}
.chc-form-group select,
.chc-form-group input {
  display: block;
  color: #000;
  line-height: 1.3;
  padding: .6em 1.4em .5em .8em;
  margin: 0 0 0.5em;
  box-shadow: 0 1px 0 1px rgba(0,0,0,.04);
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  background-color: #fff;
}
.chc-form-group select {
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%232A6494%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
  background-repeat: no-repeat, repeat;
  background-position: right .7em top 50%, 0 0;
  background-size: .65em auto, 100%;
}
.chc-form-group select::-ms-expand {
  display: none;
}
.chc-form-group select:hover {
  border-color: #c39815;
}
.chc-form-group select:focus {
  border-color: #c39815;
  box-shadow: 0 0 1px 3px rgba(59, 153, 252, .7);
  box-shadow: 0 0 0 3px -moz-mac-focusring;
  color: #222; 
  outline: none;
}
.chc-form-group select option {
  font-weight: normal;
}
.chc-form-active {
  width: 100%;
  margin: 0.75em 0;
  text-align: left;
}
.chc-form-active button {
  border: none;
  margin: 0 0 0.5em;
  padding: 0.5em;
  width: auto;
  overflow: visible;
  background: #c39815;
  color: inherit;
  font: inherit;
  line-height: normal;
  -webkit-font-smoothing: inherit;
  -moz-osx-font-smoothing: inherit;
  -webkit-appearance: none;
}
.chc-form-active button:after {
  content: "\2717";
  margin-left: 5px;
}
.chc-form-active button::-moz-focus-inner {
  border: 0;
  padding: 0.5em;
}
.chc-search-results {
  color: #212b36;
}
.chc-search-results .x-pagination {
  margin: 1em auto;
}
.chc-results > ul.list-wrapper {
  display: flex;
  flex-direction: column;
  text-align: left;
  list-style: none;
  margin: 0;
}
.pub-preview {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 1em;
  margin-bottom: 1em;
  min-height: 100px;
}
.pub-thumbnail {
  display: inline-block;
  position: relative;
  min-width: 75px;
  width: 75px;
  height: 100px;
  margin: 5px 1.25em 0 0;
}
.pub-thumbnail img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-transform: translate(-50%,-50%);
      -ms-transform: translate(-50%,-50%);
          transform: translate(-50%,-50%);
  border: 1px solid #EDF2F7;
}
.pub-title {
  font-weight: 700;
  margin-bottom: 0.5em;
}
.pub-details p {
	margin-bottom: 0.5em;
  font-size: 90%;
}
ul.pub-taxonomy {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
}
.pub-taxonomy li {
  font-size: 70%;
  background-color: #EDF2F7;
  padding: 0.25em 0.5em;
  margin: 0 0.5em 0.5em 0;
}
li.only-text {
  text-align: center;
  color: #fff;
}
.pub-trim-excerpt {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
@media screen and (max-width: 767px) {
  .chc-form-group {
    min-width: 100px;
    width: 48%;
  }
}
/* 19. Safari Fixes */
.x-section .x-container.marginless-columns .x-column.callout-photo {
  vertical-align: initial !important;
}
.callout-photo > .x-bg {
  overflow: hidden !important;
  display: inline-block !important;
  position: absolute;
  min-height: 300px;
  height: auto;
  width: 100%;
}
.callout-photo > .x-bg > .x-bg-layer-lower-image {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  height: 100% !important;
  width: 100% !important;
  object-fit: cover !important;
  -webkit-transform: translate(-50%,-50%) !important;
      -ms-transform: translate(-50%,-50%) !important;
          transform: translate(-50%,-50%) !important;
}

@media not all and (min-resolution:.001dpcm) { 
  @media {
    .x-column.x-1-4 {
      width: 21%;
    }
    .x-column.x-1-5 {
      width: 16%;
    }
  }
  @media screen and (max-width: 768px) {
    .x-column.x-1-4 {
      width: 80%;
    }
    .x-column.x-1-5 {
      width: 80%;
    }
  }
}
/* 20. Recent Posts Shortcode Modifiers */
.x-recent-posts .x-recent-posts-content {
  padding: 16px 10px;
}
.x-recent-posts .h-recent-posts, .x-recent-posts .x-recent-posts-date {
  display: block;
  overflow: unset;
  text-overflow: unset;
  white-space: pre-wrap;
}
.x-recent-posts a {
  border: none;
  padding: 0;
  box-shadow: 0 0.15em 0.35em 0 rgba(0,0,0,0.135);
  margin: 0 0.5em 1em 0;
}
.x-recent-posts .x-recent-posts-img {
  border-radius: 0;
}
.x-recent-posts .x-recent-posts-content {
  padding: 1em;
}
.x-recent-posts.cf.vertical a {
  margin: 0 0 1em;
}
.x-recent-posts.cf.vertical > * + * {
  margin-left: 0.5em;
}
.x-recent-posts a.x-recent-post3 {
    width: 32.333%;
}
@media (max-width: 767px) {
  .x-recent-posts a.x-recent-post3 {
  	width: 100%;
  }
}
/* 21. Featured Shortcode */
.chc-featured {
  display: flex;
  flex-direction: row;
}
.chc-featured-photo {
	padding-right: 1.5em;
}
.chc-featured-container {
  height: 200px;
  width: 200px;
}
.chc-person-info {
  margin-bottom: 0.5em;
}
.chc-featured-content > a {
  font-size: 90%;
}
@media (max-width: 500px) {
  .chc-featured {
    flex-direction: column;
  }
  .chc-featured-photo {
    padding-right: 0;
  }
  .chc-featured-container {
    height: 300px;
    width: 100%;
  }
}
/* 22. Slider Adjustments*/
@media (max-width: 767px) {
  .x-section .x-container.marginless-columns>#slider.x-column[class*="x-"] {
    display: inline-block;
  }
}
/* Navigation Breakpoints */
@media screen and (max-width: 1290px) and (min-width: 1182px) {
  .x-navbar-inner .x-container.width,.x-colophon .top .x-container.widthÂ {
    width: 95% !important;
  }
}
@media screen and (max-width: 1000px) and (min-width: 1181px) {
  .x-navbar-inner > .x-container.widthÂ { 
  	text-align: center !important;
  }
  .x-navbar-inner > .x-container.width > .x-brand {
    display: inline-block !important;
    text-align: center !important;
    width: 100% !important;
  }
  .masthead-inline .desktop .x-navÂ {
    display: inline-block !important;
    text-align: center !important; 
    margin: 0 auto !important;
    float: none !important;
  }
}
body.error404 > .p-landmark-sub { display: none !important; }