/*Slow load*/
.spinner{
  width: 40px;
  height: 40px;
  margin: 50px auto;
  background-color: #e74c3c;

  border-radius: 100%;
  -webkit-animation: scaleout 1.0s infinite ease-in-out;
  animation: scaleout 1.0s infinite ease-in-out;
}

@-webkit-keyframes scaleout {
  0% { -webkit-transform: scale(0.0) }
  100% {
    -webkit-transform: scale(1.0);
    opacity: 0;
  }
}

@keyframes scaleout {
  0% {
    transform: scale(0.0);
    -webkit-transform: scale(0.0);
  } 100% {
    transform: scale(1.0);
    -webkit-transform: scale(1.0);
    opacity: 0;
  }
}


.video {
    position: relative;
    padding-bottom: 46.25%;
    padding-top: 10px; 
    height: 0; 
    overflow: hidden;
}
 
.video iframe,
.video object,
.video embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/*Gallery Modal*/
.image-gallery {
  display: block;
}

#image-gallery .modal-dialog {    
    min-height: 500px;
    /*height: 100%;*/
}

#image-gallery .modal-content, #image-gallery .modal-body, #image-gallery .row, #image-gallery .modal-image {
    height: 100%;
}

.modal-content {
    border-radius: 0;
}

.modal-body {
    padding-top: 0;
    padding-bottom: 0;
}

.modal-image {
    background: #000;
    padding :0;
    
}

.modal-image img {
    margin: 0 auto;
    max-height: 100%;
    max-width: 100%;
    
    position: relative;
    /*top: 10%;
    -webkit-transform: translateY(-10%);
    -ms-transform: translateY(-10%);
    transform: translateY(-10%);
    */
}

#image-gallery .image-gallery-btn {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    background: black;
    opacity: 0;
    font-size: 1.5em;
    width: 45px;
    color: #fff;
    transition: opacity .2s ease-in;
    border: transparent;
}

#image-gallery .modal-image:hover .image-gallery-btn {
    opacity: 0.4;  
}

#image-gallery .modal-image:hover .image-gallery-btn:hover {
   opacity: 0.75;   
}

#image-gallery .image-gallery-btn.right {
    right: 0;
}

#image-gallery .image-gallery-btn i {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    text-align: center;
    margin-top: -.75em;
}

#image-gallery .modal-meta {
    position: relative;   
    background-color: #FFFFFF;
}

#image-gallery .modal-meta-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 45px;
    padding: 5px 10px;
    overflow-y: auto;
    background-color: #FFFFFF;
}

#image-gallery .modal-meta-top .img-poster img {
    height: 70px;
    width: 70px;
    float: left;
    margin-right: 15px;
}

#image-gallery .modal-meta-top .img-poster strong {
    display: block; 
    padding-top: 15px;
}

#image-gallery .modal-meta-top .img-poster span {
    display: block;   
    color: #aaa;
    font-size:.9em;
}

#image-gallery .modal-meta-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 5px;
    border-top: solid 1px #ccc;
    background-color: #FFFFFF;
}

#image-gallery .img-comment-list {
    list-style: none;  
    padding: 0;
    background-color: #FFFFFF;
}

#image-gallery .img-comment-list li {
    margin:0;
    margin-top:5px;
}

#image-gallery .img-comment-list li > div {
    display:table-cell;
}

#image-gallery .img-comment-list img {
    border-radius:50%;
    width: 42px;
    height: 42px;
    margin-right: 10px;
    margin-top: 20px;
}

#image-gallery .img-comment-list p {
    margin: 0;
}

#image-gallery .img-comment-list span {
    font-size: .8em; 
    color: #aaa;
}