body {
    padding: 84px 24px;
}


label {
 min-width: 85px;
}

nav .btn {
    margin-top: 8px;
}

body > .container {
    padding-top: 40px;
}

.gallery-button,
.processing-progress .btn {
    display: inline-block;
    margin-left: 8px;
}

li.start {
    color: orange;
}

li.done {
    color: green;
}

li.error {
    color: red;
}

li.done a.btn,
li.error a.btn {
    display: none;
}

.image-holder {
    position: relative;
    box-sizing: border-box;
    margin: 8px 1px;
    background-color: #f0f0f0;
}

.image-holder.loaded {
    padding-bottom: 0px !important;
    background-color: transparent;
}

.image-holder img {
    max-width: 100%;
    cursor: pointer;
}

.image-holder.loading img {
    display: none;
}

body .image-holder.loaded img {
    display: block;
} 

.image-holder:hover {
    z-index:100;
}

/* MODAL */
/* Style the Image Used to Trigger the Modal */
.gallery img {
    opacity: 0.7;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.gallery img:hover {
    opacity: 1.0;
}

.loadmore {
    display: block;
    margin: 0 auto;
    width: 148px;
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 12px;
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 100000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (Image) */
.modal-content {
    margin: auto;
    display: block;
    max-width: 83vw;
    max-height: 85vh;
}

.modal img {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    opacity: 1;

     -webkit-transition: opacity 0.5s ease-in-out;
    -moz-transition: opacity 0.5s ease-in-out;
    transition: opacity 0.5s ease-in-out;
}

.modal.loading img {
    opacity: 0;
}

/* Caption of Modal Image (Image Text) - Same Width as the Image */
.modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.modal-infos {
    top: 20px;
    color: white;
    text-align: center;
    font-size: 1.5em;
}

.modal-control {
    position: absolute;
    top: 0;
    
    padding: 20px;
    height: 100%;
    
    line-height: 100vh;
    font-size: 100px;
    color: #f5f5f5;
    opacity: 0.85;
    background-color: transparent;
    cursor: pointer;

    -webkit-touch-callout: none; /* iOS Safari */
        -webkit-user-select: none; /* Safari */
         -khtml-user-select: none; /* Konqueror HTML */
           -moz-user-select: none; /* Firefox */
            -ms-user-select: none; /* Internet Explorer/Edge */
                user-select: none; /* Non-prefixed version, currently */
}

.modal-control:hover {
    opacity: 1;
    color: rgba(255, 255, 255, 1);
}

.modal-control__prev {
    left: 0;
    min-width: 20vw;
}

.modal-control__next {
    right: 0;
    text-align: right;
    min-width: 20vw;
}

.modal-control__magnify,
.modal-control__play {
    top: auto;
    bottom: 10px;
    left: 50%;
    margin-left: -0.9em;
    height: auto;
    line-height: 1em;
    font-size: 44px;
}

.modal-control__magnify:hover,
.modal-control__play:hover {
    background: none;
}

.modal-control__play.play {
  left: 50%;
  bottom: 32px;
  margin-left: -9px;
  padding: 0 !important;
  width: 0; 
  height: 0; 
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-left: 30px solid #ffffff;
}

.modal-control__magnify {
    top: 10px;
    bottom: auto;
    height: auto;
}

.modal-control__magnify,
.modal-control__magnify:link,
.modal-control__magnify:hover,
.modal-control__magnify:active,
.modal-control__magnify:visited {
    text-decoration: none;
}

.modal-control__info {
    height: auto;
    top: 0;
    width: 100%;
    text-align:center;
}

.at-start .modal-control__prev,
.at-end .modal-control__next {
    display: none;
}




/* Add Animation - Zoom in the Modal */
.modal-content, .modal-caption { 
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
    from {-webkit-transform:scale(0)} 
    to {-webkit-transform:scale(1)}
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

/* The Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    padding: 20px;
    color: #fafafa;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 100000;
    opacity: 0.95;
}

.close:hover,
.close:focus {
    color: #fafafa;
    text-decoration: none;
    cursor: pointer;
}

.progressbar {
    position: absolute;
    left:0;
    width: 0%;
    height: 3px;
    background-color: #357ebd;
    transition: width 0.5s ease;
}

.pagexofy {
    top: 16px;
    left: 50%;
    position: absolute;
    margin-left: -26px;
}

.loading .loader {
    position: absolute;
    display: block;
    
    top: 50%;
    left: 50%;
    margin-top: -5em;
    margin-left: -5em;
    
    z-index: 100;
}

.loader,
.loader:after {
  display: none;
  border-radius: 50%;
  width: 10em;
  height: 10em;
}

.loader {
  margin: 60px auto;
  font-size: 10px;
  position: relative;
  text-indent: -9999em;
  border-top: 1.1em solid rgba(255, 255, 255, 0.2);
  border-right: 1.1em solid rgba(255, 255, 255, 0.2);
  border-bottom: 1.1em solid rgba(255, 255, 255, 0.2);
  border-left: 1.1em solid #ffffff;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation: load8 1.1s infinite linear;
  animation: load8 1.1s infinite linear;
}

.loader.loader-black {
  border-left: 1.1em solid #0e0e0e;
}

@-webkit-keyframes load8 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes load8 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}


/* JQUERY MOBILE FIXES */
.ui-loader {
  display: none !important;
}

.ui-focus,
.ui-page-active {
 -moz-box-shadow: none !important;
 -webkit-box-shadow: none !important;
 box-shadow: none !important;
 outline: none !important;
}