/*
Theme Name:   My Queenstown Diary
Theme URI:    https://myqueenstowndiary.com
Description:  My Queenstown Diary by DIY Dream Site
Author:       DIY Dream Site
Author URI:   https://diydreamsite.com
Template:     kadence
Version:      1.0
*/

:root {
  --custom-palette1: #3cd314;
  --custom-palette2: #5ad9fb;
}

/* Dividers */

.dds-divider {
  max-width: var(--global-content-width);
}

.dds-divider .kt-inside-inner-col {
  margin-left: var(--global-content-edge-padding);
  margin-right: var(--global-content-edge-padding);
}

.dds-site-logo,
.dds-main-menu {
  position: relative;
}

.dds-menu.wp-block-kadence-navigation
  .menu-container
  > .menu
  > .menu-item
  > .kb-link-wrap
  > .kb-nav-link-content,
.dds-menu-mobile
  .kb-nav-link-content.has-highlight-label.highlight-with-title
  .kb-nav-label-content,
.dds-menu-mobile
  .kb-link-wrap
  .kb-nav-link-content.has-highlight-label.highlight-with-title
  .kb-nav-label-content {
  gap: 2px;
  align-items: flex-start;
  flex-direction: row-reverse;
}

.dds-menu .wp-block-kadence-navigation-link .link-highlight-label,
.dds-menu-mobile .link-highlight-label {
  padding-left: 0;
  gap: 0;
}

.dds-menu-mobile .wp-block-kadence-navigation-link {
  list-style: none;
  margin-bottom: 0.5em;
}

.dds-menu-mobile .kb-nav-link-content {
  text-decoration: none;
  color: var(--global-palette3);
}

.dds-menu-mobile .kb-nav-link-content:hover {
  text-decoration: none;
  color: var(--global-palette1);
}

.dds-menu-mobile .highlight-with-title .kb-nav-label-content {
  align-items: flex-start;
}

#mobile-menu .kb-row-layout-wrap {
  box-shadow: none;
}

#mobile-menu .kadence-menu-mega-enabled .sub-menu {
  padding-left: 0.5em;
}

#mobile-drawer :is(.header-mobile-search-bar, form) {
  width: 100%;
}

/* Posts */

.kt-blocks-post-grid-item img {
  transition: all 0.5s ease;
}

.kt-blocks-post-grid-item:hover img {
  transform: scale(1.05);
  image-rendering: optimizequality;
}

.dds-post-item .kt-blocks-post-grid-item {
  position: relative;
}

.dds-post-item .kt-blocks-post-grid-item .entry-title {
  text-wrap: balance;
}

.dds-post-item .kt-blocks-post-grid-item-inner {
  padding: 0px 15px;
  position: absolute;
  z-index: 10;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--global-palette6) 80%, transparent),
    color-mix(in srgb, var(--global-palette6) 0%, transparent)
  );
}

.dds-post-item .kb-splide .splide__slide {
  border-radius: 10px;
  overflow: hidden;
}

.dds-about-left {
  transform: rotate(-5deg);
  image-rendering: optimizequality;
}
.dds-about-right {
  transform: rotate(5deg) translateX(-10%);
  margin-right: -10%;
  image-rendering: optimizequality;
}

.dds-posts-standard .kadence-post-image-intrisic {
  border-radius: 10px;
  overflow: hidden;
}

.dds-posts-standard .entry-title {
  margin-top: 10px;
  text-wrap: balance;
}

.dds-posts-standard .kt-blocks-above-categories a {
  text-decoration: none;
}

.dds-posts-butbot .kt-blocks-post-grid-item-inner-wrap {
  height: 100%;
}

.dds-posts-butbot
  .kt-blocks-post-grid-item
  :is(.kt-blocks-post-grid-item-inner-wrap, .kt-blocks-post-grid-item-inner, .entry-content) {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.dds-posts-butbot .kt-blocks-post-grid-item .kt-blocks-post-readmore-wrap {
  margin-top: auto;
}

/* Carousels */

.dds-carousel-over .kb-splide .splide__track {
  margin-right: -10vw;
  border-radius: 10px;
}

.dds-carousel-over.left .kb-splide .splide__track {
  margin-left: -10vw;
  margin-right: 0;
  border-radius: 10px;
}

@media all and (max-width: 767px) {
  :is(.dds-carousel-over, .dds-carousel-over.left) .kb-splide .splide__track {
    margin-right: -40vw;
  }
  :is(.dds-carousel-over, .dds-carousel-over.left) .kb-splide .splide__track {
    margin-left: -40vw;
  }
}

:is(.dds-post-carousel, .entry-related) .splide .splide__arrow {
  height: 2em;
  width: 2em;
  background: var(--global-palette2);
  opacity: 1;
}

:is(.dds-post-carousel, .entry-related) .splide:hover .splide__arrow {
  opacity: 1;
}

:is(.dds-post-carousel, .entry-related) .splide .splide__arrow:hover,
:is(.dds-post-carousel, .entry-related) .splide .splide__arrow:focus {
  opacity: 1;
  background: var(--global-palette1);
}

:is(.dds-post-carousel, .entry-related) .splide .splide__pagination__page {
  background: var(--global-palette1);
  opacity: 1;
  border-radius: 100%;
  height: 8px;
  width: 8px;
}

:is(.dds-post-carousel, .entry-related)
  .splide
  .splide__pagination__page.is-active {
  background: var(--global-palette2);
  opacity: 1;
}

.dds-overlay-gradient .kt-image-overlay-inner,
.dds-archive-loop .kt-image-overlay-inner {
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--global-palette6) 80%, transparent),
    color-mix(in srgb, var(--global-palette6) 0%, transparent)
  );
  width: 100%;
}

.dds-archive-loop .kt-image-overlay-inner .image-overlay-title {
  transition: all 0.2s ease;
}

.dds-archive-loop
  .wp-block-kadence-imageoverlay
  .kt-image-overlay-message
  .image-overlay-title:hover {
  color: var(--global-palette2);
}

.dds-archive-loop .image-overlay-title {
  text-wrap: balance;
}

/* Info Box Headings */

.dds-info-heading .kt-blocks-info-box-media,
.dds-icon .kb-svg-icon-wrap {
  box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 14px 0px;
}

/* Sliding Panels */

:root {
  --bb-sliding-panels-1-overlay: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.5) 80%,
    rgba(0, 0, 0, 0) 100%
  );
}

@media all and (min-width: 1025px) {
  .bb-sliding-panels-1 > .kt-row-column-wrap {
    display: flex;
  }

  .content-container .bb-sliding-panels-1 .bb-sliding-panels-title {
    position: absolute;
    width: 100%;
    z-index: 2;
    top: 5%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
  }

  .bb-sliding-panels-1
    > .kt-row-column-wrap
    > .wp-block-kadence-column:hover
    .bb-sliding-panels-content {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.35s ease 0.2s;
  }
  .bb-sliding-panels-1
    > .kt-row-column-wrap
    > .wp-block-kadence-column:hover
    > .kt-inside-inner-col::after {
    opacity: 0.6;
  }
  .bb-sliding-panels-1 > .kt-row-column-wrap > .wp-block-kadence-column:hover {
    flex: 2;
  }
  .content-container .bb-sliding-panels-1 .bb-sliding-panels-content {
    opacity: 0;
    transform: translate3d(0, 0, 0) translateY(30px);
    top: auto;
    bottom: 0;
    position: absolute;
    z-index: 2;
  }
  .bb-sliding-panels-1.bb-3-col
    > .kt-row-column-wrap
    > .wp-block-kadence-column {
    min-width: 25%;
  }

  .bb-sliding-panels-1.bb-3-col > .kt-row-column-wrap {
    flex-wrap: wrap;
  }
}

.bb-sliding-panels-1 > .kt-row-column-wrap > .wp-block-kadence-column {
  flex: 1 1 auto;
  transition: all 0.2s ease;
  overflow: hidden;
}

.bb-sliding-panels-1 .wp-block-kadence-column .kt-inside-inner-col {
  overflow: hidden;
}

.bb-sliding-panels-1
  > .kt-row-column-wrap
  > .wp-block-kadence-column
  > .kt-inside-inner-col::after {
  content: "";
  position: absolute;
  background: var(--global-palette6);
  z-index: -1;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  opacity: 0;
  transition: all 0.35s ease 0.2s;
}

@media all and (max-width: 1024px) {
  .content-container .bb-sliding-panels-1 .bb-sliding-panels-title,
  .content-container .bb-sliding-panels-1 .bb-sliding-panels-content {
    flex: 0 1 auto;
  }
  .bb-sliding-panels-1
    .kt-row-column-wrap
    > .wp-block-kadence-column
    > .kt-inside-inner-col::after {
    transform: translateY(0%);
    opacity: 0.6;
  }

  .bb-sliding-panels-1
    .kt-row-column-wrap
    > .wp-block-kadence-column
    > .kt-inside-inner-col::before {
    display: none;
  }
  .content-container .bb-sliding-panels-1 .bb-sliding-panels-content {
    position: relative;
  }
}

/* Image Overlays */

.dds-overlay-gradient.wp-block-kadence-imageoverlay {
  flex-grow: 0;
}

/* Location map */

#dds-loc-map .hotspots-placeholder {
  display: none;
}

#dds-loc-map .hotspots-container .hotspots-image-container {
  flex: 0 0 100%;
  background: transparent;
  margin: 0;
}

#dds-loc-map .hotspots-container .leaflet-container {
  background: transparent;
}

/* Polaroids */

.dds-pola-ani
  > .kt-inside-inner-col:not(.no-ani)
  .wp-block-kadence-column:not(.no-ani) {
  transition: all 0.3s ease;
  image-rendering: optimizequality;
}

.dds-pola-ani
  > .kt-inside-inner-col
  .wp-block-kadence-column:not(.no-ani):hover {
  transform: rotate(2deg);
}

/* Single Posts */

/* .single-post .content-area {
  margin-top: 10rem;
} */

.entry-content.single-content a {
  text-decoration-color: var(--global-palette2);
  text-decoration-thickness: 2px;
}

.single-post .post-thumbnail {
  border-radius: 10px;
}

.kb-dynamic-list-item:has(> a[href*="/ad-posts/"]) {
  display: none;
}

.kb-dynamic-list-item:has(> a[href*="/ad-posts/"]) + .kb-dynamic-list-divider {
  display: none;
}

/* Related Posts */
.single-post .entry-related .post-thumbnail {
  padding-bottom: 133%;
}

.single-post .entry-related .entry-content-wrap {
  padding: 2rem 1rem 0 1rem;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
}

.single-post .entry-related .entry-title:not(:hover) {
  color: var(--global-palette9);
}

.single-post .entry-related .entry-title:hover {
  color: var(--global-palette2);
}

.single-post .entry-related .entry-meta {
  display: none;
}

@media all and (min-width: 1025px) {
  .single-post .entry-related-inner-content {
    padding-left: 0;
    padding-right: 0;
  }
}

@media all and (max-width: 1024px) {
  .single-post .article-post-thumbnail .post-thumbnail-inner {
  margin: 0 1.5em;
  border-radius: 10px;
  overflow: hidden;
}
}

@media all and (max-width: 767px) {
  .single-post .kadence-thumbnail-position-behind {
    margin-bottom: 1rem;
  }
}

@media all and (max-width: 719px) {
  .single-post.content-style-boxed .content-bg:not(.loop-entry) {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Search Results */

#dds-search-title {
  font-size: var(--global-kb-font-size-sm);
  font-family: var(--global-body-font-family);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

#dds-search-title span {
  font-size: var(--global-kb-font-size-xxxl);
  font-family: var(--global-heading-font-family);
  display: block;
  text-transform: capitalize;
  letter-spacing: 0;
  font-weight: normal;
}

/* Archives */

.dds-cat-near a:first-child::before {
  color: var(--global-palette3);
  margin-right: 5px;
  display: inline-block;
}

.category-child-level-1 .dds-cat-near a:first-child::before {
  content: "Explore Other Regions:";
}

.category-child-deep .dds-cat-near a:first-child::before {
  content: "Explore Nearby:";
}

/* Sidebar */

.sidebar-inner-wrap {
  height: 100%;
}

/* Callouts */

.dds-dashed-border.wp-block-kadence-column > .kt-inside-inner-col {
  border-style: dashed;
}

/* Avoid widows */

@media all and (max-width: 500px) {
  h2,
  h3,
  h4,
  h5,
  h6 {
    text-wrap: balance;
  }
}

.dds-balance {
  text-wrap: balance;
}

/* MQD Info Boxes */

.dds-info-image .kt-info-box-image {
  min-width: 150px;
}

.dds-info-med .kt-info-box-image {
  min-width: 75px;
}

@media all and (max-width: 767px) {
  .dds-info-image .kt-blocks-info-box-media .kt-info-box-image {
    max-width: 150px;
  }
  :is(.dds-info-image, .dds-info-med, .dds-info-small)
    .kt-blocks-info-box-media-container
    .kt-blocks-info-box-media {
    margin-right: 0px;
  }
}

.dds-dotted-border {
  border-style: dotted;
}

.dds-dotted-section.wp-block-kadence-column > .kt-inside-inner-col {
  border-style: dotted;
}

/* MQD Image Overlays */

.dds-overlay-image .kt-image-overlay-inner {
  width: 100%;
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--global-palette6) 80%, transparent),
    color-mix(in srgb, var(--global-palette6) 0%, transparent)
  );
}

.dds-gallery .kb-splide .splide__slide:nth-of-type(odd) {
  margin-top: 30px;
}

/* Image hotspot */

#powerTip p {
  margin: 0;
  line-height: 1.2em;
  font-size: 16px;
}

.wp-block-kadence-query .wp-block-kadence-query-pagination .pagination {
  margin-bottom: 0;
}

/* Road Trips */

.dds-trip-anchor a {
  text-decoration: none;
  padding-right: 5px;
}

.dds-trip-anchor a::after {
  content: "";
  display: inline-flex;
  width: 1.4em;
  height: 1.4em;
  background-color: currentColor;
  transform: translateX(5px) translateY(7px);
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 491.737 491.737' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M485.981,233.385L314.071,86.543c-7.68-6.556-18.479-8.051-27.642-3.822c-9.182,4.228-15.054,13.406-15.054,23.507v67.949c-62.44-20.765-135.359-33.775-165.903-33.775C47.234,140.401,0,187.619,0,245.875c0,58.253,47.234,105.471,105.473,105.471c30.544,0,103.463-13.011,165.903-33.776v67.94c0,10.1,5.872,19.281,15.054,23.508c9.162,4.228,19.962,2.734,27.642-3.822L486,258.336c3.644-3.122,5.737-7.679,5.737-12.479S489.644,236.499,485.981,233.385z M102.401,299.325c-29.533,0-53.464-23.936-53.464-53.46c0-29.525,23.931-53.463,53.464-53.463c29.531,0,53.46,23.938,53.46,53.463C155.861,275.388,131.933,299.325,102.401,299.325z'/%3E%3C/svg%3E");
}
