.fullwide-image-with-text-box .desktop-view {
  display: block;
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  min-height: 688px;
  height: 688px;
  position: relative;
}
.fullwide-image-with-text-box .desktop-view.no-textbox {
  height: auto;
  min-height: unset;
  max-height: 600px;
}
.fullwide-image-with-text-box .desktop-view.no-textbox img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
  border-radius: 0;
}
.fullwide-image-with-text-box .desktop-view.no-textbox.no-max-height {
  max-height: none;
  height: auto;
}
.fullwide-image-with-text-box .desktop-view.no-textbox.no-max-height img {
  max-height: none;
  height: auto;
}
.fullwide-image-with-text-box .mobile-view {
  display: none;
  background-repeat: no-repeat;
  background-size: cover;
}
.fullwide-image-with-text-box .mobile-view img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0% 0%; /* Default to top-left, overridden by PHP-injected styles */
  border-radius: 0;
}
.fullwide-image-with-text-box .fullwide-image-with-text-box-text-box {
  position: absolute;
  top: 120px;
  right: 160px;
  width: 600px;
  border-radius: 10px;
  padding: 2.5em;
  display: flex;
  flex-direction: column;
  gap: 0.75em;
}
.fullwide-image-with-text-box .fullwide-image-with-text-box-text-box h2 {
  margin: 0;
  font-size: 45px;
  font-family: rockwell, sans-serif;
  line-height: 1em;
  word-break: normal;
}
.fullwide-image-with-text-box .fullwide-image-with-text-box-text-box .paragraph {
  margin: 0;
  font-size: 16px;
}
.fullwide-image-with-text-box .fullwide-image-with-text-box-text-box .lejos-block-button {
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  padding-top: 12px;
  padding-right: 21px;
  padding-bottom: 12px;
  padding-left: 21px;
  cursor: pointer;
}
.fullwide-image-with-text-box .fullwide-image-with-text-box-text-box .lejos-block-button:hover {
  filter: saturate(0.4) brightness(0.8);
}
@media screen and (max-width: 850px) {
  .fullwide-image-with-text-box .desktop-view {
    display: none;
  }
  .fullwide-image-with-text-box .mobile-view {
    display: block;
    width: 100%;
  }
  .fullwide-image-with-text-box .mobile-view img {
    width: 100%;
    height: 400px;
  }
  .fullwide-image-with-text-box .mobile-view.no-textbox.no-max-height img {
    height: auto;
    max-height: none;
  }
  .fullwide-image-with-text-box .mobile-view .fullwide-image-with-text-box-text-box {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    padding: 2em;
    display: flex;
    flex-direction: column;
    gap: 0.75em;
    border-radius: 0;
    padding-bottom: 60px;
  }
  .fullwide-image-with-text-box .mobile-view .fullwide-image-with-text-box-text-box h2 {
    font-size: 32px;
    line-height: 1em;
  }
}
@media screen and (min-width: 850px) and (max-width: 1300px) {
  .fullwide-image-with-text-box .fullwide-image-with-text-box-text-box {
    padding: 2em;
    top: 60px;
    width: 500px;
    right: 100px;
  }
}
@media screen and (max-width: 500px) {
  .fullwide-image-with-text-box {
    /* Ensure no cap at the smallest breakpoint too */
  }
  .fullwide-image-with-text-box .mobile-view img {
    height: 250px;
  }
  .fullwide-image-with-text-box .mobile-view.no-textbox.no-max-height img {
    height: auto;
    max-height: none;
  }
}