
.yofla360 {
  position: relative;
  border: 1px solid silver;
  min-width: 100px;
  min-height: 100px;
  max-width: 100%;
  background: white;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-tap-highlight-color: transparent;
}

.yofla360.yofla360--noborder{
  border: 0px;
}

.yofla360:fullscreen {
  width: 100%;
  height: 100%;
}

.yofla360:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
}

.yofla360:-moz-full-screen {
  width: 100vw;
  height: 100vh;
}

.yofla360:-ms-fullscreen {
  width: 100vw;
  height: 100vh;
}

.yofla360:fullscreen {
  width: 100vw;
  height: 100vh;
}

.yofla360--controls-below .yofla360__images,
.yofla360__images {
  position: absolute;
  z-index: 0;
  background: none;
  width: 100%;
  height: calc(100% - 40px); /* height of controls */
  display: block;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}

.yofla360--controls-over .yofla360__images {
  height: 100%;
}

.yofla360__controls {
  position: absolute;
  z-index: 1;
  bottom: 3px;
  height: 27px;
  width: 100%;
  background: none;
  display: none;
}

.yofla360__button {
  width: 22px;
  height: 22px;
  display: block;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  position: absolute;
  outline: none;
  filter: invert(29%) sepia(30%) saturate(25%) hue-rotate(358deg) brightness(100%) contrast(88%);
}
.yofla360__button:hover {
  filter: invert(8%) sepia(11%) saturate(17%) hue-rotate(339deg) brightness(96%) contrast(88%);
}

.yofla360__button:active {
  filter: invert(29%) sepia(30%) saturate(25%) hue-rotate(358deg) brightness(100%) contrast(88%);
}

.yofla360__button .button__icon {
  display: block;
  width: 100%;
  height: 100%;
}

.yofla360__button .button__text {
  display: none;
}

.yofla360__button.yofla360__button--hidden {
  display: none;
}

.yofla360__button.yofla360__button--play {
  left: 5px;
}

.yofla360__button.yofla360__button--left {
  left: 32px;
}

.yofla360__button.yofla360__button--right {
  left: 59px;
}

.yofla360__button.yofla360__button--fullscreen {
  right: 5px;
}


.button__icon--play {
  background: no-repeat url('assets/play-circle-light.svg');
}

.yofla360__button:hover .button__icon--play {
}

.button__icon--left {
  background: no-repeat url('assets/chevron-circle-left-light.svg');
}

.yofla360__button:hover .button__icon--left {
}

.button__icon--right {
  background: no-repeat url('assets/chevron-circle-left-light.svg');
  transform: rotate(180deg);
}

.yofla360__button:hover .button__icon--right {
}

.button__icon--fullscreen {
  background: no-repeat url('assets/expand-alt-light.svg');
}

.yofla360__button:hover .button__icon--fullscreen {
}


.yofla360__preloader {
  position: absolute;
  top: calc(50% - 20px);

  height: 30px;
  width: calc(100% - 20px);

  margin-left: 10px;
  background: gray;
  display: none;

  opacity: 0.8;
  border: 1px solid gray;
}

.yofla360__preloader .yofla360__preloader-bar {
  position: absolute;
  z-index: 0;
  background: #eee;
  height: 100%;
  width: 0%;
}

.yofla360__preloader .yofla360__preloader-text {
  position: absolute;
  z-index: 1;
  color: #222;
  font-size: 20px;
  font-family: sans-serif;
  line-height: 32px;
  display: inline-block;
  width: 100%;
  text-align: center;
}

.yofla360__start-button {
  height: 80px;
  width: 80px;
  background: #555;
  border-radius: 50%;
  position: absolute;
  top: calc(50% - 40px);
  left: calc(50% - 40px);
  display: none;
  cursor: pointer;
  background: no-repeat url('assets/chevron-circle-right-duotone.svg');
  background-size: 100%;
}

.yofla360__start-button:hover {
  transform: scale(1.1);
}

.yofla360__start-image{
  overflow: hidden;
  position: absolute;
  width:  100%;
  height:  100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yofla360__start-image img{
  width:  auto;
  height:  100%;
  flex: none;
}

.yofla360__start-image.yofla360__start-image--keep-size{
}

.yofla360__start-image.yofla360__start-image--keep-size img{
  width:  auto;
  height:  auto;
}
