/**
 * @file
 * Provides fullscreen video view.
 */

.blazybox,
.blazybox *,
.blazybox *::before,
.blazybox *::after {
  box-sizing: border-box;
}

.is-blazybox--open {
  overflow: hidden;
}

.blazybox,
.blazybox__close {
  position: fixed;
  background: #000;
  background: rgba(0, 0, 0, 0.9);
}

.blazybox {
  z-index: -1;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.is-blazybox--open .blazybox {
  z-index: 9999;
}

.blazybox__content {
  position: relative;
  width: inherit;
  height: inherit;
}

.is-bbox--fs .blazybox__content {
  height: 100vh;
}

.blazybox__close {
  z-index: 10000;
  top: 0;
  left: 50%;
  display: block;
  box-sizing: border-box;
  width: 42px;
  height: 42px;
  cursor: pointer;
  transform: translateX(-50%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-top: 0;
  font-size: 22px;
}

.blazybox .blazybox__html,
.blazybox .blazybox__media {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 100%;
  max-width: -moz-fit-content;
  max-width: fit-content;
  max-height: 100%;
  transform: translate(-50%, -50%);
}

.blazybox.b-provider--twitter {
  min-height: 402px;
}

.blazybox.b-provider--pinterest {
  min-height: 416px;
}

.blazybox.b-provider--instagram {
  min-height: 580px;
}

/*
.blazybox .media,
.blazybox .media__element,
.blazybox iframe,
.blazybox audio,
.blazybox video {
  margin: auto;
  object-fit: cover;
  max-height: 100%;
  max-width: 100%;
}
*/
