.sw22-o-hero {
  position: relative;

  p {
    margin: 0;
  }

  .sw19s-std-wrap {
    padding-top: 118px;
    padding-bottom: 219px;

    @media (max-width: 1024px) {
      padding-top: 54px;
      padding-bottom: 56px;
    }
  }

  h1 {
    font-size: clamp(38px, 4.4vw, 60px);
    font-weight: bold;
    line-height: 1.06;
    color: #111111;
    margin: 0 0 2rem 0;

    @media (max-width: 768px) {
      margin: 0 0 11px 0;

      &.no-break {
        br {
          display: none;
        }

        .background {
          display: inline;
        }

        .background .text {
          padding-right: 0;
        }
      }
    }

    .background {
      position: relative;
      display: inline-block;

      &::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        top: 0;
        background-color: rgba(255, 255, 255, 0.7);
      }

      .indent {
        padding-left: 64px;
      }

      .text {
        max-width: max-content;
        height: 5rem;
        padding-right: 0.5rem;
        position: relative;
        z-index: 1;
      }

      @media (max-width: 768px) {
        line-height: initial;
      }
    }
  }

  .sw22-text {
    margin-bottom: 58px;
    font-family: "Roboto Slab", sans-serif;
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.36;
    font-weight: 400;
    max-width: 37.996rem;
    margin-block-start: 0;
    background-color: rgba(255, 255, 255, 0.7);

    &.gray-300 {
      color: #666;
    }

    &.gray-400 {
      color: #444;
    }

    @media (max-width: 768px) {
      margin-bottom: 33px;
    }
  }

  .sw22-image-wrapper {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    overflow: hidden;

    @media (max-width: 768px) {
      overflow-x: clip;
      overflow: inherit;
    }

    @media (min-width: 769px) {
      position: absolute;
      height: 100%;
      z-index: -1;
      top: 0;
      right: 0;
      left: 0;
    }

    .image-block {
      @media (max-width: 768px) {
        display: flex;
        justify-content: end;
        margin-bottom: -10px;
        z-index: 1;
        position: relative;
      }

      @media (min-width: 769px) {
        position: absolute;
        display: inline-block;
        right: 0;
        height: 100%;
      }
    }

    .svg-lines {
      position: absolute;
      bottom: 13.5%;
      right: 98.5%;

      @media (max-width: 1024px) {
        display: none;
      }
    }

    img {
      height: 100%;
      object-fit: cover;
      width: auto;

      @media (max-width: 768px) {
        width: 100%;
      }

      @media (min-width: 1025px) and (max-width: 1600px) {
        margin-right: calc((100vw - 1600px + 15px) / 2);
      }
    }
  }

  .sw22-image-details {
    background-color: rgba(255, 255, 255, 0.75);
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 27px 13% 14px 31px;
    line-height: 1.56;
    color: #111111;

    @media (max-width: 1024px) {
      padding: 11px 20px 12px 21px;
    }

    .sw22-image-title {
      font-size: clamp(16px, 2.2vw, 20px);
    }

    .sw22-image-text {
      font-size: clamp(16px, 2.2vw, 20px);
    }

    &.horizontal:after {
      content: "";
      position: absolute;
      bottom: 59%;
      right: 94%;
      width: 70px;
      height: 1px;
      background-color: #ff6200;

      @media (max-width: 1024px) {
        width: 45px;
        bottom: 69%;
      }
    }

    &.vertical:after {
      content: "";
      position: absolute;
      bottom: 0%;
      left: 0%;
      width: 8px;
      height: 100%;
      background-color: #ff6200;
    }
  }

  .hero-ruler {
    position: absolute;
    left: 0;
    bottom: -50px;
    z-index: 1;

    @media (max-width: 1024px) {
      display: none;
    }
  }

  .sw22-hero-regular {
    font-style: normal;
  }

  .sw22-hero-italic {
    font-style: italic;
    font-weight: 300;
  }

  .sw22-hero-bold {
    font-weight: bold;
  }
}
