html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #000;
}

body {
  font-family: Arial, Helvetica, sans-serif;
}

.stage {
  position: absolute; z-index: 20; pointer-events: none;
  left: 0; top: 0; width: 100%; height: 100%; overflow: hidden;
  background: transparent; -webkit-transform: none; transform: none;
}

.media {
  z-index: 1;
  overflow: hidden;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  margin: 0;
  border: 0;
  background: #000;
}

.media video,
.media img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  background: #000;
  object-fit: cover;
  -webkit-transform-origin: center center;
  transform-origin: center center;
}


/* All media pixels are already rotated at upload. */
.media img, .media video { -webkit-transform: none; transform: none; }

.provider {
  position: absolute;
  z-index: 10;
  left: auto;
  right: 25px;
  bottom: 21px;
  height: 114px;
  padding: 0 23px;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  color: #8995a5;
  background: transparent;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .8), 0 0 1px rgba(0, 0, 0, .85);
  box-sizing: border-box;
  pointer-events: none;
}

.provider-inner {
  /* Center the VERIX lettering and copy in the bar while preserving their alignment. */
  position: relative;
  top: -15px;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  white-space: nowrap;
}

.provider-inner img {
  display: block;
  width: 187px;
  height: 94px;
  margin-right: 23px;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  object-fit: contain;
  -webkit-filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .65));
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .65));
}

.provider-copy {
  /* Optical center of the two lines matches the VERIX lettering in the image. */
  position: relative;
  top: 15px;
  display: block;
  width: 170px;
  padding-left: 23px;
  border-left: 1px solid rgba(180, 190, 202, .55);
  font-weight: 400;
  letter-spacing: .2px;
  text-align: left;
}

.provider-title {
  display: block;
  color: #eef1f5;
  font-size: 19px;
  line-height: 24px;
}

.provider-detail {
  display: block;
  color: #e2e7ed;
  font-weight: 600;
  font-size: 16px;
  line-height: 21px;
}

@media (max-height: 800px) {
  .provider { height: 101px; right: 19px; bottom: 17px; padding: 0 19px; }
  .provider-inner { top: -12px; }
  .provider-inner img { width: 164px; height: 82px; margin-right: 19px; }
  .provider-copy { top: 12px; width: 160px; padding-left: 19px; }
  .provider-title { font-size: 17px; line-height: 23px; }
  .provider-detail { font-size: 15px; line-height: 20px; }
}

@media (max-height: 550px) {
  .provider { height: 87px; right: 12px; bottom: 12px; padding: 0 15px; }
  .provider-inner { top: -11px; }
  .provider-inner img { width: 141px; height: 71px; margin-right: 14px; }
  .provider-copy { top: 11px; width: 141px; padding-left: 14px; }
  .provider-title { font-size: 15px; line-height: 21px; }
  .provider-detail { font-size: 14px; line-height: 17px; }
}

/* A short fade from black; only the new item is rendered, with no filters. */
.media-enter {
  -webkit-animation: media-reveal 220ms ease-out;
  animation: media-reveal 220ms ease-out;
}
@-webkit-keyframes media-reveal { from { opacity: 0; } to { opacity: 1; } }
@keyframes media-reveal { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .media-enter { -webkit-animation: none; animation: none; }
}

.fullscreen-button {
  pointer-events: auto;
  position: fixed; z-index: 50; top: 16px; right: 16px;
  min-width: 108px; min-height: 44px; padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.4); border-radius: 7px;
  background: rgba(0,0,0,.18); color: #fff;
  font: 15px Arial, Helvetica, sans-serif;
  text-shadow: 0 1px 3px #000; cursor: pointer;
}
.fullscreen-button:focus { outline: 2px solid #71b8ff; outline-offset: 3px; }
.fullscreen-hint {
  position: fixed; z-index: 50; top: 70px; right: 16px;
  max-width: 280px; padding: 12px; margin: 0;
  color: #fff; background: rgba(0,0,0,.75);
  font-size: 14px; line-height: 1.4; border-radius: 6px;
}
.fullscreen-button[hidden], .fullscreen-hint[hidden] { display: none !important; }

/* Hide controls through CSS too, including older fullscreen implementations. */
:fullscreen .fullscreen-button { display: none !important; }
:-webkit-full-screen .fullscreen-button { display: none !important; }
:-moz-full-screen .fullscreen-button { display: none !important; }
:-ms-fullscreen .fullscreen-button { display: none !important; }
