.vbox-overlay {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 999999;
  color: #fff;
  background-color: rgba(0, 0, 0, .75);
  line-height: 1.25;
  visibility: hidden;
  opacity: 0;
  transition: all 0.5s;
}

.vbox-overlay.active{
  visibility: visible;
  opacity: 1;
}

.vbox-overlay * {
  backface-visibility: visible;
}

.vbox-container {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 20;
  max-height: 100%;
  overflow: hidden;
  display: inline-flex;
}

.vbox-top{
  position: absolute;
  left: 50%;
  bottom: 50%;
  z-index: 2;
  padding: 10px 0;
  font-size: 18px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  transform: translateX(-50%);
}

.vbox-top .vbox-num{
  display: flex;
  align-items: center;
}

.vbox-top .vbox-num .line{
  margin: 0 5px;
  font-size: 16px;
}

.vbox-top .vbox-right{
  display: flex;
  align-items: center;
}

.vbox-top .vbox-title{
  margin: 0 10px;
  font-weight: bold;
  cursor: pointer;
}

.vbox-top .vbox-title:hover{
  text-decoration: underline;
}
   
.vbox-top .vbox-close {
  position: relative;
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.vbox-top .vbox-close:before,
.vbox-top .vbox-close:after{
  content: "";
  position: absolute;
  margin: -1px 0 0 -10px;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
}

.vbox-top .vbox-close:before{
  transform: rotate(45deg);
}

.vbox-top .vbox-close:after{
  transform: rotate(-45deg);
}

.vbox-content {
  position: relative;
  z-index: 1;
  padding: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-align: center;
  overflow: hidden;
}

.vbox-figlio {
  box-shadow: 0 0 12px rgba(0, 0, 0, .19), 0 6px 6px rgba(0, 0, 0, .23);
  max-width: 100%;
  max-height: 100%;
  text-align: initial;
  border-radius: 5px;
}

.vbox-container img {
  max-width: 100%;
  height: auto;
}

img.vbox-figlio {
  user-select: none;
}

.vbox-title {
  font-size: 16px;
  margin-top: 18px;
  position: relative;
}

.vbox-next, .vbox-prev {
  position: fixed;
  top: 50%;
  margin-top: -25px;
  overflow: hidden;
  cursor: pointer;
  height: 50px;
  width: 50px;
  z-index: 99;
  border-radius: 50% !important;
  background-color: rgba(103, 108, 108, .5) !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vbox-next {
  right: 25px;
}

.vbox-prev {
  left: 25px;
}

.vbox-next span, .vbox-prev span {
  height: 15px;
  width: 15px;
  border: 2px solid transparent;
  border-top-color: #fff;
  border-right-color: #fff;
  text-indent: -100px;
  position: absolute;
  top: 17px;
  display: block;
}

.vbox-next span {
  transform: rotate(45deg);
  right: 20px;
}

.vbox-prev span {
  left: 20px;
  transform: rotate(-135deg);
}

@media screen and (max-width: 1024px){
  .vbox-content{
    padding: 50px 20px;
  }
}