#pk_flex_content .flex_layout.verhalen {
    padding: unset;
    max-width: 100%;
}

#pk_flex_content .flex_layout.verhalen .verhalen_wrapper {
    padding-left: max(40px, calc((100vw - 1350px) / 2));
    padding-block: 160px 140px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

#pk_flex_content .flex_layout.verhalen .verhalen_wrapper.use-bg:before {
  content: '';
  inset: 0px;
  top: -2px;
  display: inline-block;
  position: absolute;
  background-image: url('/wp-content/uploads/2025/11/verhalen_bg_shape.svg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: bottom center;
  z-index: 0;
  height: 100%;
}

#pk_flex_content .flex_layout.verhalen .verhalen_wrapper .content_container {
  width: 20%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-self: start;
  gap: 24px;
  z-index: 1;
}

#pk_flex_content .flex_layout.verhalen .swiper {
  max-height: 600px;
  flex: 1;
  min-width: 0;
  overflow: visible;
  position: relative;
}

#pk_flex_content .flex_layout.verhalen .swiper_container .swiper-slide {
  /* aspect-ratio: 2/3; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  transition: all ease 0.3s;
  padding: 120px 32px;
  overflow: visible;
  border-radius: var(--zgem-radius-small);
  height: auto;
  aspect-ratio: 4/5;
}

#pk_flex_content .flex_layout.verhalen .swiper_container .swiper-slide.first-color {
  background-color: var(--zgem-flex-green-default);
}

#pk_flex_content .flex_layout.verhalen .swiper_container .swiper-slide.second-color {
  background-color: var(--zgem-flex-red);
}

#pk_flex_content .flex_layout.verhalen .swiper_container .swiper-slide.third-color {
  background-color: var(--zgem-flex-darkblue-secondary);
}

#pk_flex_content .flex_layout.verhalen .swiper_container .swiper-slide.swiper-slide-prev,
#pk_flex_content .flex_layout.verhalen .swiper_container .swiper-slide:not(.swiper-slide-active){
  opacity: 0;
  pointer-events: none;
}

#pk_flex_content .flex_layout.verhalen .swiper_container .swiper-slide.swiper-slide-active,
#pk_flex_content .flex_layout.verhalen .swiper_container .swiper-slide.swiper-slide-active ~ div {
  opacity: 1;
  pointer-events: auto;
}

#pk_flex_content .flex_layout.verhalen .swiper_container .slide-image {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  position: absolute;
  max-width: 35%;
  top: 0;
  left: 50%;
  transform-origin: center center;
  transform: translate(-50%, 0);
}

#pk_flex_content .flex_layout.verhalen .swiper-slide.first-color .slide-image {
  transform: translate(-50%, -50%) rotate(-45deg);
}

#pk_flex_content .flex_layout.verhalen .swiper-slide.second-color .slide-image {
  transform: translate(-50%, -50%);
  border-radius: 50%;
  overflow: hidden;
}

#pk_flex_content .flex_layout.verhalen .swiper-slide.third-color .slide-image {
  transform: translate(-50%, -50%) rotate(-45deg);
  mask: url("data:image/svg+xml,%3Csvg width='196' height='196' viewBox='0 0 196 196' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 195.624L0 97.812C0 43.8431 43.8432 -8.43379e-05 97.8121 -8.43379e-05C151.781 -8.43379e-05 195.624 43.8431 195.624 97.812L195.624 195.624L0 195.624Z' fill='white'/%3E%3C/svg%3E%0A") no-repeat center / contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg width='196' height='196' viewBox='0 0 196 196' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 195.624L0 97.812C0 43.8431 43.8432 -8.43379e-05 97.8121 -8.43379e-05C151.781 -8.43379e-05 195.624 43.8431 195.624 97.812L195.624 195.624L0 195.624Z' fill='white'/%3E%3C/svg%3E%0A") no-repeat center / contain;
}

#pk_flex_content .flex_layout.verhalen .swiper_container .slide-image img {
  width: 100%;
  height: 100%; 
  object-fit: cover;
  contain-intrinsic-size: unset;
}

#pk_flex_content .flex_layout.verhalen .swiper_container .swiper-slide .title {
  font-size: clamp(24px, 2.66vw, 34px);
  font-weight: bold;
  line-height: 1.2;
  z-index: 2;
}

#pk_flex_content .flex_layout.verhalen .swiper_container .swiper-slide .subtitle {
  font-weight: bold;
  line-height: 1.2;
  font-weight: bold;
  color: rgba(255,255,255, .6);
}

#pk_flex_content .flex_layout.verhalen .swiper_container .swiper-slide .divider {
  width: auto;
  height: 2px;
  background-color: rgba(255,255,255, .6);
  margin-inline: -32px;
}

#pk_flex_content .flex_layout.verhalen .swiper_container .swiper-slide  * {
  color: var(--zgem-flex-white);
}

#pk_flex_content .flex_layout.verhalen .swiper_container .swiper_button_wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translate(-200px, 100px);
}

#pk_flex_content .flex_layout.verhalen .swiper_container .swiper_button_wrapper > div {
    display: block;
    aspect-ratio: 1;
    width: 64px;
    background-repeat: no-repeat;
    background-size: 40%;
    background-position: center;
    background-color: var(--zgem-flex-red);
    border-radius: 50%;
}

#pk_flex_content .flex_layout.verhalen .swiper_container .swiper_button_wrapper .custom-button-prev {
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='15' viewBox='0 0 18 15' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.7861 7.11236L0.795899 7.241M0.795899 7.241L6.79222 0.796485M0.795899 7.241L6.79222 13.589' stroke='white' stroke-width='1.59262' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
}

#pk_flex_content .flex_layout.verhalen .swiper_container .swiper_button_wrapper .custom-button-next {
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='15' viewBox='0 0 18 15' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.795955 7.11236L16.7861 7.241M16.7861 7.241L10.7898 0.796485M16.7861 7.241L10.7898 13.589' stroke='white' stroke-width='1.59262' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
}


@media screen and (min-width: 1024px) {
  
  #pk_flex_content .flex_layout.verhalen .swiper_container .swiper-slide {
    max-width: 400px;
  }
  
}

@media screen and (max-width: 992px) {
  
  #pk_flex_content .flex_layout.verhalen .verhalen_wrapper {
    gap: 24px;
  }
  
  #pk_flex_content .flex_layout.verhalen .swiper_container .swiper_button_wrapper {
    margin-top: 40px;
    transform: translate(0px, 0px);
  }
  
  #pk_flex_content .flex_layout.verhalen .swiper_container .swiper_button_wrapper > div {
    width: 40px;
  }
  
  #pk_flex_content .flex_layout.verhalen .verhalen_wrapper .content_container {
    width: 40%;
  }
  
  #pk_flex_content .flex_layout.verhalen .swiper_container .swiper-slide {
    max-width: 300px;
    padding: 120px 32px 80px 32px;
  }
  
}

@media screen and (max-width: 767px) {
  
  #pk_flex_content .flex_layout.verhalen .verhalen_wrapper {
    padding: 60px 20px;
    flex-direction: column;
  }
  
  #pk_flex_content .flex_layout.verhalen .verhalen_wrapper .content_container {
    width: 100%;
  }
  
  #pk_flex_content .flex_layout.verhalen .swiper {
    margin-top: 80px;
    width: 100%;
  }
  
  #pk_flex_content .flex_layout.verhalen .swiper_container .swiper-slide {
    max-width: unset;
    padding: 120px 24px 40px 24px;
  }
  
  #pk_flex_content .flex_layout.verhalen .swiper-slide.first-color .slide-image {
    transform: translate(-50%, -20%) rotate(-45deg);
  }
  
  #pk_flex_content .flex_layout.verhalen .swiper-slide.second-color .slide-image {
    transform: translate(-50%, -20%);
  }
  
  #pk_flex_content .flex_layout.verhalen .swiper-slide.third-color .slide-image {
    transform: translate(-50%, -20%) rotate(-45deg);
  }

}

