.section-video {
  padding: 6rem 0 4rem;
  margin: 0;
  position: relative;
  min-height: 70vh;
}
.section-video .layer {
  position: absolute;
  top: 50%;
  height: 50%;
  left: 0;
  width: 100%;
}
.section-video .background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-dark);
}
.section-video .background iframe, .section-video .background video {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  -o-object-fit: cover;
     object-fit: cover;
}
.section-video .background img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.section-video.playing .background img {
  display: none;
}
.section-video .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  z-index: 1;
  position: relative;
}
.section-video .container .content {
  width: 60%;
  color: var(--white);
}
.section-video .container .content *:first-child {
  margin-top: 0;
}
.section-video .container .content *:last-child {
  margin-bottom: 0;
}
.section-video .container .content :is(h1, h2) {
  width: 100%;
  margin: 0 0 50px;
  text-shadow: 0 2px 4px var(--black);
}
.section-video .container .content .text {
  font-size: 2em;
  line-height: 1.2em;
  font-weight: 500;
  text-shadow: 0 2px 4px var(--black);
}
.section-video .container .content .buttons {
  margin-top: 2rem;
}
.section-video .container .play-container {
  display: flex;
  justify-content: center;
  width: 20%;
}
.section-video .container .play-container .play, .section-video .container .play-container .popup {
  background-color: var(--white);
  border-radius: 100%;
  padding: 20px;
  width: 70px;
  height: 70px;
  transition: all 0.1s;
}
.section-video .container .play-container .play svg, .section-video .container .play-container .popup svg {
  width: 30px;
  height: 30px;
  margin-left: 2px;
}
.section-video .container .play-container .play svg path, .section-video .container .play-container .popup svg path {
  fill: var(--black);
}
.section-video .container .play-container .play:hover, .section-video .container .play-container .popup:hover {
  cursor: pointer;
  transform: scale(1.1);
}
.section-video .container .play-container .popup {
  display: none;
}
.section-video .container .play-container .popup svg {
  margin-left: 0;
}
.section-video:not(:has(.content)) {
  display: flex;
  align-items: center;
  padding: 4rem 0;
}
.section-video:not(:has(.content)) .container {
  justify-content: center;
}
.section-video:not(:has(.background img)) .background:after {
  display: none;
}
.section-video:not(:has(.background img)) .container .play-container {
  display: none;
}
.section-video:not(:has(.content)) .background {
  width: 95%;
  max-width: 1100px;
  border-radius: 25px;
  overflow: hidden;
  transform: translateX(-50%);
  left: 50%;
}
.section-video .popup-container {
  display: none;
  justify-content: center;
  width: auto;
  position: absolute;
  right: 20px;
  bottom: 20px;
}
.section-video .popup-container .popup {
  background-color: var(--secondary);
  border-radius: 100%;
  padding: 20px;
  width: 70px;
  height: 70px;
  transition: all 0.1s;
}
.section-video .popup-container .popup svg {
  width: 30px;
  height: 30px;
  margin-left: 0;
}
.section-video .popup-container .popup svg path {
  fill: var(--white);
}
.section-video .popup-container .popup:hover {
  cursor: pointer;
  transform: scale(1.1);
}
.section-video .hero-overlay-image {
  position: absolute;
  inset: 0;
  width: 95%;
  max-width: 1100px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  z-index: 5;
  pointer-events: none;
  animation: overlayPop 1.5s forwards;
}
.section-video .hero-overlay-image > img {
  position: absolute;
  top: -13%;
  left: 50%;
  width: 100%;
  height: auto;
  transform: translateX(-50%);
  filter: brightness(0) saturate(100%) invert(25%) sepia(51%) saturate(4401%) hue-rotate(342deg) brightness(88%) contrast(86%);
  display: block;
}
.section-video .hero-overlay-image > img {
  z-index: 0;
  filter: brightness(0) invert(1);
}
.section-video:has(.video-modal.active) .hero-overlay-image {
  visibility: hidden;
  opacity: 0;
}

@media (max-width: 1150px) {
  .section-video .hero-overlay-image {
    width: 100%;
  }
  .section-video .hero-overlay-image > img {
    width: unset;
    height: 126%;
  }
}
@media (max-width: 820px) {
  .section-video .container .content {
    width: 100%;
    margin-bottom: 50px;
  }
  .section-video .container .play-container {
    width: 100%;
    margin-bottom: 50px;
  }
}
@keyframes overlayPop {
  0% {
    opacity: 0;
    transform: translate(-50%) scale(0);
    overflow: visible;
  }
  99% {
    opacity: 1;
    transform: translate(-50%) scale(1);
    overflow: visible;
  }
  100% {
    opacity: 1;
    transform: translate(-50%) scale(1);
    overflow: hidden;
  }
}
/*

Autoplay

*/
.section-video[options~=autoplay].playing .container .play-container {
  display: none;
}

/*

Full frame button

*/
.section-video[options~=full-frame-btn].playing .popup-container {
  display: flex;
}

/*

Modal

*/
.section-video .video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(2px);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: all 0.5s;
}
.section-video .video-modal svg.close {
  cursor: pointer;
  position: absolute;
  top: 0;
  right: 0;
  margin: 20px;
  width: 30px;
  height: 30px;
}
.section-video .video-modal svg.close path {
  fill: var(--white);
}
.section-video .video-modal iframe, .section-video .video-modal video {
  max-width: 90%;
  max-height: 90%;
  min-width: 75%;
  height: unset;
  aspect-ratio: 1.75/1;
}
.section-video .video-modal.active {
  visibility: visible;
  opacity: 1;
}