/* Video ohne Cookie ------------------------------------------------------------------------------------------------------------------------*/


/* Youtube-Video-Block */
.videoohnecookie {
  position: relative;
  overflow: hidden;
  background-color: var(--wp--preset--color--blue-dark);
}
.videoohnecookie:has(.videoohnecookie-thumbnail.videoohnecookie-not-visible) {
  z-index: 2;
}
.videoohnecookie-thumbnail {
  display: flex;
  align-items: center;
  justify-content: center;
}
.autoplay > .videoohnecookie-thumbnail {
  display: none;
}
.videoohnecookie-format-16-9, .videoohnecookie-format-16-9 .videoohnecookie-thumbnail {
  aspect-ratio: 16/9;
}
.videoohnecookie-format-9-16, .videoohnecookie-format-9-16 .videoohnecookie-thumbnail {
  aspect-ratio: 9/16;
}
.videoohnecookie-thumbnail-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.videoohnecookie-thumbnail-image picture{
  display: flex;
  width: 100%;
  height: 100%;
}
.videoohnecookie-thumbnail-image picture img{
  object-fit: cover;
  width: 100%;
  height: auto;
}
.videoohnecookie-thumbnail-entry-content {
  z-index: 2;
  width: 90%;
  max-width: 900px;
  margin:0 auto;
}
.videoohnecookie-content {
  display: flex;
  align-items: center;
}
.videoohnecookie-content.is-overlay:not(.videoohnecookie-not-visible) {
  display: flex;
  align-items: center;
}
.videoohnecookie.alignfull[style*="background-color"],
.videoohnecookie.alignfull.has-background-color{
  padding:0 !important;
}
.videoohnecookie .videoohnecookie-content iframe{
  width: 100%;
  display: block;
}

.wp-block-columns.alignfull .videoohnecookie,
.wp-block-columns.alignfull .videoohnecookie .videoohnecookie-thumbnail,
.wp-block-columns.alignfull .videoohnecookie .videoohnecookie-content,
.wp-block-columns.alignfull .videoohnecookie .videoohnecookie-content iframe {
  height: 100%;
}
.videoohnecookie.alignfull .videoohnecookie-content iframe {
  aspect-ratio: 16 / 9;
  height: 100%;
}
.videoohnecookie-not-visible {
  display:none;
}
.videoohnecookie-content.is-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100000;
}
.overlay_back {
  margin: 0 !important;
  background-color: rgba(0,0,0,0.7);
  width: 100%;
  height: 100%;
  top: 0;
  position: absolute;
  z-index: -2;
  cursor: pointer;
}
.overlay_close {
  position: absolute;
  width: 60px;
  height: 60px;
  top: 0;
  right: 0;
  cursor: pointer;
}
.overlay_close::before, .overlay_close::after {
  height: 2px;
  position: absolute;
  content: "";
  width: 40px;
  background-color: #fff;
  transform: rotate(45deg);
  top: 30px;
  left: 8px;
}
.overlay_close::after {
  transform: rotate(-45deg);
}
.videoohnecookie-button {
  display: block;
}
* + .wp-block-buttons:has(.videoohnecookie-button) {
  margin-top:2rem;
}
.wp-block-buttons:has(.videoohnecookie-button) {
  justify-content: center;
}
.videoohnecookie-button-playbutton > svg {
  width: 100px;
  height: 100px;
}
.videoohnecookie-button-playbutton {
  text-align: center;
  cursor: pointer;
}

@media only screen and (min-width: 782px) {
  /*
  .videoohnecookie.alignfull .videoohnecookie-content,
  .videoohnecookie.alignfull .videoohnecookie-content iframe {
    min-height: calc(100vh - 90px);
  }
  .videoohnecookie.alignfull .videoohnecookie-content iframe {
    box-sizing: border-box;
    height: 56.25vw;
    min-width: 100%;
    min-height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  } */
} 
@media only screen and (min-width: 900px) {
  .videoohnecookie-content.is-overlay iframe {
    width: 80%;
    margin: 0 auto;
    max-height: 100%;
  }
}
