.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, 70px);
    font-weight: bold;
    line-height: 1.06;
    color: #111111;
    margin: 0 0 2rem 0;

    @media (max-width: 768px) {
      margin: 0 0 11px 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);
      }

      &:nth-of-type(2) {
        margin: 0.3rem 0 0 4rem;

        @media (max-width: 1500px) {
          margin-top: 0.1rem;
        }

        @media (max-width: 1200px) {
          margin-top: 0.2rem;
        }

        @media (max-width: 820px) {
          margin-top: 0.1rem;
        }

        @media (max-width: 768px) {
          padding: 1px 0 0 10%;
          margin-left: 0;
        }
      }

      .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: 2.5rem;
    font-family: "Roboto Slab", sans-serif;
    font-size: clamp(20px, 2vw, 27px);
    line-height: 1.63;
    color: #666;
    font-weight: 500;
    max-width: 37.996rem;
    margin-block-start: 0;
    background-color: rgba(255, 255, 255, .7);

    @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, .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;
  }
}
