
.article .imgs-grid {
  max-width:320px;
  
  margin: 5px auto;
  font-size: 0;
  -moz-border-radius:3px;border-radius:3px;-webkit-border-radius:3px; border:0px solid #EFEFEF;
  display:inline-block;
  vertical-align:top;
}
@media only screen and (max-width: 768px) {
.imgs-grid { max-width:99%;}

}
.imgs-grid.imgs-grid-1 .imgs-grid-image {
  width: 100%;
  text-align: center;
}

.imgs-grid.imgs-grid-2 .imgs-grid-image,
.imgs-grid.imgs-grid-4 .imgs-grid-image {
  width: 50%;
}
.imgs-grid.imgs-grid-3 .imgs-grid-image,
.imgs-grid.imgs-grid-6 .imgs-grid-image {
  width: 33.333333333333336%;
}
.imgs-grid.imgs-grid-5 .imgs-grid-image:nth-child(1),
.imgs-grid.imgs-grid-5 .imgs-grid-image:nth-child(2){
width: 50%;
}
.imgs-grid.imgs-grid-5 .imgs-grid-image:nth-child(3) ,
.imgs-grid.imgs-grid-5 .imgs-grid-image:nth-child(4),
.imgs-grid.imgs-grid-5 .imgs-grid-image:nth-child(5) {
  width: 33.333333333333336%;
}

.imgs-grid .imgs-grid-image {
  position: relative;
  display: inline-block;
  padding: 1px;
  margin:0px;
  box-sizing: border-box;
  
}
.imgs-grid .imgs-grid-image:hover {
  cursor: pointer;
}
.imgs-grid .imgs-grid-image .image-wrap {
  position: relative;
  display: inline-block;
  overflow: hidden;
  text-align: center;
  vertical-align: middle;  
  vertical-align:top; 
  width:100%; 
  max-width:100%!important;
  height:auto;
  object-fit:cover; 
  -moz-border-radius:3px;border-radius:3px;-webkit-border-radius:3px;
  background:#fafbfc;
}
.imgs-grid .imgs-grid-image .image-wrap .video {
	position: relative;
  width: 100%!important;
  max-width:100%!important;
  height:auto;
  object-fit:cover;
  margin: auto;
  -moz-border-radius:2px;border-radius:2px;-webkit-border-radius:2px;
  overflow:hidden;
  min-height:100px;
   text-align: center;
  vertical-align: middle; 
}

.imgs-grid .imgs-grid-image .image-wrap img {

  position: relative;
  width: 100%!important;
  max-width:100%!important;
  height:auto;
  object-fit:cover;
  margin: auto;
  -moz-border-radius:2px;border-radius:2px;-webkit-border-radius:2px;
  overflow:hidden;
  min-height:100px;
}
.imgs-grid .imgs-grid-image .view-all {
  position: absolute; 
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  vertical-align:middle;
  z-index:9999;
  object-fit:cover;


}
.imgs-grid .imgs-grid-image .view-all:before {
  display: inline-block;
  content: "";
  vertical-align: middle;
  
 
}
.imgs-grid .imgs-grid-image .view-all:hover {
  cursor: pointer;
}
.imgs-grid .imgs-grid-image .view-all:hover .view-all-text {
  text-decoration: underline;
  
}
.imgs-grid .imgs-grid-image .view-all .view-all-cover {
  position: absolute;
  top: 0;
  left: 0;  
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 0.3;
 
  
}
.imgs-grid .imgs-grid-image .view-all .view-all-text {
position: absolute;
display:flex;
color:#FFFFFF;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index:99999;
font-size: 12px;
}

@media (max-width: 350px) {
  .imgs-grid .imgs-grid-image .view-all .view-all-text {
    font-size: 10px;
  }
}
.imgs-grid-modal {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: black;
  opacity: 0;
  z-index: 99999;
  margin:auto;
  vertical-align:middle;
  text-align:center;
 
  
 /* -webkit-user-select: none;
  -moz-user-select: -moz-none;
  -khtml-user-select: none;
  -o-user-select: none;
  user-select: none;*/
 
  
}
.imgs-grid-modal .modal-close {
   position: fixed;
 /* position: absolute;*/
  right: 10px;
  top: 20px;
  width: 55px;
  height: 55px;
  z-index:999;
  background-image: url(../image/imgs-grid-icons.png);
 
  background-repeat: no-repeat;
  background-position: -100px;
  -webkit-transform: scale(1.7);
    -moz-transform: scale(1.7);
    -o-transform: scale(1.7);
    -ms-transform: scale(1.7);
    transform: scale(1.7);
}
.imgs-grid-modal .modal-close:hover {
  cursor: pointer;
}
.imgs-grid-modal .modal-inner {
  position: fixed;
  top: 0px;
  bottom: 0px;
  left: 50%;
    transform: translateX(-50%);
	

  /*left: 0;
  right: 0;*/
  text-align:center;
  margin:auto;
  
  vertical-align:middle;
 
 display:flex;  
 
 
}

.imgs-grid-modal  .modal-control {

  position: fixed;
  top: 0;
  bottom: 0;
  
}
.imgs-grid-modal .modal-control:hover {
  cursor: pointer;
}
.imgs-grid-modal  .modal-control.left {  
  left: 0px; z-index:9999;
  height:100%;
  vertical-align:middle;
   margin: auto ;
}
.imgs-grid-modal  .modal-control.right {
  z-index:9999;
  right: 0px; 
  top
  height:100%;
  vertical-align:middle;
  margin: auto;  
  
}
.imgs-grid-modal .modal-control .arrow {
 position:absolute;
  vertical-align:middle;
  margin: auto;
  display:inline-block;
  width: 30px;
  height:40px; 
  background: url(../image/imgs-grid-icons.png)  no-repeat;
  
  
}
.imgs-grid-modal .modal-control .arrow.left {
top:0px; bottom:0px; left:0px; background-position: 2px ;
}
.imgs-grid-modal .modal-control .arrow.left:active{ background-color:#FFFF00;}
.imgs-grid-modal  .modal-control .arrow.right {	
  background-position: -52px ;top:0px; bottom:0px; right:0px;
  }
.imgs-grid-modal .modal-control .arrow.right:active{ background-color:#FFFF00;}
.imgs-grid-modal .modal-inner .modal-image {
  /*position: absolute;
  margin-top:50%; 
  left: 70px;
  right: 70px;
  bottom: 0;
  text-align: center;
  vertical-align: middle;
  height:100%;*/
  position: static;
 
 /* top: 5vh;*/
 
  margin:auto;
  
  
  /*display: flex; vertical-align:middle; text-align:center*/
  
 /* vertical-align:top;*/
   text-align: center;
  display: block;
 /*height: 100vh;
  overflow-y: scroll ;
    overflow-x:hidden;*/
	background:#ffffff;
	word-break: break-word;
	
  
  
}
.imgs-grid-modal .modal-inner .modal-image:before {
  display: inline-block;
  content: "";
  vertical-align: middle;
  max-height: 100%;
   max-width: 100%;
}
.imgs-grid-modal .modal-inner .modal-image modal-image-img {
	
  min-width:200px;
  /*max-width: 100%;*/
  max-height: 100%;
  margin: auto; 
  display:inline-block;
  height:auto;
  
}
.imgs-grid-modal .modal-inner .modal-image img{
	 /*max-width: 100vw;
	 touch-action: manipulation;*/
	  
}
.imgs-grid-modal .modal-inner .modal-image .video{
	max-height:98vh;
}
.imgs-grid-modal .modal-inner .modal-image .video img{
	 margin: auto;	
	 
}
.imgs-grid-modal .modal-inner .modal-image img:hover {
  cursor: pointer;
}
.imgs-grid-modal .modal-inner .modal-image .modal-image-bottom{
	 margin:auto;
  
  /*display: flex; vertical-align:middle; text-align:center*/
 padding:5px 0px;
  
  vertical-align: top; text-align: center;
  display:block;
  width:100%;
 max-width: 98vw;
 
  background:#ffffff;
   
}

@media (max-width: 1600px) {
  .imgs-grid-modal .modal-inner .modal-control {
    width: 40px;
  }
  .imgs-grid-modal .modal-inner .modal-control .arrow {
    -webkit-transform: scale(0.7);
    -moz-transform: scale(0.7);
    -o-transform: scale(0.7);
    -ms-transform: scale(0.7);
    transform: scale(0.7);
  }
  .imgs-grid-modal .modal-inner .modal-image {
    left: 0;
    right: 0;
	
  }
}
.imgs-grid-modal .modal-indicator {
  position: absolute;
  bottom: 0;
  height: 60px;
  width: 100%;
  text-align: center;
}
.imgs-grid-modal .modal-indicator ul {
  margin: 0;
  padding: 0;
}
.imgs-grid-modal .modal-indicator ul li {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 1px solid white;
  box-sizing: border-box;
  border-radius: 100%;
  margin: 0 1px;
  vertical-align: middle;
}
.imgs-grid-modal .modal-indicator ul li:hover {
  cursor: pointer;
}
.imgs-grid-modal .modal-indicator ul li.selected {
  background-color: white;
  width: 14px;
  height: 14px;
  margin: 0;
}
