/* video-modal */
.c-modal-open,
.c-modal-close {
  cursor: pointer;
}

.p-video-modal {
  align-items: center;
  display: flex;
  justify-content: center;
  position: fixed;
  top: 0;
  height: 100dvh;
  width: 100%;
  margin: 0;
  overflow: hidden;
  z-index: 900;
}

.p-video-modal {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;
}

.p-video-modal.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s, visibility 0.5s;
}

.p-video-modal-overlay {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: #000;
  opacity: 0.7;
}

.p-video-modal-container {
  position: relative;
  margin: 0 auto;
  width: 90%;
  max-width: 100dvh;
}

/* PC表示 */
@media print, screen and (min-width: 1080px) {
  .p-video-modal-container {
    width: 70%;
    max-width: none;
  }
}

.p-video-modal-header {
  padding: 0.8rem 0;
  color: #fff;
  text-align: right;
}

/* MediaKind */
/* iPhoneの場合のみUI非表示 */
.bmpui-ui-controlbar.is-iphone,
.bmpui-ui-titlebar.is-iphone,
.bmpui-image.is-iphone {
  display: none;
}

/* iPhoneの場合のみ再生ボタンの範囲を調整（デフォルトUIのスキップが使えるように） */
.bmpui-container-wrapper .bmpui-ui-playbacktoggle-overlay.is-iphone,
.bmpui-container-wrapper .bmpui-ui-playbacktoggle-overlay.is-iphone .bmpui-ui-hugeplaybacktogglebutton {
  position: absolute;
  top: calc( 100% / 2 - 5rem / 2);
  left: calc( 100% / 2 - 5rem / 2);
  height: 5rem;
  width: 5rem;
}

.bitmovinplayer-container {
  margin: 0 auto!important;
  min-width: auto!important;
  min-height: auto!important;
}

@media print, screen and (min-width: 1080px) {
  .bitmovinplayer-container {
    max-width: none!important;
  }
}
