.gallery-list-body {
	display: flex;
	flex-wrap: wrap;
	padding: 0 0;
   font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}
.gallery-list-item {
   box-sizing: border-box;
	border: 2px solid #ccc;
	display: flex;
	flex-direction: column;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
	background-color: #fff;
	border-radius: 5px;
	overflow: hidden;
	width: 100%;
	position: relative;
   text-decoration: none;
   margin: 0 var(--itemMargin) calc((var(--itemMargin) * 2));
}

.gallery-list-item figure {
	height: 100%;
   margin: 0;
}
.gallery-list-grid-2 {
   flex: 0 1 calc((100% / 2) - (var(--itemMargin) * 2));
   max-height: 320px;
}
.gallery-list-grid-3 {
   flex: 0 1 calc((100% / 3) - (var(--itemMargin) * 2));
   max-height: 280px;
}
.gallery-list-grid-4 {
   flex: 0 1 calc((100% / 4) - (var(--itemMargin) * 2));
   max-height: 240px;
}
.gallery-list-grid-5 {
   flex: 0 1 calc((100% / 5) - (var(--itemMargin) * 2));
   max-height: 200px;
}

@media (max-width: 991px) {
	.gallery-list-grid-5 {
      flex: 0 1 calc((100% / 4) - (var(--itemMargin) * 2));
  }
   .gallery-list-grid-4 {
      flex: 0 1 calc((100% / 3) - (var(--itemMargin) * 2));
  }
   .gallery-list-grid-3 {
      max-height: 230px;
  }
}

@media (max-width: 767px) {
   .gallery-list-grid-2 {
      max-height: 260px;
  }
	.gallery-list-grid-3, .gallery-list-grid-4, .gallery-list-grid-5 {
      flex: 0 1 calc((100% / 3) - (var(--itemMargin) * 2));
      max-height: 220px;
  }
}

@media (max-width: 576px) {
	.gallery-list-grid-2, .gallery-list-grid-3, .gallery-list-grid-4, .gallery-list-grid-5 {
      flex: 0 1 calc((100% / 2) - (var(--itemMargin) * 2));
      max-height: 200px;
  }
}
 
.gallery-list-item:hover {
	border-color: rgba(0,0,0,0.3);
}
.gallery-list-item:hover .gallery-list-item-image {
	opacity: 1;
}
.gallery-list-item:hover .gallery-list-item-title {
	background-color: #eee;
}
.gallery-list-item:hover .gallery-list-item-text {
	background-color: steelBlue;
}
.gallery-list-item:hover .gallery-list-item-title.v2 {
	background-color: rgba(0,0,0,0.6);
}
.gallery-list-item-image {
	display: inline-block;
	height: 100%;
	overflow: hidden;
	width: 100%;
	opacity: 0.9;
	object-fit: cover;
	object-position: 50% 50%;
}
.gallery-list-item-title {
	text-align: center;
	color: #333;
	padding: 10px;
   background-color: #fff;
}
 @media (max-width: 767px) {
   .gallery-list-item-title {
      padding: 5px 10px;
   }
}
.gallery-list-item-length {
   background-color: rgba(0,0,0,0.5);
   color: #fff;
   border-radius: 5px;
   padding: 2px 5px;
   position: absolute;
   top: 5px;
   right: 5px;
   opacity: 1;
   z-index: 1;
   display: flex;
   justify-content: space-between;
   align-items: center;
}
.gallery-list-item-length svg {
   width: 20px;
   height: 20px;
   margin-right: 5px;
}
.gallery-list-item-length svg path {
   fill: #fff;
}
.gallery-list-item-title.v2 {
	position: absolute;
	width: 100%;
	bottom: 0;
	right: 0;
	color: #fff;
	background-color: rgba(0,0,0,0.4);
}
@media (max-width: 479.98px) {
	.gallery-list-item-title {
	  font-size: 13px;
	}
}
.gallery-list-item-text {
	display: inline-block;
	flex: 1 1 auto;
	color: #333;
	line-height: 15px;
	padding: 10px;
	text-align: center;
	border-top: 1px solid #777;
}
@media (max-width: 479.98px) {
	.gallery-list-item-text {
	  font-size: 13px;
	  padding: 10px 5px;
	}
}

.gallery-list-pagination .display-on-mobile {
   display: none;
}

@media (max-width: 767px) {
	.gallery-list-pagination .hide-in-mobile {
	  display: none;
	}
   .gallery-list-pagination .display-on-mobile {
      display: inline-block;
   }
}

.gallery-not-found-message {
   font-size: 18px;
   padding: 20px;
   width: 100%;
   font-weight: 400;
   text-align: center;
}

.gallery-list-pagination {
   width: 100%;
   text-align: center;
   padding: 10px 0;
   margin: 10px 0;
}

.gallery-pagination {
  list-style-type: none;
  display: inline-block;
  font-size: 100%;
  padding: .5em;
  margin: 0;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

.gallery-pagination li {
   display: inline-block;
   font-size: 100%;
   width: auto;
   border-radius: 5px;
   border: 1px solid #eee;
   margin: 0 1px;
}

.gallery-pagination li a {
   color: #555;
  text-decoration: none;
  font-weight: 700;
}

.gallery-pagination li span {
   cursor: default;
   color: #aaa;
}

.gallery-pagination li a,
.gallery-pagination li span {
   display: inline-block;
   font-size: 16px;
   min-width: 36px;
   min-height: 20px;
   line-height: 20px;
   padding: .5em;
   border-radius: 5px;
}

.gallery-pagination li.active span {
   position: relative;
   color: #fff;
   font-weight: 700;
   z-index: 1;
   background-color: cornflowerblue;
}

.gallery-pagination li.active span:before {
   content: '';
   position: absolute;
   top: 3px;
   right: 3px;
   left: 3px;
   bottom: 3px;
   border-radius: 5px;
   z-index: -1;
}

.gallery-pagination li a:hover,
.gallery-pagination li a:focus {
   color: cornflowerblue;
}
