.et_pb_posts .et_pb_post {
  display: flex;
  flex-direction: column-reverse;
}
.et_pb_posts .et_pb_post .entry-featured-image-url {
  margin-bottom: 10px;
  margin-top: 10px;
}
.et_pb_posts .et_pb_post {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--brownGrey);
  padding-bottom: 15px;
}
.et_pb_posts.featured-post .et_pb_post {
  flex-direction: column;
}
.et_pb_post .post-meta {
  display: flex;
  flex-wrap: wrap;
}
.et_pb_post .post-meta a {
  text-transform: uppercase;
  font-size: var(--tinyText);
  color: var(--charcoal);
  font-weight: 600;
}
.featured-post .et_pb_post .entry-featured-image-url {
  order: 3;
}
.featured-post .entry-title,
.featured-post .title-container {
  order: 2;
}
.featured-post .post-meta {
  order: 1;
}
.featured-post .post-content {
  order: 4;
  font-family: var(--grotesk);
}
/*  DIVI BLOG EXTRAS */
.et_pb_post_extra.el_dbe_box_extended .post-content {
  width: 100%;
  padding: 0;
}
.blog-3col-with-featured {
  display: flex;
  flex-direction: column;
}
.blog-3col-with-featured .et_pb_column:first-child {
  order: 1;
  margin-bottom: 0;
}
.blog-3col-with-featured .et_pb_column:nth-child(2) {
  order: 0;
  margin-bottom: 0;
}
.blog-3col-with-featured .et_pb_column:last-child {
  order: 2;
}
.post-custom-meta-container {
  display: flex;
  text-transform: uppercase;
  flex-wrap: wrap;
}
.post-custom-meta-container a {
  color: var(--charcoal);
  font-weight: 600;
}
.post-custom-meta-container .post-author {
  font-weight: 700;
  margin-right: 20px;
}
.post-custom-meta-container .post-categories {
  display: flex;
  flex-wrap: wrap;
}
.post-custom-meta-container .published-date {
  margin-right: 20px;
}
.post-custom-meta-container .post-categories a:not(:first-child) {
  margin-left: 4px;
}

.custom-post-content
  *:not(.has-image):not(img):not(iframe):not(form):not(.tableauPlaceholder) {
  max-width: 800px;
  /*	max-width: 100%;*/
  margin-left: auto;
  margin-right: auto;
  word-wrap: break-word;
  line-height: 1.6;
}
.custom-post-content img:not(.normal) {
  max-width: 100%;
}
.custom-post-content a:not(.vc_btn3),
.et_pb_toggle_content a {
  color: var(--blue);
  font-weight: 600;
}
.lead-gen-form {
  background: #747d85;
  border-radius: 30px;
  padding: 20px 40px;
}
.lead-gen-form .custom-submit.custom-link p {
  display: flex;
}
.lead-gen-form .subscribe-form .wpcf7-spinner {
  position: relative;
  left: auto;
  right: 0;
  order: 0;
  margin-right: 0 !important;
}
.lead-gen-form .custom-submit.custom-link input[type='submit'] {
  margin: 0;
  order: 1;
}
.lead-gen-form .custom-submit.custom-link p:after {
  order: 3;
}
.lead-gen-form .wpcf7 form.invalid .wpcf7-response-output {
  color: var(--white);
}
.lead-gen-form .wpcf7 form.invalid .wpcf7-response-output,
.lead-gen-form .wpcf7-not-valid-tip {
  font-size: var(--copyFontLarge);
}
#main-content .custom-post-content h1,
#main-content .custom-post-content h2,
#main-content .custom-post-content h3,
#main-content .custom-post-content h4,
#main-content .custom-post-content h5 {
  color: var(--charcoal);
  line-height: 1.25;
  font-weight: 700;
  font-family: var(--groteskDisplay);
}
#main-content .custom-post-content h1:not(.custom_toggle_title),
#main-content .custom-post-content h2:not(.custom_toggle_title),
#main-content .custom-post-content h3:not(.custom_toggle_title),
#main-content .custom-post-content h4:not(.custom_toggle_title),
#main-content .custom-post-content h5:not(.custom_toggle_title) {
  padding-top: 50px;
}
#main-content .custom-post-content .wpb_singleimage_heading {
  text-align: center;
}
.custom-post-content ul li,
.custom-post-content ol li {
  margin-bottom: 20px;
}

.two-col-grid {
  display: flex;
}
.two-col-grid .col-1,
.two-col-grid .col-2 {
  flex: 1;
}

/* TOGGLE */
.custom_toggle_container {
  margin-bottom: 20px;
}

.custom_toggle_title {
  padding: 10px 15px;
  margin: 0;
  cursor: pointer;
}

.custom_toggle_content {
  padding: 15px 15px 0 30px;
  max-height: 0;
  transition: max-height 0.5s ease-out;
  overflow: hidden;
}

.custom_toggle_content.open {
  /*    max-height: 9999px;*/
  max-height: 70vh;
  transition: max-height 0.5s ease-in;
  overflow: scroll;
}

/*#post-social-share-container {
    position: absolute;
    top: 5%;
    left: 5%;
}*/
.social-share-shortcode {
  background: rgb(59 59 59 / 5%);
  border-radius: 6px;
  padding: 10px;
  max-width: max-content;
  margin: 0 auto 30px;
}
.et_pb_column .et_pb_module .author-content {
  margin-bottom: 30px;
  max-width: 800px;
  margin: auto;
  line-height: 1.7;
  padding-bottom: 30px;
}
ul.sns-container {
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
}
ul.sns-container li.et-social-icon {
  background: rgb(74 74 74 / 10%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}
ul.sns-container li.et-social-icon:last-child {
  margin-right: 0;
}
ul.sns-container .et-social-icon a:before {
  font-size: 17px;
}
ul.sns-container .et-social-twitter a:before {
  font-size: 15px;
}
/*
* ----------[CONTRIBUTOR POSTS]--------*
*/
.custom-contributor-posts,
.custom-posts:not(.tribe_events) {
  /*	border-top: 10px solid var(--charcoal);*/
  padding-top: 0;
}
body.single .custom-contributor-posts article,
body.author .custom-contributor-posts article,
.custom-posts article {
  display: flex;
  gap: 30px;
  border-bottom: 1px solid var(--brownGrey);
  margin-bottom: 40px;
  padding-bottom: 40px;
  flex-direction: column;
}
body.home .custom-posts article {
  gap: 0px;
}
.custom-posts.tribe_events article {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
.custom-contributor-posts .post-details,
.custom-posts .post-details {
  display: flex;
  text-transform: uppercase;
}
.custom-contributor-posts .entry-title,
.custom-posts .entry-title {
  line-height: 1;
}
.custom-posts .entry-title {
  padding-bottom: 10px;
}
.custom-contributor-posts .post-contributor,
.custom-posts .post-contributor {
  font-weight: 900;
  text-transform: uppercase;
  margin-right: 30px;
}
.custom-contributor-posts .featured-image-container,
.custom-posts .featured-image-container {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.custom-contributor-posts .featured-image-container .entry-featured-image-url,
.custom-posts .featured-image-container .entry-featured-image-url {
  margin-bottom: 0;
}
.custom-contributor-posts .featured-image-container a,
.custom-contributor-posts .featured-image-container img,
.custom-posts .featured-image-container a,
.custom-posts .featured-image-container img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.custom-contributor-posts .post-meta-container,
.custom-posts .post-meta-container {
  flex: 2;
}
.custom-contributor-posts .post-content,
.custom-posts .post-content {
  padding-bottom: 15px;
}
/*
* ----------[STICKY POST]--------*
*/
.sticky-post-container {
  margin: 30px 0;
}
.custom-posts.sticky-post-container article:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
/*
* ----------[FILTER / SORT]--------*
*/
.sort-bar ul {
  display: flex;
  list-style: none;
  padding: 0;
}
#search-results-container .custom-posts article:last-of-type {
  margin-bottom: 0;
}
.search-results-count {
  font-weight: 700;
  color: var(--grey);
  margin-bottom: 10px;
}
span.relevanssi-query-term {
  background-color: rgb(207 127 0 / 35%);
  font-weight: 900;
  font-style: italic;
}
/* === Simple responsive two-column layout (no plugins) === */
.twocol {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 50/50 by default */
  gap: 1.25rem; /* space between columns */
  align-items: start;
}

/* Column content hygiene */
.twocol > .col {
  min-width: 0;
} /* prevent overflow */
.twocol img {
  max-width: 100%;
  height: auto;
}
.twocol p,
.twocol ul,
.twocol ol {
  margin: 0 0 1rem 0;
}

/* Width variants */
.twocol--66-33 {
  grid-template-columns: 2fr 1fr;
}
.twocol--33-66 {
  grid-template-columns: 1fr 2fr;
}

/* Optional: vertical divider between columns */
.twocol--divider > .col + .col {
  border-left: 1px solid #e6e6e6;
  padding-left: 1rem;
}

/* Optional: align items center or baseline */
.twocol--center {
  align-items: center;
}
.twocol--baseline {
  align-items: baseline;
}

/* Optional: bigger/smaller gaps */
.twocol--gap-sm {
  gap: 0.75rem;
}
.twocol--gap-lg {
  gap: 2rem;
}

/* Mobile: stack columns */
@media (max-width: 768px) {
  .twocol {
    grid-template-columns: 1fr;
  }
  .twocol--divider > .col + .col {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid #e6e6e6;
    padding-top: 1rem;
    margin-top: 0.5rem;
  }
  /* Reverse order on mobile, if needed */
  .twocol--reverse .col:first-child {
    order: 2;
  }
  .twocol--reverse .col:last-child {
    order: 1;
  }
}

@media only screen and (min-width: 981px) {
  .custom-post-content .has-image {
    max-width: none; /* Remove any max-width constraint */
    width: auto; /* Let the width be determined by the image */
    margin-left: -100px; /* Adjust this value as needed */
    margin-right: -100px; /* Adjust this value as needed */
    text-align: center;
  }

  .custom-post-content img:not(.normal) {
    width: 100%; /* Ensure the image takes full width of its container */
    max-width: 60vw;
  }
  .blog-3col-with-featured {
    display: block;
  }
  .et_pb_posts .et_pb_post .entry-featured-image-url {
    margin-top: 0;
  }
}
@media only screen and (min-width: 768px) {
  body.single .custom-contributor-posts article,
  body.author .custom-contributor-posts article,
  .custom-posts article {
    flex-direction: row;
  }
}
