.vertical-orizontal-center {
	margin: 0;
	position: absolute;
	top: 50%;
	left: 50%;
	-ms-transform: translateY(-50%) translateX(-50%);
	transform: translateY(-50%) translateX(-50%);
}
.vertical-center {
	margin: 0;
	position: absolute;
	top: 50%;
	-ms-transform: translateY(-50%);
	transform: translateY(-50%);
}

.orizontal-center {
	margin: 0;
	position: absolute;
	left: 50%;
	-ms-transform: translateX(-50%);
	transform: translateX(-50%);
}

.left-side button,
.right-side button,
.top-side button,
.bottom-side button {
	opacity: 1;
}

.left-side {
	left: 10px;
}

.right-side {
	right: 10px;
}

.top-side {
	top: 10px;
	z-index: 1000;
}

.bottom-side {
	bottom: 10px;
	z-index: 1000;
}

.background-image {
	max-height: 100vh;
	max-width: 100vw;
	position: absolute;
	top: 0;
	left: 0;
}

.preview-image {
	margin-bottom: 10px;
}

.preview-image img {
	width: 100%;
	border-radius: 5px;
}

.preview-image .num {
	position: absolute;
	top: 0;
	margin: 4px;
	padding: 2px 7px;
	background-color: rgba(0,0,0,.5);
	border-radius: 5px;
	color: #FFF;
}

.preview-image .num.selected {
	background-color: rgba(255,0,0,.5);
}

.preview-image .border {
	position: absolute;
	top: 0;
	left: 15px;
	right: 15px;
	border: 0;
	background-color: rgba(0,0,0,.25);
	height: 100%;
	border-radius: 5px;
	border: solid 3px rgba(255,0,0,.5);
}

/* The Modal (background) */
.focus-image.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 2051 !important; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  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) */
.focus-image .modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}

/* Caption of Modal Image */
.focus-image #caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
  font-size: 20px;
}

/* Add Animation */
.focus-image .modal-content,.focus-image #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 */
.focus-image .close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.focus-image .close:hover,
.focus-image .close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
  .focus-image .modal-content {
    width: 100%;
  }
}