/*
Theme Name: Andrea Kubillus - Breathwork Coach
Author: webkonditorei
Author URI: https://webkonditorei.de/
Theme URI: https://webkonditorei.de/
Tags: full-site-editing, block-patterns
Text Domain: kubillus
Requires at least: 6.4
Requires PHP: 7.4
Tested up to: 6.4
Version: 1.0.2

License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Styles intended only for the front.*/
html {
  scroll-behavior: smooth;
}

@media screen and (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
    font-size: 17px;
  }
}

body {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

ul {
  padding-left: 1em;
}

.nomarg p {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.wp-block-list {
  padding-left: 1.2em !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}


:root :where(.is-layout-constrained) > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.wp-block-group,
.wp-block-columns {
  scroll-margin-top: 150px;
}

/* Fonts are registered via theme.json fontFace arrays */


/* Header */

/* =========================
   Header & Sticky Behavior
   ========================= */

.site-header {
  z-index: 999 !important;
  position: relative;
}

/* Header Nav */

.main-header-nav,
.header-nav-main-wrapper {
  width: auto;
}

.current_page_item a {
  opacity: 0.6;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  gap: 30px;
}

.menu-item > a {
  color: var(--wp--preset--color--base);
  font-weight: 600;
  text-decoration: none;
  font-size: 17px;
}

.menu-item .parent-item {
  background-color: transparent;
  border: none;
  color: var(--wp--preset--color--base);
  padding: 0;
  font-size: 18px;
  font-weight: 600;
  font-family: var(--wp--preset--font-family--system);
  display: flex;
  align-items: center;
  gap: 0.4em;
  cursor: pointer;
  transition: all cubic-bezier(0.76, 0, 0.24, 1) 0.3s;
}

.menu-item .parent-item svg {
  transition: all cubic-bezier(0.76, 0, 0.24, 1) 0.3s;
  width: 0.7em;
  height: auto;
}

.menu-item .parent-item.active-sub-nav {
  opacity: 0.8;
}

.menu-item .parent-item.active-sub-nav svg {
  transform: scaleY(-1);
}

.header-nav .sub-menu {
  position: absolute;
  transform: translateY(50px);
  list-style: none;
  padding: 30px;
  border: 1px solid;
  border-radius: 10px;
  border-color: var(--wp--preset--color--base);
  margin: 0;
  background-color: var(--wp--preset--color--contrast);
  display: flex;
  flex-direction: column;
  gap: 20px;
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  transition: all cubic-bezier(0.76, 0, 0.24, 1) 0.5s;
}

.active-sub-nav-container {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%) !important;
  transform: translateY(20px) !important;
}

.header-nav .sub-menu a {
  color: var(--wp--preset--color--primary);
}

/* Mobile Nav */

@media (max-width: 900px) {

  #main-logo {
    width: 240px;
    height: auto;
  }

  .header-nav {
    gap: 0px;
  }

  #menu-hauptmenue {
    padding: 0;
  }

  .menu-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--wp--preset--color--base);
    width: 100%;
  }

  #navtrigger {
    position: relative;
    z-index: 999;
  }

  .main-header-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;

    height: calc(100dvh - 20px); /* dynamisch sichtbare Höhe */
    overflow-y: auto;

    clip-path: polygon(100% 0, 100% 0, 100% 0, 100% 0);
    pointer-events: none;
    transition: clip-path 0.6s cubic-bezier(0.76, 0, 0.24, 1);

    border-radius: 10px;
    padding: 40px;
    padding-top: 110px;
    box-sizing: border-box;
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
    background: var(--wp--preset--color--primary);
  }

  .main-header-nav.active-nav {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    pointer-events: auto;
    border-radius: 0 0 50px 0;
  }

  .header-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-item > a {
    font-size: 22px;
  }
  .menu-item .parent-item {
    font-size: 22px;
  }

  .header-nav .sub-menu {
    position: relative;
    padding: 0px 0px 0em 0.3em;
    max-height: 0px;
    margin: 0;
    border: none;
  }
  .header-nav .sub-menu .menu-item {
    border: none;
    padding: 0;
  }

  .header-nav .sub-menu.active-sub-nav-container {
    padding: 0px 0px 2em 0.3em;
  }
}

/* =========================
   Nav Trigger / Hamburger
   ========================= */

#navtrigger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  width: 28px;
  padding: 4px 0;
  position: relative;
  z-index: 9999;
}

.burger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--wp--preset--color--base);
  border-radius: 2px;
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1),
              opacity 0.3s ease;
  transform-origin: center;
}

#navtrigger.active-trigger .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#navtrigger.active-trigger .burger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

#navtrigger.active-trigger .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 900px) {
  #navtrigger {
    display: none;
  }
}

/* Nav Item Line Reveal (mobile only) */

@media (max-width: 900px) {
  .nav-item-reveal {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
  }

  .nav-item-reveal-inner {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 0s;
  }

  .main-header-nav.active-nav .nav-item-reveal-inner {
    transform: translateY(0);
    transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
  }

  .main-header-nav.active-nav .menu-item:nth-child(1) .nav-item-reveal-inner { transition-delay: 0.25s; }
  .main-header-nav.active-nav .menu-item:nth-child(2) .nav-item-reveal-inner { transition-delay: 0.32s; }
  .main-header-nav.active-nav .menu-item:nth-child(3) .nav-item-reveal-inner { transition-delay: 0.39s; }
  .main-header-nav.active-nav .menu-item:nth-child(4) .nav-item-reveal-inner { transition-delay: 0.46s; }
  .main-header-nav.active-nav .menu-item:nth-child(5) .nav-item-reveal-inner { transition-delay: 0.53s; }
  .main-header-nav.active-nav .menu-item:nth-child(6) .nav-item-reveal-inner { transition-delay: 0.60s; }
  .main-header-nav.active-nav .menu-item:nth-child(7) .nav-item-reveal-inner { transition-delay: 0.67s; }
  .main-header-nav.active-nav .menu-item:nth-child(8) .nav-item-reveal-inner { transition-delay: 0.74s; }
}

/* Footer */

footer {
  margin-top: 0;
}

.footer-nav a {
  font-weight: 400 !important;
}

.w-full {
  width: 100%;
}

/* Buttons */



/* Arrow Button Style */
.wp-block-button.is-style-arrow .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.wp-block-button.is-style-arrow .wp-block-button__link::after {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 10px;
  height: 20px;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='10' height='20' viewBox='0 0 10 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 9.55898C10 10.1418 9.85824 10.7167 9.56686 11.2364C7.53502 14.867 5.25118 16.9854 1.14025 19.0409C0.754361 19.2378 0.281841 19.0803 0.0849579 18.6865C-0.111925 18.2927 0.0455812 17.8281 0.439348 17.6312C4.28251 15.7096 6.30647 13.8353 8.19655 10.4725C8.51156 9.91337 8.51156 9.21247 8.19655 8.65332C6.30647 5.28268 4.27463 3.40835 0.431472 1.48677C0.0455812 1.29776 -0.111925 0.825239 0.0849579 0.431472C0.273966 0.0455812 0.746486 -0.111925 1.14025 0.0849579C5.25118 2.14042 7.53502 4.25101 9.56686 7.88941C9.85824 8.40918 10 8.99196 10 9.56686V9.55898Z' fill='black'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg width='10' height='20' viewBox='0 0 10 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 9.55898C10 10.1418 9.85824 10.7167 9.56686 11.2364C7.53502 14.867 5.25118 16.9854 1.14025 19.0409C0.754361 19.2378 0.281841 19.0803 0.0849579 18.6865C-0.111925 18.2927 0.0455812 17.8281 0.439348 17.6312C4.28251 15.7096 6.30647 13.8353 8.19655 10.4725C8.51156 9.91337 8.51156 9.21247 8.19655 8.65332C6.30647 5.28268 4.27463 3.40835 0.431472 1.48677C0.0455812 1.29776 -0.111925 0.825239 0.0849579 0.431472C0.273966 0.0455812 0.746486 -0.111925 1.14025 0.0849579C5.25118 2.14042 7.53502 4.25101 9.56686 7.88941C9.85824 8.40918 10 8.99196 10 9.56686V9.55898Z' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transition: transform 0.3s cubic-bezier(0.76, 0, 0.24, 1);
}

.wp-block-button.is-style-arrow .wp-block-button__link:hover::after {
  transform: translateX(5px);
}

/* Full Width Mobile - Buttons Block */
@media (max-width: 500px) {
  .wp-block-buttons.is-style-full-width-mobile {
    flex-direction: column;
  }

  .wp-block-buttons.is-style-full-width-mobile .wp-block-button {
    width: 100%;
  }

  .wp-block-buttons.is-style-full-width-mobile .wp-block-button .wp-block-button__link {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

/* Unfold Block */

.kubillus-unfold {
  width: 100%;
  transition: all ease-in-out .2s;
  background-color: var(--wp--preset--color--lightgrey);
  padding: 12px 32px;
  border-radius: 0 0 40px 0;
}

.kubillus-unfold.is-open {
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--base)!important;
}

.kubillus-unfold__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  user-select: none;
  padding: 20px 0;
}

.kubillus-unfold__trigger-content {
  flex: 1;
  min-width: 0;
}

.kubillus-unfold__arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

.kubillus-unfold.is-open .kubillus-unfold__arrow {
  transform: rotate(180deg);
}

.kubillus-unfold.is-open .kubillus-unfold__arrow path {
  fill: var(--wp--preset--color--base);
} 

.kubillus-unfold__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

.kubillus-unfold__body-inner {
  overflow: hidden;
}

.kubillus-unfold.is-open .kubillus-unfold__body {
  grid-template-rows: 1fr;
}

@media(max-width:500px) {

  .kubillus-unfold {
      width: 100%;
      padding: 12px 22px;
      border-radius: 0 0 30px 0;
    }

  .kubillus-unfold__arrow svg {
width: 20px!important;
height: auto;
  }
}

/* List Checklist Style */

.wp-block-list.is-style-checklist {
  list-style: none;
  padding-left: 0!important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.wp-block-list.is-style-checklist li {
  padding-left: 1.4em;
  position: relative;
}

.wp-block-list.is-style-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 15px;
  height: 15px;
  background-image: url("data:image/svg+xml,%3Csvg width='15' height='15' viewBox='0 0 15 15' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.71795 14.7285C5.36568 14.7285 5.02646 14.585 4.77856 14.3371L0.368643 9.78363C-0.127146 9.26174 -0.127146 8.43977 0.394737 7.94399C0.916621 7.4482 1.73859 7.4482 2.23438 7.97008L5.19607 11.0231C7.03571 6.27396 8.87535 3.66454 12.5416 0.33753C13.0765 -0.145213 13.8985 -0.106071 14.3812 0.42886C14.864 0.96379 14.8248 1.78576 14.2899 2.2685C10.4801 5.72598 8.90144 8.21797 6.93133 13.8413C6.78781 14.2718 6.42249 14.585 5.97889 14.6893C5.88756 14.7154 5.79623 14.7154 5.69186 14.7154L5.71795 14.7285Z' fill='%23FBFAF5'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* List Arrow Style */

.wp-block-list.is-style-arrow-list {
  list-style: none;
  padding-left: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.wp-block-list.is-style-arrow-list li {
  padding-left: 1.4em;
  position: relative;
}

.wp-block-list.is-style-arrow-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 10px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='20' viewBox='0 0 10 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 9.55898C10 10.1418 9.85824 10.7167 9.56686 11.2364C7.53502 14.867 5.25118 16.9854 1.14025 19.0409C0.754361 19.2378 0.281841 19.0803 0.0849579 18.6865C-0.111925 18.2927 0.0455812 17.8281 0.439348 17.6312C4.28251 15.7096 6.30647 13.8353 8.19655 10.4725C8.51156 9.91337 8.51156 9.21247 8.19655 8.65332C6.30647 5.28268 4.27463 3.40835 0.431472 1.48677C0.0455812 1.29776 -0.111925 0.825239 0.0849579 0.431472C0.273966 0.0455812 0.746486 -0.111925 1.14025 0.0849579C5.25118 2.14042 7.53502 4.25101 9.56686 7.88941C9.85824 8.40918 10 8.99196 10 9.56686V9.55898Z' fill='%23FBFAF5'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* GSAP Presets */

.fade-in-up {
  opacity: 0;
  transform: translateY(15px);
}

.fade-in {
  opacity: 0;
}

.zoom-in {
  opacity: 0;
  scale: 0.9;
}

/* Heading Line Reveal */
.heading-reveal .hr-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.06em;
  line-height: inherit;
}

.heading-reveal .hr-inner {
  display: inline-block;
}

/* Image / Cover Zoom In */
.image-zoom-in {
  overflow: hidden;
}

.image-zoom-in > img,
.image-zoom-in .wp-block-cover__image-background {
  scale: 1.1;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .fade-in-up {
    opacity: 1 !important;
    transform: none !important;
  }

  .zoom-in {
    opacity: 1 !important;
    scale: 1 !important;
  }

  .heading-reveal .hr-inner {
    transform: none !important;
  }

  .image-zoom-in > img,
  .image-zoom-in .wp-block-cover__image-background {
    scale: 1 !important;
  }
}

 

/* Layouts */



.main-hero-section {
  margin-top: -120px!important;
}


@media(max-width:700px) {
  .main-hero-section .wp-block-cover {
    align-items: flex-end;
    min-height: 700px!important;
    padding-bottom: 60px!important;
  }

  .main-hero-section .wp-block-cover .has-background-gradient {
    background: linear-gradient(180deg, rgba(92, 92, 92, 0.00) 26.01%, #794D31 71.03%)!important;
  }
}


/* Call to Action Section */

.cta-secion > .content-wrapper {
  position: relative;
  overflow: hidden;
}

.cta-secion > .content-wrapper > figure > img {
  object-fit: cover;
}

@media(max-width:600px) {
  .cta-secion > .content-wrapper {
    flex-wrap: wrap!important;
  }

  .cta-secion > .content-wrapper > div, .cta-secion > .content-wrapper > figure {
    flex-basis: 100%!important;
  }

    .cta-secion>.content-wrapper>figure>img {
      max-height: 300px!important;
    }
}

/* Secondary Hero Section */

.secondary-hero {
  position: relative;
  overflow: hidden;
  margin-top: -120px !important;
}

.secondary-hero .hero-image-wrapper img {
  min-height: 600px;
  max-height: 800px;
  object-fit: cover;
}

@media(min-width:1500px) {
  .secondary-hero .hero-image-wrapper img {
    min-height: 800px;
    max-height: 1000px;
    object-fit: cover;
  }
}



.hero-content {
  padding-left: calc((100vw - 1196px) / 2 + 20px) !important;
}

.block-editor-block-list__block.hero-content {
  padding-left: 0 !important;
}


@media(max-width:830px) {

  .secondary-hero {
    flex-wrap: wrap !important;
  }

  .secondary-hero>div {
    flex-basis: 100% !important;
  }

  .secondary-hero .hero-content {
    margin-top: 0 !important;
    padding: 60px 20px !important;
    padding-top: 170px!important;
  }

  .secondary-hero .hero-image-wrapper img {
    min-height: 300px;
    max-height: 400px;
    object-fit: cover;
  }

}


/* Scroll to top */

#scrolltotop {
  background: none;
  padding: 0;
  border: none;
  cursor: pointer;
  position: fixed;
  bottom: -60px;
  right: 20px;
  z-index: 99;
  transition: all cubic-bezier(0.76, 0, 0.24, 1) 0.3s;
}

#scrolltotop.scroll-to-top-active {
  bottom: 20px !important;
}


/* Spacer */

.wp-block-spacer.is-style-xxs {
  height: 8px !important;
}

.wp-block-spacer.is-style-xs {
  height: 16px !important;
}

.wp-block-spacer.is-style-s {
  height: 50px !important;
}

.wp-block-spacer.is-style-m {
  height: 80px !important;
}

.wp-block-spacer.is-style-l {
  height: 120px !important;
}

.wp-block-spacer.is-style-xl {
  height: 180px !important;
}

.wp-block-spacer.is-style-xxl {
  height: 240px !important;
}

@media (max-width: 767px) {
  .wp-block-spacer.is-style-xxs {
    height: 6px !important;
  }

  .wp-block-spacer.is-style-xs {
    height: 12px !important;
  }

  .wp-block-spacer.is-style-s {
    height: 30px !important;
  }

  .wp-block-spacer.is-style-m {
    height: 50px !important;
  }

  .wp-block-spacer.is-style-l {
    height: 70px !important;
  }

  .wp-block-spacer.is-style-xl {
    height: 100px !important;
  }

  .wp-block-spacer.is-style-xxl {
    height: 140px !important;
  }
}

/* Columns Block extension */

@media (max-width: 769px) {
  .wp-block-columns.is-style-reverse-mobile {
    flex-direction: column-reverse;
  }

  .wp-block-group.is-style-reverse-mobile.is-layout-flex {
    flex-direction: column-reverse !important;
  }

  .wp-block-group.is-style-reverse-mobile.is-layout-flex > * {
    flex-basis: auto !important;
    max-width: 100% !important;
  }
}

/* Form */

.wpforms-field-label {
  font-weight: 500 !important;
}

.wpforms-submit-container {
  display: flex;
  justify-content: flex-end;
}

.wpforms-submit {
  border-radius: 50px !important;
}

.wpforms-confirmation-scroll {
  background-color: var(--wp--preset--color--contrast) !important;
  border: none !important;
  padding: 30px !important;
}

.wpforms-confirmation-scroll p {
  color: var(--wp--preset--color--base) !important;
}

/* Image Block extension */

.wp-block-image.is-style-full-width img,
.wp-block-image.is-style-full-width {
  width: 100% !important;
  height: auto !important;
  display: flex !important;
}



/* -----------------------------------------
   Popup
----------------------------------------- */

.kubillus-popup-overlay {
  display: flex;
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--wp--preset--color--primary) 60%, transparent);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  /* 30px each side → 9.5px spare beyond the button's 20.5px protrusion */
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.kubillus-popup-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Card is the positioning context for the close button.
   overflow: visible so the button isn't clipped; only .kubillus-popup-content scrolls. */
.kubillus-popup-card {
  position: relative;
  overflow: visible;
  background: var(--wp--preset--color--base);
  border-radius: 10px;
  padding: 50px;
  max-width: 720px;
  width: 100%;
  transform: scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.kubillus-popup-overlay.is-visible .kubillus-popup-card {
  transform: scale(1);
}

.kubillus-popup-content {
  max-height: 450px;
  overflow-y: auto;
  scrollbar-color: var(--wp--preset--color--primary) transparent;
  scrollbar-width: thin;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.kubillus-popup-content::-webkit-scrollbar {
  width: 6px;
}

.kubillus-popup-content::-webkit-scrollbar-track {
  background: transparent;
}

.kubillus-popup-content::-webkit-scrollbar-thumb {
  background: var(--wp--preset--color--primary);
  border-radius: 3px;
}

.kubillus-popup-close {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(50%, -50%);
  width: 41px;
  height: 41px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.kubillus-popup-close circle {
  fill: var(--wp--preset--color--primary);
  transition: fill 0.15s ease;
}

.kubillus-popup-close path {
  fill: var(--wp--preset--color--base);
}

.kubillus-popup-close:hover circle {
  fill: var(--wp--preset--color--contrast);
}

.kubillus-popup-content>*:first-child {
  margin-top: 0;
}

.kubillus-popup-content>*:last-child {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .kubillus-popup-overlay {
    /* flex-start + margin:auto on card = centered when fits, top-aligned when overflowing */
    align-items: flex-start;
    overflow-y: auto;
    padding: 30px 16px;
  }

  .kubillus-popup-card {
    padding: 32px 24px;
    margin: auto 0;
  }

  .kubillus-popup-content {
    max-height: none;
  }

  /* button sticks above card but stays within horizontal bounds */
  .kubillus-popup-close {
    transform: translateY(-50%);
  }
}


/* Video Block */

.kubillus-video-block {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
  cursor: pointer;
  display: block;
}

.kubillus-video-block__video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.kubillus-video-block__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s cubic-bezier(0.76, 0, 0.24, 1);
}

.kubillus-video-block__overlay.is-playing {
  opacity: 0;
  pointer-events: none;
}

.kubillus-video-block__play-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.76, 0, 0.24, 1);
  display: flex;
}

.kubillus-video-block__play-btn:hover {
  transform: scale(1.08);
}

.kubillus-video-block__pause-btn {
  position: absolute;
  right: 7.5%;
  bottom: 42px;
  width: 52px;
  height: 52px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.76, 0, 0.24, 1),
              transform 0.3s cubic-bezier(0.76, 0, 0.24, 1);
}

.kubillus-video-block__pause-btn svg {
  width: 100%;
  height: 100%;
  display: block;
}

.kubillus-video-block.is-playing .kubillus-video-block__pause-btn {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.kubillus-video-block.is-playing .kubillus-video-block__pause-btn:hover {
  transform: scale(1.08);
}

.kubillus-video-block__timeline {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
}

.kubillus-video-block__progress {
  height: 100%;
  width: 0%;
  background: #2F4B34;
  border-radius: 999px;
  transition: width 0.1s linear;
  pointer-events: none;
}