img{
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}
#modal {
  display: none;
  padding-top: 10px;
  opacity: 0;
  -webkit-transition: all .2s;
  transition: all .2s; }
  #modal[data-transition='true'] {
    display: table;
    width: 100%;
    height: 100%; }
  #modal .close {
    position: fixed;
    top: .25em;
    right: .25em;
    font-family: Arial;
    cursor: pointer; }
  #modal .info {
    position: fixed;
    bottom: .25em;
    left: .25em;
    font-family: Arial;
    -webkit-transition: all .3s;
    transition: all .3s;
    cursor: pointer; }
  #modal[data-visibile='true'] {
    display: table;
    width: 100%;
    height: 100%;
    opacity: 1; }
#modalBox{
  overflow: hidden;
}
.video-button{
  border: 2px solid #fff;
  display: none;
  padding: 5px 10px;
  font-family: Arial;
  display: inline-block;
}
.video-button:before{
  content: "Show ";
}
body[data-video-showing='true'] .video-button:before{
  content: "Hide ";
}
body[data-video-showing='true'] #modal #theImage{
  display: none;
}
body[data-video-showing='true'] #modal .videoplayer{
  display: block;
}


#modal[data-video='null'] .video-button{
  display: none;
}
#modal .videoplayer{
  display: none;
}

body {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0; }

.contain {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0; }

.bar {
  position: fixed;
  bottom: 0;
  width: 100%;
  left: 0;
  background-color: rgba(0, 0, 0, 0.75);
  padding: .5em;
  z-index: 50;
  color: #fff;
  border-top: 2px solid #be1622;
  font-family: Arial;
  text-align: center;
  font-size: 12px; }

.zoom-image {
  width: 0;
  height: 0;
  position: absolute; }

#theImage {
  -webkit-transform: scale(0.2) rotateX(50deg);
          transform: scale(0.2) rotateX(50deg);
  opacity: 0;
  -webkit-transition: all .5s;
  transition: all .5s; }
  #theImage[data-zoomed='true'] {
    -webkit-transform: scale(1) rotateX(0deg) translate(0, 0) !important;
            transform: scale(1) rotateX(0deg) translate(0, 0) !important;
    opacity: 1; }

#zoom[animate='false'] {
  -webkit-transition: none;
  transition: none; }

body {
  touch-action: none;
  -ms-touch-action: none; }

#modalBox {
  text-align: center;
  display: table-cell;
  -webkit-perspective: 1000;
          perspective: 1000; }
  #modalBox img {
    max-width: 95%; }

#modal {
  position: fixed;
  z-index: 110;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  opacity: 0; }

#modalBox {
  margin: 0 auto;
  text-align: center;
  vertical-align: middle;
  -webkit-transition: opacity .5s linear;
  z-index: 12; }

#modalImg {
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
  -webkit-perspective: 600px;
          perspective: 600px;
  -webkit-transition: all .3s;
  transition: all .3s;
  -webkit-backface-visibility: visible;
          backface-visibility: visible; }
  #modalImg:before {
    content: ' ';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /*background: url(imgs/ajax-loader.gif) no-repeat center center;*/
    -webkit-transform: translateZ(-30px);
            transform: translateZ(-30px); }

#modalText {
  cursor: pointer;
  max-width: 800px;
  margin: 0 auto;
  font-family: arial;
  font-size: 16px;
  padding: 1em 1em;
  line-height: 1.5em;
  max-height: calc(100vh - 100px);
  overflow: scroll;}

#modal[data-text-visibile='true'] .text-container {
  opacity: 1;
  -webkit-transform: translateY(0);
          transform: translateY(0); }

#modal[data-text-visibile='true'] #theImage {
  -webkit-transform: rotateX(-5deg);
          transform: rotateX(-5deg); }
  #modal[data-text-visibile='true'] #theImage[data-zoomed='true'] {
    -webkit-transform: translateY(-20%) translateZ(-20px) scale(0.8) !important;
            transform: translateY(-20%) translateZ(-20px) scale(0.8) !important; }

#modal[data-text-visibile='true'] .info {
  bottom: 0;
  left: 0; }

#modal[data-text='hides'] .text-container {
  background-color: rgba(255, 255, 255, 0.94);
  color: #333;
  border-radius: 1em;
  line-height: 1.2em;
  margin: .5em .5em 2.2em;
  font-size: 14px; }

#modal[data-text='allways'] .text-container {
  opacity: 1;
  -webkit-transform: translateY(0);
          transform: translateY(0);
  position: relative; }

#modal[data-text='allways'] .info {
  display: none; }

.text-container {
  position: fixed;
  bottom: 0;
  opacity: 0;
  -webkit-transform: translateY(100%);
          transform: translateY(100%);
  -webkit-transition: all .3s;
  transition: all .3s;
  left: 0;
  right: 0; }

a{
  color: inherit;
}