.youtube_wrapper {
  margin: 40px auto 20px;
  max-width: 600px;
  width: 100%;
}
.youtube {
  position: relative;
  padding-bottom: 56.5%;
}
.youtube iframe, .youtube video {
  width: 100%;
  height: 100%;
  border: 0;
  position: absolute;
  top: 0;
  left: 0;
}
.youtube .poster {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}
.youtube img {
  width: 100%;
}

body.modal-open {
  overflow-y: hidden;
}
#youtube-popup {
  background-color: rgba(0,0,0,.4);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 1000;
  display: flex;

  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s;
}
.modal-open #youtube-popup {
  opacity: 1;
  visibility: visible;
  transition: opacity .4s, visibility .4s;
}
#youtube-popup .youtube_wrapper {
  margin: auto;
  max-width: 800px;
}
#youtube-popup .youtube_wrapper button {
  position: absolute;
  height: 48px;
  width: 48px;
  top: -48px;
  right: -48px;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
  z-index: 5000;
}
#youtube-popup .youtube_wrapper svg {
  height: 48px;
  width: 48px;
  color: var(--pokpok-color-white);
}

@media (max-width: 800px) {
  #youtube-popup .youtube button {
    position: fixed;
    top: 12px;
    right: 12px;
  }
}
@media (max-height: 500px) {
  #youtube-popup .youtube button {
    position: fixed;
    top: 12px;
    right: 12px;
  }
}
