.block-cover {
  position: relative;
  height: 128vw;
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.block-cover.valign_center .block-cover__container {
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}

.block-cover.valign_top .block-cover__container {
  -webkit-box-align: start;
  -webkit-align-items: flex-start;
  -ms-flex-align: start;
  align-items: flex-start;
}

.block-cover.valign_bottom .block-cover__container {
  -webkit-box-align: end;
  -webkit-align-items: flex-end;
  -ms-flex-align: end;
  align-items: flex-end;
}

.block-cover.align_center .block-cover__container,
.block-cover.align_center .block-cover__inner-blocks {
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  text-align: center;
}

.block-cover.align_left .block-cover__container {
  -webkit-box-pack: start;
  -webkit-justify-content: flex-start;
  -ms-flex-pack: start;
  justify-content: flex-start;
}

.block-cover.align_right .block-cover__container,
.block-cover.align_right .block-cover__inner-blocks {
  -webkit-box-pack: end;
  -webkit-justify-content: flex-end;
  -ms-flex-pack: end;
  justify-content: flex-end;
  text-align: right;
}

@media (min-width: 768px) {
  .block-cover {
    height: 49vw;
    min-height: 709px;
  }
}

.block-cover__container {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  padding: 68vw 6.4vw 32vw;
}

@media (min-width: 768px) {
  .block-cover__container {
    padding: 104px 80px 100px;
  }
}

.block-cover__data {
  color: #fff;
  font-family: sans-serif;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .block-cover__data {
    max-width: 610px;
  }
}

.block-cover__subtitle {
  margin: 0;
}

.block-cover__subtitle,
.block-cover__description {
  margin-bottom: 20px;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.14;
}

@media (min-width: 768px) {
  .block-cover__subtitle,
  .block-cover__description {
    font-size: 1rem;
    line-height: 1.25;
  }
}

.block-cover__title {
  max-width: 48vw;
  margin: 3vw 0 2.1vw;
  font-weight: bold;
  font-size: 2rem;
  line-height: 1;
}

@media (min-width: 768px) {
  .block-cover__title {
    margin: 24px 0 16px;
    font-size: 4rem;
    line-height: 1.22;
  }
}

.block-cover__inner-blocks {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  font-weight: 400;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .block-cover__inner-blocks {
    font-size: 1rem;
  }
}

@media (min-width: 0) and (max-width: 767px) {
  .block-cover__inner-blocks .wp-block-buttons {
    position: absolute;
    top: auto;
    bottom: 15vw;
    left: 50%;
    width: 87.2vw;
    -webkit-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    transform: translateX(-50%);
  }
}

.block-cover__image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
}

.block-cover__image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center;
  object-position: center;
}

.block-cover video {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center;
  object-position: center;
}

.block-cover__video-control {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  width: 60px;
  height: 60px;
  padding: 0;
  border: none;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M6 19h4V5H6v14zm8-14v14h4V5h-4z'/%3E%3C/svg%3E"); /* Pause Icon */
}

.block-cover__video-control:hover {
  opacity: 1;
}

.block-cover__video-wrapper.--is-paused .block-cover__video-control {
  opacity: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E"); /* Play Icon */
}

@media (min-width: 768px) {
  .block-cover video.desktop-hide {
    display: none;
  }
}

@media (min-width: 0) and (max-width: 767px) {
  .block-cover video.mobile-hide {
    display: none;
  }
}

.block-cover__video-popup {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10001;
  display: none;
  width: 100vw;
  height: 100%;
  padding: 0;
  background-color: #1a1818;
}

@media (min-width: 768px) {
  .block-cover__video-popup {
    top: 10%;
    left: 50%;
    width: 60vw;
    max-width: 1210px;
    height: 41vw;
    -webkit-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    transform: translateX(-50%);
  }
}

.block-cover__video-popup.show-popup {
  display: block;
}

.block-cover__iframe-wrapper {
  position: relative;
  top: 50%;
  width: 100%;
  height: 70%;
  -webkit-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  transform: translateY(-50%);
}

@media (min-width: 768px) {
  .block-cover__iframe-wrapper {
    height: 82%;
  }
}

.block-cover__iframe-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-height: 100%;
}

.block-cover__close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 1;
  display: block;
  width: 25px;
  height: 25px;
  padding: 0;
  background: url('/wp-content/plugins/nwp-gutenberg-blocks/blocks/cover/ic-close.svg') no-repeat center/cover;
  border: 0;
  outline: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .block-cover__close {
    width: 20px;
    height: 20px;
  }
}

.block-cover__popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.block-cover__inner-blocks .wp-block-buttons .wp-block-button__link {
  position: relative;
  z-index: 1;
  display: block;
  min-width: 198px;
  padding: 16px 12px;
  overflow: hidden;
  color: #fff;
  font-weight: bold;
  font-size: 0.75rem;
  font-family: sans-serif;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  background: -webkit-gradient(linear, left top, left bottom, color-stop(50%, #c10020), color-stop(50%, #a4001b)) left top/100% 200%, #c10020;
  background: -webkit-linear-gradient(top, #c10020 50%, #a4001b 50%) left top/100% 200%, #c10020;
  background: -o-linear-gradient(top, #c10020 50%, #a4001b 50%) left top/100% 200%, #c10020;
  background: linear-gradient(to bottom, #c10020 50%, #a4001b 50%) left top/100% 200%, #c10020;
  background-color: unset;
  border: solid 2px #c10020;
  border-radius: 0;
  cursor: pointer;
  -webkit-transition: background-position 0.3s ease, color 0.8s ease, background-color 0.2s;
  -o-transition: background-position 0.3s ease, color 0.8s ease, background-color 0.2s;
  transition: background-position 0.3s ease, color 0.8s ease, background-color 0.2s;
}

.block-cover__inner-blocks .wp-block-buttons .wp-block-button__link:hover,
.block-cover__inner-blocks .wp-block-buttons .wp-block-button__link:active {
  color: #fff;
  background: -webkit-gradient(linear, left top, left bottom, color-stop(50%, #c10020), color-stop(50%, #a4001b)) left bottom/100% 200%, #a4001b;
  background: -webkit-linear-gradient(top, #c10020 50%, #a4001b 50%) left bottom/100% 200%, #a4001b;
  background: -o-linear-gradient(top, #c10020 50%, #a4001b 50%) left bottom/100% 200%, #a4001b;
  background: linear-gradient(to bottom, #c10020 50%, #a4001b 50%) left bottom/100% 200%, #a4001b;
  background-position: left bottom;
  border: solid 2px #a4001b;
  outline: none;
  -webkit-transition: background-position 0.3s ease, background-color 0.2s cubic-bezier(1, 0, 0, 1) 0.1s;
  -o-transition: background-position 0.3s ease, background-color 0.2s cubic-bezier(1, 0, 0, 1) 0.1s;
  transition: background-position 0.3s ease, background-color 0.2s cubic-bezier(1, 0, 0, 1) 0.1s;
}

.wp-admin .block-cover__image img {
  height: 100%;
}
