.section-hero {
  position: relative;
  padding: 4rem 0;
  display: flex;
  align-items: center;
  min-height: 600px;
  background-color: var(--primary);
}
.section-hero .background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  overflow: hidden;
}
.section-hero .background img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: 75%;
     object-position: 75%;
}
.section-hero .background iframe {
  top: 50%;
  left: 50%;
  width: 100vw;
  aspect-ratio: 16/9;
  transform: translate(-50%, -50%);
  border: 0;
  position: absolute;
}
.section-hero .background:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.75) 25%, rgba(0, 0, 0, 0));
}
.section-hero .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.section-hero .container .content {
  max-width: 500px;
  padding: 50px 0;
  position: relative;
  z-index: 5;
  color: var(--white);
  font-weight: 300;
}
.section-hero .container .content :is(h1, h2) {
  font-size: 3.5em;
  margin: 0 0 25px;
  overflow-wrap: break-word;
}
.section-hero .container .content .text {
  font-size: 1.1em;
  line-height: 1.5em;
}
.section-hero .container .content .text *:first-child {
  margin-top: 0;
}
.section-hero .container .content .text *:last-child {
  margin-bottom: 0;
}
.section-hero .container .content .buttons {
  margin-top: 40px;
}
.section-hero .container .content *:last-child {
  margin-bottom: 0;
}
.section-hero .container .image {
  width: 675px;
  position: absolute;
  bottom: 0;
  right: 0;
}
.section-hero:not(:has(.container .content :nth-child(1))) .background:after {
  display: none;
}

@media (max-width: 820px) {
  .section-hero {
    min-height: 300px;
  }
  .section-hero .container .content {
    width: 100%;
  }
  .section-hero .container .image {
    opacity: 0.5;
  }
}
@media (max-width: 720px) {
  .section-hero .background img {
    filter: brightness(0.75);
  }
  .section-hero .container .content :is(h1, h2) {
    font-size: 2.8em;
  }
  .section-hero .container .image {
    opacity: 0.3;
  }
}
@media (max-width: 600px) {
  .section-hero .background .container {
    max-width: unset;
    width: 100%;
  }
  .section-hero .background .container:before {
    max-width: unset;
  }
  .section-hero .container .content {
    padding: 0;
  }
}
/*

Options > Small Padding

*/
.section-hero[options~=small-padding] {
  min-height: unset;
}

/*

Loading transitions

*/
/* Background */
.section-hero .background {
  transition: all 0.5s;
  opacity: 0;
}

.section-hero.scrolled-to .background {
  opacity: 1;
}

/* Heading */
.section-hero .container .content {
  margin-left: -200px;
  margin-right: 200px;
  opacity: 0;
}

.section-hero.scrolled-to .container .content {
  animation: heroHeaders 1.5s forwards;
}

@keyframes heroHeaders {
  0%, 50% {
    margin-left: -200px;
    margin-right: 200px;
    opacity: 0;
  }
  100% {
    margin-left: 0;
    margin-right: 0;
    opacity: 1;
  }
}
/* Buttons */
.section-hero .container .content .buttons {
  opacity: 0;
}

.section-hero.scrolled-to .container .content .buttons {
  animation: heroButtons 2s forwards;
}

@keyframes heroButtons {
  0%, 50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}