/* Main Content Block */
#pk_flex_content .flex_layout.content_blok {
  max-width: 100%;
  padding: 80px 0;
  overflow: hidden;
  background: url('./bg-pattern.png') center center;
}

.content-block__section .component-grid {
  position: relative;
}

/* Gallery Layout */
.gallery-layout__wrapper {
  overflow: visible;
}

.gallery-layout__wrapper .gallery-layout {
  position: relative;
}

.gallery-layout__wrapper .gallery-item figure {
  aspect-ratio: 288 / 417;
  width: 100%;
  height: 100%;
  margin: 0;
}

.gallery-layout__wrapper .gallery-item figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content Sections */
.content-block__section .content-left {
  margin-top: 40px;
}

.content-block__section .content-right {
  display: none;
}

/* Divider */
.content-block__section .divider-wrapper {
  width: 100%;
  overflow: hidden;
}

.content-block__section .divider {
  position: absolute;
  top: -100px;
  right: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  z-index: 5;
  overflow: hidden;
}

.content-block__section .divider .main-line {
  grid-column: 1 / 13;
  width: 3px;
  height: 205px;
  background: #d0d0d0;
}

.content-block__section .divider .line-main {
  position: absolute;
}

.content-block__section .divider .line {
  position: relative;
  display: block;
  max-height: 70%;
  height: 100%;
  width: 3px;
  background: var(--orange);
  z-index: 1;
}

/* Tablet Styles */
@media screen and (min-width: 768px) {
  #pk_flex_content .flex_layout.content_blok {
    padding: 100px 0;
  }

  /* Gallery Items */
  .content-block__section .gallery-item__1 {
    grid-column: 1 / 5;
    padding-top: 50px;
  }

  .content-block__section .gallery-item__1 figure {
    aspect-ratio: 400 / 450;
    margin: 0;
  }

  .content-block__section .gallery-item__2 {
    grid-column: 5 / 13;
    padding-bottom: 50px;
  }

  .content-block__section .gallery-item__2 figure {
    aspect-ratio: 685 / 400;
    margin: 0;
  }

  .content-block__section .gallery-item__3 {
    display: none;
  }

  /* Grid Layout */
  .content-block__section .component-grid,
  .gallery-layout {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
    gap: 20px;
    overflow: hidden;
  }

  /* Content Sections */
  .content-block__section .content-left {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    grid-column: 1 / 6;
    text-align: right;
  }
  .content-block__section .content-left .content-body {
    max-width: 420px;
  }

  .content-block__section .content-right {
    display: block;
    grid-column: 7 / 13;
  }

  /* Divider */
  .content-block__section .divider-wrapper {
    padding: 26px 0;
  }

  .content-block__section .divider {
    position: absolute;
    top: unset;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
  }

  .content-block__section .divider .main-line {
    grid-column: 4 / 9;
    width: 100%;
    height: 3px;
    background: var(--orange);
    background: #d0d0d0;
  }

  .content-block__section .divider .line {
    position: relative;
    display: block;
    max-width: 80%;
    width: 100%;
    max-height: unset;
    height: 3px;
    background: #d0d0d0;
    background: var(--orange);
    z-index: 1;
  }

  .content-block__section .divider-wrapper .divider .main-line .line {
    transform: translateX(-350%);
  }

  /* Content Images */
  .content-block__section .content-image__wrapper {
    aspect-ratio: 508 / 600;
  }

  .content-block__section .content-image__wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* Desktop Styles */
@media screen and (min-width: 990px) {
  #pk_flex_content .flex_layout.content_blok {
    padding: 200px 0;
  }

  .divider-wrapper {
    padding: 56px 0;
  }

  .content-block__section .gallery-item__2 {
    grid-column: 5 / 12;
  }

  .content-block__section .content-right {
    display: block;
    grid-column: 7 / 12;
  }
}
