/* 
  Main file for implementing custom design     
*/

body {
  /* --has-link-decoration: underline; */
  --theme-border-radius: 0;
  --description-max-width: 900px;
}

.clickable-block {
  cursor: pointer;
}

.product-image,
.wp-lightbox-overlay .wp-block-image,
.wp-block-gallery {
  img {
    border-bottom-right-radius: 64px;
  }
}

#main-container {

  .comparison-table {

    .comparison-item {

      &.comparison-header {
        background-color: var(--theme-palette-color-5);
      }

      .item-badge {
        border-radius: 0 24px 0 0;
      }

      .item-row-callout {


        .gss-item-btn {
          --theme-button-min-height: 42px;
          --theme-button-padding: 5px 20px;
          --theme-box-shadow: none;
          display: inline-flex;
          align-items: center;
          justify-content: center;
          min-height: var(--theme-button-min-height);
          padding: var(--theme-button-padding);
          border: none;
          appearance: none;
          cursor: pointer;
          -webkit-user-select: none;
          user-select: none;
          text-align: center;
          border-radius: var(--theme-button-border-radius, 3px);
          transition: all .12s cubic-bezier(0.455, 0.03, 0.515, 0.955);
          font-family: var(--theme-button-font-family, var(--theme-font-family));
          font-size: var(--theme-button-font-size);
          font-weight: var(--theme-button-font-weight);
          font-style: var(--theme-button-font-style);
          line-height: var(--theme-button-line-height);
          letter-spacing: var(--theme-button-letter-spacing);
          text-transform: var(--theme-button-text-transform);
          -webkit-text-decoration: var(--theme-button-text-decoration);
          text-decoration: var(--theme-button-text-decoration);
          box-shadow: var(--theme-box-shadow);

          &:hover {
            transform: var(--theme-button-transform, translate3d(0, -3px, 0));
            color: var(--theme-button-text-hover-color);
            border-color: var(--theme-button-border-hover-color);
            background-color: var(--theme-button-background-hover-color) !important;
          }
        }
      }
    }
  }

  .section-projects .wp-block-blocksy-query {

    img {
      width: auto;
      height: auto;
      max-height: 110px;
      max-width: 260px;
      margin: auto;
    }

    /* todo fix for specific post portrait/square logos
    .post-1512 img {
      /* max-height: 84px; */
    /* } */
  }

  .slider-content-zone {
    width: 100%;
  }
  
  .wp-block-post-content {
    margin-bottom: 0;
  }

  /* Prevents logo SVG from stretching */
  .site-logo-container {
    img,
    svg {
      width: auto;
    }
  }

  .vdlp-menu-btn {

    a {
      --menu-indicator-opacity: 1;
      --menu-indicator-width: calc(100% - var(--menu-items-spacing, 25px));
      --theme-link-hover-color: var(--wp--preset--color--palette-color-1);
      font-weight: 600;
    }
  }

  /* Search Box */
  .ct-search-box {
    width: 100%;

    .ct-search-form input {
      padding-inline: 1rem;
    }
  }

  /* Pagination */
  .ct-pagination {
    --theme-font-size: 15px;

    .page-numbers {
      font-size: var(--theme-font-size);

      &.next,
      &.prev {
        text-transform: none;
        font-size: var(--theme-font-size);
      } 
    }
  }

  /* Breadcrumbs */
  .ct-breadcrumbs,
  .wp-block-greenshift-blocks-breadcrumbs {
    /* --has-link-decoration: underline; */

      a {
        border-bottom: 1px solid var(--wp--preset--color--palette-color-1);

        &:hover {
          border-bottom-color: var(--wp--preset--color--palette-color-2);
        }
      }
  }

  .menu-footer-container {
    --theme-font-size: 15px;

    & ul {
      list-style: none; 
      margin: 0;
      padding: 0;

      & li {
        display: inline; 
        margin-right: 1rem;
      }
    }
  }
}

@media (min-width: 1000px) {
  #main-container {
    .ct-footer-copyright {
      text-align: right;
    }
  }
}

.wp-block-greenshift-blocks-iconlist {
  img,
  svg {
    min-width: 18px;
  }
}

.single-project {

  .wp-block-categories-list {
    list-style: none;
    padding: 0;

    a:hover {
      color: var(--wp--preset--color--palette-color-1);
    }
  }
}

.vdlp-lightbox-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999999999;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    /* border-radius: var(--theme-border-radius); */
    border-radius: 100%;
    color: var(--flexy-nav-arrow-color, var(--theme-text-color));
    box-shadow: 0px 25px 40px rgba(0, 0, 0, .3);
    background: var(--flexy-nav-background-color, #fff);
    transition: all .12s cubic-bezier(0.455, 0.03, 0.515, 0.955);

    &:hover {
      color: var(--flexy-nav-arrow-hover-color, #fff);
      background: var(--flexy-nav-background-hover-color, var(--theme-palette-color-1));
    }

    &.vdlp-prev { 
      left: 20px;
      --translate-x: -10px;
    }

    &.vdlp-next { 
      right: 20px;
      --translate-x: 10px;
    }
}

.wp-block-navigation {
  
  .wp-block-navigation-item {
    a {
      border-bottom: 1px solid transparent;

      &:hover {
        border-bottom: 1px solid var(--wp--preset--color--palette-color-8);
      }
    }
  }
}

@media (max-width: 999.98px) {

  .vdlp-header-image {
    max-height: 460px;
  }

  .vdlp-slider img {
    max-height: 360px;
  }
}