/* Mixins */
/**
 * Returns value from colors map
 */
/**
 * Turns pixels to rems
 * We typically set out HTML font size to 62.5% which helps us have a base-10 value to work with.
 * So the following mixin accepts a pixel value that is then turned into a corresponding rem value.
 */
/**
 * Function for converting a px based font-size to rem.
 *
 * @param $size - the value in pixel you want to convert
 *
 * e.g. p {to-rem(12);}
 *
 */
.tpg-video__thumbnail {
  position: relative;
}
.tpg-video__sample-controls {
  position: absolute;
  top: 0;
  left: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.tpg-video__play-btn {
  border: 0;
  background-color: transparent;
  cursor: pointer;
  width: 56px;
  height: 56px;
  content: " ";
  position: absolute;
  background-image: url(../images/play-button.png);
  background-repeat: no-repeat;
  background-position: center;
}
.tpg-video__modal .uk-modal-dialog {
  width: 90vw;
  position: relative;
}
@media only screen and (min-width: 960px) {
  .tpg-video__modal .uk-modal-dialog {
    width: 50vw;
  }
}
.tpg-video__modal > .uk-modal-dialog > .uk-modal-body > div {
  width: 100%;
}
.tpg-video__modal video {
  width: 100%;
  max-height: 80vh;
  -o-object-fit: contain;
  object-fit: contain;
  display: block;
}
.tpg-video__modal-body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  height: 100%;
  width: unset !important;
}
@media only screen and (min-width: 960px) {
  .tpg-video__modal-body {
    height: auto;
  }
}
.tpg-video__modal-body .video-file {
  position: relative;
}
.tpg-video__modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  border: none;
  font-size: 2rem;
  background-color: rgb(253, 83, 18);
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  color: rgb(255, 255, 255);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  z-index: 10;
}
.tpg-video__modal-close-btn span {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
.tpg-video__modal-close-btn:hover {
  cursor: pointer;
}
.tpg-video__inline {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.tpg-video__inline .tpg-video__thumbnail {
  width: 100%;
  height: 100%;
}
.tpg-video__inline .tpg-video__thumbnail img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
  object-fit: contain;
}
.tpg-video__inline-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.tpg-video__inline-player > div {
  width: 100%;
  height: 100%;
}
.tpg-video__inline-player video {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
  object-fit: contain;
  display: block;
}