.pivot-hero-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pivot-hero-width-contain {
  .pivot-hero-inner {
    max-width: var(--home-max-w);
    padding-left: 15px;
    padding-right: 15px;
  }

  .pivot-hero-bg-wrap {
    aspect-ratio: 2 / 1;
  }

  .pivot-hero-flex {
    gap: 0px;
    align-items: center;
    justify-content: flex-start;
    max-width: 100%;
    padding-left: clamp(48px, 5vw, 120px);
    padding-right: clamp(48px, 5vw, 120px);
    padding-block: 60px;
	width: 100%;
  }
}

.pivot-hero-width-full {
  .pivot-hero-inner {
    max-width: 100%;
    padding-left: 0px;
    padding-right: 0px;
  }

  .pivot-hero-bg-wrap {
    aspect-ratio: 16 / 9;
    max-height: 80svh;

    img {
      max-height: unset;
    }
  }

  .pivot-hero-flex {
    gap: 0px;
    align-items: flex-start;
    justify-content: center;
    max-width: 100%;
    display: flex;
    padding-top: 60px;

    max-width: var(--home-max-w);
    margin: 0 auto;
	width: 100%;

    .pivot-hero-content-wrapper {
      max-width: var(--home-max-w);
      width: 100%;
      flex: 1;
    }
  }
}

.pivot-hero-inner {
  width: 100%;
  display: grid;
  flex-direction: column;
  grid-template-columns: minmax(0, 1fr);
  align-items: normal;
}

.pivot-hero-bg-wrap {
  grid-area: 1 / 1;
}
.pivot-hero-flex {
  grid-area: 1 / 1;
  align-self: center;
  z-index: 2;
  padding-left: 15px;
  padding-right: 15px;
}

.pivot-hero-bg-wrap {
  overflow: hidden;
  width: 100%;
  margin: 0;
  align-self: stretch;
  justify-self: stretch;
  min-height: 100%;
  position: relative;

  &::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    background: #1f2a3b;
    background: linear-gradient(
      180deg,
      rgba(31, 42, 59, 0.7) 0%,
      rgba(85, 115, 161, 0.7) 100%
    );
    width: 100%;
    height: 100%;
  }

  picture {
    display: block;
    width: 100%;
    height: 100%;
  }

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
  }
}

.pivot-hero-content {
  background-color: transparent;
  max-width: 920px;
  height: auto;
  border-radius: 20px;
  padding: 0px;
  padding-left: 12px;
  padding-right: 15px;
  margin-left: 0px;

  .pivot-hero-eyebrow {
    display: block;
    font-size: 22px;
    font-weight: 600;
    font-family: Poppins, sans-serif;
    font-style: normal;
    line-height: 28px;
    margin-bottom: 12px;
    color: var(--blue);
  }

  h1 {
    font-weight: 600;
    margin-bottom: 2rem;
    word-break: keep-all;
  }

  h2 {
    font-weight: 500;
    font-size: 32px;
    margin-bottom: 0px;
  }

  h2,
  h1 {
    color: var(--white);
  }
}

.pivot-hero-video-bento {
  width: 100%;
  flex: 1;
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
  align-items: flex-end;
  row-gap: 10px;

  .top-row {
    grid-template-columns: minmax(0, 270px) minmax(0, 1fr);
  }

  .bottom-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 270px);
    .image-wrap {
      order: 2;
    }
    .text-wrap {
      order: 1;
    }
  }

  .top-row,
  .bottom-row {
    backdrop-filter: blur(7.5px);
    display: grid;

    max-width: 580px;
    border-radius: 10px;
    background: #14263ac4;
    padding: 10px;
    gap: 20px;

    h3,
    p {
      color: var(--white);
      font-size: 20px;
      font-family: Raleway, sans-serif;
    }

    h3 {
      margin-bottom: 1rem;
      font-weight: 600;
    }

    p {
      font-weight: 500;
    }

    .text-wrap {
      display: flex;
      flex-direction: column;
      gap: 0;
      align-items: flex-start;
      justify-content: center;
	  color: var(--white);

	  &:hover{
		text-decoration: underline;
		color: var(--white);
	  }
    }

    .video-wrap,
    .image-wrap {
      position: relative;
      aspect-ratio: 27 / 20;

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
      }
    }

    .image-wrap {
      border-radius: 5px;
      overflow: hidden;
    }
  }

  .video-trigger {
    position: relative;
    display: block;
    width: 100%;
    border-radius: 5px;
    padding: 0;
    border: 0;
    overflow: hidden;
    cursor: pointer;
    background: #ccc;
    height: 100%;
  }
}

.bottom-row{
	.image-wrap, .video-wrap{
		order: 2;
	}
}

.video-trigger__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-trigger__play {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: clamp(48px, 12%, 96px);
  transition: scale 0.2s;
}
.video-trigger:hover .video-trigger__play,
.video-trigger:focus-visible .video-trigger__play {
  scale: 1.1;
}

.video-dialog {
  width: min(90vw, 1100px);
  padding: 0;
  border: 0;
  background: #000;
  overflow: visible;
  margin: auto;
}
.video-dialog::backdrop {
  background: rgb(0 0 0 / 0.85);
}
.video-dialog video {
  display: block;
  width: 100%;
  max-height: 85vh;
}
.video-dialog__close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1420px) {
  .pivot-hero-width-contain {
    .pivot-hero-inner {
      padding-left: 0px;
      padding-right: 0px;
    }
  }
}

@media (max-width: 1200px) {
  .pivot-hero-flex {
    justify-content: flex-end;
    max-width: 60%;
  }

  .pivot-hero-video-bento {
    .top-row,
    .bottom-row {
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
  }
}

@media (max-width: 900px) {
  .pivot-hero-bg-wrap,
  .pivot-hero-flex {
    grid-area: 1 /1;
  }

  .pivot-hero-flex {
    flex-direction: column;
    max-width: 100%;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .pivot-hero-width-full {
    .pivot-hero-flex {
      padding-top: 70px;
      padding-bottom: 0px;
      row-gap: 60px;
    }
  }

  .pivot-hero-width-contain {
    .pivot-hero-inner {
      padding-left: 0px;
      padding-right: 0px;
    }

    .pivot-hero-flex {
      gap: 0px;
      row-gap: 60px;
      align-items: center;
      justify-content: flex-start;
      max-width: 100%;
      padding-left: 0px;
      padding-right: 0px;
    }
  }

  .pivot-hero-content {
    background-color: unset;
    max-width: 760px;
    height: auto;
    border-radius: unset;
    margin-left: 0px;
    padding-left: 0px;
    padding-right: 15px;
    padding-block: 0px;
    padding-top: 0px;
    padding-bottom: 0px;

    h1 {
      font-size: 54px;
    }

    h2,
    h1 {
      color: var(--white);
    }
  }
  .pivot-hero-video-bento {
    align-items: flex-start;
    margin-bottom: 24px;
   
	.top-row, .bottom-row {
      gap: 10px;


	   .video-wrap, .image-wrap{
		
	   }

      .text-wrap {
        p {
          font-size: 16px;
        }
      }
    }
  }
}

@media (max-width: 768px) {
  .pivot-hero-width-full {
    .pivot-hero-bg-wrap {
      aspect-ratio: 1 / 1;
      height: calc(100svh - 80px);
      max-height: calc(100svh - 80px);
    }
  }

  .pivot-hero-content {
    h1 {
      font-size: 32px;
    }

    h2 {
      font-size: 26px;
    }
  }
}

@media(max-width: 400px){
	.pivot-hero-video-bento {
	.top-row, .bottom-row {
	   .video-wrap, .image-wrap{
			aspect-ratio: unset;
	   }
    }
  }
}
