/*
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: 3.5.0
*/

body {
  overflow-x: hidden;
}

body>section:not(.title-section) {
  overflow: hidden;
  margin-bottom: 24px !important;
  min-height: 41px;
}

.hero-container {
  .hero-background {
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    right: 0;
    top: 50%;
    transform: translate(-0%, -50%);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: left;
    opacity: 0.35;
  }

  .hero-content {
    position: relative;
    z-index: 2;
  }

  &.bg-light .hero-content::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #fff;
    opacity: 0.5;
    z-index: -1;
  }

  .hero-text {
    width: 100%;

    h1 {
      font-weight: 500;
    }
  }

  .truncate-container {
    margin-bottom: 24px;
  }
}

.lead-panel .hero-container .hero-background {
  opacity: 0.35;
}

.lead-panel .hero-container .hero-text {
  width: 100%;
}

.hero-content .truncate-container,
.onlist .truncate-container {
  .truncate-content {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

.text-expanded {
  -webkit-line-clamp: unset !important;
}

section#porto-grid,
section#activity-container {
  overflow: hidden;
}

.activity.single.switch-vertical {
  display: flex;
  flex-direction: column-reverse;
}

.tiktok-embed-wrapper {
  max-width: 340px;
  margin-inline: auto;

  .tiktok-embed {
    margin: 0;
  }
}

.portfolio,
.activity {
  min-height: 100px;

  h2 a {
    text-decoration: none;
    color: var(--bs-heading-color);
  }

  .portodesc,
  .activitydesc {
    background-color: rgba(var(--bs-body-bg-rgb), 0.7);
  }

  .iframe-container {
    position: relative;
    width: 100%;
    padding-top: 56%;
    overflow: hidden;

    &.portrait {
      max-width: 340px;
      margin-inline: auto;
      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;
  }
}

.onlist .activity .truncate-content {
  -webkit-line-clamp: 3;
}

.activity {
  .iframe-container {
    position: relative;
    width: 100%;
    padding-top: 56%;
    overflow: hidden;
  }

  .iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }
}

.blockquote-container {
  border-left: solid 6px rgb(222, 226, 230);
  margin: 0 16px 8px;
  padding: 0 8px;

  footer {
    opacity: 0.6;
  }

  footer a {
    text-decoration: none;
    color: var(--bs-body-color);
  }

  .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;
    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;
      }
    }
  }
}

.bg-very-light {
  background-color: rgba(var(--bs-light-rgb), 0.7);
}

.position-relative .field-btn {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  z-index: 2;
  border: none;
  font-size: large;
  background: #fff;
}

.modal-fullscreen .modal-content {
  max-width: 850px;
  margin: auto;
}

gmp-place-autocomplete {
  display: block;
  width: 100%;
  --gmpx-font-family-base: inherit;
  --gmpx-font-size-base: 1rem;
}

body.admin-bar .modal {
  top: 32px;
  height: calc(100% - 32px);
}

@media screen and (max-width: 782px) {
  body.admin-bar .modal {
    top: 46px;
    height: calc(100% - 46px);
  }
}

#settingMenu {
  &::after {
    display: none;
  }

  .icon-with-border {
    font-size: 2.5rem;
    color: #000;
    text-shadow:
      0 0 5px #fff,
      0 0 10px #fff,
      0 0 15px #fff;
  }
}

@media (min-width: 768px) {
  section {
    max-width: 1024px;
    margin: auto;
  }

  .hero-container {
    .hero-background {
      width: 40%;
    }

    &.bg-light .hero-content::before {
      content: none;
    }

    .hero-text {
      width: 60%;
    }

    .hero-background {
      opacity: 1;
    }
  }

  .portfolio.onlist:not(.switch-vertical),
  .activity.onlist:not(.switch-vertical) {
    overflow: hidden;
    height: 430px;

    img {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
    }

    .portodesc,
    .activitydesc {
      z-index: 2;
    }

    .button-container {
      z-index: 3;
    }
  }

  .activity {
    .image-container {
      position: relative;
      width: 100%;
      padding-top: 56%;
      overflow: hidden;
    }

    .image-container img {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: auto;
      height: 100%;
      border: 0;
      max-width: none;
    }
  }

  .single .activity {
    .image-container {
      padding: 0;
    }

    .image-container img {
      height: auto;
      position: static;
      transform: none;
    }
  }
}