.block--home-what-we-do {
  position: relative;
  /* padding: 160px 0; */
  background-color: var(--wp--preset--color--dark-slate);
}

@media screen and (max-width: 1024px) {
  .block--home-what-we-do {
    /* padding: 120px 0; */
  }
}

@media screen and (max-width: 768px) {
  .block--home-what-we-do {
    /* padding: 80px 0; */
  }
}

@media screen and (max-width: 640px) {
  .block--home-what-we-do {
    /* padding: 64px 0; */
  }
}

.block--home-what-we-do--inner {
  position: relative;
  z-index: 1;
}

.block--home-what-we-do--content-block {
  margin: 160px 0;
}

@media screen and (max-width: 1024px) {
  .block--home-what-we-do--content-block {
    margin: 120px 0;
  }
}

@media screen and (max-width: 768px) {
  .block--home-what-we-do--content-block {
    margin: 80px 0;
  }
}

@media screen and (max-width: 640px) {
  .block--home-what-we-do--content-block {
    margin: 64px 0;
  }
}

.block--home-what-we-do[data-content-orientation="content-left"]
  .block--home-what-we-do--content-block {
  grid-column: 1 / 7;
  grid-row: 1 / 1;
}

.block--home-what-we-do[data-content-orientation="content-right"]
  .block--home-what-we-do--content-block {
  grid-column: 8 / 13;
  grid-row: 1 / 1;
}

.block--home-what-we-do[data-content-orientation="content-left"]
  .component--points-of-interest--wrapper {
  grid-column: 7 / 13;
  grid-row: 1 / 1;
}

.block--home-what-we-do[data-content-orientation="content-right"]
  .component--points-of-interest--wrapper {
  grid-column: 1 / 7;
  grid-row: 1 / 1;
}

@media screen and (max-width: 840px) {
  .block--home-what-we-do[data-content-orientation="content-left"]
    .block--home-what-we-do--content-block {
    grid-column: 1 / 13;
    grid-row: 2 / 2;
    margin-left: 0px;
  }

  .block--home-what-we-do[data-content-orientation="content-right"]
    .block--home-what-we-do--content-block {
    grid-column: 1 / 13;
    grid-row: 2 / 2;
    margin-left: 0px;
  }

  .block--home-what-we-do[data-content-orientation="content-left"]
    .component--points-of-interest--wrapper {
    grid-column: 1 / 13;
    grid-row: 1 / 1;
    height: 620px;
  }

  .block--home-what-we-do[data-content-orientation="content-right"]
    .component--points-of-interest--wrapper {
    grid-column: 1 / 13;
    grid-row: 1 / 1;
    height: 620px;
  }
}

.component--points-of-interest--wrapper {
  position: relative;
  height: 100%;
  width: 100%;
  display: grid;
  /* place-content: center; */
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}

@media screen and (max-width: 840px) {
  .component--points-of-interest--wrapper {
    display: none;
  }
}

.component--points-of-interest--background {
  display: flex;
  width: 100%;
  grid-area: 1 / 1;
  align-items: flex-start;
  flex-direction: column;
  grid-area: 1 / 1;
  position: relative;
  overflow: visible;
}
.component--points-of-interest--background img {
  height: 100%;
  user-select: none;
  pointer-events: none;
  position: absolute;
  object-fit: cover;
  object-position: left center;
  overflow: visible;
  /* Push image left more as viewport shrinks. At 1250px: left = 0, at 840px: left = -200px */
  left: clamp(-200px, calc((100vw - 840px) * 0.488 - 200px), 0px);
}

.block--home-what-we-do--content-block {
  background-color: var(--wp--preset--color--white);
  padding: 120px 64px 120px 56px;
  border-radius: 30px;
  box-shadow: 0px 0px 30px 10px rgba(238, 241, 250, 0.1);
  min-height: 480px;
  margin-left: 24px;
}

@media screen and (max-width: 1350px) {
  .block--home-what-we-do--content-block {
    padding: 92px 46px 92px 46px;
  }
}
@media screen and (max-width: 1250px) {
  .block--home-what-we-do--content-block {
    padding: 80px 46px 80px 46px;
  }
}
@media screen and (max-width: 640px) {
  .block--home-what-we-do--content-block {
    background-color: var(--wp--preset--color--white);
    padding: 64px 32px 64px 32px;
    border-radius: 30px;
    box-shadow: 0px 0px 30px 10px rgba(238, 241, 250, 0.1);
    min-height: 480px;
    margin-left: 24px;
  }
}

.block--home-what-we-do--content-block .wp-block-buttons {
  margin-top: 40px;
}

.block--home-what-we-do--background {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.block--home-what-we-do--background img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  margin: 0;
  user-select: none;
  pointer-events: none;
}

.block--home-what-we-do--background .point-of-interest--background {
  position: absolute;
  object-position: 25% 100%;
  transform: scale(1.35);
  transform-origin: 40% 80%;
}

.component--points-of-interest {
  position: relative;
  height: 100%;
  width: 100%;
  aspect-ratio: 1 / 1;
  grid-area: 1 / 1;
}
@media screen and (max-width: 1000px) {
  .component--points-of-interest {
    left: -50px;
  }
}

.component--points-of-interest--tooltip-wrapper {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
}

.component--points-of-interest--tooltip-wrapper:hover
  .component--points-of-interest--tooltip,
.component--points-of-interest--tooltip-wrapper:focus-within
  .component--points-of-interest--tooltip {
  opacity: 1;
  visibility: visible;
  overflow: visible;
  display: flex;
  color: var(--wp--preset--color--dark-slate);
  text-decoration: none;
}

.component--points-of-interest--tooltip {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-radius: 32px;
  background-color: var(--wp--preset--color--white);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  overflow: hidden;
  display: none;
  color: var(--wp--preset--color--dark-slate);
  text-decoration: none;
  font-weight: 600;
  position: absolute;
  left: 100%;
  top: 12px;
  white-space: nowrap;
  z-index: 1;
}
.component--points-of-interest--tooltip.left-popup {
  left: auto;
  right: 100%;
}

.component--points-of-interest--tooltip span {
  color: var(--wp--preset--color--dark-slate);
  font-variant-numeric: lining-nums proportional-nums;
  font-family: var(--wp--preset--font-family--mundial);
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 22px; /* 137.5% */
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: -3px;
}

.component--points-of-interest--tooltip span svg {
  margin-top: 2px;
}

.component--points-of-interest--button {
  position: relative;
  border: none;
  padding: 10px;
  border-radius: 60px;
  background: transparent;
  overflow: visible;
}

.component--points-of-interest--button svg {
  position: relative;
  z-index: 2;
}

.component--points-of-interest--button--bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, white, transparent);
  z-index: 1;
  border-radius: 60px;
}

.component--points-of-interest--button--bg--2 {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, white, transparent);
  z-index: 1;
  border-radius: 60px;
}

.component--points-of-interest--button:hover
  .component--points-of-interest--button--bg {
  animation: sonarWave 1.5s linear infinite;
}

.component--points-of-interest--button:hover
  .component--points-of-interest--button--bg--2 {
  animation: sonarWave 1.5s 0.85s linear infinite;
}

@keyframes sonarWave {
  from {
    transform: scale(0.9);
    opacity: 1;
  }
  to {
    transform: scale(1.5);
    opacity: 0;
  }
}
