/*
Theme Name: Klepon Simple
Theme URI: -
Author: Angga
Author URI: https://wa.me/6281239968797?text=Saya%20mau%20pesan%20website
Description: Untuk menampilkan hero, price calculator, portfolio, testimoni, kontak menggunakan frontend admin. Otomatis membuat page homepage, portfolio-admin, dan testimoni-admin
Version: 2.3.0
*/

body {
  overflow-x: hidden;
}

.hero-container {
  .hero-background {
    position: absolute;
    z-index: 1;
    width: 50%;
    height: 90%;
    right: 0;
    top: 50%;
    transform: translate(-0%, -50%);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: left;
  }

  .hero-content {
    position: relative;
    z-index: 2;
  }

  .hero-text {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.65);

    h1 {
      font-weight: 500;
    }
  }
}

.text-truncate-multiline {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.text-expanded {
  -webkit-line-clamp: unset !important;
}


section#porto-container {
  overflow: hidden;
}

.portfolio.single.switch-vertical {
  display: flex;
  flex-direction: column-reverse;
}

.portfolio {
  min-height: 100px;

  h2 a {
    color: rgb(33, 37, 41);
    text-decoration: none;
  }

  .iframe-container {
    position: relative;
    width: 100%;
    padding-top: 56%;
    overflow: hidden;

    &.portrait {
      padding-top: 177%;
    }
  }

  .iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }

  img {
    width: 100%;
    height: auto;
    max-width: 100%;
    height: auto;
  }
}

.blockquote-container {
  border-left: solid 6px rgb(222, 226, 230);
  margin: 0 16px 8px;
  padding: 0 8px;

  footer a {
    color: rgb(108, 117, 125);
    text-decoration: none;
  }

  .blockquote {
    font-style: italic;
  }
}

.contact-container {
  iframe {
    max-width: 100%;
  }
}

.nav {
  gap: 4px;
  margin-top: 16px;
  justify-content: center;

  .page-numbers {
    min-width: 30px;
    text-align: center;
    text-decoration: none;
    color: rgb(33, 37, 41);
    font-weight: 700;

    &:hover {
      border-bottom: solid 2px rgb(33, 37, 41);
    }

    &.current {
      border-bottom: solid 2px rgb(33, 37, 41);
      opacity: 60%;
    }

    &.prev,
    &.next {
      font-weight: 500;
    }

    &.dots {
      opacity: 60%;
      font-weight: normal;
      min-width: 0;

      &:hover {
        border: none;
      }
    }
  }
}

.add_new_item_btn {
  color: rgb(108, 117, 125);
}

.bg-very-light {
  background-color: #fdfdfe;
}

.position-relative .field-btn {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  z-index: 2;
  border: none;
  font-size: large;
  background: #fff;
}

@media (min-width: 768px) {
  section {
    max-width: 1024px;
    margin: auto;
  }

  .hero-container {
    .hero-background {
      width: 40%;
    }

    .hero-text {
      width: 60%;
      background-color: rgba(255, 255, 255, 0);
    }
  }

  .portfolio.onlist {
    overflow: hidden;
    height: 430px;

    img {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
    }

    .portodesc {
      z-index: 2;
    }

    .button-container {
      z-index: 3;
    }
  }
}