html.video-overlay-open {
  overflow: hidden;
}

#video-overlay {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 20;
  box-sizing: border-box;
  background: none;
}

#video-overlay .inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  box-sizing: border-box;
  overflow: hidden;
  overflow-y: auto;
}

#video-overlay .inner .inner2 {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: min(90%, 1400px);
}

#video-overlay .inner .inner2:not(:has(.cookiebanner)) {
  aspect-ratio: 16/9;
}

#video-overlay .inner .inner2 .plyr,
#video-overlay .inner .inner2 iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius);
}

#video-overlay .inner .inner2 .plyr .plyr__poster {
  background-size: cover;
}

#video-overlay .cookiebanner {
  text-align: center;
}

#video-overlay:has(.cookiebanner) .inner .inner2 {
  display: flex;
  align-items: center;
}

#video-overlay .close {
  position: fixed;
  background: var(--color_link);
  cursor: pointer;
  transition: background 0.2s ease-in-out;
  z-index: 3;
}

#video-overlay .close svg {
  display: block;
  width: 100%;
  fill: var(--dark);
  transition: fill 0.2s ease-in-out;
}

#video-overlay .close:hover {
  background: var(--color_hc);
}

#video-overlay .close:hover svg {
  fill: var(--color_lc);
}

.overlay-darkener {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 11;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(15px);
  cursor: pointer;
}

@media (min-width: 1201px) {
  #video-overlay .close {
    width: 60px;
    height: 60px;
    top: 30px;
    right: 30px;
  }
}
@media (max-width: 1200px) and (min-width: 421px) {
  #video-overlay .close {
    width: 50px;
    height: 50px;
    top: 20px;
    right: 20px;
  }
}
@media (max-width: 800px) {
  #video-overlay .cookiebanner {
    padding: 80px 30px;
  }
  #video-overlay .cookiebanner h3 {
    font-size: 24px;
  }
}
@media (max-width: 420px) {
  #video-overlay .close {
    width: 40px;
    height: 40px;
    top: 10px;
    right: 10px;
  }
}