/* Typography Accessories */
.nowrap {
  white-space: nowrap;
}

/* Popular Posts */
.block-popularposts .entry-taxonomies,
.entry-content-wrap .entry-meta,
.entry-taxonomies.location-mark {
  display: inline-block;
}

.block-popularposts .loop-entry:not(.content-bg) .post-thumbnail {
    margin-bottom: 1em;
}

.block-popularposts .kb-posts-style-unboxed .loop-entry .entry-content-wrap,
.block-popularposts .item-image-style-list .entry-content-wrap {
  padding: 0;
}

.block-popularposts .kb-posts-style-unboxed .entry.loop-entry {
  box-shadow: none;
}

.block-popularposts .item-image-style-list .loop-entry {
  display: grid;
  grid-template-columns: 3fr 4fr;
  gap: 1rem;
}

.block-popularposts .loop-entry h2,
.block-popularposts .loop-entry h3,
.block-popularposts .loop-entry h4,
.block-popularposts .loop-entry h5,
.block-popularposts .loop-entry h6 {
  margin: 0;
}

/* Post Location */
.location-mark {
  background: url('assets/maps-pin-black-icon.svg') no-repeat 0 50%;
  background-size: 9px;
  padding-left: 20px;
}

.entry-hero-container-inner .entry-header .location-mark {
  width: auto;
}

/* Single Post */
.post-navigation .nav-previous .kadence-svg-iconset,
.post-navigation .nav-next .kadence-svg-iconset {
  display: none;
}

/* Sidebar */
.single-content .widget-area h1,
.single-content .widget-area h2,
.single-content .widget-area h3,
.single-content .widget-area h4,
.single-content .widget-area h5,
.single-content .widget-area h6 {
	margin-top: initial;
}

/* Search Fields */
.wp-block-search .wp-block-search__input,
.wp-block-search__inside-wrapper {
    border-radius: 0;
}

.wp-block-search .wp-block-search__input, 
input[type="search"] {
    color: initial;
    background-color: transparent;
    border-color: transparent;
}

.wp-block-search__input:focus {
    outline: none;
    border-color: transparent !important;
}

.wp-block-search .wp-block-search__button:not(.has-background) {
    background: transparent;
}

.wp-block-search__inside-wrapper {
    border-color: var(--global-palette3);
}

/* Portfolio Previous Next Navigation */
.single-portfolio .post-navigation a {
    display: inline-block;
}
.single-portfolio .post-navigation a .post-navigation-sub {
    background-repeat: no-repeat;
    background-size: auto;
}
.single-portfolio .nav-links .nav-previous a .post-navigation-sub {
    background-image: url('data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%2050%22%20height%3D%2230px%22%3E%0A%20%20%20%20%3Cpolyline%20points%3D%2210%2C15%200%2C25%2010%2C35%22%20stroke%3D%22%23000000%22%20stroke-width%3D%222%22%20fill%3D%22none%22%20%2F%3E%0A%20%20%20%20%3Cline%20x1%3D%220%22%20y1%3D%2225%22%20x2%3D%2228%22%20y2%3D%2225%22%20stroke%3D%22%23000000%22%20stroke-width%3D%222%22%20%2F%3E%0A%3C%2Fsvg%3E');
    background-position: left center;
    padding-left: 25px;
}
.single-portfolio .nav-links .nav-next a .post-navigation-sub {
    background-image: url('data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%2050%22%20height%3D%2230px%22%3E%0A%20%20%20%20%3Cpolyline%20points%3D%2290%2C15%20100%2C25%2090%2C35%22%20stroke%3D%22%23000000%22%20stroke-width%3D%222%22%20fill%3D%22none%22%20%2F%3E%0A%20%20%20%20%3Cline%20x1%3D%22100%22%20y1%3D%2225%22%20x2%3D%2272%22%20y2%3D%2225%22%20stroke%3D%22%23000000%22%20stroke-width%3D%222%22%20%2F%3E%0A%3C%2Fsvg%3E');
    background-position: right center;
    padding-right: 25px;
}

/* Post has video */
.loop-entry.kb-post-has-video,
.loop-entry.tag-video {
	position: relative;
}
.loop-entry.kb-post-has-video .post-thumbnail-inner::before,
.loop-entry.tag-video .post-thumbnail-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 24 24"><defs><mask id="mask"><rect width="100%" height="100%" fill="white"/><polygon points="10,7 10,17 16,12" fill="black" /></mask></defs><circle cx="12" cy="12" r="10" fill="white" mask="url(%23mask)" /></svg>') no-repeat center center;
  background-size: 60px 60px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}
.loop-entry.kb-post-has-video a:hover .post-thumbnail-inner::before,
.loop-entry.tag-video a:hover .post-thumbnail-inner::before {
  opacity: 1;
}

/* Subcategories */

.subcategory-list {
  display: flex;
  align-items: center;
  margin: 20px 0;
}

@media screen and (max-width: 768px) {
    .subcategory-list {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
}

.subcategory-list h6 {
  margin: 0;
  margin-right: 15px;
}

.subcategory-list ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.subcategory-list ul li {
  margin-right: 15px;
}

.subcategory-list ul li a {
  font-family: var(--global-primary-nav-font-family);
  text-decoration: none;
  color: var(--global-palette3);
  padding: 4px 10px;
}

.subcategory-list ul li a:hover {
  text-decoration: none;
  background-color: var(--global-palette8);
}

/* Search bar */

.search-form .kadence-search-icon-wrap {
    color: var(--global-palette4);
}
.site-header-item .search-form input[type="search"], .search-form input.search-field {
    padding-right: 0;
}

/* Disclosure notice */
.disclosure-notice {
    margin: 20px auto;
}

/* Featured Posts */
.sstab-tabs-title-list {
  list-style-type: none;
  margin-left: 0;
  padding-left: 0;
}
.sstab-tabs-title-list li {
  list-style-type: none;
  margin: 0.5em 0;
  font-family: var(--global-heading-font-family);
  line-height: 1.4em;
}
.sstab-tabs-wrap a {
  text-decoration: none;
}
.sstab-tabs-wrap .entry-summary {
  margin: 20px 0;
}
.sstab-tabs-layout-vtabs::after,
.sstab-tabs-wrap::after {
  content: none !important;
  display: none !important;
}
.sstab-tabs-content-wrap {
  position: relative;
}
.sstab-tabs-content-wrap .kb-posts-style-unboxed .content-bg {
  background-color: transparent;
}
.sstab-tabs-content-wrap .item-image-style-above.kb-posts-style-unboxed .entry-content-wrap {
  padding: 1rem 0;
}
@media screen and (min-width: 768px) {
  .sstab-tabs-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 40px;
    row-gap: 10px;
    align-items: center;
  }
  .sstab-tabs-wrap .wp-block-kadence-posts.grid-lg-col-1.item-image-style-beside article.loop-entry.has-post-thumbnail:not(.kb-post-no-image) {
    grid-template-columns: minmax(0, 4fr) minmax(0, 5fr);
    align-items: center;
  }
}
@media screen and (max-width: 768px) {
  ul.sstab-tabs-title-list li a {
    display: none;
  }
  ul.sstab-tabs-title-list {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 15px;
    list-style-type: none;
    counter-reset: item;
    padding-left: 0;
    margin-top: 20px;
  }
  ul.sstab-tabs-title-list li::before {
    content: counter(item);
    counter-increment: item;
    font-family: var(--global-primary-nav-font-family);
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75em;
    height: 1.75em;
    border-radius: 50%;
    background-color: transparent;
    transition: background-color 0.5s ease, color 0.5s ease;
  }
  ul.sstab-tabs-title-list li.active::before {
    background-color: var(--global-palette3);
    color: var(--global-palette9);
  }
  ul.sstab-tabs-title-list li {
    position: relative;
  }
  ul.sstab-tabs-title-list .entry-title {
    transform: none;
  }
}