

 
.y360 * {
  box-sizing: border-box;
}

.y360 {
  display: flex;
  box-sizing: border-box;
  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;
}

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

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

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

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

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

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

.y360--controls-below .y360__images,
.y360__placeholder,
.y360__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;
}

.y360--controls-over .y360__images,
.y360--controls-over .y360__placeholder {
  height: 100%;
}

.y360__placeholder {
  display: flex;
}

.y360__placeholder-image{
  width:100%;
  height:100%;
  display: block;
  margin: auto;
  justify-self: center;
  align-self: center;
  object-fit: contain;
}

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

.y360--controls-justify-centered .y360__controls{
    justify-content: center;
}

.y360__button {
  width: 22px;
  height: 22px;
  display: block;
  border: none;
  background: none;
  padding: 0;
  margin-left: 5px;
  cursor: pointer;
  outline: none;
}

.y360__button.y360__button--fullscreen {
  margin-left: auto;
  margin-right: 5px;
}

.y360--controls-justify-centered .y360__button.y360__button--fullscreen {
   margin-left: 5px; 
}



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

.y360__button .button__text {
  display: none;
}

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

.y360__button.y360__button--play {
}

.y360__button.y360__button--left {
}

.y360__button.y360__button--right {
}

.y360__button.y360__button--fullscreen {
  margin-left: auto;
}


.button__icon--play {
  background: no-repeat url(assets/button-play.png);
}

.y360__button:hover .button__icon--play {
}

.button__icon--left {
  background: no-repeat url(assets/button-left.png);
}

.y360__button:hover .button__icon--left {
}

.button__icon--right {
  background: no-repeat url(assets/button-right.png);
}

.y360__button:hover .button__icon--right {
}

.button__icon--fullscreen {
  background: no-repeat url(assets/button-fullscreen.png);
}

.y360__button:hover .button__icon--fullscreen {
}


.y360__start-button {
  height: 100px;
  width: 100px;
  background: no-repeat url(assets/button-start.png);
  background-size: 100%;
  position: absolute;
  top: calc(50% - 50px);
  left: calc(50% - 50px);
  display: none;
  cursor: pointer;
}

.y360__start-button:hover {
  filter: brightness(1.2);
}

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

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

.y360__start-image.y360__start-image--keep-size{
}

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



/* ------------------- */
/*  Preloader :: Wave  */
/* ------------------- */

.y360-preloader {
    display: none;
}

.y360-wave-preloader {
    background: rgba(128, 128,128,0.8);
    align-self: center;
    width: 100%;
    justify-content: center;
    z-index: 50;
}


.y360-wave-preloader-content {
    display: flex;
    flex-direction: row;
    padding: 0 5px;
}

.y360-wave-preloader--small .y360-wave-preloader-content {
}

.y360-wave-preloader--large .y360-wave-preloader-content {
}

.y360-wave-preloader-content__text {
    font-size: 20px;
    font-family: sans-serif;
    line-height: 40px;
    color: rgba(34, 34,34,0.8);
    padding-left: 10px;
}

.y360-wave-preloader--small .y360-wave-preloader-content__text {
    font-size: 14px;
    line-height: 20px;
}

.y360-wave-preloader--large .y360-wave-preloader-content__text {
    font-size: 28px;
    line-height: 60px;
}

.y360-wave-preloader-content__wave {
    height: 30px;
    font-size: 10px;
    align-self: center;
}

.y360-wave-preloader--small .y360-wave-preloader-content__wave {
    height: 20px;
}

.y360-wave-preloader--large .y360-wave-preloader-content__wave {
    height: 60px;
}

.y360-wave-preloader-content__wave > div {
    background-color: rgba(238, 238,238,0.8);
    height: 30px;
    width: 6px;
    margin: 0 1px;
    display: inline-block;
    -webkit-animation: stretchdelay 1.2s infinite ease-in-out;
    animation: stretchdelay 1.2s infinite ease-in-out;
}

.y360-wave-preloader--small .y360-wave-preloader-content__wave > div {
    height: 18px;
    width: 4px;
    margin: 0;
}

.y360-wave-preloader--large .y360-wave-preloader-content__wave > div {
    height: 60px;
    width: 6px;
    margin: 0 2px;
}

.y360-wave-preloader-content__wave .rect2 {
    -webkit-animation-delay: -1.1s;
    animation-delay: -1.1s;
}

.y360-wave-preloader-content__wave .rect3 {
    -webkit-animation-delay: -1.0s;
    animation-delay: -1.0s;
}

.y360-wave-preloader-content__wave .rect4 {
    -webkit-animation-delay: -0.9s;
    animation-delay: -0.9s;
}

.y360-wave-preloader-content__wave .rect5 {
    -webkit-animation-delay: -0.8s;
    animation-delay: -0.8s;
}

@-webkit-keyframes stretchdelay {
    0%,
    40%,
    100% {
        -webkit-transform: scaleY(0.4)
    }
    20% {
        -webkit-transform: scaleY(1.0)
    }
}

@keyframes stretchdelay {
    0%,
    40%,
    100% {
        transform: scaleY(0.4);
        -webkit-transform: scaleY(0.4);
    }
    20% {
        transform: scaleY(1.0);
        -webkit-transform: scaleY(1.0);
    }
}


/**
 * Pure White Theme
 */

.y360--pureWhite .y360__button {
  width: 25px;
  height: 25px;
}

body::after {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  z-index: -1;
}

